:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: #071015;
  color: #eef5f4;
  --surface: #0c181d;
  --surface-raised: #112229;
  --surface-soft: #142a30;
  --border: #294047;
  --muted: #9badb0;
  --accent: #55d2c9;
  --accent-strong: #2eaaa3;
  --warning: #e0b45b;
  --danger: #ff8f9a;
  --radius: 18px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #071015; }
body { min-width: 320px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; }
a { color: inherit; }
:focus-visible { outline: 3px solid #8ce9e3; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -64px; padding: 10px 16px; border-radius: 10px; background: #eef5f4; color: #071015; font-weight: 700; }
.skip-link:focus { top: 16px; }
.startup { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3d7e7c; border-radius: 13px; background: #153338; color: var(--accent); font-weight: 800; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { letter-spacing: .08em; }
.brand-lockup small { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: #80aaa8; font: 700 .75rem/1.2 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin-bottom: 6px; font-size: 1.1rem; letter-spacing: -.015em; }
.lede { max-width: 710px; color: #b7c6c8; font-size: 1.05rem; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px); align-items: center; gap: clamp(48px, 8vw, 132px); padding: clamp(28px, 6vw, 88px); background: radial-gradient(circle at 12% 18%, rgba(49, 142, 137, .18), transparent 34%), #071015; }
.login-intro { max-width: 760px; }
.login-intro .brand-lockup { margin-bottom: clamp(64px, 10vh, 128px); }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); color: var(--muted); list-style: none; font-size: .9rem; }
.trust-list li::before { content: "•"; margin-right: 8px; color: var(--accent); }
.login-card { border: 1px solid var(--border); border-radius: 24px; background: rgba(12, 24, 29, .94); box-shadow: 0 28px 80px rgba(0, 0, 0, .35); padding: clamp(26px, 4vw, 44px); }
.form-heading { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.form-heading h2 { font-size: 1.75rem; }
.form-heading p:last-child, .help-text { color: var(--muted); }
label { display: grid; gap: 8px; margin-bottom: 18px; color: #c9d5d5; font-weight: 650; }
input { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid #3a5058; border-radius: 12px; background: #081419; color: #fff; }
input:hover { border-color: #577078; }
input:focus { border-color: var(--accent); }
.form-error { margin: 6px 0 18px; padding: 12px 14px; border-left: 3px solid var(--danger); background: rgba(255, 91, 108, .1); color: #ffc2c8; }
.primary-button { width: 100%; border: 0; border-radius: 12px; background: var(--accent-strong); color: white; font-weight: 750; cursor: pointer; }
.primary-button:hover { background: #37bdb5; }
.primary-button:disabled { cursor: wait; opacity: .62; }
.help-text { margin: 18px 0 0; font-size: .86rem; text-align: center; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--border); background: #091318; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sidebar nav { display: grid; gap: 6px; margin-top: 54px; }
.mobile-navigation-toggle { display: none; min-height: 44px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; background: #102127; color: #eef5f4; font-weight: 700; cursor: pointer; }
.mobile-navigation-toggle[aria-expanded="true"] { border-color: var(--accent); background: #173138; }
.nav-heading { padding: 28px 12px 6px; color: #73898c; font: 700 .67rem/1.3 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.nav-link { min-height: 44px; display: flex; align-items: center; padding: 0 13px; border-radius: 11px; color: #aebfc0; text-decoration: none; font-weight: 650; }
.nav-link.active { background: #173138; color: #f6fbfa; box-shadow: inset 3px 0 var(--accent); }
.nav-link.disabled { opacity: .5; }
.sidebar-status { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px 10px 0; border-top: 1px solid var(--border); }
.sidebar-status > span { width: 9px; height: 9px; border-radius: 50%; background: #63d8a6; box-shadow: 0 0 0 4px rgba(99, 216, 166, .1); }
.sidebar-status strong, .sidebar-status small { display: block; }
.sidebar-status small { color: var(--muted); }
.workspace { min-width: 0; }
.topbar { position: sticky; z-index: 5; top: 0; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 10px clamp(22px, 4vw, 56px); border-bottom: 1px solid var(--border); background: rgba(7, 16, 21, .9); backdrop-filter: blur(18px); }
.topbar small, .topbar strong { display: block; }
.topbar small { color: var(--muted); }
.account { display: flex; align-items: center; gap: 10px; }
.account-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #1b4145; color: var(--accent); font-weight: 800; }
.quiet-button { margin-left: 8px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: #c8d4d4; cursor: pointer; }
.home { width: min(1160px, calc(100% - 44px)); margin: 0 auto; padding: clamp(42px, 7vw, 92px) 0; }
.hero { padding-bottom: clamp(42px, 7vw, 80px); }
.hero h1 { max-width: 780px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status-grid article { display: flex; gap: 14px; min-height: 154px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.status-grid p, .next-panel p { margin-bottom: 0; color: var(--muted); }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.status-dot.ready { background: #63d8a6; }
.status-dot.pending { background: var(--warning); }
.next-panel { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 18px; padding: 28px; border: 1px solid #31555b; border-radius: var(--radius); background: linear-gradient(120deg, #0c1a1e, #10252a); }
.phase-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #80692e; border-radius: 999px; background: rgba(224, 180, 91, .1); color: #efd18c; font-size: .8rem; font-weight: 700; }
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; align-content: start; gap: 42px; }
  .login-intro .brand-lockup { margin-bottom: 56px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar nav, .sidebar-status { display: none; }
  .mobile-navigation-toggle { display: inline-flex; }
  .sidebar.menu-open nav { display: grid; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
  .sidebar.menu-open .sidebar-status { display: flex; margin-top: 12px; padding: 12px 10px 0; }
  .status-grid { grid-template-columns: 1fr; }
  .status-grid article { min-height: 0; }
}
@media (max-width: 620px) {
  .login-page { padding: 24px 18px 40px; }
  .trust-list { display: grid; }
  .login-card { padding: 24px 18px; }
  .topbar { align-items: flex-start; padding: 12px 18px; }
  .account > span:not(.account-avatar) { display: none; }
  .quiet-button { margin-left: 0; }
  .home { width: min(100% - 32px, 1160px); padding-top: 44px; }
  .next-panel { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --border: #5b747b; --muted: #c2cecf; }
  .nav-link.active, .login-card, .status-grid article { border: 1px solid #779097; }
}

/* Shared Desktop-derived application shell. Desktop-only bridge and local-data
   controls are deliberately absent; only accepted Web capabilities are listed. */
.desktop-derived-shell { --content-max: 1220px; }
.shell-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.shell-brand strong, .shell-brand small { display: block; }
.shell-brand strong { letter-spacing: .09em; }
.shell-brand small { color: var(--muted); font-size: .78rem; }
.nav-group { padding: 24px 13px 6px; color: #73898c; font: 700 .67rem/1.3 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .11em; text-transform: uppercase; }
.nav-link { gap: 12px; }
.nav-link svg { color: #7f999b; }
.nav-link.active svg { color: var(--accent); }
.desktop-derived-shell .topbar { display: grid; grid-template-columns: auto minmax(280px, 640px) auto; }
.area-label { min-width: 96px; }
.topbar-search { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border); border-radius: 13px; background: #0a151a; color: #71878a; font-size: .86rem; }
.topbar-search svg { flex: 0 0 auto; }
.intelligence-home { width: min(var(--content-max), calc(100% - 48px)); padding: 38px 0 72px; }
.brief-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 42px; padding: 20px 8px 34px; }
.brief-hero h1 { max-width: 820px; font-size: clamp(2.4rem, 4.5vw, 4.5rem); }
.freshness { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.freshness > span { width: 9px; height: 9px; border-radius: 50%; background: #63d8a6; box-shadow: 0 0 0 4px rgba(99,216,166,.1); }
.freshness small, .freshness strong { display: block; }
.freshness small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.freshness strong { font-size: .78rem; }
.brief-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.brief-metrics article { min-width: 0; padding: 18px 20px 16px; border-right: 1px solid var(--border); }
.brief-metrics article:last-child { border-right: 0; }
.brief-metrics strong, .brief-metrics span { display: block; }
.brief-metrics strong { font: 760 1.65rem/1.1 ui-monospace, "SFMono-Regular", monospace; letter-spacing: -.04em; }
.brief-metrics span { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.brief-metrics i { display: block; height: 3px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: #1d3036; }
.brief-metrics b { display: block; width: var(--signal); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.home-section { margin-top: 18px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.priority-section { border-color: #416a6d; box-shadow: inset 3px 0 var(--accent); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 1.35rem; }
.section-heading p:not(.eyebrow) { max-width: 760px; margin: 5px 0 0; color: var(--muted); }
.section-heading > span { color: var(--muted); font-size: .78rem; }
.signal-list, .compact-list { display: grid; }
.signal-list article, .compact-list article { min-width: 0; display: grid; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.signal-list article { grid-template-columns: 8px minmax(0, 1fr) auto; }
.compact-list article { grid-template-columns: auto minmax(0, 1fr) auto; }
.signal-list strong, .compact-list strong { display: block; }
.signal-list p, .compact-list p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.signal-list time, .compact-list time { color: var(--muted); font-size: .72rem; text-align: right; }
.severity { width: 7px; height: 34px; border-radius: 99px; background: var(--warning); }
.severity.high { background: var(--danger); }
.home-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.entity-glyph { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #315a60; border-radius: 11px; background: #10272d; color: var(--accent); font: 750 .66rem/1 ui-monospace, monospace; }
.entity-glyph.review { color: #7fb3ff; }
.state-chip { padding: 5px 8px; border: 1px solid #356359; border-radius: 999px; color: #83dfb6; font-size: .68rem; text-transform: capitalize; }
.empty-guidance { min-height: 118px; display: grid; place-content: center; padding: 24px; border: 1px dashed #31474e; border-radius: 13px; text-align: center; }
.empty-guidance p { max-width: 500px; margin: 5px auto 0; color: var(--muted); }
.reporting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reporting-grid article { min-width: 0; min-height: 156px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #0a151a; }
.reporting-grid .source-line { margin: 0 0 10px; color: var(--accent); font: 700 .68rem/1.3 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.reporting-grid h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.reporting-grid footer { display: flex; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .72rem; }
.reporting-grid footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reporting-grid time { flex: 0 0 auto; }
.data-boundary-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding: 15px 18px; border: 1px solid #28444a; border-radius: 13px; color: var(--muted); font-size: .8rem; }
.data-boundary-note svg { flex: 0 0 auto; color: var(--accent); }
.home-loading { padding: 54px 8px; }
.skeleton, .metric-skeletons i { display: block; border-radius: 9px; background: linear-gradient(90deg, #102127, #1a3036, #102127); background-size: 240% 100%; animation: loading 1.6s ease infinite; }
.skeleton.wide { width: min(760px, 80%); height: 64px; }
.skeleton.medium { width: min(620px, 64%); height: 22px; margin-top: 18px; }
.metric-skeletons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px; }
.metric-skeletons i { height: 108px; }
.error-state { max-width: 760px; padding: 64px 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.inline-action { min-height: 44px; display: inline-flex; align-items: center; margin: 18px 0 0; text-decoration: none; }
.muted { color: var(--muted); }
.mono { overflow-wrap: anywhere; font-family: ui-monospace, "SFMono-Regular", monospace; font-size: .76rem; }
.library-directory, .record-reader { width: min(var(--content-max), calc(100% - 48px)); padding: 38px 0 72px; }
.directory-hero { padding: 20px 8px 30px; }
.directory-hero h1, .record-hero h1, .record-reader .error-state h1 { font-size: clamp(2.35rem, 4.5vw, 4.25rem); }
.library-search { position: sticky; z-index: 4; top: 86px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: rgba(12, 24, 29, .96); box-shadow: 0 14px 36px rgba(0, 0, 0, .22); backdrop-filter: blur(18px); }
.library-search label { margin: 0; }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 15px; top: 15px; color: var(--muted); }
.search-field input { padding-left: 48px; }
.kind-field { gap: 5px; }
.kind-field > span { color: var(--muted); font-size: .72rem; }
.kind-field select { width: 100%; min-height: 50px; padding: 0 38px 0 13px; border: 1px solid #3a5058; border-radius: 12px; background: #081419; color: #eef5f4; color-scheme: dark; }
.primary-action { min-height: 50px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--accent-strong); color: white; font-weight: 750; cursor: pointer; }
.primary-action:hover { background: #37bdb5; }
.directory-panel { margin-top: 18px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.library-results { display: grid; }
.library-result { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 4px; border-top: 1px solid var(--border); }
.library-result button { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.library-result button strong, .library-result button small { display: block; }
.library-result button p { max-width: 780px; margin: 3px 0 6px; overflow: hidden; color: var(--muted); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.library-result button small { color: #789092; text-transform: capitalize; }
.record-glyph { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #315a60; border-radius: 11px; background: #10272d; color: var(--accent); font: 750 .62rem/1 ui-monospace, monospace; }
.record-glyph.large { width: 58px; height: 58px; border-radius: 15px; font-size: .72rem; }
.record-arrow { color: var(--muted); }
.breadcrumbs { display: flex; gap: 8px; padding: 8px 2px 18px; color: var(--muted); font-size: .8rem; }
.breadcrumbs a { color: var(--accent); }
.record-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 28px; border: 1px solid #38575e; border-radius: 20px; background: linear-gradient(125deg, #102329, #0c181d 62%); }
.record-identity { min-width: 0; display: flex; align-items: flex-start; gap: 18px; }
.record-identity h1 { max-width: 830px; margin-bottom: 10px; overflow-wrap: anywhere; }
.record-badges { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.record-badges span { padding: 6px 9px; border: 1px solid #356359; border-radius: 999px; color: #83dfb6; font-size: .68rem; text-transform: capitalize; }
.record-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.record-facts article { min-width: 0; padding: 17px; border-right: 1px solid var(--border); }
.record-facts article:last-child { border-right: 0; }
.record-facts span, .record-facts strong { display: block; }
.record-facts span { margin-bottom: 5px; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.record-facts strong { overflow-wrap: anywhere; font-size: .82rem; }
.reader-columns { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.fact-list { display: grid; gap: 10px; }
.fact-list article { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #091419; }
.fact-list p { margin: 5px 0; color: #c7d3d3; }
.fact-list small { color: var(--muted); overflow-wrap: anywhere; }
.source-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--accent); text-decoration: none; font-weight: 700; }
.document-copy { max-width: 820px; margin: 28px auto 10px; color: #dce7e6; font: 400 1.05rem/1.72 ui-serif, Georgia, serif; }
.document-copy p { margin-bottom: 1.35em; }
.module-page { width: min(var(--content-max), calc(100% - 48px)); padding: 38px 0 72px; }
.module-hero { padding: 20px 8px 30px; }
.module-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.6rem); }
.module-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.module-metrics article { padding: 20px; border-right: 1px solid var(--border); }
.module-metrics article:last-child { border-right: 0; }
.module-metrics strong, .module-metrics span { display: block; }
.module-metrics strong { font-size: 1.65rem; }
.module-metrics span { color: var(--muted); font-size: .76rem; }
.module-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.monitor-list, .alert-list { display: grid; }
.monitor-list article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 14px 0; border-top: 1px solid var(--border); }
.monitor-list strong, .monitor-list small { display: block; }
.monitor-list p { margin: 3px 0; color: var(--muted); }
.monitor-list small { color: #789092; }
.alert-list button { min-width: 0; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 15px 0; border: 0; border-top: 1px solid var(--border); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.alert-list strong, .alert-list small { display: block; }
.alert-list small, .alert-list time { color: var(--muted); font-size: .72rem; }
.alert-list time { text-align: right; }
blockquote { margin: 12px 0 0; padding: 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: #091419; color: #dce7e6; font: 400 1.05rem/1.65 ui-serif, Georgia, serif; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.workspace-grid > article { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.workspace-title { display: flex; align-items: flex-start; gap: 14px; }
.workspace-title h2 { font-size: 1.25rem; }
.workspace-title p { color: var(--muted); }
.workspace-counts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-block: 1px solid var(--border); }
.workspace-counts span { padding: 14px 8px; border-right: 1px solid var(--border); color: var(--muted); font-size: .72rem; }
.workspace-counts span:last-child { border-right: 0; }
.workspace-counts strong { display: block; color: #eef5f4; font-size: 1.1rem; }
.workspace-grid footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.compact-filter { display: grid; grid-template-columns: auto minmax(150px, 210px); align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: .75rem; }
.compact-filter select, .control-row select { min-height: 44px; padding: 0 35px 0 12px; border: 1px solid #3a5058; border-radius: 11px; background: #081419; color: #eef5f4; color-scheme: dark; }
.case-list { display: grid; }
.case-list > button { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 16px 0; border: 0; border-top: 1px solid var(--border); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.case-list strong, .case-list small { display: block; }
.case-list p { margin: 3px 0 6px; color: var(--muted); }
.case-list small { color: #789092; }
.state-chip.blocked { border-color: #5a4b2a; color: #d9ba72; }
.control-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.control-row label { margin: 0; }
.comment-list { display: grid; gap: 10px; margin-bottom: 22px; }
.comment-list article { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #091419; }
.comment-list p { margin: 5px 0; }
.comment-list time { color: var(--muted); font-size: .72rem; }
textarea { width: 100%; min-height: 112px; resize: vertical; padding: 13px 15px; border: 1px solid #3a5058; border-radius: 12px; background: #081419; color: #fff; }
textarea:focus { border-color: var(--accent); }
.settings-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.settings-list { margin: 0; }
.settings-list > div { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--border); }
.settings-list dt { color: var(--muted); }
.settings-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.capability-list { display: grid; }
.capability-list article { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--border); }
.capability-list article > span:first-child { color: var(--accent); }
.capability-list p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.security-boundary { border-color: #416a6d; }
.security-boundary p { max-width: 820px; margin-bottom: 0; color: var(--muted); }
.download-list { display: grid; gap: 16px; }
.download-list > article { padding: 24px; border: 1px solid #38575e; border-radius: 20px; background: linear-gradient(125deg, #102329, #0c181d 62%); }
.download-title { display: flex; align-items: flex-start; gap: 16px; }
.download-title h2 { font-size: 1.4rem; }
.download-title p:last-child { color: var(--muted); }
.download-list dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; }
.download-list dl > div { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.download-list dl > div:nth-child(2n) { border-right: 0; }
.download-list dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.download-list dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 650; }
.download-list .primary-action { display: inline-flex; align-items: center; gap: 8px; }
@keyframes loading { to { background-position: -140% 0; } }

@media (max-width: 1050px) {
  .desktop-derived-shell .topbar { grid-template-columns: auto 1fr auto; }
  .topbar-search { display: none; }
  .home-columns { grid-template-columns: 1fr; }
  .reader-columns { grid-template-columns: 1fr; }
  .record-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-facts article:nth-child(2) { border-right: 0; }
  .record-facts article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .module-columns, .workspace-grid, .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .desktop-derived-shell .sidebar { position: sticky; z-index: 7; top: 0; }
  .desktop-derived-shell .sidebar .shell-brand { padding: 0; }
  .brief-hero { flex-direction: column; gap: 18px; }
  .freshness { margin-top: 0; }
  .brief-metrics { grid-template-columns: repeat(2, 1fr); }
  .brief-metrics article:nth-child(2) { border-right: 0; }
  .brief-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 620px) {
  .desktop-derived-shell .topbar { grid-template-columns: 1fr auto; }
  .area-label { display: none; }
  .intelligence-home { width: min(100% - 28px, var(--content-max)); padding-top: 22px; }
  .brief-hero { padding-inline: 2px; }
  .brief-hero h1 { font-size: clamp(2.25rem, 13vw, 3.5rem); }
  .freshness { width: 100%; }
  .brief-metrics { grid-template-columns: 1fr 1fr; }
  .brief-metrics article { padding: 16px; }
  .home-section { padding: 18px; }
  .signal-list article { grid-template-columns: 7px minmax(0, 1fr); }
  .signal-list time { grid-column: 2; text-align: left; }
  .compact-list article { align-items: start; }
  .compact-list time, .state-chip { grid-column: 2; justify-self: start; }
  .reporting-grid { grid-template-columns: 1fr; }
  .reporting-grid footer { align-items: flex-start; flex-direction: column; }
  .library-directory, .record-reader { width: min(100% - 28px, var(--content-max)); padding-top: 22px; }
  .library-search { position: static; grid-template-columns: 1fr; }
  .directory-panel { padding: 18px; }
  .library-result { align-items: start; }
  .library-result button p { white-space: normal; }
  .record-hero { flex-direction: column; padding: 20px; }
  .record-identity { flex-direction: column; }
  .record-badges { justify-content: flex-start; }
  .record-facts { grid-template-columns: 1fr; }
  .record-facts article, .record-facts article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .record-facts article:last-child { border-bottom: 0; }
  .document-copy { font-size: 1rem; }
  .module-page { width: min(100% - 28px, var(--content-max)); padding-top: 22px; }
  .module-metrics { grid-template-columns: repeat(2, 1fr); }
  .module-metrics article:nth-child(2) { border-right: 0; }
  .module-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .alert-list button { grid-template-columns: 7px minmax(0, 1fr) auto; }
  .alert-list time { grid-column: 2; text-align: left; }
  .workspace-counts { grid-template-columns: 1fr; }
  .workspace-counts span { border-right: 0; border-bottom: 1px solid var(--border); }
  .workspace-counts span:last-child { border-bottom: 0; }
  .case-list > button { align-items: start; grid-template-columns: auto minmax(0, 1fr) auto; }
  .case-list .state-chip { grid-column: 2; justify-self: start; }
  .control-row { grid-template-columns: 1fr; }
  .compact-filter { grid-template-columns: 1fr; }
  .settings-list > div { grid-template-columns: 1fr; gap: 2px; }
  .capability-list article { align-items: start; grid-template-columns: auto minmax(0, 1fr); }
  .capability-list .state-chip { grid-column: 2; justify-self: start; }
  .download-title { flex-direction: column; }
  .download-list dl { grid-template-columns: 1fr; }
  .download-list dl > div, .download-list dl > div:nth-child(2n) { border-right: 0; }
  .download-list dl > div:last-child { border-bottom: 0; }
}
