/* Neutral AXIS dark mode: graphite surfaces, restrained contrast, colour only as signal. */
html[data-theme="dark"]{--bg:#0f1114;--surface:#171a1f;--surface2:#1c2026;--surface3:#22272e;--line:#2b3038;--line-hi:#414852;--text:#eef0f2;--muted:#9299a3;--cyan:#c4c9ce;--blue:#c4c9ce;--green:#9cff38;--orange:#d49a65;color-scheme:dark}
html[data-theme="dark"] body,html[data-theme="dark"] .app-body{color:#eef0f2;background:#0f1114;background-image:none}
html[data-theme="dark"] .sidebar{background:#15181d;border-color:#292e35;box-shadow:12px 0 35px rgba(0,0,0,.2)}html[data-theme="dark"] .sidebar>.brand,html[data-theme="dark"] .sidebar-foot{border-color:#2b3037}html[data-theme="dark"] .brand b{color:#f1f2f3}html[data-theme="dark"] .brand small,html[data-theme="dark"] .brand-credit,html[data-theme="dark"] .sidebar nav small{color:#777e87}html[data-theme="dark"] .sidebar nav a{color:#9ba1aa}html[data-theme="dark"] .sidebar nav a:hover{color:#f0f1f2;background:#1e2228;border-color:#30363e}html[data-theme="dark"] .sidebar nav a.active{color:#f4f5f6;background:#22262c;border-color:#363c44;border-left-color:#9cff38;box-shadow:none}html[data-theme="dark"] .sidebar nav a.active:after{width:3px;height:3px;background:#9cff38;box-shadow:none}html[data-theme="dark"] .sidebar-search input{color:#dfe2e5!important;background:#111318!important;border-color:#2b3037!important}html[data-theme="dark"] .sidebar-foot .avatar{color:#e6e9eb;background:#30353c}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .project-hero,html[data-theme="dark"] .panel,html[data-theme="dark"] .metrics article,html[data-theme="dark"] .roadmap-summary article,html[data-theme="dark"] .search-start article{color:#eef0f2;background:#181b20;background-image:none;border-color:#2d3239;box-shadow:0 12px 28px rgba(0,0,0,.12)}html[data-theme="dark"] .topbar{border-left-color:#555d66;clip-path:none;border-radius:7px}html[data-theme="dark"] .topbar:after,html[data-theme="dark"] .project-hero:before{background:#4b525b;box-shadow:none}html[data-theme="dark"] .topbar p,html[data-theme="dark"] .project-hero p,html[data-theme="dark"] .context-card p{color:#9299a3}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .panel header>a,html[data-theme="dark"] .row-arrow,html[data-theme="dark"] .project-card>small,html[data-theme="dark"] .visibility.public{color:#b8bdc3}html[data-theme="dark"] .eyebrow{font-weight:600}html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3{color:#f0f1f2}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .search-box{color:#eceef0;background-color:#111318;border-color:#343a42}html[data-theme="dark"] input:hover,html[data-theme="dark"] select:hover,html[data-theme="dark"] textarea:hover{background-color:#14171b;border-color:#4b525b}html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{background-color:#14171b;border-color:#6c747e;box-shadow:0 0 0 3px rgba(190,196,202,.07)}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#6e747d}html[data-theme="dark"] select{background-image:linear-gradient(45deg,transparent 50%,#9aa0a7 50%),linear-gradient(135deg,#9aa0a7 50%,transparent 50%),linear-gradient(90deg,#343a42,#343a42)}html[data-theme="dark"] label{color:#b3b8be}
html[data-theme="dark"] .button.primary{color:#f2f3f4;background:#292e35;background-image:none;border-color:#505761;box-shadow:inset 3px 0 0 #9cff38,0 7px 18px rgba(0,0,0,.18);text-shadow:none}html[data-theme="dark"] .button.primary:after{background:#7f8790;box-shadow:none}html[data-theme="dark"] .button.primary:hover{color:#fff;background:#343a42;border-color:#717983;box-shadow:inset 3px 0 0 #9cff38}html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .icon-button{color:#c0c5ca;background:#20242a;border-color:#383e46}html[data-theme="dark"] .button.secondary:hover{color:#f0f2f3;border-color:#606872}
html[data-theme="dark"] .data-panel>header,html[data-theme="dark"] .record-section>header,html[data-theme="dark"] .task-column>header,html[data-theme="dark"] .sketch-toolbar{background:#1c2025;background-image:none;border-color:#30353d}html[data-theme="dark"] .table-row,html[data-theme="dark"] .project-task-row,html[data-theme="dark"] .activity-list>a,html[data-theme="dark"] .document-list>a,html[data-theme="dark"] .roadmap-row{color:#bbc0c6;border-color:#292e35}html[data-theme="dark"] .table-row:hover,html[data-theme="dark"] .project-task-row:hover,html[data-theme="dark"] .activity-list>a:hover,html[data-theme="dark"] .document-list>a:hover,html[data-theme="dark"] .roadmap-row:hover{background:#1f2329}html[data-theme="dark"] .entity>i,html[data-theme="dark"] .activity-glyph{color:#d7dade;background:#292e35}html[data-theme="dark"] .entity>b,html[data-theme="dark"] .project-card h2,html[data-theme="dark"] .task-card h3,html[data-theme="dark"] .document-list b{color:#eef0f2}html[data-theme="dark"] .table-row small,html[data-theme="dark"] .document-list small{color:#858c95}
html[data-theme="dark"] .task-column,html[data-theme="dark"] .task-card,html[data-theme="dark"] .file-card,html[data-theme="dark"] .note-pencil,html[data-theme="dark"] .task-focus-dialog{color:#e9ebed;background:#16191e;background-image:none;border-color:#2d3239}html[data-theme="dark"] .task-card:hover,html[data-theme="dark"] .file-card:hover{background:#1d2127;border-color:#464d56}html[data-theme="dark"] .phase-block,html[data-theme="dark"] .quick-form,html[data-theme="dark"] .journal-form,html[data-theme="dark"] .sketch-panel{background:#181b20;background-image:none}html[data-theme="dark"] .upload-zone,html[data-theme="dark"] .note-pencil-placeholder{color:#9299a2;background:#13161a;border-color:#3b4149}
html[data-theme="dark"] .journal-command,html[data-theme="dark"] .search-hero,html[data-theme="dark"] .today-hero{background:#1a1d22;background-image:none}html[data-theme="dark"] .journal-command:after{color:rgba(220,224,228,.035)}html[data-theme="dark"] .journal-signals i,html[data-theme="dark"] .today-key i,html[data-theme="dark"] .app-footer span i{background:#9cff38;box-shadow:none}html[data-theme="dark"] .duration-chips button,html[data-theme="dark"] .today-task button,html[data-theme="dark"] .archive-list button{color:#b5bac0;background:#15181c;border-color:#343a42}html[data-theme="dark"] .duration-chips button.active{color:#f0f2f3;background:#343a42;border-color:#626a74;box-shadow:none}html[data-theme="dark"] .journal-categories input:checked+span{color:#eef0f2;background:#292e35;border-color:#555d66}html[data-theme="dark"] .journal-public-copy{background:#1c2025;border-left-color:#6d757e}html[data-theme="dark"] .log-evidence a{background:#121419}
html[data-theme="dark"] .roadmap-summary article:after{border-color:rgba(210,215,220,.07)}html[data-theme="dark"] .roadmap-track{background-color:#15181c;background-image:linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px)}html[data-theme="dark"] .roadmap-bar{background:#30353b;border-color:#555d66}html[data-theme="dark"] .roadmap-bar>em{background:rgba(255,255,255,.09)}html[data-theme="dark"] .roadmap-bar>b{color:#f0f1f2}html[data-theme="dark"] .today-line{background:rgba(156,255,56,.55);box-shadow:none}html[data-theme="dark"] .roadmap-milestone{background:#25292f;border-color:#aab0b6}
html[data-theme="dark"] .status-badge{color:#b9bec4;background:#292e35}html[data-theme="dark"] .status-badge.active,html[data-theme="dark"] .status-badge.completed{color:#d5d9dc;background:#30363b}html[data-theme="dark"] .status-badge.lead,html[data-theme="dark"] .status-badge.planning,html[data-theme="dark"] .status-badge.review{color:#d0d4d8;background:#2b3037}html[data-theme="dark"] .doc-type,html[data-theme="dark"] .category-tag,html[data-theme="dark"] .item-type{color:#c8cdd1;background:#292e34;border-color:#464d55}html[data-theme="dark"] .task-focus-backdrop{background:rgba(5,6,8,.72)}html[data-theme="dark"] .task-visibility-control,html[data-theme="dark"] .portal-password-fields{background:#1b1f24}html[data-theme="dark"] .axis-command-dialog{background:#181b20;border-color:#3b4149}html[data-theme="dark"] .axis-command-item{color:#b4b9bf}html[data-theme="dark"] .axis-command-item:hover,html[data-theme="dark"] .axis-command-item.active{color:#f0f1f2;background:#252a30}html[data-theme="dark"] .axis-command-hint{color:#9fa5ac;background:#191c21;border-color:#343a42}html[data-theme="dark"] .workspace:before{color:#2c3138}

/* Login, portal and remaining legacy accents use the same neutral material language. */
html[data-theme="dark"] .login-body{background:#0f1114;background-image:none}
html[data-theme="dark"] .login-shell{background:#15181d;border-color:#30353d;box-shadow:0 28px 80px rgba(0,0,0,.38)}
html[data-theme="dark"] .login-visual{background:#14171b;background-image:none;border-color:#2b3037}
html[data-theme="dark"] .login-visual:before{background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);opacity:.4}
html[data-theme="dark"] .login-visual em{color:#f0f1f2}
html[data-theme="dark"] .login-visual p{color:#8e959e}
html[data-theme="dark"] .login-panel{background:#171a1f}
html[data-theme="dark"] .axis-orbit{border-color:#343a42;box-shadow:none}
html[data-theme="dark"] .axis-orbit:before,html[data-theme="dark"] .axis-orbit:after{border-color:#2d3239}
html[data-theme="dark"] .axis-orbit:after{background:#1d2126;box-shadow:none}
html[data-theme="dark"] .axis-orbit span{background:linear-gradient(90deg,transparent,#78808a,transparent);box-shadow:none}
html[data-theme="dark"] .sidebar nav a.active span,html[data-theme="dark"] .project-tabs a.active,html[data-theme="dark"] .pencil-state,html[data-theme="dark"] .note-pencil-head>span{color:#eef0f2}
html[data-theme="dark"] .project-tabs a.active{background:#22262c}
html[data-theme="dark"] .project-gauge i,html[data-theme="dark"] .card-progress i,html[data-theme="dark"] .portal-progress i{background:#777f88;box-shadow:none}
