@charset "UTF-8";

:root {
  --canvas: #f5f7f7;
  --surface: #ffffff;
  --ink: #243a37;
  --muted: #667a77;
  --line: #e1e8e6;
  --accent: #318b7c;
  --accent-dark: #246e62;
  --accent-soft: #eaf4f0;
  --amber: #8b6027;
  --amber-soft: #faf3e7;
  --red: #ab4744;
  --red-soft: #fbefed;
  --body-font: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --heading-font: "Segoe UI Variable Display", "Microsoft JhengHei UI", "PingFang SC", sans-serif;
  --data-font: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: var(--accent-dark); text-decoration: none; }
button, input, select, textarea { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #318b7c66;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); }
h1 { font-size: 29px; letter-spacing: -.6px; line-height: 1.45; font-weight: 650; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.skip-link { position: fixed; top: 10px; left: 12px; transform: translateY(-150%); background: var(--ink); color: white; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { transform: none; }
.muted, .field-hint { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .9px; line-height: 1.6; }
.data { font-family: var(--data-font); font-variant-numeric: tabular-nums; }
.button, .icon-button, .filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; min-height: 38px; padding: 7px 14px; font-weight: 550; line-height: 1.5; }
.button:hover, .icon-button:hover, .filter-button:hover { background: var(--canvas); border-color: #bccfca; }
.button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.subtle { color: var(--accent-dark); background: var(--accent-soft); border-color: transparent; }
.button.danger { color: var(--red); border-color: #e7c8c4; }
.button.small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.icon-button { width: 36px; height: 36px; min-height: 36px; padding: 0; background: transparent; border-color: transparent; color: var(--muted); }
.icon-button:hover { color: var(--ink); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 14px; height: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 20px; line-height: 1.1; letter-spacing: -.4px; font-weight: 650; }
.brand-caption { display: block; font-size: 10px; line-height: 1.5; font-weight: 400; color: var(--muted); letter-spacing: 1.3px; margin-top: 5px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; position: relative; flex: 0 0 auto; }
.brand-mark i { position: absolute; width: 23px; height: 30px; border: 2px solid var(--accent); border-radius: 12px; transform: rotate(34deg); }
.brand-mark i:first-child { left: 3px; top: 2px; }
.brand-mark i:last-child { right: 3px; bottom: 2px; border-color: #79b5a8; background: #f5f7f766; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; color: var(--muted); }
.loading-dots { letter-spacing: 3px; }

.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: white; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; padding: 50px 12%; background: #eef4f2; border-right: 1px solid var(--line); }
.auth-intro { padding: 70px 0; }
.auth-intro h1 { font-size: clamp(30px, 3vw, 43px); line-height: 1.65; letter-spacing: 1px; margin: 18px 0 22px; font-weight: 500; }
.auth-intro p { color: var(--muted); line-height: 2; font-size: 15px; }
.auth-footnote { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.auth-entry { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 344px; }
.login-card h2 { font-size: 25px; margin: 8px 0; }
.login-card label { display: block; margin: 32px 0 9px; font-size: 13px; }
input, select, textarea { background: white; border: 1px solid #cfdbd7; border-radius: 8px; min-height: 40px; padding: 9px 11px; width: 100%; }
input::placeholder, textarea::placeholder { color: #8a9b97; }
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.login-submit { width: 100%; margin: 23px 0 13px; min-height: 44px; justify-content: space-between; }
.field-hint { font-size: 11px; line-height: 1.7; }
.form-error { color: var(--red); font-size: 12px; margin-top: 10px; }

.app-shell { min-height: 100dvh; }
.sidebar { width: 230px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); z-index: 30; }
.sidebar-brand { padding: 29px 23px 27px; display: flex; align-items: center; justify-content: space-between; }
.navigation { padding: 0 14px 24px; overflow: auto; flex: 1; }
.nav-label { padding: 13px 14px 8px; font-size: 10px; letter-spacing: 1.5px; color: #85928f; }
.navigation a { display: flex; align-items: center; min-height: 43px; padding: 10px 14px; gap: 11px; margin-bottom: 4px; font-size: 13px; color: #60716d; border-radius: 7px; position: relative; }
.navigation a:hover { background: var(--canvas); color: var(--ink); }
.navigation a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.navigation a[aria-current="page"]::after { content: ""; width: 4px; height: 4px; position: absolute; right: 15px; border-radius: 50%; background: var(--accent); }
.navigation svg { width: 18px; height: 18px; }
.sidebar-session { margin: 0 14px; padding: 20px 5px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); }
.session-icon { width: 32px; height: 32px; background: var(--canvas); border-radius: 8px; color: var(--muted); }
.sidebar-session strong { display: block; font-size: 12px; font-weight: 550; }
.sidebar-session #session-expiry { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.sidebar-session .icon-button { margin-left: auto; }
.workspace { margin-left: 230px; min-width: 0; }
.topbar { height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); background: white; padding: 0 34px; }
.topbar-location, .topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-location { font-size: 12px; }
.location-root { color: var(--muted); }
.location-divider { color: #b8c5c1; }
.topbar-divider { height: 19px; width: 1px; background: var(--line); }
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #97a7a2; border-radius: 50%; flex: 0 0 auto; }
.connection.online .status-dot { background: var(--accent); box-shadow: 0 0 0 3px #318b7c13; }
.connection.offline { color: var(--amber); }
.connection.offline .status-dot { background: var(--amber); }
.connection.error { color: var(--red); }
.connection.error .status-dot { background: var(--red); }
.connection.loading .status-dot { animation: pulse 1.3s ease-in-out infinite; }
main { max-width: 1510px; padding: 30px 34px 0; margin: auto; outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 27px; }
.page-heading .eyebrow { font-size: 10px; margin-bottom: 5px; letter-spacing: 1.3px; }
.page-description { margin-top: 6px; color: var(--muted); font-size: 13px; }
.page-date { color: var(--muted); font-size: 11px; padding-top: 2px; white-space: nowrap; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 30px 0 22px; color: #85938f; font-size: 10px; }

.notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #eadcc0; border-radius: 9px; background: var(--amber-soft); color: #765725; margin-bottom: 20px; font-size: 12px; }
.notice.error { color: var(--red); border-color: #efd6d0; background: var(--red-soft); }
.notice.info { color: var(--accent-dark); border-color: #cfe2db; background: var(--accent-soft); }
.notice p { flex: 1; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; min-width: 0; overflow: hidden; }
.panel-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid #edf1ef; }
.panel-header h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.panel-body { padding: 21px 22px; }
.panel-note { font-size: 11px; color: var(--muted); margin-top: 5px; }
.grid { display: grid; gap: 20px; }
.columns-two { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.columns-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 20px; min-width: 0; align-content: start; }
.focus-card { position: relative; display: flex; align-items: center; gap: 20px; padding: 24px 27px; background: #edf5f1; border: 1px solid #d7e7df; border-radius: 12px; margin-bottom: 22px; }
.focus-card::before { content: ""; position: absolute; top: 22px; bottom: 22px; width: 3px; left: 0; border-radius: 0 3px 3px 0; background: var(--accent); }
.focus-symbol { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--accent-dark); background: #ffffffa8; border: 1px solid #dae9e2; }
.focus-symbol svg { width: 24px; height: 24px; }
.focus-copy { min-width: 0; flex: 1; }
.focus-copy h2 { font-size: 17px; margin: 3px 0 6px; }
.focus-copy p { font-size: 12px; color: #637e73; overflow-wrap: anywhere; }
.focus-side { border-left: 1px solid #d2e3da; padding-left: 27px; font-size: 11px; color: var(--muted); min-width: 148px; }
.focus-side strong { display: block; color: var(--ink); font-size: 13px; font-weight: 550; margin-top: 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 23px; }
.metric { padding: 21px 22px 17px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-top .metric-icon { display: flex; align-items: center; justify-content: center; color: #81938c; }
.metric-value { font-family: var(--data-font); font-variant-numeric: tabular-nums; font-size: 29px; line-height: 1.4; letter-spacing: -1px; margin: 11px 0 8px; }
.metric-value small { font-family: var(--body-font); font-size: 11px; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.metric-foot { color: var(--muted); font-size: 10px; }
.metric-foot .status-dot { width: 5px; height: 5px; margin-right: 5px; background: var(--accent); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 550; padding: 3px 8px; border-radius: 5px; line-height: 1.6; color: #647872; background: #f0f3f2; white-space: nowrap; }
.status-pill.success { color: #317961; background: #edf5ee; }
.status-pill.pending { color: var(--amber); background: var(--amber-soft); }
.status-pill.danger { color: var(--red); background: var(--red-soft); }
.status-pill.active { color: var(--accent-dark); background: var(--accent-soft); }
.list-count { display: inline-block; color: #7d8d87; font: 10px var(--data-font); border: 1px solid var(--line); padding: 3px 6px; border-radius: 4px; margin-left: 4px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li + li { border-top: 1px solid #edf1ef; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 16px 22px; }
.mini-row-main { min-width: 0; flex: 1; }
.mini-row-title { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.mini-row-meta { font-size: 11px; color: var(--muted); display: flex; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.mini-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--canvas); color: #7b9389; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mini-icon svg { width: 16px; height: 16px; }
.budget-value { font: 26px/1.4 var(--data-font); letter-spacing: -.8px; margin: 9px 0 3px; }
.budget-caption { font-size: 11px; color: var(--muted); }
progress { width: 100%; height: 6px; border: 0; border-radius: 6px; appearance: none; display: block; margin: 21px 0 15px; background: #eaf0ed; }
progress::-webkit-progress-bar { background: #eaf0ed; border-radius: 6px; }
progress::-webkit-progress-value { background: #75b39d; border-radius: 6px; }
progress::-moz-progress-bar { background: #75b39d; border-radius: 6px; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: 10px; color: var(--muted); }
.budget-legend b { color: var(--ink); font-weight: 550; margin-left: 4px; }
.budget-rows { margin-top: 17px; border-top: 1px solid #edf1ef; padding-top: 12px; }
.key-value { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 12px; }
.key-value > :first-child { color: var(--muted); }
.key-value > :last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.attention { display: flex; gap: 11px; padding: 17px 20px; background: #fcfaf5; border: 1px solid #ece5d8; border-radius: 10px; }
.attention > svg { color: var(--amber); margin-top: 2px; }
.attention h3 { color: #7f622e; font-size: 12px; }
.attention p { margin-top: 4px; color: #8c7c60; font-size: 11px; }

.view-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; flex-wrap: wrap; }
.life-actions { margin-bottom: 18px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-button { padding: 5px 11px; min-height: 32px; border-radius: 6px; font-size: 11px; font-weight: 500; background: transparent; }
.filter-button[aria-pressed="true"] { color: var(--accent-dark); border-color: #c4dcd1; background: var(--accent-soft); }
.search-field { position: relative; width: 225px; max-width: 100%; }
.search-field > svg { position: absolute; left: 11px; top: 11px; color: #8a9994; width: 15px; height: 15px; }
.search-field input { min-height: 36px; padding: 8px 12px 8px 33px; font-size: 11px; border-color: var(--line); }
.split-view { display: grid; grid-template-columns: minmax(0, 1fr) 326px; gap: 23px; align-items: start; }
.timeline { padding: 0; margin: 0; list-style: none; }
.timeline-item { position: relative; padding-left: 26px; margin-bottom: 13px; }
.timeline-item::before { content: ""; position: absolute; top: 12px; bottom: -25px; width: 1px; background: #dce5df; left: 5px; }
.timeline-item:last-child::before { bottom: 25px; }
.timeline-dot { position: absolute; top: 23px; left: 1px; width: 9px; height: 9px; border: 2px solid var(--canvas); border-radius: 50%; background: #9eafa6; box-shadow: 0 0 0 1px #d6e1da; }
.timeline-item.selected .timeline-dot { background: var(--accent); box-shadow: 0 0 0 2px #d5e8dd; }
.timeline-card { width: 100%; padding: 17px 19px; text-align: left; border: 1px solid var(--line); background: white; border-radius: 10px; display: block; }
.timeline-card:hover { border-color: #b9d1c5; }
.timeline-card[aria-pressed="true"] { border-color: #83b5a1; box-shadow: 0 0 0 1px #83b5a11c; }
.record-overline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.record-kind { display: flex; align-items: center; gap: 6px; }
.record-kind svg { width: 13px; height: 13px; }
.record-title { display: block; font-size: 14px; line-height: 1.7; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.timeline-card .record-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.record-summary { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.record-bottom { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.record-ref { font-size: 9px; color: #82928b; font-family: var(--data-font); overflow-wrap: anywhere; }
.detail { position: sticky; top: 24px; }
.detail .panel-header { padding: 17px 20px; min-height: 57px; }
.detail .panel-body { padding: 20px; }
.detail-title { font-size: 14px; font-weight: 600; margin: 11px 0 15px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-section { margin-top: 21px; border-top: 1px solid #edf1ef; padding-top: 18px; }
.detail-section h3 { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .4px; margin-bottom: 9px; }
.detail-text { font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail .key-value { font-size: 10px; }
.detail .data { font-size: 9px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.detail-placeholder { padding: 50px 24px; text-align: center; color: #8b9b94; }
.detail-placeholder svg { width: 28px; height: 28px; margin-bottom: 13px; }
.detail-placeholder p { font-size: 11px; line-height: 1.8; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { color: var(--muted); font-size: 10px; font-weight: 500; padding: 12px 20px; background: #fafbfa; white-space: nowrap; }
td { padding: 15px 20px; border-top: 1px solid #edf1ef; vertical-align: top; }
td .record-title { font-size: 12px; }
.entity-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.entity-card { text-align: left; padding: 20px; min-width: 0; }
.entity-card:hover { border-color: #b2ccbf; }
.entity-card .record-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entity-card.selected { border-color: #83b5a1; }
.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li + li { margin-top: 9px; }
.source-list a { font-size: 11px; overflow-wrap: anywhere; }
.source-list span { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.config-layout { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 22px; align-items: start; }
.config-navigation { display: grid; gap: 5px; position: sticky; top: 24px; }
.config-navigation button { text-align: left; padding: 11px 13px; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: 12px; }
.config-navigation button[aria-pressed="true"] { background: white; border-color: var(--line); color: var(--ink); }
.config-form { padding: 5px 24px 24px; }
.config-field { padding: 20px 0; border-bottom: 1px solid #edf1ef; }
.config-field label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; font-weight: 550; }
.config-field input, .config-field select { max-width: 480px; font-size: 12px; }
.config-field textarea { font-size: 12px; }
.config-field .field-hint { margin: 6px 0; }
.config-field input[type="checkbox"] { width: 34px; height: 20px; min-height: 20px; appearance: none; border-radius: 12px; padding: 0; position: relative; background: #dce4df; border: 0; flex: 0 0 auto; cursor: pointer; }
.config-field input[type="checkbox"]::before { content: ""; display: block; width: 14px; height: 14px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; box-shadow: 0 1px 3px #243a3720; }
.config-field input[type="checkbox"]:checked { background: var(--accent); }
.config-field input[type="checkbox"]:checked::before { left: 17px; }
.config-actions { padding-top: 23px; display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.config-meta { padding: 16px 24px; border-top: 1px solid var(--line); background: #fafbf9; color: var(--muted); font-size: 10px; }
.empty-state { text-align: center; padding: 53px 24px; }
.empty-symbol { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--canvas); color: #80998c; margin-bottom: 14px; }
.empty-state h2 { font-size: 14px; margin-bottom: 7px; }
.empty-state p { font-size: 12px; color: var(--muted); max-width: 340px; margin: 0 auto; line-height: 1.8; }
.empty-state .button { margin-top: 20px; }
.error-state .empty-symbol { background: var(--red-soft); color: var(--red); }
.skeleton { display: block; border-radius: 5px; background: #e9efeb; animation: pulse 1.5s ease-in-out infinite; }
.skeleton.line { height: 12px; margin: 12px 0; max-width: 70%; }
.skeleton.short { width: 37%; }
.skeleton.number { height: 29px; width: 46%; margin: 18px 0; }
.skeleton-row { padding: 18px 22px; border-top: 1px solid var(--line); }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

dialog { border: 1px solid var(--line); border-radius: 14px; width: 480px; max-width: calc(100vw - 32px); padding: 0; color: var(--ink); box-shadow: 0 18px 70px #243a3728; max-height: calc(100dvh - 44px); }
dialog::backdrop { background: #1d343544; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
#dialog-content { padding: 21px 23px 24px; }
#dialog-content p { font-size: 12px; color: var(--muted); margin-bottom: 17px; line-height: 1.8; }
#dialog-content label { display: block; font-size: 12px; margin: 15px 0 7px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 115px); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 9px; background: var(--ink); color: white; font-size: 12px; box-shadow: 0 5px 25px #243a371f; z-index: 80; }
.mobile-only { display: none; }
.nav-scrim { position: fixed; inset: 0; background: #243a374f; border: 0; width: 100%; height: 100%; z-index: 25; }

@media (min-width: 1700px) { main { padding-top: 38px; } }
@media (max-width: 1180px) {
  .sidebar { width: 206px; }
  .workspace { margin-left: 206px; }
  .sidebar-brand { padding-inline: 18px; }
  .brand { font-size: 18px; }
  .topbar { padding-inline: 24px; }
  main { padding-inline: 24px; }
  .split-view { grid-template-columns: minmax(0, 1fr) 290px; gap: 17px; }
  .focus-side { display: none; }
  .columns-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .entity-cards { grid-template-columns: 1fr; }
  .config-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 920px) {
  .split-view { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .columns-two { grid-template-columns: 1fr; }
  .metrics { gap: 12px; }
  .metric { padding: 17px 16px; }
  .metric-value { font-size: 25px; }
  .page-date { display: none; }
  .config-layout { grid-template-columns: 1fr; }
  .config-navigation { position: static; display: flex; flex-wrap: wrap; gap: 3px; }
  .config-navigation button { padding: 8px 11px; }
  .auth-story { padding-inline: 12%; }
  .auth-entry { padding-inline: 30px; }
  .auth-intro h1 { font-size: 30px; }
}
@media (max-width: 700px) {
  .mobile-only { display: inline-flex; }
  .sidebar { width: 270px; transform: translateX(-100%); visibility: hidden; }
  .sidebar.open { transform: none; visibility: visible; }
  .sidebar-brand { padding: 27px 20px; }
  .brand { font-size: 20px; }
  .workspace { margin-left: 0; }
  .topbar { height: 61px; padding: 0 15px; gap: 8px; }
  .topbar-location { gap: 9px; }
  .topbar-actions { gap: 8px; }
  .location-root, .location-divider, .topbar-divider { display: none; }
  .icon-button { width: 40px; height: 40px; min-height: 40px; }
  #location-title { font-size: 12px; }
  .connection { font-size: 10px; gap: 6px; }
  main { padding: 24px 18px 0; }
  .page-heading { margin-bottom: 20px; }
  h1 { font-size: 25px; }
  .page-description { font-size: 11px; margin-top: 7px; }
  .focus-card { padding: 19px 18px; align-items: flex-start; gap: 13px; margin-bottom: 16px; }
  .focus-symbol { width: 38px; height: 38px; margin-top: 5px; }
  .focus-symbol svg { width: 20px; height: 20px; }
  .focus-copy h2 { font-size: 15px; }
  .focus-copy p { font-size: 11px; }
  .metrics { gap: 9px; margin-bottom: 17px; }
  .metric { padding: 14px 12px; border-radius: 9px; }
  .metric-icon { display: none !important; }
  .metric-top { font-size: 10px; }
  .metric-value { font-size: 23px; margin-top: 10px; letter-spacing: -.8px; }
  .metric-value small { display: block; margin-left: 0; font-size: 9px; }
  .metric-foot { font-size: 9px; }
  .metric-foot .status-dot { display: none; }
  .grid, .stack { gap: 16px; }
  .panel-header { min-height: 57px; padding: 15px 17px; }
  .panel-body { padding: 18px 17px; }
  .mini-row { padding: 15px 17px; gap: 10px; }
  .mini-row-title { font-size: 13px; }
  .mini-row .status-pill { font-size: 9px; }
  .notice { align-items: flex-start; font-size: 11px; padding: 12px 13px; }
  .view-tools { gap: 13px; margin-bottom: 17px; }
  .filters { gap: 6px; }
  .filter-button { min-height: 36px; }
  .search-field { width: 100%; }
  .search-field input { min-height: 40px; font-size: 12px; }
  .search-field > svg { top: 12px; }
  .timeline-item { padding-left: 20px; margin-bottom: 12px; }
  .timeline-card { padding: 16px 15px; }
  .record-title { font-size: 13px; }
  .record-overline { gap: 8px; font-size: 9px; }
  .detail { scroll-margin-top: 18px; }
  .detail .panel-header { padding: 15px 17px; }
  .detail .panel-body { padding: 18px 17px; }
  .columns-equal { grid-template-columns: 1fr; }
  .config-form { padding-inline: 17px; }
  .config-field { padding-block: 17px; }
  .config-meta { padding-inline: 17px; }
  .config-actions .button { min-height: 42px; }
  .config-actions { align-items: flex-start; }
  .workspace-footer { padding-top: 23px; font-size: 9px; }
  .toast { left: 50%; bottom: 18px; white-space: normal; width: max-content; }
  .auth-shell { display: flex; flex-direction: column; }
  .auth-story { min-height: auto; padding: 30px 28px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-intro { padding: 29px 0 4px; }
  .auth-intro .eyebrow, .auth-intro p, .auth-footnote { display: none; }
  .auth-intro h1 { font-size: 26px; line-height: 1.5; margin: 0; }
  .auth-intro h1 br { display: none; }
  .auth-entry { padding: 34px 28px 45px; }
  .login-card { max-width: 420px; }
  .login-card h2 { font-size: 22px; }
  .login-card label { margin-top: 25px; }
  input, textarea, select { font-size: 16px; }
  .config-field input, .config-field select, .config-field textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
