:root {
  color-scheme: dark;
  --ink: #eef5ff;
  --muted: #9eafc3;
  --canvas: #07111f;
  --panel: #0e1d2f;
  --panel-raised: #142740;
  --panel-soft: #0a1727;
  --line: #263c56;
  --accent: #58d0ff;
  --accent-strong: #1cb4ee;
  --accent-soft: rgb(88 208 255 / 12%);
  --accent-ink: #03131c;
  --success: #58d79b;
  --warning: #f5bf5d;
  --danger: #f27685;
  --violet: #9c8cff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 64px rgb(0 0 0 / 25%);
  --shadow-soft: 0 10px 32px rgb(0 0 0 / 12%);
}

.operator-body {
  color-scheme: light;
  --ink: #172235;
  --muted: #64748b;
  --canvas: #f3f6fa;
  --panel: #ffffff;
  --panel-raised: #f8fafc;
  --panel-soft: #eef3f8;
  --line: #dce4ed;
  --accent: #078cc4;
  --accent-strong: #006ea1;
  --accent-soft: #e8f6fc;
  --accent-ink: #ffffff;
  --success: #168a5a;
  --warning: #b56b09;
  --danger: #bf3f50;
  --violet: #7057cc;
  --shadow: 0 18px 48px rgb(29 52 78 / 10%);
  --shadow-soft: 0 8px 24px rgb(29 52 78 / 7%);
}

* { box-sizing: border-box; }
html { min-width: 320px; font-size: 16px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
.public-body { background: radial-gradient(circle at 14% -8%, rgb(35 175 232 / 17%), transparent 32rem), radial-gradient(circle at 92% 15%, rgb(94 74 230 / 10%), transparent 28rem), var(--canvas); }
button, input, select, textarea { font: inherit; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
svg { display: block; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 200; top: .75rem; left: .75rem; padding: .7rem 1rem; transform: translateY(-160%); color: #04131c; background: #8ee1ff; border-radius: 9px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgb(88 208 255 / 45%); outline-offset: 3px; }

.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.public-body .site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgb(255 255 255 / 8%); background: rgb(7 17 31 / 84%); backdrop-filter: blur(18px); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header-inner { min-height: 76px; }
.wordmark, .sidebar-brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.wordmark-icon, .brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #04141e; background: linear-gradient(145deg, #b6edff, #2fc1f4); border-radius: 12px; box-shadow: 0 10px 30px rgb(39 185 237 / 18%); font-weight: 900; }
.wordmark strong, .wordmark small, .sidebar-brand strong, .sidebar-brand small { display: block; line-height: 1.1; }
.wordmark small, .sidebar-brand small { margin-top: .22rem; color: var(--muted); font-size: .75rem; }
.primary-nav { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
.primary-nav a:hover { color: var(--ink); }
.primary-nav .nav-cta { padding: .62rem .9rem; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 4%); }
.public-mobile-cta { display: none; min-height: 42px; align-items: center; padding: .55rem .75rem; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; font-size: .78rem; font-weight: 750; text-decoration: none; }

.hero { padding: 7rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 4.5rem; align-items: center; }
.eyebrow { margin: 0 0 .75rem; color: var(--accent); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.1; letter-spacing: -.025em; }
h1 { max-width: 17ch; font-size: clamp(2.75rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }
.lead { max-width: 68ch; margin: 1.3rem 0 0; color: color-mix(in srgb, var(--ink) 72%, var(--muted)); font-size: 1.08rem; }
.muted { color: var(--muted); }
.microcopy { color: var(--muted); font-size: .78rem; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--danger); }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .5rem; padding: .68rem 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel-raised); font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.button-primary { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.button-primary:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 82%, white); }
.button-danger { color: white; border-color: var(--danger); background: var(--danger); }
.button-quiet { border-color: transparent; background: transparent; }
.button-small, .button-compact { min-height: 36px; padding: .45rem .7rem; font-size: .82rem; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--panel); cursor: pointer; }

.panel, .metric-card, .auth-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.public-body .panel, .public-body .metric-card, .public-body .auth-card { background: linear-gradient(155deg, rgb(18 36 58 / 94%), rgb(10 24 40 / 94%)); box-shadow: var(--shadow); }
.panel { padding: clamp(1.15rem, 2.5vw, 1.7rem); }
.panel-flush { padding: 0; }
.signal-panel { position: relative; overflow: hidden; }
.signal-panel::after { position: absolute; right: -5rem; bottom: -6rem; width: 14rem; height: 14rem; border: 1px solid rgb(88 208 255 / 24%); border-radius: 50%; box-shadow: 0 0 0 2rem rgb(88 208 255 / 4%), 0 0 0 4rem rgb(88 208 255 / 3%); content: ""; }
.status-list { position: relative; z-index: 1; display: grid; gap: .95rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.status-list li { display: grid; grid-template-columns: 12px 1fr; gap: .75rem; align-items: start; }
.status-dot { width: 9px; height: 9px; margin-top: .43rem; background: var(--success); border-radius: 50%; box-shadow: 0 0 14px var(--success); }
.feature-section { padding: 2rem 0 6rem; }
.compact-section { padding-bottom: 4rem; }
.section-heading { max-width: 760px; margin-bottom: 1.75rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-card { min-height: 180px; padding: 1.4rem; box-shadow: none; }
.metric-card p { margin: .75rem 0 0; color: var(--muted); }
.metric-number { display: block; margin-bottom: .9rem; color: var(--accent); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }

.page-section { display: block; min-height: 50vh; }
.page-header { padding: 3.25rem 0 1.75rem; }
.page-header h1 { max-width: none; font-size: clamp(2.25rem, 4.5vw, 3.65rem); }
.page-header-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1.35rem; padding-bottom: 4rem; }
.stack-form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-span { grid-column: 1 / -1; }
.field { display: grid; gap: .38rem; }
label { color: color-mix(in srgb, var(--ink) 84%, var(--muted)); font-size: .85rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 44px; padding: .66rem .78rem; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: var(--panel-raised); }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="file"] { padding: .5rem; }
.field-hint { margin: 0; color: var(--muted); font-size: .78rem; }
.field-error, .validation-summary { color: var(--danger); font-size: .84rem; }
.validation-summary:empty { display: none; }
.validation-summary ul { margin: 0; padding-left: 1.2rem; }
.checkbox-field { display: flex; align-items: center; gap: .55rem; }
.checkbox-field input { width: 18px; min-height: 18px; }

.auth-shell { display: grid; min-height: calc(100vh - 160px); place-items: center; padding: 3rem 1rem; }
.auth-card { width: min(460px, 100%); padding: clamp(1.5rem, 5vw, 2.5rem); }
.auth-card .brand-mark { margin-bottom: 1.35rem; }
.auth-card h1 { font-size: 2.2rem; }
.alert { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.alert-success { color: color-mix(in srgb, var(--success) 78%, var(--ink)); border-color: color-mix(in srgb, var(--success) 35%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--panel)); }
.alert-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--panel)); }

.toolbar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
.toolbar .field { min-width: 145px; flex: 1 1 145px; }
.toolbar .search-field { flex-basis: 270px; }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .78rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
td { color: color-mix(in srgb, var(--ink) 90%, var(--muted)); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent) 3%, transparent); }
.data-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.data-link:hover { color: var(--accent); }

.badge, .label-chip, .status-chip { display: inline-flex; min-height: 24px; align-items: center; gap: .3rem; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: color-mix(in srgb, var(--ink) 76%, var(--muted)); background: var(--panel-raised); font-size: .7rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.badge-critical, .severity-critical { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); }
.badge-high, .severity-high { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 35%, var(--line)); background: color-mix(in srgb, var(--warning) 8%, var(--panel)); }
.badge-new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.badge-resolved, .badge-closed, .status-healthy { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--panel)); }
.badge-waitingonuser { color: var(--warning); }
.label-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); border-radius: 11px; }
.definition-grid > div { padding: .9rem; background: var(--panel); }
.definition-grid dt { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.definition-grid dd { margin: .3rem 0 0; overflow-wrap: anywhere; }
.timeline { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.timeline li { padding: .9rem; border-left: 2px solid var(--line); background: var(--panel-raised); }
.timeline time { display: block; color: var(--muted); font-size: .72rem; }
.diagnostics { max-height: 34rem; overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; color: #cce9f4; background: #07111f; font: .8rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }

.site-footer { padding: 2.4rem 0; border-top: 1px solid rgb(255 255 255 / 8%); color: var(--muted); }
.site-footer p { margin: .25rem 0 0; }
.footer-meta { display: flex; align-items: end; flex-direction: column; gap: .35rem; }

/* Operator application shell */
.operator-body { overflow-x: hidden; background: var(--canvas); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.app-sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; display: flex; width: 248px; padding: 1.15rem .85rem; flex-direction: column; color: #dbe7f5; border-right: 1px solid rgb(255 255 255 / 7%); background: #081220; box-shadow: 14px 0 40px rgb(3 9 17 / 8%); }
.sidebar-brand { padding: .25rem .45rem 1.25rem; }
.sidebar-brand .wordmark-icon { width: 38px; height: 38px; border-radius: 11px; }
.sidebar-brand small { color: #8295aa; }
.sidebar-section { margin-top: .75rem; }
.sidebar-label { margin: 0 0 .4rem; padding-inline: .65rem; color: #657a92; font-size: .64rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: .2rem; }
.sidebar-nav a, .sidebar-signout { display: flex; width: 100%; min-height: 42px; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 0; border-radius: 9px; color: #91a4b9; background: transparent; font-weight: 680; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar-nav a:hover, .sidebar-signout:hover { color: white; background: rgb(255 255 255 / 6%); }
.sidebar-nav a.active { color: #c8f0ff; background: rgb(54 190 240 / 13%); box-shadow: inset 2px 0 #50cdfb; }
.sidebar-spacer { flex: 1; }
.sidebar-utility { padding-top: .7rem; border-top: 1px solid rgb(255 255 255 / 7%); }
.sidebar-utility form { margin: .25rem 0 0; }
.app-workspace { min-width: 0; grid-column: 2; }
.operator-topbar { position: sticky; z-index: 50; top: 0; display: flex; min-height: 68px; align-items: center; gap: 1rem; padding: .75rem clamp(1rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 91%); backdrop-filter: blur(16px); }
.nav-toggle { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel); cursor: pointer; }
.global-search { display: flex; width: min(520px, 48vw); align-items: center; gap: .55rem; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
.global-search input { min-height: 38px; padding-inline: 0; border: 0; background: transparent; box-shadow: none; }
.global-search input:focus { box-shadow: none; }
.global-search kbd { padding: .1rem .35rem; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: var(--panel); font-size: .68rem; }
.operator-identity { display: flex; margin-left: auto; align-items: center; gap: .6rem; }
.operator-identity strong, .operator-identity small { display: block; line-height: 1.2; }
.operator-identity strong { font-size: .8rem; }
.operator-identity small { color: var(--muted); font-size: .68rem; }
.operator-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: linear-gradient(145deg, #087fae, #1152a2); border-radius: 11px; font-size: .72rem; font-weight: 900; }
.presence-dot { width: 8px; height: 8px; background: #35c98a; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 2px #c8f2df; }
.workspace-content { width: min(1540px, 100%); min-height: calc(100vh - 116px); margin-inline: auto; padding: 0 clamp(1rem, 2.5vw, 2rem) 2rem; }
.operator-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 2rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .72rem; }
.nav-scrim { display: none; }

.ops-page { padding-top: 1.75rem; }
.ops-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.25rem; }
.ops-header h1 { max-width: none; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.ops-header .lead { margin-top: .45rem; font-size: .95rem; }
.ops-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .6rem; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; margin-bottom: .65rem; color: var(--muted); font-size: .76rem; }
.breadcrumb a { color: inherit; text-decoration: none; }
.header-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.kpi-card { position: relative; min-width: 0; overflow: hidden; padding: 1.05rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-soft); }
.kpi-card::after { position: absolute; width: 5rem; height: 5rem; right: -2.5rem; bottom: -2.5rem; border-radius: 50%; background: var(--accent-soft); content: ""; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.kpi-label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.kpi-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--accent); border-radius: 9px; background: var(--accent-soft); }
.kpi-value { display: block; margin-top: .55rem; color: var(--ink); font-size: 1.85rem; font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.kpi-note { display: block; margin-top: .45rem; color: var(--muted); font-size: .68rem; }
.kpi-critical .kpi-icon { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, white); }
.kpi-warning .kpi-icon { color: var(--warning); background: color-mix(in srgb, var(--warning) 9%, white); }
.kpi-success .kpi-icon { color: var(--success); background: color-mix(in srgb, var(--success) 8%, white); }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .9rem; margin-top: .9rem; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.chart-card, .activity-card { min-width: 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-soft); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-heading h2 { font-size: 1rem; }
.card-heading p { margin: .25rem 0 0; color: var(--muted); font-size: .72rem; }
.card-heading a { font-size: .74rem; font-weight: 750; text-decoration: none; }
.chart-empty { display: grid; min-height: 190px; place-items: center; color: var(--muted); text-align: center; }
.bar-chart { display: grid; gap: .75rem; }
.bar-row { display: grid; grid-template-columns: minmax(86px, 140px) minmax(80px, 1fr) 34px; gap: .65rem; align-items: center; font-size: .76rem; }
.bar-label { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; overflow: hidden; background: var(--panel-soft); border-radius: 999px; }
.bar-fill { width: var(--bar-width, 0%); height: 100%; background: linear-gradient(90deg, var(--accent), #5d76ef); border-radius: inherit; }
.bar-value { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.chart-svg { width: 100%; height: 210px; overflow: visible; }
.chart-svg .grid-line { stroke: var(--line); stroke-width: 1; }
.chart-svg .area { fill: url(#reportArea); opacity: .18; }
.chart-svg .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .point { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .65rem; }
.distribution-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.distribution-list li { display: flex; align-items: center; gap: .65rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.distribution-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.distribution-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--swatch, var(--accent)); }
.distribution-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.distribution-count { font-weight: 850; font-variant-numeric: tabular-nums; }
.activity-feed { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.activity-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-marker { display: grid; width: 30px; height: 30px; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 9px; }
.activity-item p { margin: 0; font-size: .76rem; }
.activity-item time { color: var(--muted); font-size: .66rem; }

.quick-views { display: flex; gap: .45rem; margin-bottom: .75rem; overflow-x: auto; padding-bottom: .2rem; }
.quick-view { display: inline-flex; min-height: 36px; align-items: center; gap: .4rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); font-size: .76rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.quick-view:hover, .quick-view.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); background: var(--accent-soft); }
.filter-panel { margin-bottom: .8rem; padding: .85rem; }
.filter-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(120px, 1fr)); gap: .6rem; align-items: end; }
.filter-grid .field { gap: .25rem; }
.filter-grid label { font-size: .72rem; }
.filter-grid input, .filter-grid select { min-height: 39px; font-size: .8rem; }
.advanced-filters { grid-column: 1 / -1; }
.advanced-filters summary { color: var(--accent); font-size: .76rem; font-weight: 750; cursor: pointer; }
.advanced-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: .6rem; margin-top: .65rem; }
.issue-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-soft); }
.issue-row { display: grid; grid-template-columns: minmax(250px, 1.8fr) minmax(150px, .9fr) 110px 130px 140px; gap: .8rem; align-items: center; padding: .85rem 1rem; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; }
.issue-row:last-child { border-bottom: 0; }
.issue-row:hover { color: inherit; background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.issue-row-header { min-height: 36px; color: var(--muted); background: var(--panel-raised); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.issue-primary { min-width: 0; }
.issue-id { display: flex; align-items: center; gap: .45rem; color: var(--ink); font-size: .8rem; font-weight: 850; }
.issue-description { display: block; margin-top: .25rem; overflow: hidden; color: var(--muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.issue-meta { min-width: 0; font-size: .76rem; }
.issue-meta small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.empty-state { display: grid; min-height: 220px; place-items: center; padding: 2rem; color: var(--muted); text-align: center; }
.empty-state .kpi-icon { width: 44px; height: 44px; margin: 0 auto .8rem; }

.applications-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.application-card { display: grid; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; color: inherit; background: var(--panel); box-shadow: var(--shadow-soft); text-decoration: none; }
.application-card:hover { color: inherit; border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); transform: translateY(-1px); }
.application-card-head { display: flex; align-items: start; gap: .75rem; }
.application-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: white; background: linear-gradient(145deg, var(--app-color, #078cc4), color-mix(in srgb, var(--app-color, #078cc4) 65%, #14284d)); border-radius: 12px; font-size: .76rem; font-weight: 900; }
.application-title { min-width: 0; flex: 1; }
.application-title h2 { overflow: hidden; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.application-title p { margin: .25rem 0 0; color: var(--muted); font-size: .7rem; }
.application-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.application-stat { padding: .6rem; background: var(--panel-raised); border-radius: 9px; }
.application-stat strong, .application-stat span { display: block; }
.application-stat strong { font-size: 1rem; }
.application-stat span { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.branch-line { display: flex; min-width: 0; align-items: center; gap: .4rem; margin-top: .75rem; color: var(--muted); font-size: .68rem; }
.branch-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.application-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: .9rem; }
.release-list { display: grid; gap: .65rem; }
.release-item { position: relative; padding: .9rem .9rem .9rem 1.2rem; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised); }
.release-item::before { position: absolute; left: -.3rem; top: 1.05rem; width: .55rem; height: .55rem; border: 3px solid var(--panel); border-radius: 50%; background: var(--accent); content: ""; }
.release-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.release-notes { margin: .6rem 0 0; color: var(--muted); font-size: .76rem; white-space: pre-wrap; }

.issue-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: .9rem; align-items: start; }
.issue-main, .issue-sidebar { display: grid; min-width: 0; gap: .8rem; }
.workflow-card { position: sticky; top: 84px; }
.workflow-context { margin-bottom: 1rem; }
.workflow-context > div { padding: .65rem .75rem; background: var(--panel-raised); }
.workflow-context dd { font-size: .78rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.section-title h2 { font-size: 1rem; }
.section-title .nav-icon { color: var(--accent); }
.report-copy { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); white-space: pre-wrap; overflow-wrap: anywhere; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.comparison-block { padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-raised); }
.comparison-block h3 { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.comparison-block p { margin: .55rem 0 0; font-size: .86rem; white-space: pre-wrap; }
.subsection-heading { margin: 1rem 0 .65rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.label-editor { display: flex; flex-wrap: wrap; gap: .4rem; }
.label-editor form { margin: 0; }
.label-remove { display: inline-grid; width: 16px; height: 16px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: inherit; background: rgb(0 0 0 / 8%); cursor: pointer; }
.label-add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; margin-top: .85rem; }
.attachment-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .65rem; }
.attachment-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-raised); }
.attachment-preview { display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; color: var(--muted); background: #e8eef5; }
.attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.attachment-details { padding: .65rem; }
.attachment-details strong { display: block; overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.attachment-actions { display: flex; justify-content: space-between; gap: .4rem; margin-top: .5rem; }
.file-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 8px; }
.file-row strong, .file-row small { display: block; }
.file-row strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { color: var(--muted); font-size: .66rem; }
.preview-dialog { width: min(1100px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--panel); box-shadow: 0 28px 90px rgb(0 0 0 / 36%); }
.preview-dialog::backdrop { background: rgb(3 10 18 / 78%); backdrop-filter: blur(4px); }
.preview-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.preview-dialog-body { display: grid; max-height: calc(100vh - 7rem); place-items: center; overflow: auto; padding: 1rem; background: #0b1420; }
.preview-dialog-body img { max-height: calc(100vh - 9rem); object-fit: contain; }

.comment-list { display: grid; gap: .65rem; }
.comment-card { margin-left: min(calc(var(--comment-depth, 0) * 1.35rem), 2.7rem); padding: .8rem; border: 1px solid var(--line); border-left: 3px solid var(--comment-color, var(--accent)); border-radius: 10px; background: var(--panel-raised); }
.comment-card.internal { --comment-color: var(--warning); background: color-mix(in srgb, var(--warning) 5%, var(--panel)); }
.comment-card.user-visible { --comment-color: var(--success); background: color-mix(in srgb, var(--success) 5%, var(--panel)); }
.comment-head { display: flex; align-items: center; gap: .5rem; }
.comment-head strong { font-size: .78rem; }
.comment-head time { margin-left: auto; color: var(--muted); font-size: .65rem; }
.comment-body { margin: .55rem 0 0; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: .6rem; margin-top: .55rem; }
.text-action { padding: 0; border: 0; color: var(--accent); background: none; font-size: .7rem; font-weight: 750; cursor: pointer; }
.inline-editor summary { list-style: none; }
.inline-editor summary::-webkit-details-marker { display: none; }
.inline-editor form { margin-top: .55rem; }
.inline-editor textarea { min-height: 82px; font-size: .78rem; }
.comment-composer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.composer-context { display: none; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; color: var(--accent); background: var(--accent-soft); border-radius: 8px; font-size: .72rem; }
.composer-context.active { display: flex; }

.label-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.label-card { padding: .85rem; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.label-card-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.label-card p { margin: .5rem 0 0; color: var(--muted); font-size: .74rem; }

.about-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: center; }
.brand-orbit { display: grid; width: 200px; height: 200px; place-items: center; border: 1px solid rgb(88 208 255 / 24%); border-radius: 50%; box-shadow: 0 0 0 2rem rgb(88 208 255 / 4%), 0 0 0 4rem rgb(88 208 255 / 2%); }
.brand-orbit-mark { display: grid; width: 90px; height: 90px; place-items: center; color: #04141e; background: linear-gradient(145deg, #c7f2ff, #31c1f4); border-radius: 24px; box-shadow: 0 20px 50px rgb(31 184 238 / 25%); font-size: 2.5rem; font-weight: 950; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1rem; }
.about-statement p:not(.eyebrow) { color: var(--muted); }
.boundary-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.boundary-list span { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; }
.founder-card { position: relative; overflow: hidden; }
.founder-monogram { position: absolute; right: -1rem; bottom: -2rem; color: rgb(88 208 255 / 8%); font-size: 7rem; font-weight: 950; line-height: 1; }

@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .applications-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr)); }
  .advanced-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
}

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .app-workspace { grid-column: 1; }
  .operator-body.nav-open .app-sidebar { transform: translateX(0); }
  .nav-toggle { display: grid; }
  .nav-scrim { position: fixed; z-index: 70; inset: 0; width: 100%; height: 100%; border: 0; background: rgb(3 10 18 / 52%); }
  .operator-body.nav-open .nav-scrim { display: block; }
  .issue-workspace { grid-template-columns: minmax(0, 1fr) 350px; }
  .dashboard-grid .span-8, .dashboard-grid .span-7 { grid-column: span 12; }
  .dashboard-grid .span-4, .dashboard-grid .span-5 { grid-column: span 6; }
}

@media (max-width: 860px) {
  .public-body .primary-nav { display: none; }
  .public-mobile-cta { display: inline-flex; }
  .hero { padding-top: 4.25rem; }
  .hero-grid, .content-grid, .application-detail-grid, .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .page-header-row, .ops-header { align-items: start; flex-direction: column; }
  .ops-actions { justify-content: start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issue-workspace { display: flex; flex-direction: column; }
  .issue-sidebar { display: contents; }
  .workflow-card { position: static; order: -1; width: 100%; }
  .issue-main { width: 100%; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid .search-field { grid-column: 1 / -1; }
  .advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issue-row { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .issue-row-header { display: none; }
  .issue-row > :nth-child(2), .issue-row > :nth-child(5) { grid-column: 1; }
  .issue-row > :nth-child(3), .issue-row > :nth-child(4) { grid-column: 2; }
  .issue-row > :nth-child(5) { color: var(--muted); font-size: .68rem; }
  .about-hero { grid-template-columns: 1fr; }
  .brand-orbit { width: 150px; height: 150px; }
}

@media (max-width: 680px) {
  .operator-topbar { gap: .6rem; }
  .global-search { width: auto; min-width: 0; flex: 1; }
  .global-search kbd, .operator-identity > span:not(.operator-avatar) { display: none; }
  .workspace-content { padding-inline: .75rem; }
  .operator-footer { padding-inline: 1rem; flex-direction: column; }
  .kpi-grid, .applications-grid, .label-catalog { grid-template-columns: 1fr; }
  .dashboard-grid .span-4, .dashboard-grid .span-5, .dashboard-grid .span-6 { grid-column: span 12; }
  .filter-grid, .advanced-grid { grid-template-columns: 1fr; }
  .filter-grid .search-field { grid-column: auto; }
  .comparison-grid, .form-grid, .definition-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-meta { align-items: start; }
  .bar-row { grid-template-columns: 90px minmax(70px, 1fr) 28px; }
  .attachment-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-card { margin-left: min(calc(var(--comment-depth, 0) * .7rem), 1.4rem); }
  h1 { font-size: 2.55rem; }
}

@media (max-width: 440px) {
  .shell { width: min(100% - 1.25rem, 1180px); }
  .operator-avatar { width: 34px; height: 34px; }
  .attachment-gallery { grid-template-columns: 1fr; }
  .pagination { align-items: stretch; flex-direction: column; text-align: center; }
  .pagination .button { width: 100%; }
  .application-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .icon-button, a, input, select, textarea, .application-card { transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
}

@media print {
  .app-sidebar, .operator-topbar, .operator-footer, .site-header, .site-footer, .button, .nav-scrim { display: none !important; }
  .app-shell, .app-workspace { display: block; }
  .workspace-content { width: 100%; padding: 0; }
  body { color: #111; background: white; }
  .panel, .chart-card, .kpi-card { box-shadow: none; }
}
