/* APEX NOC Manager */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #141a26;
  --ink-2: #4a5568;
  --ink-3: #7a8597;
  --line: #d9dee6;
  --wire: #9aa6b8;
  --focus: #2f6fdf;

  --a-claude: #c2603c;
  --a-suite: #2f6fdf;
  --a-ci: #13867a;
  --a-target: #5b6779;
  --a-launcher: #b7791f;
  --a-platform: #7a4fc9;
  --a-human: #c53b5a;

  --radius: 10px;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e121a; --surface: #161c27; --surface-2: #1d2532; --ink: #e8ecf3; --ink-2: #b3bdcc; --ink-3: #8691a3;
    --line: #2b3545; --wire: #55627a; --focus: #6ea0ff;
    --a-claude: #e58a66; --a-suite: #6ea0ff; --a-ci: #3cc2b1; --a-target: #9aa6b8; --a-launcher: #e6a845; --a-platform: #a988f0; --a-human: #f07390;
    --shadow: 0 1px 2px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e121a; --surface: #161c27; --surface-2: #1d2532; --ink: #e8ecf3; --ink-2: #b3bdcc; --ink-3: #8691a3;
  --line: #2b3545; --wire: #55627a; --focus: #6ea0ff;
  --a-claude: #e58a66; --a-suite: #6ea0ff; --a-ci: #3cc2b1; --a-target: #9aa6b8; --a-launcher: #e6a845; --a-platform: #a988f0; --a-human: #f07390;
  --shadow: 0 1px 2px rgb(0 0 0 / .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── header */
.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 24px 12px; }
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; width: 34px; height: 34px; cursor: pointer; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 12px; cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); min-width: 9.5em; }
}

/* ══════════════ sign-in, account and administration ══════════════ */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.hint { color: var(--ink-3); margin: 0; }
a { color: var(--focus); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; width: 100%; }
textarea { font: 13px/1.45 var(--mono); resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type="checkbox"] { width: auto; accent-color: var(--focus); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label, .form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.btn-small { padding: 3px 10px; font-size: 13px; }
.btn-danger { background: var(--a-human); border-color: var(--a-human); color: #fff; }
.btn-danger-ghost { color: var(--a-human); }
.btn:disabled { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.actions input { flex: 1 1 200px; width: auto; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 24px 28px; }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-brand h1 { font-size: 18px; }
.auth-brand p { margin: 2px 0 0; font-size: 13px; }
.auth-card h2 { font-size: 16px; margin-bottom: 12px; }
.auth-card section > p { margin: -4px 0 14px; font-size: 14px; }
.auth-error { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; font-size: 14px; background: color-mix(in srgb, var(--a-human) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a-human) 40%, transparent); }
.btn-sso { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.btn-sso::before { content: ""; width: 16px; height: 16px; background:
  linear-gradient(#f25022, #f25022) 0 0 / 7px 7px no-repeat, linear-gradient(#7fba00, #7fba00) 9px 0 / 7px 7px no-repeat,
  linear-gradient(#00a4ef, #00a4ef) 0 9px / 7px 7px no-repeat, linear-gradient(#ffb900, #ffb900) 9px 9px / 7px 7px no-repeat; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.user-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.user-menu .who { font-weight: 600; }
.user-menu a { text-decoration: none; }
.user-menu a:hover { text-decoration: underline; }

.page .top { border-bottom: 1px solid var(--line); }
.tagline a { text-decoration: none; }
.tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs [role="tab"] { border: 0; background: none; padding: 12px 14px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--focus); font-weight: 600; }
.admin { max-width: 1100px; margin: 0 auto; padding: 20px 24px 48px; display: block; }
.admin.narrow { max-width: 640px; }
.admin section { display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar input[type="search"] { max-width: 320px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 16px; margin-bottom: 4px; }
.card > p { margin: 0 0 14px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; align-items: start; }
.form-grid .span2, .form-grid details, .form-grid .actions, .form-grid .result { grid-column: 1 / -1; }
.form-grid details > .form-grid { margin-top: 10px; }
details summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.howto { margin: 0 0 14px; font-size: 14px; }
.howto ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 5px; color: var(--ink-2); }
.result { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font: 13px/1.5 var(--mono); white-space: pre-wrap; }
.result[data-kind="ok"] { border-left: 3px solid var(--a-ci); }
.result[data-kind="error"] { border-left: 3px solid var(--a-human); }
.copybox { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.copybox p { margin: 0 0 6px; }
.copybox dl { margin: 0; display: grid; gap: 4px 12px; grid-template-columns: max-content 1fr; font-size: 13px; align-items: center; }
.copybox dt { color: var(--ink-2); }
.copybox dd { margin: 0; display: flex; gap: 8px; align-items: center; min-width: 0; }
.copybox code { overflow-wrap: anywhere; background: var(--surface); }

.flash { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; font-size: 14px; border: 1px solid color-mix(in srgb, var(--a-ci) 40%, transparent); background: color-mix(in srgb, var(--a-ci) 10%, transparent); }
.flash[data-kind="error"] { border-color: color-mix(in srgb, var(--a-human) 40%, transparent); background: color-mix(in srgb, var(--a-human) 10%, transparent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.warn td { background: color-mix(in srgb, var(--a-human) 6%, transparent); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 6px; }
.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-admin { background: color-mix(in srgb, var(--a-suite) 15%, transparent); color: var(--a-suite); }
.badge-ldap { background: color-mix(in srgb, var(--a-ci) 14%, transparent); color: var(--a-ci); }
.badge-saml { background: color-mix(in srgb, var(--a-platform) 14%, transparent); color: var(--a-platform); }
.badge-off { background: color-mix(in srgb, var(--a-human) 14%, transparent); color: var(--a-human); }
.badge-warn { background: color-mix(in srgb, var(--a-launcher) 16%, transparent); color: var(--a-launcher); }

dialog { border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
dialog::backdrop { background: rgb(10 14 22 / .45); }
dialog h2 { font-size: 17px; }
fieldset.pw { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.pw[hidden] { display: none; }
fieldset.pw .btn { align-self: flex-start; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .tabs { padding: 0 8px; }
  .admin { padding: 16px 16px 40px; }
  .copybox dl { grid-template-columns: 1fr; }
  .user-menu { width: 100%; }
}

/* ── API tokens, audit & activity, log forwarding (0.3.0) ── */
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
dialog .form-grid h2 { margin: 0; }
.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0;
  font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: var(--mono); font-size: 13px; }
.warn-box { margin: 0; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--a-launcher) 45%, transparent); background: color-mix(in srgb, var(--a-launcher) 12%, transparent); }
.scopes, .inline-checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.inline-checks { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.scopes legend, .inline-checks legend { font-size: 13.5px; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
table.grid tr.dim td { opacity: .6; }
.nowrap { white-space: nowrap; }
.err { color: var(--a-human); }
.unsafe { color: var(--a-human); font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; margin-bottom: 10px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.filters .actions { grid-column: 1 / -1; justify-content: flex-start; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: end; width: max-content; }
.segmented label { flex-direction: row; align-items: center; gap: 0; padding: 6px 14px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:checked) { background: var(--ink); color: var(--bg); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
table.events tbody tr { cursor: pointer; }
table.events tbody tr:hover td { background: var(--surface-2); }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
@media (max-width: 760px) {
  dialog.wide .form-grid { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; }
}
.auth-error.ok { color: var(--ink); background: color-mix(in srgb, var(--a-repo, #2e7d32) 12%, transparent); border-color: color-mix(in srgb, var(--a-repo, #2e7d32) 40%, transparent); }
.restore-link { margin-top: 14px; }

/* ══════════════ NOC ══════════════ */
:root { --sev1: #b42318; --sev2: #c4320a; --sev3: #b7791f; --sev4: #5b6779; --ok: #13867a; }
:root[data-theme="dark"] { --sev1: #ff6b5e; --sev2: #ff8a4c; --sev3: #e6a845; --sev4: #9aa6b8; --ok: #3cc2b1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sev1: #ff6b5e; --sev2: #ff8a4c; --sev3: #e6a845; --sev4: #9aa6b8; --ok: #3cc2b1; } }

.brand h1 { font-size: 20px; letter-spacing: -.01em; }
.tagline { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.top-right { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bell { position: relative; text-decoration: none; font-size: 18px; padding: 4px 6px; }
.bell-count { position: absolute; top: -4px; right: -6px; background: var(--sev1); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 5px; line-height: 17px; min-width: 17px; text-align: center; }
.mainnav a { padding: 12px 14px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mainnav a.on { color: var(--ink); border-bottom-color: var(--focus); font-weight: 600; }
.notice { max-width: 1280px; margin: 12px auto 0; padding: 8px 14px; font-size: 13.5px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--a-launcher) 45%, transparent); background: color-mix(in srgb, var(--a-launcher) 10%, transparent); }
.admin.wide-main { max-width: 1280px; display: flex; flex-direction: column; gap: 16px; }
.flash.floating { position: fixed; right: 16px; bottom: 16px; z-index: 60; max-width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow); background: var(--surface); }
.h-section { font-size: 17px; }
.crumbs { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pre { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.clickable { cursor: pointer; }
table.grid.incidents tbody tr:hover td, table.grid tr.clickable:hover td { background: var(--surface-2); }
table.grid.compact td, table.grid.compact th { padding: 7px 9px; }
.table-wrap.flat { border: 0; border-radius: 0; }
.wide-btn { width: 100%; margin-top: 8px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 14px 0 6px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.tile strong { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { color: var(--ink-2); font-size: 13.5px; }
.tile-bad { border-color: color-mix(in srgb, var(--sev1) 50%, var(--line)); }
.tile-bad strong { color: var(--sev1); }
.tile-warn strong { color: var(--sev3); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.two-col .card + .card { margin-top: 0; }

/* severity, status */
.sev { display: inline-block; font: 700 11.5px/1.6 var(--mono); padding: 0 7px; border-radius: 5px; color: #fff; vertical-align: 1px; }
.sev-SEV1 { background: var(--sev1); } .sev-SEV2 { background: var(--sev2); } .sev-SEV3 { background: var(--sev3); } .sev-SEV4 { background: var(--sev4); }
.st-investigating { background: color-mix(in srgb, var(--sev1) 14%, transparent); color: var(--sev1); }
.st-identified { background: color-mix(in srgb, var(--sev3) 16%, transparent); color: var(--sev3); }
.st-monitoring { background: color-mix(in srgb, var(--a-suite) 15%, transparent); color: var(--a-suite); }
.st-resolved, .badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.ho-approved { background: color-mix(in srgb, var(--a-suite) 15%, transparent); color: var(--a-suite); }
.ho-accepted { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-ai { background: color-mix(in srgb, var(--a-platform) 15%, transparent); color: var(--a-platform); }
.pr-high { background: color-mix(in srgb, var(--sev1) 14%, transparent); color: var(--sev1); }
.pr-medium { background: color-mix(in srgb, var(--sev3) 16%, transparent); color: var(--sev3); }

/* incident page */
.inc-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: start; }
.inc-title { font-size: 20px; }
.inc-head p { margin: 4px 0 0; }
.inc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.inc-main, .inc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.inc-main .card + .card, .inc-side .card + .card { margin-top: 0; }
.inc-side h2 { margin-bottom: 8px; }
.checks { border-radius: 12px; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); }
.checks ul { margin: 6px 0 0; padding-left: 4px; list-style: none; display: grid; gap: 3px; font-size: 14px; }
.checks.has-errors { border-color: color-mix(in srgb, var(--sev1) 45%, transparent); background: color-mix(in srgb, var(--sev1) 6%, var(--surface)); }
.checks.has-warnings { border-color: color-mix(in srgb, var(--sev3) 45%, transparent); background: color-mix(in srgb, var(--sev3) 7%, var(--surface)); }
.checks.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 10px; }
.inline-form > input[name="text"] { flex: 1 1 240px; }
.inline-form > select, .inline-form > input[type="datetime-local"] { flex: 0 1 200px; width: auto; }
.inline-form label { display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); }
.inc-side .inline-form input { flex: 1 1 100px; width: auto; }
table.grid select, table.grid input { padding: 4px 6px; font-size: 13px; min-width: 130px; }
.unknowns li { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.unknowns li.answered { opacity: .75; }
.unk-tools { display: flex; gap: 6px; align-items: center; }
.unk-tools select { width: auto; padding: 4px 6px; font-size: 13px; }
.ticket { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.timeline .tl-update::before { background: var(--focus); }
.timeline .tl-impact::before { background: var(--sev1); }
.timeline .tl-handover::before { background: var(--ok); }
.tl-meta { font-size: 12.5px; color: var(--ink-3); }
.tl-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline .tl-system .tl-text, .timeline .tl-status .tl-text { color: var(--ink-2); font-size: 14px; }
.ai-card { border-color: color-mix(in srgb, var(--a-platform) 35%, var(--line)); }
.ai-actions li { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); display: grid; gap: 4px; justify-items: start; }
.lead-text { font-size: 16px; font-weight: 600; margin: 8px 0; }
.answer { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }

/* handover */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.stepper li { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 14px; }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-size: 12px; font-weight: 700; }
.stepper li.done { color: var(--ink); }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.active { color: var(--ink); font-weight: 600; }
.stepper li.active span { border-color: var(--focus); color: var(--focus); }
.handover-text { max-height: 70vh; font-size: 13px; }

/* notifications */
.notes li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.notes li.unread { border-left: 3px solid var(--focus); }
.note-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; font-weight: 600; }
.filters-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters-inline input[type="search"] { width: 280px; max-width: 100%; }

@media (max-width: 980px) {
  .inc-grid, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top { padding: 14px 16px 10px; }
  .notice { margin: 10px 16px 0; }
  table.grid.incidents th:nth-child(5), table.grid.incidents td:nth-child(5) { display: none; }
}

/* form polish */
.form-grid label.check, .stack label.check, .inline-checks label.check, .scopes label.check { flex-direction: row; align-items: center; white-space: nowrap; color: var(--ink); }
.scopes label.check { white-space: normal; }
.inc-grid textarea, dialog textarea, .ai-card textarea { font: 14px/1.5 var(--sans); }
.inline-form > input, .inline-form > select { width: auto; }
.inline-form > input[name="text"] { flex: 3 1 260px; }
.notice { width: calc(100% - 48px); max-width: 1232px; }
@media (max-width: 760px) { .notice { width: auto; } }
.admin section.checks { display: block; }
table.grid.compact td:first-child { min-width: 180px; }
