:root {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: break-word; container-type: inline-size; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea, summary { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: fixed; top: -120px; left: 16px; background: var(--white); color: var(--accent); padding: 12px 18px; border: 1px solid var(--accent); border-radius: var(--radius-control); z-index: 20; }
.skip:focus { top: 12px; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); padding: 26px 16px 20px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: -.7px; text-decoration: none; line-height: 1.3; }
.mark { width: 37px; height: 37px; display: grid; place-items: center; flex-shrink: 0; color: var(--white); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-brand); font-size: 13px; font-weight: 650; letter-spacing: -.5px; }
.brand small { display: block; color: var(--muted); margin-top: 3px; font-size: 9px; font-weight: 550; letter-spacing: 1.3px; }
.nav { display: grid; gap: 4px; margin: 36px 0; }
.nav a { display: flex; gap: 11px; align-items: center; position: relative; min-height: 40px; padding: 8px 12px; color: var(--nav-text); border-radius: var(--radius-control); text-decoration: none; font-size: 13px; font-weight: 500; transition: background-color 120ms, color 120ms; }
.nav a:hover { background: var(--nav-hover-bg); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--nav-active-bg); color: var(--accent-hover); font-weight: 650; }
.nav a[aria-current='page']::before { content: ''; position: absolute; top: 11px; bottom: 11px; left: 0; width: 3px; border-radius: var(--radius); background: var(--accent); }
.nav-icon { flex-shrink: 0; color: var(--nav-icon); }
.nav a[aria-current='page'] .nav-icon { color: var(--accent); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 16px 8px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.sidebar-foot strong { color: var(--nav-text); font-weight: 600; }
.main-wrap { min-width: 0; }
.topbar { min-height: 64px; border-bottom: 1px solid var(--line); padding: 10px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--white); }
.eyebrow { color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .85px; text-transform: uppercase; }
.topbar .eyebrow { font-size: 10px; letter-spacing: .7px; }
.user { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; max-width: 100%; font-size: 13px; }
.user > span { min-width: 0; overflow-wrap: anywhere; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 650; }
.text-button { min-height: 40px; border: 0; padding: 5px 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; }
.text-button:hover { color: var(--accent); }
.main { max-width: 1440px; margin: auto; padding: 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.page-head > * { min-width: 0; }
.page-head > .button { flex-shrink: 0; }
h1 { margin: 6px 0 10px; font: 700 34px/1.25 var(--font-display), ui-sans-serif, system-ui, sans-serif; letter-spacing: -.9px; overflow-wrap: anywhere; }
h2 { margin: 0 0 14px; font-size: 17px; line-height: 1.4; letter-spacing: -.4px; font-weight: 600; }
h3 { margin: 0 0 6px; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: -.15px; }
p { margin: 0 0 14px; }
.muted, .subtitle { color: var(--muted); }
.subtitle { max-width: 680px; margin: 0; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 8px 14px; border: 1px solid var(--accent); border-radius: var(--radius-control); background: var(--accent); color: var(--white); text-decoration: none; font-size: 13px; font-weight: 550; line-height: 1.5; cursor: pointer; white-space: normal; overflow-wrap: anywhere; text-align: center; transition: background-color 120ms, border-color 120ms; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--control-border); }
.button.secondary:hover { background: var(--secondary-hover-bg); border-color: var(--secondary-hover-border); color: var(--accent-hover); }
.button:disabled { background: var(--disabled-base-bg); border-color: var(--line); color: var(--disabled-base-text); cursor: not-allowed; opacity: 1; }
.button:disabled:hover { background: var(--disabled-base-bg); border-color: var(--line); color: var(--disabled-base-text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.actions > form { max-width: 100%; }
.label { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 8px; border-radius: var(--radius-label); background: var(--state-neutral-bg); color: var(--state-neutral-text); font-size: 11px; font-weight: 550; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
.label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.label.ok { background: var(--state-ok-bg); color: var(--state-ok-text); border: 1px solid var(--state-ok-border); padding: 2px 7px; }
.label.warn { background: var(--state-warn-bg); color: var(--state-warn-text); border: 1px solid var(--state-warn-border); padding: 2px 7px; }
.label.fail { background: var(--state-fail-bg); color: var(--state-fail-text); border: 1px solid var(--state-fail-border); padding: 2px 7px; }
.notice { border: 1px solid var(--notice-border); border-left: 3px solid var(--accent); background: var(--notice-bg); padding: 14px 16px; border-radius: var(--radius-control); margin-bottom: 20px; font-size: 13px; }
.warning { border-color: var(--state-warn-border); border-left-color: var(--state-warn-border); background: var(--warning-bg); color: var(--state-warn-text); }
.grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); gap: 24px; }
.grid > * { min-width: 0; }
.panel { min-width: 0; margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }
.panel-head > a { font-size: 12px; color: var(--muted); }
.panel h2, .panel h3 { min-width: 0; overflow-wrap: anywhere; }
.quiet { background: var(--quiet-bg); border-color: var(--line); }
.quiet .eyebrow { color: var(--accent); }
.quiet p { font-size: 13px; }
.exception { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.exception:first-of-type { border-top: 0; }
.exception:not(:has(> .number)) { grid-template-columns: minmax(0, 1fr) auto; }
.exception p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.exception > a { font-size: 12px; white-space: nowrap; }
.number { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--step-border); border-radius: var(--radius-control); background: var(--accent-soft); color: var(--accent); font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.metrics:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { min-width: 0; padding: 18px 24px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric strong { display: block; margin: 8px 0; font-size: 28px; font-weight: 550; line-height: 1.15; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); font-size: 12px; }
.metric h2 { margin-top: 10px; font-size: 17px; }
.metric p { color: var(--muted); font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 16px; border-left: 1px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; top: 6px; left: -4px; width: 7px; height: 7px; border: 2px solid var(--timeline-point-border); border-radius: 50%; background: var(--green); }
.timeline small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.timeline a { display: block; font-size: 12px; overflow-wrap: anywhere; }
.timeline p { margin: 6px 0 0; font-size: 12px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums; }
th { color: var(--muted); background: var(--observation-bg); font-size: 11px; font-weight: 550; letter-spacing: .15px; }
td, th { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child { border-radius: 4px 0 0 4px; }
th:last-child { border-radius: 0 4px 4px 0; }
tbody tr:hover { background: var(--row-hover-bg); }
tr:last-child td { border-bottom: 0; }
td strong { display: block; font-size: 13px; font-weight: 550; }
td small { display: block; color: var(--muted); font-size: 12px; }
.empty { max-width: 480px; padding: 24px 0; color: var(--muted); font-size: 13px; }
.steps { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { flex: 1; min-width: 0; padding-top: 10px; border-top: 2px solid var(--line); color: var(--muted); font-size: 12px; }
.steps li.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 550; }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--white); color: var(--ink); font-size: 13px; line-height: 1.5; transition: border-color 120ms, box-shadow 120ms; }
input:hover, select:hover, textarea:hover { border-color: var(--control-hover-border); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
input[type='checkbox'] { width: 18px; min-height: 18px; height: 18px; padding: 0; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--accent); }
.help { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.full { grid-column: 1 / -1; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.fact-grid dt, .facts dt { color: var(--muted); font-size: 12px; }
.fact-grid dd { margin: 5px 0; font-weight: 550; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 16px; }
.facts dd { margin: 0; font-weight: 550; font-variant-numeric: tabular-nums; }
.job { padding: 16px 0; border-top: 1px solid var(--line); }
.job h2 { font-size: 15px; margin-bottom: 8px; }
.job-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.job-head > * { min-width: 0; }
.job p { margin-top: 8px; font-size: 13px; }
.technical { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-technical); background: var(--technical-bg); color: var(--technical-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
details { margin-top: 10px; }
summary { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; padding: 8px 0; color: var(--technical-text); font-size: 12px; }
summary::before { content: '›'; font-size: 18px; line-height: 1; color: var(--summary-indicator); }
summary::marker { content: ''; }
details[open] > summary::before { transform: rotate(90deg); }
.qr svg { max-width: 200px; height: auto; }
.search { max-width: 350px; margin-bottom: 18px; }
.error-list { margin-bottom: 20px; padding: 16px 20px; border: 1px solid var(--state-fail-border); border-left: 3px solid var(--state-fail-border); border-radius: var(--radius-control); background: var(--error-bg); color: var(--state-fail-text); font-size: 13px; }
.error-list ul { margin: 5px 0 0; padding-left: 18px; }
.auth { max-width: 460px; margin: 9vh auto; padding: 24px; }
.auth .brand { margin-bottom: 32px; }
.auth .panel { padding: 28px; }
.auth h1 { font-size: 26px; }
.auth input { margin-bottom: 18px; }
.footnote { margin-top: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 204px minmax(0, 1fr); }
  .sidebar { padding: 24px 12px; }
  .main { padding: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: flex-start; }
}

/* Container rules preserve the same layout under magnification. */
@container (max-width: 700px) {
  .shell { display: block; }
  .sidebar { padding: 16px 16px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 20px; }
  .sidebar .brand small { display: none; }
  .nav { display: flex; flex-wrap: wrap; margin: 16px -4px 0; padding: 2px 4px 6px; gap: 4px; }
  .nav a { min-height: 44px; flex: 1 0 calc(33.333% - 4px); justify-content: center; padding: 10px 12px; white-space: nowrap; font-size: 12px; }
  .nav-icon { display: none; }
  .nav a[aria-current='page']::before { display: none; }
  .sidebar-foot { display: none; }
  .topbar { min-height: 56px; padding: 6px 16px; }
  .topbar .eyebrow { font-size: 9px; letter-spacing: .3px; }
  .user { gap: 8px; font-size: 12px; }
  .user .avatar { display: none; }
  .main { padding: 24px 16px; }
  .page-head { display: block; margin-bottom: 24px; }
  .page-head .button { margin-top: 16px; }
  h1 { font-size: 26px; letter-spacing: -.7px; }
  h2 { font-size: 16px; }
  .metrics, .metrics:has(> :last-child:nth-child(2)) { grid-template-columns: minmax(0, 1fr); }
  .metric { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; }
  .metric strong { margin: 0; font-size: 24px; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .metric small { margin-left: auto; }
  .metric h2 { margin: 0; }
  .metric p { width: 100%; margin: 0; }
  .panel { padding: 20px; margin-bottom: 20px; }
  .exception { grid-template-columns: 25px minmax(0, 1fr); }
  .exception:has(> .number) > .label { grid-column: 2; justify-self: start; }
  .exception > a { grid-column: 2; }
  .form-grid, .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 8px; }
  .steps li { font-size: 10px; }
  .button, input, select, .text-button, summary { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
  input[type='checkbox'] { min-height: 18px; }
  .actions { gap: 8px; }
  .maintenance-sites, .maintenance-sites tbody { display: block; }
  .maintenance-sites thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .maintenance-sites tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .maintenance-sites tr:last-child { border-bottom: 0; }
  .maintenance-sites td { display: block; padding: 8px 0; border: 0; overflow-wrap: anywhere; }
  .maintenance-sites td:first-child { padding-top: 0; }
  .maintenance-sites td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 550; }
  .maintenance-sites td .label { max-width: none; overflow-wrap: normal; }
  .auth { margin: 4vh auto; padding: 20px 16px; }
  .auth .panel { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Existing tasks: context, outcome and action stay together. */
.observation-summary { margin: 20px 0; padding: 16px; background: var(--observation-bg); border: 1px solid var(--line); border-radius: var(--radius-control); }
.observation-summary h2 { font-size: 14px; margin-bottom: 10px; }
.observation-summary .fact-grid { margin: 0; }
.observation-summary p:last-child { margin-bottom: 0; }
.action-reason { padding: 10px 12px; background: var(--warning-bg); border-left: 3px solid var(--state-warn-border); color: var(--state-warn-text); }
.backup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; align-items: start; }
.backup-row > .job-head, .backup-row > details { grid-column: 1 / -1; }
.backup-row > form { grid-column: 2; grid-row: 2 / span 3; margin-top: 8px; max-width: 270px; }
.backup-row > p { grid-column: 1; }
.backup-row > form ~ form { grid-column: 1 / -1; grid-row: auto; max-width: none; }
.history-entry { padding: 16px 0; border-top: 1px solid var(--line); }
.history-entry > a { font-weight: 600; overflow-wrap: anywhere; }
.history-entry > .job { border-top: 0; padding-bottom: 0; }
.customer-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; }
.customer-sites p { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.customer-sites a { overflow-wrap: anywhere; min-width: 0; }
.customer-sites .label { flex-shrink: 0; }
.field-error { margin: 6px 0; color: var(--state-fail-text); font-size: 12px; }
.field-error p { margin: 0; }
[aria-invalid='true'] { border-color: var(--invalid-border); }
@container (max-width: 700px) {
  .backup-row, .customer-group { display: block; }
  .backup-row > form { max-width: none; margin: 12px 0; }
  .customer-sites p { flex-wrap: wrap; }
  .observation-summary { padding: 12px; }
}

/* Capacity and readiness reuse the existing site and environment views. */
.readiness-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:20px 0; }
.readiness-group { min-width:0; }
.readiness-group ul { list-style:none; padding:0; margin:0; }
.readiness-group li + li { border-top:1px solid var(--line); }
.readiness-group a { display:block; min-height:44px; padding:12px 4px; border-radius:var(--radius-control); text-decoration:none; overflow-wrap:anywhere; }
.readiness-group a:hover { background:var(--paper); }
.readiness-group strong, .readiness-group small { display:block; }
.readiness-group .label { margin:6px 0; }
.readiness-group small { color:var(--muted); }
.readiness-forecast { border-top:1px solid var(--line); padding-top:12px; }
.readiness-forecast > summary, .capacity-basis > summary { min-height:44px; padding:10px 4px; cursor:pointer; font-weight:600; overflow-wrap:anywhere; }
.readiness-phases { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding-left:20px; }
.readiness-phases li { min-width:0; padding-right:8px; }
.readiness-phases strong { display:block; }
.readiness-phases .label { margin:6px 0; }
.readiness-next { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:20px; }
.readiness-next .button, .readiness-forecast .button, .capacity-basis .button { min-height:44px; }
.capacity-server + .capacity-server { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.capacity-server { min-width:0; scroll-margin-top:24px; }
.capacity-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin:16px 0; }
.capacity-facts > div, .copy-readiness-facts > div, .capacity-basis dl > div, .readiness-basis > div { min-width:0; }
.capacity-facts dt, .copy-readiness-facts dt, .capacity-basis dt, .readiness-basis dt { color:var(--muted); }
.capacity-facts dd, .copy-readiness-facts dd, .capacity-basis dd, .readiness-basis dd { margin:4px 0; overflow-wrap:anywhere; }
.capacity-facts dd { font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; }
.capacity-facts small, .copy-readiness-facts small { display:block; color:var(--muted); }
.capacity-basis dl, .readiness-basis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; }
.copy-readiness-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 20px; }
.test-site-safety { border-top:1px solid var(--line); margin-top:20px; padding-top:16px; min-width:0; }
.test-safety-rows > div { display:grid; grid-template-columns:minmax(160px,220px) minmax(0,1fr); gap:12px; padding:12px 0; border-bottom:1px solid var(--line); min-width:0; }
.test-safety-rows dt, .test-safety-rows dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.test-safety-rows dd .help { margin:6px 0 0; }
.test-site-safety summary { min-height:44px; padding-block:12px; }
@media (max-width:767px) { .test-safety-rows > div { grid-template-columns:minmax(0,1fr); gap:6px; } }
@media(max-width:1000px) {
  .readiness-groups, .readiness-phases, .capacity-facts, .copy-readiness-facts, .capacity-basis dl, .readiness-basis { grid-template-columns:1fr; }
  .readiness-groups { gap:16px; }
}

/* Routine tasks first; maintenance tools remain available on demand. */
.basic-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:0; margin:20px 0 8px; list-style:none; }
.basic-steps a { display:flex; align-items:flex-start; gap:10px; color:var(--ink); border-radius:var(--radius); padding:8px 4px; text-decoration:none; }
.basic-steps a:hover { background:var(--paper); }
.basic-steps strong, .basic-steps small { display:block; }
.basic-steps small { color:var(--muted); margin-top:4px; }
.step-number { display:grid; place-items:center; width:28px; height:28px; flex-shrink:0; border:1px solid var(--line); border-radius:50%; font-weight:600; }
.completed .step-number { color:var(--accent); background:var(--accent-soft); border-color:transparent; }
.advanced-tools > summary { font-weight:600; cursor:pointer; min-height:28px; }
.advanced-tools[open] > summary { margin-bottom:16px; }
.advanced-tools > .panel { border:0; padding:16px 0; margin-bottom:0; box-shadow:none; }
#site-setup, #backups, #restored-copies { scroll-margin-top:24px; }
@media(max-width:1100px) { .basic-steps { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .basic-steps { grid-template-columns:1fr; gap:4px; } }

.site-preview { display:block; width:100%; min-height:440px; border:1px solid var(--line); border-radius:var(--radius); background:white; margin-top:16px; }

.history-filters { display:grid; grid-template-columns: minmax(180px,2fr) minmax(130px,1fr) minmax(170px,1fr); gap:16px; align-items:end; margin-bottom:20px; }
.history-filters > .actions { grid-column:1 / -1; margin:0; }
.work-progress { border-color:var(--work-surface-border); background:var(--work-surface); }
.work-progress progress { display:block; width:100%; height:6px; accent-color:var(--accent); }
.work-elapsed { font-variant-numeric:tabular-nums; margin-left:8px; }
.work-result-dialog { width:min(520px, calc(100% - 32px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid var(--line); border-radius:var(--radius-dialog); color:var(--ink); background:var(--white); }
.work-result-dialog::backdrop { background:var(--dialog-backdrop); }
.work-result-dialog .notice { margin:0; padding:28px; border:0; border-radius:0; }
.work-result-dialog h2 { font-size:21px; line-height:1.35; margin:0 0 16px; }
.work-result-open { margin-bottom:16px; }
@media(max-width:700px) { .history-filters { grid-template-columns:minmax(0,1fr); } }

/* Daily maintenance uses existing status colors and compact component spacing. */
.maintenance-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:24px 0; }
.maintenance-facts > div { min-width:0; }
.maintenance-facts h3 { margin:0 0 12px; }
.maintenance-facts small { display:block; margin-top:8px; }
.maintenance-time { font-variant-numeric:tabular-nums; margin:8px 0; }
.maintenance-attention { border-top:1px solid var(--line); padding-top:18px; }
.maintenance-attention li { margin:8px 0; }
.maintenance-work { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:10px 0; border-top:1px solid var(--line); }
.daily-maintenance a, .daily-maintenance h2 { overflow-wrap:anywhere; }
[id^="work-"] { scroll-margin-top:24px; }
@media(max-width:900px) { .maintenance-facts { grid-template-columns:1fr; gap:20px; } .maintenance-facts > div+div { border-top:1px solid var(--line); padding-top:20px; } }
@media(max-width:540px) { .maintenance-work { align-items:flex-start; flex-direction:column; } }
.wordpress-maintenance { border-top:1px solid var(--line); padding:18px 0; }
.wordpress-maintenance details > summary { cursor:pointer; font-weight:550; }
.wordpress-versions { margin-top:16px; }

/* Keep the metric linked to the complete list, including keyboard navigation. */
.metric-link { color: inherit; text-decoration: none; }
.metric-link:hover { background: var(--accent-soft); }
.backup-attention { scroll-margin-top: 24px; }
.backup-attention:target { outline: 2px solid var(--accent); outline-offset: 3px; }
.backup-attention-row > div { min-width: 0; }
.backup-attention-row p, .backup-attention-row li { overflow-wrap: anywhere; }
.backup-attention-row ul { margin: 8px 0 0; padding-left: 20px; }
.backup-attention-ack { margin-top: 12px; }
.maintenance-note-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.maintenance-note-panel { min-width: 0; overflow-wrap: anywhere; }
.maintenance-note-panel:has([data-maintenance-note-editor][open]) [data-maintenance-note-read] { display: none; }
.maintenance-note-editor > summary, .maintenance-note-editor .button { min-height: 44px; }
.maintenance-note-editor > form { margin-top: 16px; }
.maintenance-note-editor .actions { flex-wrap: wrap; }
.backup-attention-ack .button { min-height: 44px; }
.backup-attention-site { margin-block: 20px; overflow-wrap: anywhere; }
.backup-attention-row:target, .backup-attention-site:target { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  #backup-attention .backup-attention-row { grid-template-columns: minmax(0, 1fr); }
  #backup-attention .backup-attention-row > a { grid-column: 1; white-space: normal; }
}

.onboarding-choice { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 24px; }
.onboarding-choice legend { font-weight: 600; padding: 0 6px; }
.onboarding-choice input[type='radio'] { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--accent); }

/* Terminal: shared visual foundation; application state and controls remain unchanged. */
:root { color-scheme: dark; font-size: 16px; }
body { background-image: var(--page-texture); }
h1, h2, h3, .brand, .metric strong { font-family: var(--font-display), ui-sans-serif, sans-serif; font-weight: 700; }
h2 { font-size: 21px; letter-spacing: 0; }
h3 { font-size: 17px; letter-spacing: 0; }
.shell { grid-template-columns: 248px minmax(0,1fr); }
.sidebar { padding: 28px 16px 20px; }
.brand { font-size: 30px; gap: 5px; letter-spacing: -1px; align-items: baseline; }
.mark { background: transparent; color: var(--accent); border: 0; border-radius: 0; width: auto; height: auto; font: 700 36px/1.1 var(--font-display),sans-serif; letter-spacing: -1px; }
.brand small { font-family: var(--font-mono),monospace; font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.nav { margin: 30px 0; gap: 0; }
.nav a { min-height: 62px; border-radius: var(--radius); border-bottom: 1px solid var(--nav-divider); font-size: 17px; font-weight: 400; }
.nav a[aria-current='page'] { background: var(--nav-active-bg); color: var(--nav-active-text); }
.nav a[aria-current='page']::before { left: 0; top: 13px; bottom: 13px; width: 2px; }
.nav-icon { width: 25px; height: 25px; }
.sidebar-foot { font-size: 13px; }
.topbar { min-height: 44px; padding: 8px 24px; background: var(--topbar-bg); }
.topbar .eyebrow { font-size: 12px; letter-spacing: 1px; }
.avatar { border-radius: var(--radius); border: 1px solid var(--avatar-border); }
.main { max-width: 1600px; padding: 24px; }
.button { min-height: 44px; border-radius: var(--radius); font-size: 15px; font-weight: 400; border-color: var(--primary-border); color: var(--on-primary); }
.button.secondary { border-color: var(--secondary-border); color: var(--ink); background: var(--secondary-bg); }
.button.secondary:hover { border-color: var(--accent); background: var(--secondary-hover-surface); color: var(--secondary-hover-text); }
.button:disabled, .button:disabled:hover { color: var(--muted); background: var(--disabled-bg); border-color: var(--disabled-border); }
.panel, .metrics, .notice, .observation-summary, .technical, input, select, textarea, .error-list, .onboarding-choice { border-radius: var(--radius); }
input, select, textarea { border-color: var(--control-border); min-height: 44px; font-size: 15px; }
.panel { padding: 20px; margin-bottom: 20px; }
.label { border-radius: var(--radius); font-size: 13px; font-weight: 400; }
.label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.label:has(> .icon)::before { content: none; display: none; }
.eyebrow, th { font-size: 12px; letter-spacing: .6px; font-weight: 400; }
.help, .muted, .subtitle, .exception p, td small, .timeline small { font-size: 14px; }
.text-button, .panel-head > a, .exception > a, .timeline a, label, .empty { font-size: 14px; }
.technical { font-family: var(--font-mono),monospace; font-size: 13px; }
summary { color: var(--summary-text); font-size: 14px; }
.metric strong { font-size: 32px; }
.metric small { font-size: 13px; }
th { background: var(--table-head-bg); color: var(--table-head-text); }
td { font-size: 15px; }
td strong { font-family: var(--font-display),sans-serif; font-size: 16px; }
.timeline li::before { border-color: var(--white); }
.skip { border-radius: 0; color: var(--accent); }
.terminal-overview { min-width: 0; }
.terminal-hero { position: relative; min-height: 216px; margin: -8px -12px 24px; padding: 12px 12px 24px; border-bottom: 1px solid var(--line); overflow: hidden; }
.terminal-hero-copy { position: relative; z-index: 1; width: 59%; }
.terminal-hero h1 { font-size: clamp(30px,3vw,44px); line-height: 1.15; margin: 12px 0 8px; letter-spacing: -.6px; }
.terminal-route { display: table; padding: 3px 12px; margin-bottom: 18px; border: 1px solid var(--secondary-border); color: var(--route-text); font-size: 16px; letter-spacing: 1px; }
.terminal-hero .eyebrow { display: block; }
.terminal-hero .subtitle { max-width: 560px; color: var(--hero-text); font-size: 16px; }
.terminal-hero .button { margin-top: 18px; padding: 9px 18px; font-size: 17px; }
.terminal-infrastructure { position: absolute; right: -4px; bottom: 10px; width: 48%; height: auto; aspect-ratio: 1200 / 405; background: var(--hero-art) right bottom / contain no-repeat; }
.terminal-command-grid { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(270px,1fr); gap: 12px; align-items: start; margin-bottom: 0; }
.terminal-panel-kicker { margin: -20px -20px 16px; padding: 4px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.terminal-priority .panel-head { gap: 8px; margin-bottom: 16px; }
.terminal-priority h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.terminal-warning-icon { width: 26px; height: 26px; color: var(--state-warn-text); flex-shrink: 0; }
.terminal-environment { color: var(--muted); font-size: 12px; }
.terminal-alert-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: stretch; }
.terminal-alert { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--card-border); padding: 3px; background: var(--card-bg); }
.terminal-alert-identity { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 10px; padding: 12px 8px; border-top: 3px solid var(--monogram-border); border-bottom: 1px solid var(--line); background: var(--card-bg); }
.terminal-monogram { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--monogram-border); border-radius: var(--radius); color: var(--monogram-text); background: var(--monogram-bg); box-shadow: 0 0 0 1px var(--paper); font: 600 24px/1 var(--font-display),sans-serif; letter-spacing: 0; }
.terminal-monogram-letter { display: block; line-height: 1; letter-spacing: 0; }
.terminal-monogram--moss { --monogram-bg: #3b6555; --monogram-text: #f0f6e8; --monogram-border: #b3d39a; }
.terminal-monogram--petrol { --monogram-bg: #326774; --monogram-text: #edf6f6; --monogram-border: #a6d4d9; }
.terminal-monogram--plum { --monogram-bg: #6b507b; --monogram-text: #f7edfa; --monogram-border: #d0b0df; }
.terminal-monogram--copper { --monogram-bg: #795741; --monogram-text: #fff2e4; --monogram-border: #dfb28e; }
.terminal-monogram--slate { --monogram-bg: #4d6581; --monogram-text: #f0f5fc; --monogram-border: #bccde2; }
.terminal-monogram--sand { --monogram-bg: #716739; --monogram-text: #fff9df; --monogram-border: #d8cb91; }
@media (forced-colors: active) { .terminal-monogram { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; } }
.terminal-alert-identity > div { min-width: 0; }
.terminal-alert h3 { margin: 0; font-size: 17px; line-height: 1.15; }
.terminal-alert-identity p { margin: 4px 0 0; color: var(--card-context); font-size: 12px; overflow-wrap: anywhere; }
.terminal-alert-body { display: flex; flex: 1; flex-direction: column; padding: 12px 8px 8px; }
.terminal-alert-state { display: flex; align-items: center; gap: 8px; color: var(--state-warn-text); font-size: 14px; }
.terminal-alert-state.failed { color: var(--state-fail-text); }
.terminal-alert-state.draft { color: var(--draft-text); }
.terminal-alert-state > .icon { width: 23px; height: 23px; }
.terminal-alert-message { flex: 1; margin-bottom: 16px; color: var(--card-text); font-size: 14px; }
.terminal-alert .button { width: 100%; font-size: 14px; padding: 8px 6px; gap: 6px; margin-top: auto; }
.terminal-alert-empty { grid-column: 1 / -1; padding: 24px 4px; }
.terminal-jobs .panel-head h2 { font-size: 24px; }
.terminal-jobs .timeline li { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
.terminal-jobs .timeline li::before { display: none; }
.terminal-jobs .timeline small { font-size: 12px; }
.terminal-jobs .timeline a { color: var(--work-link-text); font-size: 14px; line-height: 1.4; text-decoration: none; }
.terminal-jobs .timeline a:hover { color: var(--accent); text-decoration: underline; }
.terminal-secondary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
@media (max-width: 1200px) {
  .terminal-command-grid { grid-template-columns: minmax(0,1fr); }
  .terminal-jobs .timeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { padding: 18px 16px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-foot { display: none; }
  .brand { font-size: 28px; }
  .mark { font-size: 32px; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; }
  .nav a { min-height: 44px; font-size: 14px; padding: 8px; flex: 1 0 calc(33.333% - 4px); }
  .topbar { min-height: 44px; padding: 8px 16px; }
  .main { padding: 20px 16px; }
  .terminal-hero h1 { font-size: 36px; }
  .terminal-hero-copy { width: 62%; }
  .terminal-infrastructure { width: 43%; }
  .terminal-alert-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .terminal-secondary { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media (max-width: 540px) {
  .terminal-hero { padding-bottom: 106px; min-height: 0; }
  .terminal-hero-copy { width: 100%; }
  .terminal-hero h1 { font-size: 32px; }
  .terminal-infrastructure { width: 100%; max-width: 350px; height: 98px; right: 0; bottom: 0; background-position: right bottom; }
  .terminal-alert-grid, .terminal-jobs .timeline { grid-template-columns: minmax(0,1fr); }
  .terminal-alert h3 { font-size: 20px; }
  .terminal-alert-identity p { font-size: 14px; }
  .terminal-alert-message, .terminal-alert-state { font-size: 16px; }
  .terminal-alert .button { font-size: 16px; }
  .terminal-route { font-size: 14px; }
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .terminal-alert, .panel, .button, .label, .terminal-route, input, select, textarea { border-color: CanvasText; } :focus-visible { outline-color: Highlight; } .nav a[aria-current='page'] { outline: 2px solid Highlight; } }

/* One decorative SVG per explicit state; existing text remains the accessible name. */
.icon { display: inline-block; width: 20px; height: 20px; vertical-align: -.2em; flex-shrink: 0; }
.icon-cutout { stroke: var(--paper); fill: none; }
.nav-icon { width: 25px; height: 25px; }
.label > .icon { width: 18px; height: 18px; }
.terminal-priority .terminal-warning-icon, .terminal-jobs h2 > .icon { width: 26px; height: 26px; }
@container (max-width: 700px) { .nav-icon { display: none; } }
@media (forced-colors: active) { .icon-cutout { stroke: Canvas; } }

/* Terminal site list only: preserve the existing data/search hooks and other tables. */
.terminal-sites-panel { container-name: terminal-sites; container-type: inline-size; }
.terminal-sites-kicker { display: flex; justify-content: space-between; }
.terminal-sites-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.terminal-sites-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; min-width: 0; flex: 1 1 300px; padding-bottom: 8px; }
.terminal-sites-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; font-weight: 600; }
.terminal-sites-heading h2 > .icon { width: 24px; height: 24px; }
.terminal-sites-heading > a { color: var(--muted); font-size: 14px; }
.terminal-sites-controls { display: flex; align-items: flex-end; gap: 18px; flex: 0 1 490px; min-width: 0; }
.terminal-sites-count { color: var(--muted); font-size: 14px; white-space: nowrap; padding-bottom: 10px; }
.terminal-sites-search { flex: 1 1 380px; min-width: 0; }
.terminal-sites-search label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.terminal-sites-search-field { position: relative; }
.terminal-sites-search-field > .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.terminal-sites-search .search { width: 100%; max-width: none; margin: 0; padding-left: 38px; }
.terminal-sites-panel:has([data-search]:placeholder-shown) [data-search-status] { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
.terminal-sites-panel .maintenance-sites { table-layout: fixed; min-width: 1100px; }
.terminal-sites-panel .maintenance-sites th { padding: 8px; border: 1px solid var(--line); border-radius: 0; }
.terminal-sites-panel .maintenance-sites td { padding: 8px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
.terminal-sites-panel .maintenance-sites th:nth-child(1) { width: 16%; }
.terminal-sites-panel .maintenance-sites th:nth-child(2) { width: 29%; }
.terminal-sites-panel .maintenance-sites th:nth-child(3) { width: 17%; }
.terminal-sites-panel .maintenance-sites th:nth-child(4) { width: 19%; }
.terminal-sites-panel .maintenance-sites th:nth-child(5) { width: 19%; }
.terminal-sites-panel .maintenance-sites small { font-size: 13px; line-height: 1.35; }
.terminal-sites-panel .terminal-site-domain { font-size: 13px; white-space: nowrap; }
.terminal-site-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.terminal-site-identity strong { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.terminal-site-initial { display: inline-grid; place-items: center; flex: 0 0 30px; height: 32px; border: 1px solid var(--monogram-border); border-radius: var(--radius); color: var(--monogram-text); background: var(--monogram-bg); font: 600 22px/1 var(--font-display),sans-serif; }
.terminal-site-initial::before { content: attr(data-site-initial); }
.terminal-sites-panel .terminal-site-action { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; line-height: 1.35; }
.terminal-sites-panel .terminal-site-action-text { min-width: 0; white-space: nowrap; }
.terminal-sites-panel .terminal-site-action > .icon { flex-shrink: 0; width: 16px; height: 16px; }
.terminal-sites-panel .terminal-site-identity a, .terminal-sites-panel .terminal-site-action { text-decoration: none; }
.terminal-sites-panel .terminal-site-identity a:hover, .terminal-sites-panel .terminal-site-identity a:focus-visible, .terminal-sites-panel .terminal-site-action:hover, .terminal-sites-panel .terminal-site-action:focus-visible { text-decoration: underline; }
.terminal-sites-panel .terminal-table-status { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; font-size: 14px; line-height: 1.35; }
.terminal-sites-panel .terminal-table-status > span { min-width: 0; }
.terminal-sites-panel .terminal-table-status.warn { color: var(--state-warn-text); }
.terminal-sites-panel .terminal-table-status.ok > .icon { color: var(--state-ok-text); }
.terminal-sites-panel .terminal-table-status > .icon { width: 21px; height: 21px; }
@container terminal-sites (max-width: 960px) {
  .terminal-sites-header { align-items: stretch; gap: 16px; }
  .terminal-sites-heading { flex-basis: 100%; }
  .terminal-sites-controls { flex-basis: 100%; }
  .terminal-sites-search { flex: 1 1 100%; }
  .terminal-sites-panel .maintenance-sites, .terminal-sites-panel .maintenance-sites tbody { display: block; min-width: 0; }
  .terminal-sites-panel .terminal-site-domain, .terminal-sites-panel .terminal-site-action-text { white-space: normal; }
  .terminal-sites-panel .maintenance-sites thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .terminal-sites-panel .maintenance-sites tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .terminal-sites-panel .maintenance-sites tr:last-child { border-bottom: 0; }
  .terminal-sites-panel .maintenance-sites td { display: block; padding: 6px 0; border: 0; overflow-wrap: anywhere; }
  .terminal-sites-panel .maintenance-sites td:first-child { padding-top: 0; }
  .terminal-sites-panel .maintenance-sites td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; }
  .terminal-sites-panel .maintenance-sites td:first-child::before { content: none; }
  .terminal-sites-panel .maintenance-sites td .label { max-width: 100%; overflow-wrap: anywhere; }
}

/* Shared color contrast only: preserve tag dimensions with compensated border padding. */
@media (forced-colors: active) {
  .terminal-monogram, .terminal-site-initial, .label.ok, .label.warn, .label.fail, .warning, .action-reason, .error-list { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
}

/* Existing customer identity alongside the full site domain. */
.site-header-domain, .monitor-site-identity .help { overflow-wrap: anywhere; }
.monitor-site-identity { min-width: 0; }
.monitor-site-identity .help { margin: 4px 0 0; }
.terminal-jobs .terminal-work-organization { display: block; font: 600 15px/1.4 var(--font-display),sans-serif; }
.terminal-jobs .terminal-work-domain { display: block; color: var(--muted); font-size: 13px; }
.terminal-jobs .terminal-work-kind { display: block; font-size: 14px; }

/* Keep the destination visible inside a directly focused site work block. */
.work-context { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.work-context .eyebrow { margin: 0 0 4px; }
.work-context > .help { margin: 4px 0 0; }
.work-context-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }

[data-wizard].wizard-at-summary > .panel { max-width:52rem; }
.wizard-summary { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin-bottom:16px; }
.wizard-summary > *, .summary-rows > div { min-width:0; }
.wizard-summary .summary-domain { font-size:24px; font-weight:700; margin:0; overflow-wrap:anywhere; }
.summary-rows { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin:0; }
.summary-rows > div { display:grid; grid-template-columns:140px minmax(0,1fr); gap:8px; }
.summary-rows dt, .summary-rows dd { margin:0; overflow-wrap:anywhere; }
.summary-rows dt { color:var(--muted); }
.continuation-flow { display:grid; gap:16px; max-width:52rem; min-width:0; }
.continuation-flow > *, .continuation-flow .summary-rows dd { min-width:0; overflow-wrap:anywhere; }
.continuation-flow .job-head { flex-wrap:wrap; }
.continuation-flow h3 { margin-top:20px; }
.continuation-flow .button, .continuation-flow .checkline, .continuation-flow summary, .continuation-history summary, .continuation-refresh { min-height:44px; }
.continuation-link { display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere; }
.wizard-summary h3, [data-summary-step] > h3 { font-size:16px; margin:0 0 8px; }
.wizard-summary [data-summary-value="scope"] { white-space:pre-wrap; }
[data-summary-service-empty], .summary-effects p { margin:0 0 8px; }
.summary-effects { margin-bottom:16px; }
[data-summary-step] > h2 { margin-bottom:8px; }
[data-summary-step] > [data-summary-next] { margin:0 0 16px; }
.wizard-at-summary .actions { margin-top:0; gap:8px; }
.wizard-at-summary .actions > a { background:transparent; border-color:transparent; color:var(--muted); }
@media (max-width:767px) { .summary-rows > div { grid-template-columns:minmax(0,1fr); gap:2px; } }


.service-option { display:flex; gap:12px; align-items:flex-start; min-height:44px; padding:8px 0; cursor:pointer; }
.service-option span { min-width:0; }
.service-option strong { display:block; font-size:16px; }
.service-option small { display:block; font-size:14px; font-weight:400; }
.service-option input { flex:0 0 auto; margin-top:5px; }
.service-notes, [data-summary-value="service-items"] { white-space:pre-wrap; overflow-wrap:anywhere; }

.site-context { display:block; color:var(--muted); font-size:14px; font-weight:400; margin:4px 0; overflow-wrap:anywhere; }
.site-primary { overflow-wrap:anywhere; }
.terminal-alert-identity p.site-context { font-size:14px; color:var(--muted); margin:0 0 4px; }
.terminal-alert-identity h3.site-primary { font-size:17px; line-height:1.3; }
.terminal-alert-identity p.site-environment { color:var(--muted); font-size:12px; }
.terminal-site-identity > div { min-width:0; }
.terminal-site-identity .site-context { font-size:12px; margin:0 0 3px; }
.terminal-site-identity .site-primary { display:block; font-size:15px; white-space:normal; }
.terminal-work-organization.site-context { font-size:12px; font-weight:400; }
.terminal-work-domain { display:block; font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.terminal-sites-panel .maintenance-sites { min-width:0; }
.terminal-sites-panel .maintenance-sites th:nth-child(1) { width:34%; }
.terminal-sites-panel .maintenance-sites th:nth-child(2) { width:14%; }
.terminal-sites-panel .maintenance-sites th:nth-child(3) { width:16%; }
.terminal-sites-panel .maintenance-sites th:nth-child(4), .terminal-sites-panel .maintenance-sites th:nth-child(5) { width:18%; }
@media(max-width:640px) { .terminal-alert-identity h3.site-primary { font-size:18px; } }

/* One native theme control, shared by both skins. It does not submit or navigate. */
.topbar { flex-wrap: wrap; gap: 8px 16px; }
.theme-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.theme-switch > span { color: var(--muted); margin-right: 2px; }
.theme-button { min-width: 72px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--control-border); border-radius: var(--radius); color: var(--ink); background: var(--white); cursor: pointer; }
.theme-button:hover { background: var(--secondary-hover-surface); border-color: var(--accent); }
.theme-button[aria-pressed='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:640px) { .topbar .user { flex-wrap: wrap; } .theme-switch { width: 100%; } }

.terminal-route [data-theme-name] { text-transform: uppercase; }

/* Current site facts and a selected terminal work have distinct roles. */
.site-current-state .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-current-state .fact-grid > div { min-width: 0; }
.site-current-state small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 400; }
.site-current-next { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.site-current-next > span { color: var(--muted); font-size: 14px; }
.site-current-next a, .work-details-link, .work-capacity-next > a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.work-progress:has(.work-compact-summary) { padding: 16px 20px; }
.work-compact-summary { display: grid; gap: 10px; min-width: 0; }
.work-compact-summary > p, .work-compact-summary > h2 { margin: 0; }
.work-compact-summary h2 { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.work-compact-summary h2 > span { font-size: 16px; font-weight: 400; }
.work-compact-result { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.work-capacity-next { margin: 16px 0; }
.site-current-state, #site-current-title, #basic-progress-title, [data-work-anchor] { scroll-margin-top: 24px; }
.anchor-highlight { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); background-color: color-mix(in srgb, var(--white) 92%, var(--accent)); transition: none; }
[tabindex='-1']:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .site-current-state .fact-grid { grid-template-columns: minmax(0, 1fr); } }

.observation-summary > .test-site-safety:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.work-summary-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.work-summary-actions a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

/* Customer-list search feedback uses the full panel, retaining the shared live nodes. */
.customers-search-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 16px; margin-bottom: 20px; }
.customers-search-field { min-width: 0; grid-column: 1; grid-row: 1; }
.customers-search-field .search { width: 100%; max-width: 350px; margin: 0; }
.customers-search-header [data-search-status] { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; text-align: right; }
.customers-search-header [data-search-empty] { grid-column: 1; max-width: none; margin: 0; padding: 12px 0; }
.customers-search-header [data-search-clear] { grid-column: 2; align-self: center; justify-self: end; min-height: 44px; }
.customers-panel .customer-contact-details { display: grid; gap: 6px; margin: 8px 0 0; font-size: 14px; }
.customers-panel .customer-contact-details > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.customers-panel .customer-contact-details dt { color: var(--muted); }
.customers-panel .customer-contact-details dd { margin: 0; min-width: 0; max-width: 100%; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .customers-search-field { grid-column: 1 / -1; }
  .customers-search-header [data-search-status] { grid-column: 1 / -1; grid-row: 2; }
  .customers-search-header [data-search-empty], .customers-search-header [data-search-clear] { grid-column: 1 / -1; }
}

/* Keep the customer search in place when a tablet result list becomes short. */
@media (max-width: 900px) { .shell:has(.customers-panel) { grid-template-rows: auto 1fr; } }

/* A service has one visible saved or editing presentation; native details also works without JS. */
.service-panel:has(> .service-editor[open]) > [data-service-saved] { display: none; }
.service-editor[data-service-enhanced][open] > summary { display: none; }
.service-editor > h3 { margin-top: 16px; }
.service-editor > summary, .service-editor .actions > button { min-height: 44px; }
.customer-service-site { margin-bottom: 16px; }
.customer-import-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; font-size: 14px; }
.customer-import-status .help { margin: 0; }
.customer-import-status a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

.site-list-view{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0}.site-list-view>div{flex:1 1 220px;max-width:320px}.site-list-view label{display:block}.site-list-view select{width:100%}
