/* Deliberately scoped specificity keeps this console theme above legacy layouts. */
html:root {--ink:#202b3c;--muted:#69768a;--line:#d7dee8;--canvas:#eff2f6;--navy:#203149;--navy-2:#164bac;--accent:#2360d4}
html body {font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif}
body.auth-page {background:#edf1f6}
body .auth-card {border:1px solid #d7dee8;border-radius:6px;box-shadow:0 5px 20px #1d293b08;padding:32px}
body .brand-mark {font-family:"Segoe UI",sans-serif;border-radius:4px;background:#203149}
body :is(.auth-card h1,.hero h1,.admin-heading h1) {font-family:inherit;font-size:26px;font-weight:650;line-height:1.35;letter-spacing:0}
body .eyebrow {font-size:10px;letter-spacing:.12em;color:#69768a}
body .topbar {height:60px;padding:0 24px;background:#1d293b;border-color:#344258;color:#f6f8fc;gap:14px}
body .topbar-brand small {color:#aabbd1;font-size:10px}body .topbar-brand b {font-size:14px}
body .topbar .brand-mark {background:#324762;width:30px;height:30px;font-size:11px}
body .topbar-actions {gap:14px;font-size:12px}
body .topbar-actions a,body .logout-button {color:#bfccdd;font-size:12px}body .topbar-actions a:hover {color:#fff}
body .user-chip {padding:5px 8px;background:#2a394e;color:#dce6f2;font-size:11px;border-radius:3px}body .user-chip i {box-shadow:none;width:5px;height:5px}
body .dashboard {max-width:1320px;padding:30px 28px 48px}
body .hero {display:grid;grid-template-columns:1fr 320px;gap:22px;align-items:center;margin-bottom:22px}
body .hero h1 {margin-bottom:6px}body .hero p:not(.eyebrow) {font-size:12px;line-height:1.6}
body .directory-count {display:inline-block;vertical-align:middle;margin-left:7px;font:600 12px Consolas,monospace;background:#e2e8f1;color:#62748c;padding:3px 7px;border-radius:3px}
body .tool-search {width:100%;font-size:11px;font-weight:500}body .tool-search input {padding:10px 12px;border-radius:4px;font-size:13px}
body .tool-categories {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #ccd5e2;padding:0 0 10px}
body .tool-categories button {border:1px solid transparent;background:transparent;color:#64748b;border-radius:4px;padding:8px 12px;font:500 12px "Segoe UI","Microsoft YaHei",sans-serif;cursor:pointer}
body .tool-categories button span {font:11px Consolas,monospace;margin-left:4px;opacity:.7}
body .tool-categories button[aria-pressed=true] {background:#fff;border-color:#c8d5e8;color:#2059b9;font-weight:600}
body .tool-categories button:hover {color:#2059b9;background:#e5edf8}
body .tool-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body .tool-card {min-height:172px;padding:18px 20px;border-radius:5px;transition:border-color .12s,box-shadow .12s}
body .tool-card::after {display:none}body .tool-card:hover {transform:none;border-color:#8ca9d8;box-shadow:0 2px 8px #1d293b08}
body .tool-card-top {margin-bottom:12px}body .tool-index {color:#7b8ba3;font:600 11px Consolas,monospace}
body .tool-category {font-size:10px;letter-spacing:0;color:#8290a4}
body .tool-card strong {font-size:16px;font-weight:650;margin-bottom:8px}body .tool-short {display:none}
body .tool-description {font-size:12px;line-height:1.7;color:#69768a}body .tool-open {font-size:11px;padding-top:12px;color:#245db8}body .tool-open b {color:#245db8;font-size:13px}
body .tool-workspace {height:calc(100dvh - 60px);background:#eff2f6}
body .workspace-bar {min-height:64px;height:64px;padding:8px 22px;gap:20px;background:#fff}
body .workspace-title {grid-template-columns:auto 1fr;gap:2px 10px}body .workspace-title>span {writing-mode:horizontal-tb;grid-row:1;grid-column:2;align-self:center;font-size:10px;color:#7b8ba3;letter-spacing:0}
body .workspace-title strong {grid-column:1;grid-row:1;font-size:14px}body .workspace-title small {grid-column:1/-1;font-size:11px}
body .back-button,body .standalone-link {font-size:12px;font-weight:600}body .tool-workspace iframe {height:calc(100% - 64px);background:#eff2f6}
body .admin-shell {margin-top:28px}body .admin-heading h1 {font-size:25px}body .admin-heading p {font-size:12px}
body .admin-panel {border-radius:5px;padding:20px}body .admin-panel h2 {font-size:16px}
body :is(.primary-button,.primary-link,.admin-form button,.filter-form button,.software-create-form button) {background:#2360d4;border-radius:4px;font-size:13px;padding:10px 15px}
body :is(.auth-form input,.filter-form input,.filter-form select,.admin-form input:not([type=checkbox]),.admin-form select) {padding:9px 11px;border-radius:4px;font-size:13px}
body :is(.admin-form input[type=checkbox],.check-row input[type=checkbox]) {width:14px!important;height:14px;min-height:0;margin:0;accent-color:#2360d4}
body .table-action {border-radius:3px;font-size:11px}body .admin-table th {background:#f1f5fa}body .admin-table :is(th,td) {padding:10px 12px}
body :is(.software-card,.membership-policy-card) {border-radius:4px;background:#f8fafc}
@media(max-width:1200px) {body .topbar-actions {gap:9px}body .topbar-actions a {font-size:11px}body .user-chip {max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:900px) {body .tool-grid {grid-template-columns:repeat(2,minmax(0,1fr))}body .topbar-actions a {display:none}body .hero {grid-template-columns:1fr 260px}}
@media(max-width:600px) {
  body .topbar {height:60px;min-height:60px;padding:0 12px}body .topbar-brand small {display:none}body .topbar-brand {gap:8px}body .user-chip {max-width:132px;font-size:10px}body .topbar-actions {gap:8px}
  body .dashboard {padding:20px 12px 32px}body .hero {grid-template-columns:1fr;gap:16px}body .hero h1 {font-size:23px}body .hero .eyebrow {margin-bottom:6px}
  body .tool-grid {grid-template-columns:minmax(0,1fr);gap:10px}body .tool-card {min-height:145px;padding:16px}body .tool-categories {gap:2px}body .tool-categories button {padding:7px 8px;font-size:11px}
  body .workspace-bar {height:84px;min-height:84px;grid-template-columns:1fr auto;gap:2px 10px;padding:8px 12px}body .workspace-title {grid-column:1/-1;grid-row:2}body .tool-workspace iframe {height:calc(100% - 84px)}
  body .auth-card {padding:26px 22px}body .admin-heading nav {justify-content:flex-start;font-size:12px}
}
