/* The App Vault's own rules, on top of the dashboard's stylesheet (dashboard.css, loaded first). They use the
   dashboard's tokens and add only what the vault's pages hold that the dashboard has no piece for: the two start
   choices, today's progress, the sign-in card (the dashboard's own sign-in card, from its login.html) and the plain
   forms, notes and tables of the older audit screens. No new colours: every one is a dashboard token. */

/* ---------------------------------------------------------------- the header's engine dot */
.engine-dot { text-decoration: none; color: var(--ink-faint); }
.engine-dot:hover { color: var(--ink); }
.engine-dot.off::before { background: var(--st-muted); }

/* ---------------------------------------------------------------- page bits */
.back { margin: 0 0 14px; font-size: 13.5px; }
.back a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; }
.back a:hover { color: var(--accent); }
.panel-text { padding: 14px 18px; color: var(--ink-soft); }
.panel-text > :first-child { margin-top: 0; }
.panel-text > :last-child { margin-bottom: 0; }
/* A numbered list that is itself the panel's text (the Warmy page's steps): its numbers inside the panel's padding, and
   none of the list's own browser margins. */
ol.panel-text.steps { margin: 0; padding: 14px 18px 16px 42px; }
ol.panel-text.steps li + li { margin-top: 6px; }
.panel-text h3 { font: 700 13.5px/1.3 var(--sans); color: var(--ink); margin: 18px 0 6px; }
.panel + .panel, .choice-grid + .panel, .panel + .choice-grid, .vault-alert + .panel, .today + .choice-grid,
.approve-words + .panel { margin-top: 20px; }
.cl-name { display: block; font-weight: 700; color: var(--ink); }
.cl-sub { display: block; font-size: 12.5px; color: var(--ink-faint); font-weight: 400; }
.cl-check { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); }
.notes .badge { margin: 0 4px 4px 0; height: auto; min-height: 22px; padding: 3px 8px; line-height: 1.3; white-space: normal; }
code { font: 400 12.5px/1.4 var(--mono); color: var(--ink); background: var(--surface-3); border-radius: 5px; padding: 1px 5px;
       overflow-wrap: anywhere; }
pre.value { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line);
            border-radius: 8px; padding: 10px 12px; font: 400 12.5px/1.5 var(--mono); max-height: 24rem; overflow: auto; }

/* an alert line above the page's content: a mark beside the words, never a coloured block of text */
.vault-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 16px;
               background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--series-1);
               border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink); }
.vault-alert > svg.i { margin-top: 1px; color: var(--series-1); }
.vault-alert p { margin: 0; }
.vault-alert form.inline { margin-top: 10px; }
.vault-alert.is-bad { border-left-color: var(--bad); } .vault-alert.is-bad > svg.i { color: var(--bad); }
.vault-alert.is-warn { border-left-color: var(--warn); } .vault-alert.is-warn > svg.i { color: var(--st-warn); }
.vault-alert.is-good { border-left-color: var(--good); } .vault-alert.is-good > svg.i { color: var(--good); }

/* ---------------------------------------------------------------- the two choices (home and start pages) */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 22px 20px;
          color: inherit; text-decoration: none; transition: box-shadow .15s ease, border-color .15s ease; }
a.choice:hover { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.choice-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
               border-radius: 10px; color: var(--mint-700); background: var(--mint-50); margin-bottom: 6px; }
.choice-icon svg.i { width: 22px; height: 22px; }
.choice-title { margin: 0; font: 700 18px/1.3 var(--sans); color: var(--ink); }
.choice-sub { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.choice-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.choice-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px;
             font: 700 13.5px/1 var(--sans); color: var(--accent); }
.choice-cost { margin: 8px 0 0; font: 400 12.5px/1.3 var(--num); font-variant-numeric: tabular-nums; color: var(--ink-faint); }
/* the two choices stand side by side at one height: their cost line and button sit on the card's foot, level */
.option .choice-cost { margin-top: auto; padding-top: 10px; }
.option .btn-start { margin-top: 12px; height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 9px; align-self: stretch; }
.btn-start[aria-busy="true"] { cursor: progress; }
.approve-words { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); max-width: 96ch; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }

/* the pick list (Test one client) and the clients not tested now */
.pick-list, .out-list { list-style: none; margin: 0; padding: 0; }
.pick-list li + li, .out-list li + li { border-top: 1px solid var(--line-soft); }
.pick-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; color: inherit; text-decoration: none; }
a.pick-row:hover { background: var(--surface-2); }
a.pick-row > svg.i { color: var(--ink-faint); flex: none; }
.pick-main { flex: 1; min-width: 14rem; }
.pick-state { flex: none; }
.pick-why { flex-basis: 100%; font-size: 12.5px; color: var(--ink-soft); }
.out-list li { padding: 12px 18px; }
.out-why { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- today's progress */
.today { margin: 0 0 20px; }
.today-batch + .today-batch { border-top: 1px solid var(--line); }
.today-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; }
.today-what { color: var(--ink-soft); font-size: 13.5px; }
.today-what strong { color: var(--ink); }
.today-count { font: 400 12.5px/1 var(--num); font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.today-meta form.inline { margin-left: auto; }
.today .vault-alert { margin: 12px 18px 0; box-shadow: none; }
progress { width: 160px; height: 8px; border: 0; border-radius: 999px; background: var(--surface-3); overflow: hidden;
           -webkit-appearance: none; appearance: none; }
progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.pill.info::before { background: var(--series-1); }
.today-table th[scope="row"] { font-weight: 700; }

/* a Warmy test's reading: provider rows, then the totals row (Warmy's own figures) set apart by weight and a rule */
table.warmy-result th[scope="row"] { font-weight: 700; }
table.warmy-result tfoot th, table.warmy-result tfoot td { font-weight: 700; border-top: 1px solid var(--axis);
                                                           background: var(--surface-2); }
table.warmy-result tfoot .pct { font-weight: 700; }
table.warmy-result td.num { white-space: nowrap; }
/* the count, then its share in a fixed slot: counts and shares read as two aligned columns in every cell */
table.warmy-result .pct, table.warmy-totals .pct { display: inline-block; min-width: 4.6em; margin-left: .75em;
                                                   text-align: right; }
table.warmy-totals th[scope="row"] { width: 10rem; }
table.warmy-totals td.num { text-align: left; }
table.warmy-totals td.num .cnt { display: inline-block; min-width: 2.5em; text-align: right; }
.num-none { color: var(--ink-soft); font-style: italic; }
.warmy-line { display: block; margin-top: 4px; }
form.inline { display: inline; margin: 0; }

/* the engine panel */
.engine-panel .panel-text { font-size: 13.5px; }

/* a panel that folds (System details) */
details.fold > summary { cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .panel-meta { margin-left: auto; }
details.fold:not([open]) > summary { border-bottom: 0; }

/* ---------------------------------------------------------------- tables in the vault wrap their words */
main td { white-space: normal; }
td.wrap, .wrap { white-space: normal; }
main td.nowrap { white-space: nowrap; }
.clients-table td, .clients-table th { vertical-align: top; }
table.kv { font-size: 13.5px; }
table.kv th[scope="row"] { width: 12rem; }
.scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- the sign-in card (the dashboard's, login.html) */
body.auth { background: var(--bg); }
.auth-main { min-height: 100vh; max-width: none; display: flex; flex-direction: column; align-items: center;
             justify-content: center; gap: 22px; padding: 32px 16px; }
.auth-logo { display: block; }
.auth-logo img { display: block; height: 34px; width: auto; }
.auth-body { width: 100%; max-width: 420px; }
.auth-foot { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--ink-faint); }
.lp-card { width: 100%; max-width: 420px; text-align: left; padding: 26px 26px 22px; background: var(--surface);
           border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(25, 47, 51, .05), 0 12px 32px rgba(25, 47, 51, .08); }
.lp-card h1, .lp-card h2 { margin: 0 0 4px; font: 700 20px/1.3 var(--sans); color: var(--ink); }
.lp-card .sub { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-faint); }
.lp-card p { color: var(--ink-soft); }
.lp-card label { display: block; margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); }
.lp-card input:not([type=hidden]) { display: block; width: 100%; height: 44px; margin: 0 0 14px; padding: 0 12px;
           font: 400 15px/1 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.lp-card input:hover { border-color: var(--axis); }
.lp-card input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.lp-submit { width: 100%; height: 46px; margin-top: 4px; border: 0; border-radius: 9px; cursor: pointer;
             display: inline-flex; align-items: center; justify-content: center; gap: 8px;
             font: 700 15px/1 var(--sans); color: var(--primary-ink); background: var(--primary);
             transition: background-color .15s ease, transform .15s ease; }
.lp-submit:hover { background: var(--primary-hover); transform: translateY(-1px); }
.lp-submit:active { transform: none; }
.lp-err { margin: 0 0 14px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--bad-ink);
          background: var(--bad-bg); border: 1px solid var(--bad-line); }
.lp-card .lp-err { color: var(--bad-ink); }
.lp-note { margin: 0 0 14px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--ink);
           background: var(--surface-2); border: 1px solid var(--line); }
.lp-foot { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft);
           font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); }
.lp-card .lp-foot { color: var(--ink-faint); }
.lp-foot svg.i { width: 16px; height: 16px; margin-top: 1px; stroke-width: 2; }
.lp-help { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.pw-wrap { position: relative; }
.pw-wrap input:not([type=hidden]) { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: inline-flex; align-items: center;
          justify-content: center; border: 0; border-radius: 7px; background: transparent; color: var(--ink-faint); cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--surface-3); }
.pw-eye .eye-hide, .pw-eye[aria-pressed="true"] .eye-show { display: none; }
.pw-eye[aria-pressed="true"] .eye-hide { display: block; }
@media (prefers-reduced-motion: reduce) { .lp-submit:hover { transform: none; } .choice { transition: none; } }

/* ---------------------------------------------------------------- the older screens (audit, runs, approvals)
   Their plain HTML, drawn in the dashboard's type and colours. */
main > h1 { font: 700 28px/1.2 var(--sans); letter-spacing: -.02em; margin: 0 0 18px; color: var(--ink); overflow-wrap: anywhere; }
main h2 { font: 700 16px/1.3 var(--sans); margin: 28px 0 10px; color: var(--ink); }
main h3 { font: 700 14px/1.3 var(--sans); margin: 20px 0 6px; color: var(--ink); overflow-wrap: anywhere; }
main h4 { font: 700 13.5px/1.3 var(--sans); margin: 12px 0 4px; }
main p { margin: 8px 0; }
main > p, main > ul, main > ol, main > dl { max-width: 96ch; }
main label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--ink-soft); }
main input[type=text], main input[type=password], main input[type=email], main input[type=date], main select, main textarea {
  width: 100%; max-width: 32rem; font: 400 15px/1.4 var(--sans); padding: 9px 12px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
main input:focus, main select:focus, main textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
main textarea { max-width: 100%; min-height: 6rem; resize: vertical; }
main fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0 0; padding: 6px 14px 14px; }
main legend { font-weight: 700; padding: 0 4px; color: var(--ink); }
main fieldset label { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; color: var(--ink); }
main label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 14px; }
main label.check input { margin-top: 3px; }
/* a plain button of the older screens is the dashboard's primary button; .secondary its plain one */
main button:not([class]), main button.small, main a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; margin-top: 14px;
  border-radius: 8px; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink);
  font: 700 13.5px/1 var(--sans); text-decoration: none; cursor: pointer; }
main button:not([class]):hover, main button.small:hover, main a.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
main button.secondary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; margin-top: 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 13.5px/1 var(--sans); cursor: pointer; }
main button[disabled] { background: var(--surface-3); border-color: var(--line); color: var(--ink-faint); cursor: not-allowed; }
main button.small { min-height: 32px; font-size: 13px; margin-top: 6px; }
.actions a.button { margin-right: 10px; }
main dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0; }
main dt { color: var(--ink-faint); }
main dd { margin: 0; overflow-wrap: anywhere; }
dd.big, dl.confirm dd.big { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
main .note { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--mark);
             border-radius: 8px; background: var(--surface-2); color: var(--ink-soft); font-size: 13.5px; }
main .note.bad { border-left-color: var(--bad); }
main .note.ok { border-left-color: var(--good); }
.hint { color: var(--ink-faint); font-size: 12.5px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line);
       font: 700 11.5px/1 var(--sans); color: var(--ink-soft); background: var(--surface-3); white-space: nowrap; }
.flag { font-weight: 700; color: var(--bad-ink); }
.person-check { color: var(--bad-ink); }
.box, form.box { margin: 14px 0; padding: 4px 16px 16px; background: var(--surface); border: 1px solid var(--line);
                 border-radius: var(--radius); box-shadow: var(--shadow-sm); }
form.box button { margin-top: 12px; }
section.plan, section.task, section.item { margin-top: 14px; padding: 4px 18px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
tr.state-blocked td, tr.state-failed td { background: var(--bad-bg); }
tr.state-leased td { background: var(--surface-2); }
tr.state-waiting_human td { background: #FFF7E6; }
/* the older screens' run and plan states: the dashboard's status dot, in the state's colour */
.status { font-weight: 700; }
.status-blocked::before { background: var(--bad); }
.status-needs-a-look::before { background: var(--warn); }
.status-not-applicable::before, .status-not-started::before, .status-from-app-records::before { background: var(--st-muted); }
.badges { margin: 0 0 6px; font-size: 13px; }
.answers-all-answered { color: var(--good-ink); }
.answers-needs-a-look { color: #8A5300; }
.answers-step-blocked { color: var(--bad-ink); }
.assertion { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 10px 0; }
.assertion.state-answered { border-left-color: var(--good); }
.assertion.state-unknown, .assertion.state-not_attempted { border-left-color: var(--warn); }
.astate { font-weight: 700; }
.shot { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 12px 0; }
.saved { color: var(--good-ink); font-size: 13px; }
.open { color: #8A5300; font-size: 13px; }
.where-in { font-weight: 400; color: var(--ink-faint); font-size: 13px; }
ol.plain, ul.plain { margin: 4px 0; padding-left: 1.2rem; }
ul.plain li, ol.plain li, ul.links li, ol.checklist li { margin: 5px 0; }
ul.cols { columns: 2 16rem; padding-left: 1.2rem; }
ul.records { list-style: none; padding: 0; margin: 8px 0; }
ul.records li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 10px 0; background: var(--surface); }
textarea[readonly] { background: var(--surface-2); font-family: var(--mono); font-size: 13px; }
.offscreen { position: absolute; left: -9999px; top: 0; }
meter { width: 100%; max-width: 32rem; height: 1rem; }
.end { margin-top: 32px; }
@media (max-width: 560px) {
  main dl { grid-template-columns: 1fr; gap: 2px; }
  main dt { margin-top: 8px; }
  ul.cols { columns: 1; }
  main { padding: 18px 16px 48px; }
  .view-title, main > h1 { font-size: 24px; }
  .today-meta form.inline { margin-left: 0; }
}
