:root {
  --paper: #eef1f4;
  --sheet: #f8f9fb;
  --ink: #1b2430;
  --ink-soft: #4a5563;
  --ink-faint: #637181;
  --rule: #cfd6dd;
  --rule-soft: #e1e6eb;
  --teal: #0f6e66;
  --teal-deep: #0a524c;
  --teal-wash: #dcebe9;
  --amber: #a86a12;
  --amber-wash: #f6e8cf;
  --oxblood: #9b2c2c;
  --oxblood-wash: #f3dcdc;
  --focus: #1d4ed8;
  --radius: 3px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --rail: 13.5rem;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); }
h1, h2, h3, p, dl, ul, ol, pre, figure { margin: 0; }
h1 { font-size: 1.6rem; line-height: 1.15; font-weight: 650; letter-spacing: -0.015em; }
h2 { font-size: 1.05rem; font-weight: 650; margin-bottom: 0.6rem; }
a { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 45%, transparent); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-deep); }
code, .mono, pre { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--rule-soft); padding: 0.05em 0.3em; border-radius: var(--radius); }
pre code { background: none; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.skip { position: absolute; left: 0.5rem; top: -3rem; padding: 0.4rem 0.7rem; background: var(--ink); color: #fff; z-index: 20; }
.skip:focus { top: 0.5rem; }

/* Controls */
button, .button, input, select, textarea { font: inherit; color: inherit; }
button, .button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.85rem; border-radius: var(--radius);
  border: 1px solid var(--teal-deep); background: var(--teal); color: #fff;
  font-weight: 550; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
button:hover, .button:hover { background: var(--teal-deep); color: #fff; }
button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
button.quiet, .button.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
button.quiet:hover, .button.quiet:hover { background: var(--rule-soft); color: var(--ink); }
button.danger { background: #fff; color: var(--oxblood); border-color: var(--oxblood); }
button.danger:hover { background: var(--oxblood); color: #fff; }
button.link { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 0.15em; }
button.link:hover { color: var(--teal-deep); background: none; }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 5rem; }
input:invalid[aria-invalid="true"], [aria-invalid="true"] { border-color: var(--oxblood); }
label { display: block; font-weight: 550; margin-bottom: 0.3rem; }
.help { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.35rem; }
.help code { font-size: 0.9em; }
.status { min-height: 1.4em; font-size: 0.92rem; color: var(--oxblood); margin-top: 0.4rem; }
.status.ok { color: var(--teal-deep); }

/* Lock screen */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.lock-panel { min-width: 0; width: 100%; background: var(--sheet); border: 1px solid var(--rule); border-top: 6px solid var(--teal); padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 2rem; }
.wordmark { font-weight: 750; letter-spacing: -0.03em; font-size: 1rem; color: var(--teal-deep); }
.lock h1 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.045em; }
.lead { color: var(--ink-soft); margin-top: 0.6rem; max-width: 36rem; }
.lock-form { margin-top: 1.5rem; }
.lock-form button { margin-top: 0.75rem; }
.scope { margin-top: 1rem; display: grid; gap: 0.9rem; font-size: 0.9rem; }
.scope dt { font-weight: 650; }
.scope dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* App frame */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.view > * { min-width: 0; }
.rail { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem 1.1rem; background: var(--sheet); border-right: 1px solid var(--rule); }
.rail nav { display: flex; flex-direction: column; gap: 0.1rem; }
.rail nav a { padding: 0.5rem 0.65rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.rail nav a:hover { background: var(--rule-soft); }
.rail nav a[aria-current="page"] { border-left-color: var(--teal); background: var(--teal-wash); color: var(--teal-deep); font-weight: 600; }
.rail #signout { margin-top: 0; justify-content: center; }
main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
main:focus { outline: none; }
.view { max-width: 72rem; display: grid; gap: 1.75rem; }
.view.narrow { max-width: 42rem; }
.view-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.view-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.summary { color: var(--ink-soft); margin-top: 0.35rem; overflow-wrap: anywhere; }
.crumb { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: -1rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 1.5rem; margin-bottom: 0.6rem; }
.section-head h2 { margin-bottom: 0; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.75rem 3rem; }
.note { color: var(--ink-soft); font-size: 0.92rem; padding: 0.6rem 0.8rem; border-left: 3px solid var(--amber); background: var(--amber-wash); }
.legend, .cap { color: var(--ink-faint); font-size: 0.85rem; }
.search { display: flex; flex-direction: column; gap: 0.25rem; min-width: min(100%, 20rem); font-weight: 500; font-size: 0.9rem; }
.search input { padding: 0.4rem 0.55rem; }

/* Notices */
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.9rem; border-left: 3px solid var(--oxblood); background: var(--oxblood-wash); color: var(--ink); }
.notice.ok { border-left-color: var(--teal); background: var(--teal-wash); }
.notice .notice-text { margin: 0; }

/* Ledger definition lists */
.ledger { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.25rem; row-gap: 0; }
.ledger > div { display: contents; }
.ledger dt, .ledger dd { padding: 0.45rem 0; border-bottom: 1px solid var(--rule-soft); margin: 0; min-width: 0; }
.ledger dt { color: var(--ink-soft); font-weight: 500; }
.ledger dd { overflow-wrap: anywhere; }
.ledger.compact dt, .ledger.compact dd { padding: 0.3rem 0; }

/* Tables */
.table-wrap { overflow-x: auto; max-width: 100%; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.ledger-table th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: 0.45rem 0.6rem; border-bottom: 2px solid var(--rule); white-space: nowrap; }
.ledger-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.ledger-table tbody tr:hover { background: var(--sheet); }
.ledger-table td.mono, .ledger-table td .mono { font-size: 0.86rem; }
.ledger-table td.num { white-space: nowrap; }
.ledger-table td.dim { color: var(--ink-faint); }
.ledger-table td.wrap { overflow-wrap: anywhere; }
.ledger-table a { font-weight: 550; }
.ledger-table.devices td:first-child { width: 1.4rem; padding-right: 0; }
.ledger-table.software td:nth-child(2), .ledger-table.audit td:first-child, .ledger-table.audit td:nth-child(3) { white-space: nowrap; }
.ledger-table.audit td:nth-child(2) { white-space: nowrap; }
.ledger-table.applications td:nth-child(4) { text-align: right; }
.ledger-table.applications th.num { text-align: right; }
.ledger-table.applications td.action { min-width: 6rem; }
.variants { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
.variants li { font-size: 0.84rem; overflow-wrap: anywhere; }
.ledger-table.applications .dim, .ledger-table.variants-table td.dim { color: var(--ink-faint); }
.small { font-size: 0.82rem; }
.app-content { display: grid; gap: 1.75rem; min-width: 0; }
.description { max-width: 46rem; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.install { display: grid; gap: 1rem; max-width: 42rem; padding: 1.25rem 1.25rem 1.5rem; border: 1px solid var(--rule); border-top: 3px solid var(--teal); background: var(--sheet); }
.install h2 { margin-bottom: 0; }
.install .empty { background: #fff; }
.args { padding-left: 1.4rem; margin: 0; display: grid; gap: 0.15rem; }
.args li { overflow-wrap: anywhere; white-space: pre-wrap; }
.summary .mono { overflow-wrap: anywhere; }

/* Status glyphs and states */
.glyph { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1.5px solid currentColor; vertical-align: -0.05em; }
.glyph.active { color: var(--teal); background: var(--teal); }
.glyph.quiet { color: var(--amber); background: var(--amber-wash); }
.glyph.silent { color: var(--ink-faint); background: transparent; }
.glyph.revoked { color: var(--oxblood); background: var(--oxblood); }
.state { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; border: 1px solid var(--rule); background: #fff; color: var(--ink-soft); }
.state[data-tone="good"] { color: var(--teal-deep); border-color: var(--teal); background: var(--teal-wash); }
.state[data-tone="warn"] { color: var(--amber); border-color: var(--amber); background: var(--amber-wash); }
.state[data-tone="bad"] { color: var(--oxblood); border-color: var(--oxblood); background: var(--oxblood-wash); }
.state[data-tone="busy"] { color: var(--focus); border-color: var(--focus); background: #e4ebfb; }

/* Empty states */
.empty { padding: 1.5rem; border: 1px dashed var(--rule); background: var(--sheet); display: grid; gap: 0.75rem; max-width: 44rem; }
.empty h2 { margin: 0; }
.empty pre { padding: 0.75rem 0.9rem; background: #fff; border: 1px solid var(--rule-soft); overflow-x: auto; white-space: pre; }
.empty .button { justify-self: start; }

/* Forms */
.form { display: grid; gap: 1.25rem; }
.field.short { max-width: 14rem; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 550; margin-bottom: 0.3rem; padding: 0; }
.radio { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 450; padding: 0.3rem 0; }
.radio input { margin: 0.25rem 0 0; flex: none; }
.exec-fields { display: grid; gap: 1.25rem; padding: 1rem 1rem 1.25rem; border-left: 3px solid var(--teal); background: var(--sheet); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.filter label { margin: 0; }
.filter select { width: auto; min-width: 14rem; }
.steps { display: grid; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.steps ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; color: var(--ink-soft); }
.steps code.mono { overflow-wrap: anywhere; }

/* Output */
.output { padding: 0.9rem 1rem; background: var(--ink); color: #e8edf2; border-radius: var(--radius); overflow: auto; max-height: 32rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.86rem; line-height: 1.5; }
.output:empty::before { content: "(no output)"; color: var(--ink-faint); }

/* Dialogs */
.dialog { border: 1px solid var(--rule); border-top: 6px solid var(--teal); border-radius: var(--radius); padding: 1.5rem; width: min(92vw, 30rem); background: var(--sheet); color: var(--ink); }
.dialog::backdrop { background: rgba(27, 36, 48, 0.45); }
.dialog h2 { margin-bottom: 0.5rem; }
.dialog p { color: var(--ink-soft); }
.dialog .ledger { margin-top: 1rem; }
.dialog .actions { margin-top: 1.25rem; justify-content: flex-end; }
#confirm.danger-mode { border-top-color: var(--oxblood); }

/* Narrow viewports */
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 1rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  .rail .wordmark { flex: 1 1 auto; }
  .rail nav { order: 4; flex: 1 1 100%; flex-direction: row; gap: 0.25rem; overflow-x: auto; }
  .rail nav a { flex: none; border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 0.45rem 0.55rem; }
  .rail nav a[aria-current="page"] { border-bottom-color: var(--teal); }
  .rail #signout { margin-top: 0; padding: 0.35rem 0.6rem; }
  main { padding: 1.25rem 1rem 3rem; }
  .view-head { align-items: stretch; flex-direction: column; }
  .view-actions > * { flex: 1 1 auto; justify-content: center; }
  .ledger { grid-template-columns: 1fr; }
  .ledger dt { border-bottom: 0; padding-bottom: 0; font-size: 0.85rem; }
  .ledger dd { padding-top: 0.1rem; }
  .ledger-table th, .ledger-table td { padding: 0.45rem 0.4rem; }
  .ledger-table .optional { display: none; }
  .ledger-table.audit td:nth-child(2) { white-space: normal; }
  .columns { gap: 1.5rem; }
  .lock-panel { padding: 1.5rem 1.1rem; border-top-width: 5px; }
  .lock h1 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  button, .button, .rail nav a, input, select, textarea { transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
}
@media (prefers-contrast: more) {
  :root { --rule: #8a94a0; --rule-soft: #b9c2cb; --ink-faint: #4a5563; }
}

/* Enrollment metadata stays readable without a horizontally scrolling table. */
.enrollment-history { display: grid; gap: 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.enrollment-history .section-head { margin-bottom: 0; }
.enrollment-tokens { list-style: none; padding: 0; margin: 0; }
.enrollment-tokens > li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.enrollment-token-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; margin-bottom: 0.5rem; }
.enrollment-token-head h3 { flex: 1 1 12rem; font-size: 1rem; overflow-wrap: anywhere; }
.enrollment-tokens .ledger { font-size: 0.88rem; }
.enrollment-tokens .token-id { overflow-wrap: anywhere; }

/* Assistance keeps metadata separate from ephemeral desktop media. */
.endpoint-kind { display: block; color: var(--teal-deep); font-size: .85rem; margin-top: .25rem; }
.remote-list { list-style: none; padding: 0; display: grid; }
.remote-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.remote-list .help { flex-basis: 100%; }
.remote-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(8rem, 1fr); gap: 1rem; align-items: start; }
.remote-form > button { grid-column: 1 / -1; justify-self: start; }
.remote-live { display: grid; gap: 1rem; min-width: 0; }
.remote-facts { max-width: 48rem; margin-top: 1rem; }
.remote-facts dd { overflow-wrap: anywhere; }
.remote-canvas { display: block; max-width: 100%; height: auto; border: 2px solid var(--teal); background: var(--ink); }
.remote-canvas[data-access="control"] { touch-action: none; }
.remote-live > button { justify-self: start; }
@media (max-width: 700px) { .remote-form { grid-template-columns: minmax(0, 1fr); } }

/* Policies reuse the catalog ledger; native evidence stays next to its validity. */
.policy-item { display: grid; gap: .75rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; min-width: 0; }
.policy-item h3 { font-size: .95rem; margin-top: .5rem; }
.policy-history summary { cursor: pointer; color: var(--teal-deep); font-weight: 550; }
.policy-cycles { display: grid; gap: 1rem; padding-left: 1.4rem; margin-top: .75rem; }
.policy-cycles .ledger { font-size: .88rem; }
.policy-device-filter { max-width: 32rem; }
.ledger-table.policies { min-width: 36rem; }
@media (max-width: 760px) { .policy-device-filter { flex-basis: 100%; } }

/* Assignment pages keep compliance beside exact review links at every width. */
.assignment-pages { table-layout: fixed; }
.assignment-pages th:nth-child(1) { width: 19%; }
.assignment-pages th:nth-child(2) { width: 19%; }
.assignment-pages th:nth-child(3) { width: 25%; }
.assignment-pages td { min-width: 0; }
.assignment-apps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.assignment-apps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; min-width: 0; }
.assignment-apps li > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.assignment-pager { display: grid; gap: .6rem; margin-top: 1.5rem; }
@media (max-width: 700px) {
  .assignment-pages, .assignment-pages tbody { display: block; width: 100%; }
  .assignment-pages thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .assignment-pages tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
  .assignment-pages tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .assignment-pages td { display: block; border: 0; padding: 0; }
  .assignment-pages td:nth-child(3), .assignment-pages td:nth-child(4) { grid-column: 1 / -1; }
  .assignment-pages td::before { content: attr(data-label); display: block; margin-bottom: .25rem; font-size: .8rem; font-weight: 550; color: var(--ink-soft); }
}

/* Exact group IDs and receipt mappings remain readable on narrow screens. */
.group-members { list-style: none; padding: 0; display: grid; min-width: 0; }
.group-members li { display: grid; gap: .35rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.group-members .mono { font-size: .82rem; overflow-wrap: anywhere; }

/* Historical reports retain their server order and exact comparison pins. */
.inventory-history-list { list-style: none; padding: 0; display: grid; gap: 1.4rem; }
.inventory-history-list > li { border-top: 1px solid var(--rule); padding-top: 1rem; min-width: 0; }
.inventory-history-list h2 { margin: 0; }
.inventory-compare-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 1rem; margin-top: .75rem; }
.inventory-compare-form button { grid-column: 1 / -1; justify-self: start; }
.inventory-report-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; min-width: 0; }
.inventory-report-section h2 { margin: 0; }
.inventory-comparison-pins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; min-width: 0; }
.inventory-comparison-pins section { min-width: 0; }
.inventory-comparison-pins .ledger { grid-template-columns: 1fr; font-size: .88rem; margin-top: .7rem; }
.inventory-comparison-pins dt { border-bottom: 0; padding-bottom: 0; }
.inventory-comparison-pins dd { padding-top: .1rem; }
@media (max-width: 760px) { .inventory-compare-form, .inventory-comparison-pins { grid-template-columns: minmax(0, 1fr); } }
.inventory-report-section > *, .inventory-history-list > li > *, .inventory-comparison-pins section > * { min-width: 0; }

.inventory-hardware-difference .ledger-table { min-width: 0; }

/* Bounded fleet browsing */
.device-pages, .audit-pages, .task-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1rem 0; }
.device-pages .summary, .audit-pages .summary, .task-pages .summary { flex: 1 1 12rem; margin: 0; }
.task-filter input { flex: 1 1 18rem; max-width: 36rem; min-width: 0; font-family: var(--mono); }
.tasks td:nth-child(2) { min-width: 5.5rem; }

@media (max-width: 760px) {
  .device-pages .summary, .audit-pages .summary, .task-pages .summary { order: -1; flex-basis: 100%; }
  .device-pages button, .audit-pages button, .task-pages button { flex: 1; }
}

/* Policy summaries retain observed revision and scheduling facts at 390px. */
.policy-target { overflow-wrap: anywhere; }
.policy-pages { table-layout: fixed; }
.policy-pages th:first-child { width: 42%; }
.policy-pages td { min-width: 0; }
@media (max-width: 700px) {
  .policy-pages, .policy-pages tbody { display: block; width: 100%; }
  .policy-pages thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .policy-pages tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
  .policy-pages tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .policy-pages td { display: block; border: 0; padding: 0; }
  .policy-pages td:first-child { grid-column: 1 / -1; }
  .policy-pages td::before { content: attr(data-label); display: block; margin-bottom: .25rem; font-size: .8rem; font-weight: 550; color: var(--ink-soft); }
}

/* Application self-service */
.justification { max-width: 46rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.help.block { display: block; margin-top: 0.15rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
fieldset.field.pairing { border: 1px solid var(--rule-soft); border-radius: var(--radius); padding: 0.75rem 1rem; }

/* Fleet access stays clear before and after authentication. */
.lock-shell { width: min(100%, 66rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lock-intro > .lead { font-size: 1.35rem; line-height: 1.45; margin-top: 1rem; }
.lock-features { display: grid; gap: 1.3rem; margin-top: 2.5rem; max-width: 28rem; }
.lock-features dt { font-weight: 650; }
.lock-features dd { margin: .25rem 0 0; color: var(--ink-soft); }
.lock-panel > .status:empty { display: none; }
.lock-panel > h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.platform-support { margin-top: 1.75rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.platform-support summary { cursor: pointer; font-weight: 550; color: var(--ink-soft); }
.session-context { margin-top: auto; padding: .7rem .65rem 0; font-size: .82rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.deployment-banner { padding: .65rem 1rem; background: var(--amber-wash); border-bottom: 1px solid var(--amber); color: #674008; text-align: center; font-size: .9rem; overflow-wrap: anywhere; }
.deployment-banner strong { margin-right: .6rem; }
.deployment-banner .deployment-revision { margin-left: .6rem; }
.preview-access { margin-top: 1.25rem; padding: 1rem; background: var(--teal-wash); border-left: 3px solid var(--teal); font-size: .92rem; }
.preview-access button { margin-top: .75rem; }
.device-pages, .audit-pages, .task-pages { margin: 0; }
.empty pre { max-width: 100%; }
@media (max-width: 760px) {
  .lock { place-items: start center; padding: 1.5rem 1rem; }
  .lock-shell { max-width: 34rem; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .lock h1 { margin-top: .4rem; font-size: 2rem; }
  .lock-intro > .lead { font-size: 1rem; margin-top: .6rem; }
  .lock-intro > .lead br { display: none; }
  .lock-features { display: none; }
  .rail nav { scrollbar-width: thin; padding-bottom: .25rem; }
  .session-context { order: 3; flex-basis: 100%; padding: 0; margin: 0; font-size: .8rem; }
  .ledger-table.devices td:nth-child(2) { overflow-wrap: anywhere; }
  .view-actions > * { white-space: normal; }
  .dialog button { white-space: normal; }
}
