/* Dael portal. Colours follow the soulbit.nl tokens (src/styles/global.css in soulbit-site). Fonts: fonts.css. */
:root {
  --charcoal: #4e4e4e;
  --ink: #2f2f2f;
  --orange: #ff914d;
  --orange-ink: #b4530f;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --text: #333333;
  --muted: #6b6b6b;
  --line: #dedede;
  --edge: #8c8c8c;
  --ok: #1e7a3c;
  --warn: #8a5a00;
  --error: #b42318;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --charcoal: #d6d6d6;
    --ink: #f3f3f3;
    --orange-ink: #ff914d;
    --paper: #1a1a1a;
    --mist: #262626;
    --text: #e0e0e0;
    --muted: #a9a9a9;
    --line: #3a3a3a;
    --edge: #767676;
    --ok: #6fcf8f;
    --warn: #f2c14e;
    --error: #ff8a80;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
/* Images never exceed their container, even when a page stylesheet fails to load. */
img { max-width: 100%; height: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: var(--orange-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label.button:focus-within, .table-scroll:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  /* Two tones, so the ring has at least 3:1 on every background (WCAG 1.4.11): the ink ring in the gap carries it on
     white and light cards, the orange outline on the charcoal header and band and in dark mode. */
  box-shadow: 0 0 0 2px var(--ink);
}
/* Placeholders in the muted token, at least 4.5:1 in both themes (the browser default is 3.8:1 on the dark paper). */
::placeholder { color: var(--muted); opacity: 1; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { border-bottom: 4px solid var(--orange); background: var(--paper); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: 40px; width: auto; }
.brand .stage { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-ink); border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }
.brand .product { font-weight: 600; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav button.link:hover { color: var(--orange-ink); text-decoration: underline; }
.nav form { margin: 0; }
.nav button.link { color: var(--ink); text-decoration: none; font-size: 1rem; line-height: inherit; margin: 0; min-height: 0; }

/* Small screens: the menu collapses behind a button (app.js adds .has-menu); the open menu is a list with large tap
   targets. Without script the menu stays visible. */
.header-actions { display: none; align-items: center; gap: 10px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; position: relative; transition: transform .15s; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-open .menu-bars { background: transparent; }
.menu-open .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .has-menu .header-row { flex-wrap: wrap; gap: 10px; }
  .has-menu .brand img { height: 34px; }
  .has-menu .header-actions { display: flex; margin-left: auto; }
  .has-menu .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 4px; border-top: 1px solid var(--line); }
  .has-menu.menu-open .nav { display: flex; }
  .has-menu .nav > a, .has-menu .nav > form { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .has-menu .nav > :last-child { border-bottom: 0; }
  .has-menu .nav button.link { font-size: 1.05rem; padding: 0; }
  .has-menu .nav select { width: 100%; }
}
@media (max-width: 480px) {
  .has-menu .brand img { height: 30px; }
  .has-menu .brand { gap: 8px; }
  .menu-toggle { padding: 8px 11px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Phones: tables marked "stack" show each row as a block (label-free: file, size, hash). */
@media (max-width: 620px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.list.stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.list.stack td { border: 0; padding: 2px 0; }
  table.stack code.hash { font-size: .78rem; }
  /* Labelled variant: each cell shows its column name, for tables whose values need one (sessions, credits). */
  table.stack.labelled td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
}

main { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
h1, h2 { font-family: "Open Sans", system-ui, sans-serif; font-weight: 700; text-wrap: balance; }
h1 { color: var(--ink); font-size: 1.75rem; line-height: 1.25; margin: 0 0 12px; }
h2 { color: var(--ink); font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }
pre { background: var(--mist); padding: 10px 12px; border-radius: var(--radius); overflow-x: auto; }
code.hash, code.secret { word-break: break-all; cursor: copy; }
.totp-qr { margin: 0 0 12px; }
.totp-qr svg { display: block; width: 192px; height: 192px; max-width: 100%; }
.copied { outline: 2px solid var(--ok); }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 480px; margin: 24px auto; }
.card.attention { border-left: 6px solid var(--orange); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
.label { font-weight: 600; margin: 12px 0 4px; }
label.choice { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font: inherit;
}
input[type=checkbox], input[type=radio] { width: auto; margin-top: 5px; }
input.short { width: 7em; display: inline-block; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; color: var(--ink); padding: 0 6px; }
.data-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
form > button[type=submit] { margin-top: 16px; }
.actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: decimal inside; padding: 0; margin: 0 0 12px; color: var(--muted); }
.wizard-steps .current { color: var(--ink); font-weight: 700; }
.choice-group { margin: 0 0 14px; }
.choice-group .label { margin-bottom: 2px; }
details.more { margin: 0 0 12px; }
details.more > summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
form.inline select, form.inline input { width: auto; }

button, .button {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--charcoal);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button.primary, .button.primary { background: var(--orange); border-color: var(--orange); color: #2f2f2f; }
button.primary:hover, .button.primary:hover { background: #ff7a26; }
button.secondary:hover, .button.secondary:hover { border-color: var(--orange-ink); }
button.link { border: 0; padding: 0; background: none; color: var(--orange-ink); text-decoration: underline; font-weight: 600; }
button[disabled] { opacity: .55; cursor: not-allowed; }

.alert { border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.error { border-color: var(--error); color: var(--error); }
.alert.ok { border-color: var(--ok); color: var(--ok); }
.alert.warn { border-color: var(--warn); color: var(--warn); }

.table-scroll { overflow-x: auto; margin-bottom: 20px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .875rem; color: var(--muted); font-weight: 600; }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--edge); white-space: nowrap; color: var(--text); }
.s-published, .s-approved { border-color: var(--ok); color: var(--ok); }
.s-needs-info, .s-waiting-for-agent, .s-waiting-for-test-slot { border-color: var(--orange-ink); color: var(--orange-ink); }
.s-needs-review { border-color: var(--warn); color: var(--warn); }
.s-closed, .s-expired { color: var(--muted); }
.s-urgent { border-color: var(--error); color: var(--error); }
.status-box { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 420px; }
.pill { display: inline-block; font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.upload-list { list-style: none; padding: 0; }
.upload-list li { padding: 4px 0; }
.upload-list li.done .pill { border-color: var(--ok); color: var(--ok); }
.upload-list li.failed .pill { border-color: var(--error); color: var(--error); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
/* The run told as outcomes on the job page (RunStory), above the tables. */
.run-outcomes { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.run-outcomes li { position: relative; padding-left: 26px; }
.run-outcomes li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: var(--paper); font: 700 .7rem/18px "Open Sans", sans-serif; text-align: center; }
.run-outcomes li.is-note::before { content: ""; background: transparent; border: 2px solid var(--orange); width: 14px; height: 14px; top: 2px; left: 1px; }
.run-outcomes li.is-fail::before { content: "\00d7"; background: var(--error); }
.run-outcomes b { color: var(--ink); }
.run-outcomes span { color: var(--muted); font-size: .92rem; }
.launch-shot { margin: 12px 0; }
.launch-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.message { border-bottom: 1px solid var(--line); padding: 10px 0; }
.message.m-customer { padding-left: 12px; border-left: 3px solid var(--orange); }
.question { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
ul.compact { padding-left: 18px; margin: 0; }
progress { width: 100%; height: 12px; accent-color: var(--orange); }

.site-footer { border-top: 4px solid var(--orange); background: var(--mist); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; font-size: .875rem; }
.agent.online::before, .agent.offline::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ok); }
.agent.offline::before { background: var(--muted); }

@media (max-width: 640px) {
  .status-box { align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
  h1 { font-size: 1.45rem; }
}
.pre-wrap { white-space: pre-wrap; }

/* Accounts (phase 18) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button.danger { border-color: var(--error); color: var(--error); background: transparent; }
button.danger:hover { background: var(--error); color: var(--paper); }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 4px 0; }
dl.roles dt { font-weight: 600; color: var(--ink); margin-top: 8px; }
dl.roles dd { margin: 0 0 0 0; color: var(--muted); }
.company-switch select { max-width: 220px; padding: 4px 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
[hidden] { display: none !important; }

/* Billing (phase 19) */
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.invoice-seller { font-size: .9rem; color: var(--muted); }
.invoice-totals { text-align: right; }
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 0; box-shadow: none; }
}
/* Pilot banner for members of pilot companies (PilotService). */
.pilot-bar { background: var(--mist); border-bottom: 1px solid var(--line); font-size: .9rem; padding: 8px 0; }
.pilot-bar .wrap::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 10px; vertical-align: middle; }

/* Settings under Company (flow review section 10). */
.subnav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.subnav a { text-decoration: none; padding: 4px 0; }
.subnav a[aria-current="page"] { font-weight: 600; border-bottom: 2px solid var(--accent, currentColor); }

/* Branding preview (flow review section 11): a sketch of a Fluent or Classic dialog. The accent colour comes from
   app.js as --preview-accent (the CSP allows no inline styles). */
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.dialog-preview { --preview-accent: #0078d4; max-width: 420px; border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #ffffff; color: #1b1b1b; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); font-size: .9rem; }
.dialog-preview .dp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.dialog-preview .dp-logo { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; }
.dialog-preview .dp-logo-empty { display: inline-block; background: var(--preview-accent); opacity: .25; }
.dialog-preview .dp-company { color: #5f5f5f; }
.dialog-preview .dp-banner { display: none; width: 100%; height: auto; margin: -16px -16px 12px; max-width: calc(100% + 32px); }
.dialog-preview.classic { border-radius: 2px; box-shadow: none; }
.dialog-preview.classic .dp-banner { display: block; }
.dialog-preview .dp-progress { height: 4px; background: #e6e6e6; border-radius: 2px; overflow: hidden; margin: 12px 0; }
.dialog-preview .dp-progress span { display: block; width: 40%; height: 100%; background: var(--preview-accent); }
.dialog-preview .dp-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-preview .dp-button { padding: 6px 14px; border: 1px solid #c8c8c8; border-radius: 4px; }
.dialog-preview .dp-primary { background: var(--preview-accent); border-color: var(--preview-accent); color: #ffffff; }

/* Test results on the job page (Test-Report.json). */
.pill.pill-ok { border-color: var(--ok); color: var(--ok); }
.pill.pill-error { border-color: var(--error); color: var(--error); }
.pill.pill-warn { border-color: var(--warn); color: var(--warn); }
.pill.pill-muted { color: var(--muted); }
#test-results h2 .pill { vertical-align: middle; font-size: .85rem; }
#test-results details { margin: 12px 0; }

/* Andis > Workers: capabilities as labels, the rest collapsed and wrapped. */
.caps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; max-width: 32rem; }
.caps details { flex-basis: 100%; }
.caps-list { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 4px 0 0; }
.caps-list dd { margin: 0; overflow-wrap: anywhere; word-break: break-word; }

/* Responsive audit (#309 part 4, 25 October 2026): the footer stays at the bottom of short pages, the content uses
   more of a wide screen, Andis's long menu folds behind the button below 1200 px, a heading the script focuses gets no
   focus frame, and table cells wrap long values instead of widening the page. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
@media (min-width: 1600px) { .wrap { max-width: 1320px; } }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
table.list td { overflow-wrap: break-word; }
/* Inside a scroller a table scrolls instead of squeezing its words apart. */
.table-scroll table.list td { overflow-wrap: normal; word-break: normal; }
@media (max-width: 768px) { .table-scroll > table.list { min-width: 640px; } }
@media (max-width: 1200px) {
  .has-menu.wide-nav .header-row { flex-wrap: wrap; gap: 10px; }
  .has-menu.wide-nav .header-actions { display: flex; margin-left: auto; }
  .has-menu.wide-nav .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 4px; border-top: 1px solid var(--line); }
  .has-menu.wide-nav.menu-open .nav { display: flex; }
  .has-menu.wide-nav .nav > a, .has-menu.wide-nav .nav > form { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .has-menu.wide-nav .nav > :last-child { border-bottom: 0; }
}

/* Session A's responsive audit (docs/ux/responsive-audit.md, #317): M1 scroll shadows that appear only when a table
   scrolls, and headers that do not break inside the scroller; H2 row actions folded and wrapping; M2 a wider Andis;
   M4 commands that wrap; L1 larger checkboxes and radio buttons. */
.table-scroll {
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--paper) 30%, transparent) left / 24px 100% no-repeat local,
    linear-gradient(to left, var(--paper) 30%, transparent) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .18), transparent) left / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .18), transparent) right / 10px 100% no-repeat scroll;
}
.table-scroll table.list th { white-space: nowrap; }
.card { min-width: 0; }
details.row-actions summary { cursor: pointer; color: var(--orange-ink); font-weight: 600; font-size: .9rem; }
td form.inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
td form.inline input:not([type=checkbox]):not([type=radio]), td form.inline select { flex: 1 1 120px; min-width: 0; }
body.andis .wrap { max-width: 1560px; }
body.andis main p { max-width: 90ch; }
pre.command { white-space: pre-wrap; overflow-wrap: anywhere; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--orange-ink); flex: 0 0 auto; }

/* ---- Direction B, Cockpit (Dennis, 25 October 2026; docs/ux/refresh/README.md, brand guide section 3): the stationery
   stripe at the top and the bottom, a charcoal header with the dark logo, and on the dashboard a charcoal band with
   figure tiles over it. Orange text on charcoal uses #ffad7a (4.8:1). The site (site.css) has its own copy for the
   public pages. ---- */
body:not(.public) { background: var(--mist); }
body:not(.public) .site-header { position: relative; background: #4e4e4e; border-bottom: 0; padding-top: 6px; }
body:not(.public) .site-header::before, body:not(.public) .site-footer::before, body:not(.public) .site-footer::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: linear-gradient(115deg, #ff914d 0 58%, #4e4e4e 58% 86%, #a6a6a6 86% 100%); }
body:not(.public) .site-header::before { top: 0; }
body:not(.public) .site-header .nav a, body:not(.public) .site-header .nav button.link, body:not(.public) .site-header .nav label { color: #f3f3f3; }
body:not(.public) .site-header .nav a:hover, body:not(.public) .site-header .nav button.link:hover { color: #ffad7a; }
body:not(.public) .site-header .brand .stage { color: #ffad7a; }
body:not(.public) .site-header .brand .product { color: #f3f3f3; border-left-color: #7a7a7a; }
body:not(.public) .site-header .menu-toggle { background: transparent; color: #f3f3f3; border-color: #8f8f8f; }
@media (max-width: 860px) {
  body:not(.public) .has-menu .nav { border-top-color: #6c6c6c; }
  body:not(.public) .has-menu .nav > a, body:not(.public) .has-menu .nav > form { border-bottom-color: #6c6c6c; }
}
body:not(.public) .site-footer { position: relative; border-top: 0; background: var(--paper); padding-top: 6px; padding-bottom: 6px; }
body:not(.public) .site-footer::before { top: 0; }
body:not(.public) .site-footer::after { bottom: 0; }

/* The dashboard band runs the full width without widening the page (no horizontal scroll). */
main.wrap:has(> .cockpit-band) { padding-top: 0; }
.cockpit-band { background: #4e4e4e; color: #e6e6e6; box-shadow: 0 0 0 100vmax #4e4e4e; clip-path: inset(0 -100vmax); padding: 28px 0 76px; margin-bottom: -52px; }
.cockpit-band .band-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cockpit-band h1 { color: #f3f3f3; margin: 0 0 6px; }
.cockpit-band .band-line { margin: 0; color: #d6d6d6; }
.figure-tiles { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.figure { display: block; background: var(--paper); color: var(--text); text-decoration: none; border-radius: 10px; padding: 14px 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); border: 2px solid transparent; }
.figure:hover { border-color: var(--line); }
.figure.action { border-color: var(--orange); }
.figure b { display: block; font: 700 2rem/1.1 "Open Sans", sans-serif; color: var(--ink); margin: 6px 0 2px; }
.figure > span:last-child { color: var(--muted); font-size: .9rem; }
.figure-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--mist); border-radius: 999px; padding: 2px 10px; }
.figure.action .figure-tag { background: #fff1e6; color: #8a4a12; }
.cockpit-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cockpit-grid .card { margin-top: 0; }
.side-col { display: grid; gap: 20px; }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list > li { padding: 12px 0; border-top: 1px solid var(--line); }
.req-list > li:first-child { border-top: 0; padding-top: 0; }
.req-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.req-head a { font-weight: 600; color: var(--ink); text-decoration: none; }
.req-head a:hover { text-decoration: underline; }
.req-list p { margin: 4px 0 0; }
.progress { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.progress li { height: 6px; border-radius: 3px; background: var(--line); }
.progress li.done { background: var(--ok); }
.progress li.now { background: var(--warn); }
.activity { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.activity li { position: relative; }
.activity li::before { content: ""; position: absolute; left: -20px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--silver, #a6a6a6); }
.activity li.s-published::before { background: var(--ok); }
.activity li.s-needs-info::before, .activity li.s-needs-review::before { background: var(--warn); }

/* My apps (docs/portal-request-ux.md U3): a card per app over the band, as the figure tiles on the dashboard. */
.cockpit-band + .card, .app-cards { position: relative; }
.cockpit-band .band-back { margin: 0 0 6px; font-size: .9rem; }
.cockpit-band .band-back a { color: #e6e6e6; }
.app-cards { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.app-cards .app-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.app-head { display: flex; gap: 12px; align-items: center; }
.app-head h2 { margin: 0; font-size: 1.1rem; }
.app-head h2 a { color: var(--ink); text-decoration: none; }
.app-head h2 a:hover { text-decoration: underline; }
.app-head p { margin: 2px 0 0; }
.app-mark { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--mist); color: var(--ink); font: 700 1.3rem/1 "Open Sans", sans-serif; }
.app-card.attention .app-mark { background: #fff1e6; color: #8a4a12; }
.app-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 0; font-size: .92rem; }
.app-facts dt { color: var(--muted); }
.app-facts dd { margin: 0; overflow-wrap: anywhere; }
.app-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.app-flags:empty { display: none; }

@media (max-width: 860px) {
  .cockpit-grid { grid-template-columns: minmax(0, 1fr); }
  .figure-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .figure { padding: 12px 14px; }
  .figure b { font-size: 1.6rem; }
}
.side-col .card, .cockpit-grid > .card { margin: 0; }

/* Cockpit job page: the band with breadcrumbs, status, Download and the milestones; score tiles from the test report
   over it. Status pills on charcoal get a white ground (their colours are made for white). In Andis the job page
   follows the admin actions, so the band is a card there instead of a full-width band. */
.cockpit-band .crumbs { margin: 0 0 6px; font-size: .9rem; color: #d6d6d6; }
.cockpit-band .crumbs a { color: #ffad7a; }
.cockpit-band .band-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cockpit-band .status-box { text-align: right; color: #e6e6e6; }
.cockpit-band .status { background: var(--paper); }
.milestones { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.milestones li { border-top: 3px solid #7a7a7a; padding-top: 8px; }
.milestones li.done { border-top-color: #ff914d; }
.milestones b { display: block; color: #f3f3f3; font-size: .95rem; }
.milestones span { color: #d6d6d6; font-size: .85rem; }
.score-tiles .figure b { font-size: 1.7rem; }
.figure.tone-ok b { color: var(--ok); }
.figure.tone-warn b { color: var(--warn); }
.andis .cockpit-band { box-shadow: none; clip-path: none; border-radius: 10px; padding: 20px 22px; margin: 20px 0 16px; }
@media (max-width: 860px) {
  .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cockpit-band .status-box { text-align: left; }
}

/* Whatever follows a band overlaps it and must paint above it: clip-path gives the band its own layer. */
.cockpit-band + * { position: relative; }
.cockpit-band > h1:first-child { margin-top: 0; }

/* Cockpit request wizard: the steps as a vertical card next to the form (a row on phones). Without script the steps
   stay hidden and the form takes the full width. */
.wizard-layout:has(> .wizard-steps:not([hidden])) { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.wizard-layout > .card { margin-top: 0; }
.wizard-layout .wizard-steps { flex-direction: column; flex-wrap: nowrap; gap: 4px; list-style: none; counter-reset: wz; background: var(--paper); border-radius: 10px; padding: 14px; margin: 0; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.wizard-layout .wizard-steps li { counter-increment: wz; display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.wizard-layout .wizard-steps li::before { content: counter(wz); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mist); color: var(--ink); font: 700 .85rem/26px "Open Sans", sans-serif; text-align: center; }
.wizard-layout .wizard-steps li.current::before { background: var(--orange); color: #2f2f2f; }
@media (max-width: 860px) {
  .wizard-layout:has(> .wizard-steps:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .wizard-layout .wizard-steps { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; }
  .wizard-layout .wizard-steps li { padding: 2px 0; }
}

/* Upload first (#309 part 2): the start screen's drop zone, what Dael read from the installer, and the mark on fields
   the installer suggested. */
.start-upload .drop-zone { border: 2px dashed var(--orange); border-radius: 10px; background: var(--paper); padding: 34px 20px; text-align: center; margin-bottom: 12px; }
.start-upload .drop-zone h2 { margin-top: 0; }
.upload-first .uploader { border: 2px dashed var(--orange); border-radius: 10px; padding: 16px; }
.facts-read { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 8px 0 12px; }
.facts-read dt { color: var(--muted); }
.facts-read dd { margin: 0; overflow-wrap: anywhere; }
.from-installer { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 600; color: var(--ok); border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; vertical-align: middle; cursor: help; }

/* Upload notes: Intune's size limit and the 8 GB hint (#644). */
.upload-list .upload-note { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.upload-list li.failed .upload-note { color: var(--text); }

/* Mode script: the note shows while script is chosen (without :has() support it simply stays visible). */
fieldset:has(input[name=mode][value=psadt]:checked) .script-note { display: none; }
