:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #72808b;
  --line: #e5e9ed;
  --paper: #f5f7f9;
  --card: #ffffff;
  --navy: #182a3c;
  --blue: #2563eb;
  --blue-soft: #eef4ff;
  --green: #16846c;
  --amber: #bd7924;
  --shadow: 0 3px 12px rgba(28, 46, 61, .035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, .button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 4; display: flex; flex-direction: column; width: 244px; padding: 25px 15px 17px; background: var(--navy); color: #d2dce5; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 35px; color: #fff; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(121, 177, 255, .5); border-radius: 12px; background: linear-gradient(145deg, #21466d, #20364e); color: #a7d6ff; font: 800 20px/1 Manrope, sans-serif; box-shadow: inset 0 0 15px rgba(78, 164, 255, .12); }
.brand strong, .auth-brand strong { display: block; font: 700 16px/1.2 Manrope, sans-serif; letter-spacing: -.4px; }
.brand small, .auth-brand small { display: block; margin-top: 4px; color: #8fa2b6; font: 500 8px/1 'DM Mono', monospace; letter-spacing: 1.05px; }
.sidebar-label { padding: 0 11px 10px; color: #75899d; font: 500 9px/1 'DM Mono', monospace; letter-spacing: 1.2px; }
.main-nav { display: grid; gap: 5px; }
.main-nav a, .nav-logout { display: flex; align-items: center; gap: 11px; min-height: 41px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; color: #b8c5d1; font-size: 12px; transition: background .18s, color .18s, transform .18s; }
.main-nav a:hover, .nav-logout:hover { transform: translateX(2px); background: rgba(255,255,255,.055); color: #fff; }
.main-nav a.active { border-color: rgba(125, 171, 216, .14); background: #243b52; color: #f1f7fd; box-shadow: inset 2px 0 #68a9f9; }
.nav-icon { width: 17px; color: #92acc2; font-size: 16px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.host-card { display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; padding: 13px 10px; border: 1px solid rgba(192, 211, 228, .11); border-radius: 8px; background: rgba(255,255,255,.035); }
.host-card strong { display: block; color: #e4edf5; font-size: 11px; font-weight: 600; }
.host-card small { display: block; margin-top: 2px; color: #91a5b9; font-size: 10px; }
.live-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #36c596; box-shadow: 0 0 0 3px rgba(54, 197, 150, .11); }
.logout-form { margin: 0 0 12px; }
.nav-logout { width: 100%; cursor: pointer; background: transparent; border: 0; text-align: left; }
.sidebar-version { padding: 13px 10px 0; border-top: 1px solid rgba(202,219,235,.1); color: #90a1b2; font: 500 8px/1.7 'DM Mono', monospace; letter-spacing: .4px; }
.sidebar-version span { float: right; color: #6f8497; }

.main-shell { min-height: 100vh; margin-left: 244px; }
.topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 39px; border-bottom: 1px solid #e8ecf0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.topbar > div:first-child { color: #596a79; font-size: 11px; }
.topbar strong { color: #253443; font-size: 11px; font-weight: 600; }
.breadcrumb-muted { color: #8a97a1; }
.breadcrumb-sep { margin: 0 10px; color: #bcc5cc; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.secure-indicator { display: flex; align-items: center; gap: 8px; color: #6b7c88; font-size: 10px; }
.secure-indicator .live-dot { width: 6px; height: 6px; }
.avatar { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #d8e2ec; border-radius: 50%; background: #eaf2fb; color: #315a84; font-size: 10px; font-weight: 700; }
.page-content { width: min(1120px, 100%); margin: 0 auto; padding: 32px 39px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { color: #83919c; font: 500 9px/1.3 'DM Mono', monospace; letter-spacing: 1.35px; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin: 7px 0 5px; color: #1c2a36; font: 700 27px/1.2 Manrope, sans-serif; letter-spacing: -.85px; }
.page-heading p { margin: 0; color: #778590; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; transition: background .18s, box-shadow .18s, transform .18s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: #1e59cb; background: #2464dc; color: #fff; box-shadow: 0 2px 4px rgba(29, 87, 197, .13); }
.button-primary:hover { background: #1d56c4; box-shadow: 0 4px 12px rgba(29, 87, 197, .18); }
.button-secondary { border-color: #dfe5ea; background: #fff; color: #3c4b58; }
.button-secondary:hover { border-color: #b9c8d6; background: #f8fbfe; }
.button-quiet { min-height: 32px; padding: 0 10px; background: transparent; color: #657581; }
.button-full { width: 100%; min-height: 43px; justify-content: space-between; margin-top: 10px; padding: 0 15px; }
.button-plus { color: inherit; font-size: 17px; font-weight: 400; line-height: 1; }
.text-link { color: #2764ca; font-size: 10px; font-weight: 600; }
.text-link span { margin-left: 4px; font-size: 13px; }
.round-link { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #e0e7ec; border-radius: 50%; color: #778996; font-size: 13px; }

.notice { margin: 0 0 18px; padding: 11px 14px; border: 1px solid; border-radius: 7px; font-size: 12px; }
.notice-success { border-color: #c4e8dc; background: #effaf6; color: #13674f; }
.notice-warning { border-color: #f2dfae; background: #fff9e9; color: #815b16; }
.notice-error { border-color: #f0cdcc; background: #fff5f4; color: #9c3d36; }
.notice-info { border-color: #d6e3f6; background: #f4f8ff; color: #315a8b; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card, .panel, .project-card, .new-project-panel { border: 1px solid #e8ecef; border-radius: 8px; background: var(--card); box-shadow: var(--shadow); }
.metric-card { position: relative; min-height: 122px; padding: 17px 16px 14px; overflow: hidden; }
.metric-label { color: #88949d; font: 500 8px/1.3 'DM Mono', monospace; letter-spacing: .95px; }
.metric-value { margin-top: 13px; color: #20303d; font: 700 26px/1 Manrope, sans-serif; letter-spacing: -.8px; }
.metric-foot { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: #84909a; font-size: 9px; }
.metric-dot { width: 6px; height: 6px; border-radius: 50%; }
.metric-dot.blue { background: #5084e9; }.metric-dot.green { background: #29ad86; }.metric-dot.amber { background: #dfa646; }
.metric-icon { position: absolute; top: 12px; right: 13px; color: #e0e8ef; font-size: 22px; }
.metric-level { display: flex; align-items: baseline; gap: 8px; font-size: 24px; }
.metric-level span { color: #83909b; font: 500 9px 'DM Sans', sans-serif; letter-spacing: 0; }
.muted-value { color: #627384; font-size: 14px; letter-spacing: 0; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .9fr); gap: 16px; margin-bottom: 17px; }
.panel { padding: 19px 19px 17px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0 0 3px; color: #263541; font: 700 13px/1.3 Manrope, sans-serif; letter-spacing: -.2px; }
.panel-heading p { margin: 0; color: #87939d; font-size: 10px; }
.empty-state { display: grid; justify-items: center; padding: 37px 24px 27px; text-align: center; }
.empty-symbol { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 10px; border: 1px solid #e4eaf0; border-radius: 12px; background: #f7f9fb; color: #91a5b8; font-size: 20px; }
.empty-state h3, .empty-projects h3 { margin: 0 0 5px; color: #384b5b; font: 700 12px Manrope, sans-serif; }
.empty-state p, .empty-projects p { max-width: 340px; margin: 0 0 16px; color: #8a969f; font-size: 10px; }
.empty-state .button { min-height: 32px; }
.project-list { margin-top: 15px; }
.project-row { display: flex; align-items: center; gap: 10px; min-height: 56px; border-top: 1px solid #eff1f3; }
.project-avatar { display: grid; flex: 0 0 auto; width: 31px; height: 31px; place-items: center; border: 1px solid #dce7f4; border-radius: 8px; background: #eff5fc; color: #3a6c9d; font: 700 12px Manrope, sans-serif; }
.project-row-main { min-width: 0; flex: 1; }
.project-row-main strong { display: block; overflow: hidden; color: #31424f; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-row-main small { display: block; margin-top: 3px; overflow: hidden; color: #8b97a1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 600; }
.status-pill i, .capability-state i, .level-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-blue { background: #eff5ff; color: #4772ba; }
.status-neutral { background: #f1f3f5; color: #7d8a94; }
.row-arrow { padding: 4px; color: #97a5b0; font-size: 14px; }
.environment-panel { padding-bottom: 14px; }
.capability-row { display: flex; align-items: center; gap: 10px; min-height: 51px; border-top: 1px solid #eff1f3; }
.environment-panel .panel-heading { margin-bottom: 12px; }
.capability-icon { display: grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border-radius: 7px; font: 700 8px 'DM Mono', monospace; }
.php-icon { background: #f0effa; color: #65599d; }.zip-icon { background: #eff5f1; color: #498163; }.node-icon { background: #f2f5e9; color: #728440; }
.capability-row > div { min-width: 0; flex: 1; }
.capability-row strong { display: block; color: #3e4f5d; font-size: 9px; font-weight: 600; }
.capability-row small { display: block; margin-top: 2px; color: #96a0a8; font-size: 8px; }
.capability-state { display: flex; align-items: center; gap: 5px; font-size: 8px; white-space: nowrap; }
.state-ok { color: #1b956f; }.state-warn { color: #bd812e; }.state-off { color: #88939c; }
.capability-note { display: flex; gap: 8px; margin-top: 8px; padding: 10px 10px 9px; border: 1px solid #e7edf2; border-radius: 6px; background: #f7f9fb; color: #7890a1; }
.capability-note > span { display: grid; flex: 0 0 auto; width: 14px; height: 14px; place-items: center; border: 1px solid #bdcbd7; border-radius: 50%; font: 600 9px Georgia, serif; }
.capability-note p { margin: 0; color: #7c8994; font-size: 9px; line-height: 1.55; }
.activity-panel { padding-bottom: 11px; }
.activity-period { color: #9aa5ad; font: 500 8px 'DM Mono', monospace; letter-spacing: .65px; }
.activity-list { margin-top: 13px; }
.activity-row { display: flex; align-items: center; gap: 10px; min-height: 34px; border-top: 1px solid #f0f2f4; }
.activity-marker { width: 6px; height: 6px; border-radius: 50%; background: #8eb7ef; box-shadow: 0 0 0 3px #f1f6fc; }
.activity-message { flex: 1; color: #52616d; font-size: 10px; }
.activity-row time { color: #9ca7af; font: 9px 'DM Mono', monospace; }
.activity-empty { padding: 21px 0 7px; color: #8b98a1; font-size: 10px; }

.project-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
.search-form { display: flex; align-items: center; width: min(390px, 70%); height: 36px; padding: 0 10px; border: 1px solid #e2e7eb; border-radius: 6px; background: #fff; }
.search-icon { margin-right: 8px; color: #8b9aa6; font-size: 20px; line-height: 1; }
.search-form input { min-width: 0; flex: 1; border: 0; outline: none; background: transparent; color: #30414f; font-size: 10px; }
.search-form input::placeholder { color: #a0aab2; }
.clear-search { color: #4b72ae; font-size: 9px; }
.results-count { color: #89959e; font-size: 10px; }
.project-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.project-card { min-width: 0; padding: 16px; }
.project-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.large-avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
.project-card-title { min-width: 0; flex: 1; }
.project-card-title h2 { overflow: hidden; margin: 0 0 3px; color: #293a47; font: 700 12px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.project-card-title > span { display: block; overflow: hidden; color: #8c98a1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.project-facts { display: grid; grid-template-columns: 1.15fr 1fr .7fr; gap: 8px; margin-top: 18px; padding: 12px 0; border-top: 1px solid #eff1f3; border-bottom: 1px solid #eff1f3; }
.project-facts div > span, .analysis-grid div > span { display: block; color: #99a3ab; font: 500 7px 'DM Mono', monospace; letter-spacing: .55px; }
.project-facts strong { display: block; overflow: hidden; margin-top: 4px; color: #50606b; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dependency-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 9px 10px; border: 1px solid #e9edf0; border-radius: 6px; background: #fbfcfd; }
.dependency-status > div { min-width: 0; }
.dependency-label { display: block; color: #99a3ab; font: 500 7px 'DM Mono', monospace; letter-spacing: .55px; }
.dependency-status strong { display: block; margin-top: 4px; color: #50606b; font-size: 9px; font-weight: 600; }
.dependency-status small { color: #89959e; font-size: 8px; text-align: right; }
.analysis-details { margin-top: 12px; }
.analysis-details summary { display: flex; justify-content: space-between; cursor: pointer; color: #4e6d94; font-size: 9px; font-weight: 600; list-style: none; }
.analysis-details summary::-webkit-details-marker, .new-project-panel summary::-webkit-details-marker { display: none; }
.analysis-details[open] summary > span { transform: rotate(180deg); }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; padding: 11px; border-radius: 6px; background: #f7f9fb; }
.analysis-grid strong { display: block; margin-top: 4px; color: #4b5d6b; font-size: 9px; font-weight: 600; overflow-wrap: anywhere; }
.analysis-warning { margin: 10px 0 0; color: #82909b; font-size: 9px; line-height: 1.5; }
.project-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 12px; }
.project-card-actions > form:last-child { margin-left: auto; }
.project-card-actions .button { white-space: nowrap; }
.attach-form { display: flex; gap: 7px; }
.upload-button { position: relative; overflow: hidden; }
.upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.danger-text { color: #aa5a53; }
.empty-projects { grid-column: 1 / -1; display: grid; justify-items: center; min-height: 210px; padding-top: 40px; text-align: center; }
.new-project-panel { margin-top: 17px; }
.new-project-panel > summary { display: flex; align-items: center; gap: 11px; min-height: 67px; padding: 12px 16px; cursor: pointer; list-style: none; }
.new-project-panel > summary > span:nth-child(2) { flex: 1; }
.new-project-panel > summary strong { display: block; color: #384a57; font-size: 11px; }
.new-project-panel > summary small { display: block; margin-top: 3px; color: #929da5; font-size: 9px; }
.summary-chevron { color: #85949f; transition: transform .16s; }
.new-project-panel[open] .summary-chevron { transform: rotate(180deg); }
.new-project-form { padding: 17px 17px 14px; border-top: 1px solid #edf0f2; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field label, .form-stack label { color: #4e5d68; font-size: 10px; font-weight: 600; }
.form-field label span { color: #96a1a8; font-size: 8px; font-weight: 400; }
.form-field input, .form-field select, .form-stack input { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid #dfe5e9; border-radius: 5px; background: #fff; color: #394b59; font-size: 10px; }
.form-field input[type=file] { padding: 8px; color: #778692; }
.form-field input::placeholder { color: #a3adb4; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf0f2; }
.form-footer p { margin: 0; color: #8b979f; font-size: 9px; }

.level-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 20px; font-size: 9px; font-weight: 600; }
.level-limited { background: #eef5ff; color: #426fae; }.level-blocked { background: #fff4e9; color: #ad6b22; }
.diagnostic-callout { display: flex; gap: 12px; margin-bottom: 15px; padding: 15px 17px; border: 1px solid; border-radius: 8px; }
.callout-good { border-color: #d1e9df; background: #f3fbf7; }.callout-warn { border-color: #f0dfc8; background: #fffaf2; }
.callout-icon { display: grid; flex: 0 0 auto; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #e1f4eb; color: #218668; font-size: 12px; font-weight: 700; }
.callout-warn .callout-icon { background: #ffeed6; color: #a96a21; }
.diagnostic-callout strong { display: block; color: #385c4e; font-size: 11px; }
.callout-warn strong { color: #805d30; }
.diagnostic-callout p { margin: 3px 0 0; color: #788b82; font-size: 9px; }
.diagnostics-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.diagnostic-panel .panel-heading { margin-bottom: 14px; }
.panel-icon { color: #95a9b7; font-size: 19px; }
.diagnostic-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 34px; border-top: 1px solid #f0f2f4; color: #73818c; font-size: 9px; }
.diagnostic-row strong { display: inline-flex; align-items: center; gap: 7px; color: #52616c; font: 500 9px 'DM Mono', monospace; text-align: right; }
.diag-indicator { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.diag-ok { background: #28aa81; }.diag-warn { background: #d89d44; }.diag-off { background: #c2c9ce; }
.runtime-honesty { margin-bottom: 11px; padding: 11px; border: 1px solid #e9edf0; border-radius: 6px; background: #f8fafb; }
.runtime-not-activated { display: flex; align-items: center; gap: 9px; }
.runtime-glyph { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #f2f5e9; color: #768443; font: 700 10px 'DM Mono', monospace; }
.runtime-not-activated div { min-width: 0; flex: 1; }
.runtime-not-activated strong { display: block; color: #4d5c67; font-size: 9px; }
.runtime-not-activated small { display: block; margin-top: 2px; color: #8d99a1; font-size: 8px; }
.compact-state { font-size: 8px; }
.runtime-honesty > p { margin: 9px 0 0; color: #82909a; font-size: 9px; line-height: 1.55; }
.runtime-not-activated + .runtime-not-activated { margin-top: 9px; }
.runtime-install-form { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.runtime-install-form small { flex: 1 1 100%; color: #82909a; font-size: 9px; line-height: 1.5; }
.adapter-status { margin-top: 12px; padding: 11px; border: 1px solid #e9edf0; border-radius: 6px; background: #fbfcfd; }
.adapter-status strong { color: #4d5c67; font-size: 9px; }
.adapter-status p { margin: 5px 0 0; color: #788792; font-size: 9px; line-height: 1.55; }
.adapter-status small { display: block; margin-top: 7px; color: #8d99a1; font-size: 8px; line-height: 1.5; }
.adapter-status code { font: 8px 'DM Mono', monospace; }
.adapter-ready { border-color: #dceee7; background: #f8fcfa; }
.adapter-blocked { border-color: #f0e8d8; background: #fdfbf7; }
.function-list .diagnostic-row { min-height: 30px; }
.function-list .diagnostic-row strong { font-family: 'DM Sans', sans-serif; font-size: 8px; }
.diagnostic-footer { padding-bottom: 19px; }
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.level-item { display: flex; gap: 9px; padding: 11px; border: 1px solid #e9edf0; border-radius: 7px; }
.level-item.current-level { border-color: #d5e3f6; background: #f5f9ff; }
.level-letter { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: #edf1f4; color: #687985; font: 700 10px 'DM Mono', monospace; }
.current-level .level-letter { background: #e4efff; color: #396ab0; }
.level-item strong { color: #43545f; font-size: 9px; }
.level-item p { margin: 4px 0 0; color: #84919a; font-size: 8px; line-height: 1.5; }

.auth-shell { display: grid; min-height: 100vh; align-content: center; justify-items: center; padding: 30px 20px 42px; background: radial-gradient(ellipse at 50% 10%, #e9f2fc 0, transparent 42%), #f5f7f9; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.auth-brand strong { color: #223647; }
.auth-brand small { color: #8393a1; }
.auth-card { width: min(100%, 390px); padding: 27px; border: 1px solid #e2e8ed; border-radius: 10px; background: #fff; box-shadow: 0 12px 40px rgba(26, 49, 68, .07); }
.setup-card { width: min(100%, 430px); }
.auth-card h1 { margin: 7px 0 7px; color: #1e2e3b; font: 700 23px/1.2 Manrope, sans-serif; letter-spacing: -.65px; }
.auth-intro { margin: 0 0 20px; color: #7d8b96; font-size: 11px; line-height: 1.65; }
.form-stack { display: grid; gap: 8px; }
.field-hint { margin: -3px 0 2px; color: #89969f; font-size: 9px; line-height: 1.5; }
.auth-footnote { display: flex; align-items: center; gap: 7px; margin-top: 19px; padding-top: 14px; border-top: 1px solid #edf0f2; color: #88959f; font-size: 8px; }
.lock-icon { color: #5f8d80; font-size: 13px; }
.setup-check { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 10px; border: 1px solid #e8edf1; border-radius: 7px; background: #f8fafb; }
.checkmark { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #e5f5ed; color: #228466; font-size: 10px; font-weight: 700; }
.setup-check > span:nth-child(2) { flex: 1; }
.setup-check strong { display: block; color: #40535f; font: 600 10px 'DM Mono', monospace; }
.setup-check small { display: block; margin-top: 2px; color: #8e9aa3; font-size: 8px; }
.check-status { color: #3d8b6e; font-size: 8px; }
.auth-caption { margin-top: 19px; color: #a1abb2; font: 8px 'DM Mono', monospace; letter-spacing: .65px; text-align: center; }
.auth-notice { position: fixed; top: 16px; left: 50%; z-index: 5; width: min(600px, calc(100% - 32px)); transform: translateX(-50%); box-shadow: 0 5px 20px rgba(0,0,0,.08); }

@media (max-width: 1080px) {
  .page-content { padding-right: 26px; padding-left: 26px; }
  .topbar { padding-right: 26px; padding-left: 26px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; padding: 10px 14px 8px; }
  .brand { padding: 0 2px 10px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 17px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 7px; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .main-nav { display: flex; gap: 4px; overflow-x: auto; }
  .main-nav a { min-height: 34px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
  .main-nav a.active { box-shadow: inset 0 -2px #68a9f9; }
  .nav-icon { width: auto; font-size: 13px; }
  .main-shell { margin-left: 0; }
  .topbar { position: static; height: 49px; padding: 0 17px; }
  .secure-indicator { display: none; }
  .page-content { padding: 25px 16px 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { max-width: 500px; line-height: 1.55; }
  .page-heading > .button, .page-heading > .level-badge { align-self: flex-start; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 112px; padding: 13px 12px 11px; }
  .metric-value { font-size: 23px; }
  .metric-level { font-size: 21px; }
  .metric-level span { font-size: 8px; }
  .metric-foot { font-size: 8px; }
  .panel { padding: 15px 13px; }
  .project-row { gap: 7px; }
  .status-pill { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .project-cards { grid-template-columns: 1fr; }
  .diagnostics-columns { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 108px; }
  .metric-label { font-size: 7px; }
  .metric-value { margin-top: 10px; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts > div:last-child { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-footer .button { align-self: stretch; }
  .topbar > div:first-child { font-size: 10px; }
  .breadcrumb-sep { margin: 0 6px; }
  .activity-row time { font-size: 8px; }
}
