/* Auditor Box
 *
 * Lucid's paper, ink and gold; a single grotesque for text and a monospace
 * for anything compared character by character. Square edges throughout.
 * No webfont and no external resource: the page is served under
 * `default-src 'self'` and is part of the measured image.
 *
 * The layout is a wizard: a header, the stage bar of the current inspection,
 * one column of content, and a one-line footnote.
 */

/* ------------------------------------------------------------------ tokens */

#audit-studio {
  --paper: #f4f1e9;
  --paper-light: #fbfaf6;
  --paper-sunk: #ece8dd;
  --ink: #171713;
  --ink-soft: #4c4a43;
  --muted: #77736a;
  --line: rgba(23, 23, 19, 0.14);
  --line-strong: rgba(23, 23, 19, 0.3);
  --gold: #b88c24;
  --gold-soft: rgba(184, 140, 36, 0.1);
  --green: #2f6b4f;
  --amber: #8a5a10;
  --red: #96291f;
  --red-soft: rgba(150, 41, 31, 0.07);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --rule: 1px solid var(--line);

  box-sizing: border-box;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 40px 48px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

/* Always Lucid's cream paper, whatever the operating system's theme. */
html,
body {
  margin: 0;
  background: #f4f1e9;
  color-scheme: light;
}
/* ------------------------------------------------------------------ resets */

#audit-studio *,
#audit-studio *::before,
#audit-studio *::after {
  box-sizing: border-box;
}
#audit-studio button,
#audit-studio input,
#audit-studio select,
#audit-studio textarea {
  font: inherit;
  color: inherit;
}
#audit-studio button {
  cursor: pointer;
}
#audit-studio button:disabled {
  cursor: not-allowed;
}
#audit-studio [hidden] {
  display: none !important;
}
#audit-studio svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
#audit-studio h1,
#audit-studio h2,
#audit-studio h3,
#audit-studio p,
#audit-studio dl,
#audit-studio dd {
  margin: 0;
}
#audit-studio a {
  color: inherit;
}

/* -------------------------------------------------------------------- type */

#audit-studio h1 {
  max-width: 24ch;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
#audit-studio h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
#audit-studio h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
#audit-studio strong {
  font-weight: 600;
}
#audit-studio .au-mono,
#audit-studio code {
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}
#audit-studio .au-small {
  font-size: 13px;
}
#audit-studio .au-muted {
  color: var(--muted);
}

/* Small letterspaced labels, used sparingly. */
#audit-studio .au-eyebrow,
#audit-studio .au-doctype {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ header */

#audit-studio .au-top {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: var(--rule);
}
#audit-studio .au-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  gap: 11px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
#audit-studio .au-brand img {
  width: 26px;
  height: 26px;
}
#audit-studio .au-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
#audit-studio .au-place {
  padding: 6px 0;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  color: var(--muted);
}
#audit-studio .au-place:hover {
  color: var(--ink);
}
#audit-studio .au-place[aria-current="page"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

#audit-studio .au-account {
  position: relative;
}
#audit-studio .au-account > summary {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  font-weight: 600;
  gap: 8px;
  list-style: none;
  white-space: nowrap;
}
#audit-studio .au-account > summary::-webkit-details-marker {
  display: none;
}
#audit-studio .au-account > summary::after {
  border-top: 4px solid currentcolor;
  border-right: 3.5px solid transparent;
  border-left: 3.5px solid transparent;
  content: "";
  opacity: 0.45;
}
#audit-studio .au-accountmenu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 200px;
  padding: 6px 0;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  box-shadow: 0 14px 34px rgba(23, 23, 19, 0.12);
}
#audit-studio .au-accountmenu button {
  padding: 9px 16px;
  border: 0;
  background: none;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
#audit-studio .au-accountmenu button:hover {
  background: var(--paper-sunk);
}

/* --------------------------------------------------------------- stage bar */

#audit-studio .au-steps {
  padding-top: 30px;
}
#audit-studio .au-steptitle {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}
#audit-studio .au-stepstatus {
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#audit-studio .au-steplist {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
}
#audit-studio .au-step button {
  display: flex;
  width: 100%;
  align-items: baseline;
  padding: 10px 0 0;
  border: 0;
  border-top: 3px solid var(--line);
  background: none;
  color: var(--muted);
  gap: 7px;
  text-align: left;
}
#audit-studio .au-step.is-open button {
  border-top-color: var(--line-strong);
  color: var(--ink-soft);
}
#audit-studio .au-step.is-open button:hover {
  color: var(--ink);
}
#audit-studio .au-step.is-here button {
  border-top-color: var(--ink);
  color: var(--ink);
}
#audit-studio .au-step.is-locked button {
  cursor: default;
}
#audit-studio .au-stepnum {
  font-family: var(--mono);
  font-size: 11px;
}
#audit-studio .au-steplabel {
  font-size: 13px;
}
#audit-studio .au-step.is-here .au-steplabel {
  font-weight: 600;
}

/* Four steps while composing; four milestones once sent. */
#audit-studio .au-steplist-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#audit-studio .au-steplist-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#audit-studio .au-track .au-step > div {
  display: flex;
  align-items: baseline;
  padding: 10px 0 0;
  border-top: 3px solid var(--line);
  color: var(--muted);
  gap: 7px;
}
#audit-studio .au-track .au-step.is-done > div {
  border-top-color: var(--ink);
  color: var(--ink);
}
#audit-studio .au-track .au-step.is-green > div {
  border-top-color: var(--green);
  color: var(--green);
}
#audit-studio .au-track .au-step.is-next > div {
  border-top-color: var(--gold);
  color: var(--ink-soft);
}
#audit-studio .au-track .au-step.is-done .au-steplabel {
  font-weight: 600;
}

/* ------------------------------------------------------------ page content */

#audit-studio .au-main {
  min-width: 0;
  padding-top: 44px;
}
/* The stage bar already says where you are. */
#audit-studio .au-head .au-eyebrow {
  display: none;
}

#audit-studio .au-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
#audit-studio .au-head p {
  max-width: 58ch;
  margin-top: 10px;
  color: var(--ink-soft);
}

#audit-studio .au-sectiontitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: var(--rule);
  margin: 40px 0 16px;
}
#audit-studio .au-sectiontitle h3 {
  font-size: 15px;
}
#audit-studio .au-pad > .au-sectiontitle:first-child,
#audit-studio .au-panel > .au-sectiontitle:first-child {
  margin-top: 0;
}

#audit-studio .au-section {
  margin-bottom: 28px;
}
#audit-studio .au-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#audit-studio .au-grid3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#audit-studio .au-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#audit-studio .au-spread {
  justify-content: space-between;
}

/* Back and next, at the foot of every stage. */
#audit-studio .au-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: var(--rule);
  margin-top: 44px;
}

#audit-studio .au-footnote {
  padding-top: 18px;
  border-top: var(--rule);
  margin-top: 88px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

/* Figures, when a page has them, as a ruled row. */
#audit-studio .au-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: var(--rule);
  border-bottom: var(--rule);
  margin-bottom: 32px;
}
#audit-studio .au-stat {
  padding: 20px 24px 20px 0;
  border-right: var(--rule);
}
#audit-studio .au-stat + .au-stat {
  padding-left: 24px;
}
#audit-studio .au-stat:last-child {
  border-right: 0;
}
#audit-studio .au-stat b {
  display: block;
  margin: 6px 0 4px;
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ------------------------------------------------------- panels and lists */

#audit-studio .au-panel {
  border: var(--rule);
  background: var(--paper-light);
  overflow: clip;
}
#audit-studio .au-pad {
  padding: 24px 26px;
}
#audit-studio .au-listrow {
  padding: 20px 26px;
  border-bottom: var(--rule);
}
#audit-studio .au-listrow:last-child {
  border-bottom: 0;
}
#audit-studio .au-listrow p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

#audit-studio .au-kv {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: var(--rule);
  font-size: 13px;
}
#audit-studio .au-kv:last-child {
  border-bottom: 0;
}
#audit-studio .au-kv > span:first-child {
  color: var(--muted);
  flex: none;
}
#audit-studio .au-kv strong {
  overflow-wrap: anywhere;
  text-align: right;
}

#audit-studio .au-list {
  padding-left: 18px;
  margin: 6px 0 0;
}
#audit-studio .au-list li {
  margin-bottom: 4px;
}

#audit-studio .au-dl {
  display: grid;
  gap: 2px 14px;
  grid-template-columns: auto 1fr;
  font-size: 13px;
}
#audit-studio .au-dl dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
#audit-studio .au-objlist {
  display: grid;
  gap: 8px;
}
#audit-studio .au-objrow {
  padding: 6px 12px;
  border-left: 2px solid var(--line);
}

/* A note is a short remark set off by a rule. A warning is the same with red. */
#audit-studio .au-note {
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  margin: 22px 0;
  background: var(--gold-soft);
  color: var(--ink-soft);
  font-size: 13px;
}
#audit-studio .au-note svg {
  display: none;
}
#audit-studio .au-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}
#audit-studio .au-note-warn {
  border-left-color: var(--red);
  background: var(--red-soft);
}

#audit-studio .au-empty {
  padding: 64px 32px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}
#audit-studio .au-empty svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 14px;
  color: var(--muted);
}
#audit-studio .au-empty h2 {
  margin-bottom: 8px;
}
#audit-studio .au-empty p {
  max-width: 44ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 14px;
}
#audit-studio .au-empty .au-row {
  justify-content: center;
}

#audit-studio .au-code {
  padding: 16px 18px;
  border: var(--rule);
  margin: 12px 0;
  background: var(--paper-sunk);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#audit-studio .au-detail {
  padding-top: 14px;
  border-top: var(--rule);
  margin-top: 16px;
}
#audit-studio .au-detail summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
#audit-studio .au-detailline {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

/* One ruled line of facts about the box. */
#audit-studio .au-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding: 12px 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  font-size: 13px;
}
#audit-studio .au-strip strong {
  margin-right: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#audit-studio .au-alert {
  color: var(--red);
}

#audit-studio .au-sig {
  max-width: 56ch;
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

#audit-studio .au-toolmark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  border: var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  place-items: center;
  text-transform: uppercase;
}

#audit-studio .au-signin {
  max-width: 520px;
  padding: 24px 0;
}
#audit-studio .au-scroll {
  max-height: 340px;
  border: var(--rule);
  overflow: auto;
}

/* ------------------------------------------------------------------- forms */

#audit-studio .au-field {
  display: grid;
  min-width: 0;
  align-content: start; /* a hint under one field must not push its neighbour down */
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
}
#audit-studio .au-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
#audit-studio .au-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
#audit-studio .au-input::placeholder {
  color: var(--muted);
}
#audit-studio .au-input:focus-visible {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 0;
}
#audit-studio textarea.au-input {
  min-height: 84px;
  resize: vertical;
}
#audit-studio select.au-input {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentcolor 50%),
    linear-gradient(135deg, currentcolor 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  cursor: pointer;
}
#audit-studio input[type="checkbox"],
#audit-studio input[type="radio"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--ink);
}

#audit-studio .au-inlineform {
  display: grid;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  margin: 18px 0;
  background: var(--paper-sunk);
}
#audit-studio .au-inlineform h3 {
  margin-bottom: 14px;
}

#audit-studio .au-check,
#audit-studio .au-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
#audit-studio .au-check {
  padding: 14px 16px;
  border: var(--rule);
  background: var(--paper-light);
}
#audit-studio .au-check:hover {
  border-color: var(--line-strong);
}
#audit-studio .au-check:has(input:checked) {
  border-color: var(--ink);
}
#audit-studio .au-check small,
#audit-studio .au-choice small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}
#audit-studio .au-choice input {
  margin-top: 4px;
}

#audit-studio .au-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
#audit-studio .au-service {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: var(--rule);
  background: var(--paper-light);
  cursor: pointer;
  font-size: 13px;
  gap: 8px;
}
#audit-studio .au-service:hover {
  border-color: var(--line-strong);
}
#audit-studio .au-service:has(input:checked) {
  border-color: var(--ink);
}

#audit-studio .au-drop {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  margin: 14px 0;
  text-align: center;
}
#audit-studio .au-source {
  padding: 20px 0;
  border-bottom: var(--rule);
}
#audit-studio .au-source:last-child {
  border-bottom: 0;
}
#audit-studio .au-source summary {
  cursor: pointer;
  font-weight: 600;
}

/* Buttons: rectangles. One solid ink button per stage for the action that
   moves the inspection forward; everything else is an outline. */
#audit-studio .au-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  white-space: nowrap;
}
#audit-studio .au-btn:hover:not(:disabled) {
  border-color: var(--ink);
}
#audit-studio .au-btn:disabled {
  opacity: 0.35;
}
#audit-studio .au-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}
#audit-studio .au-primary:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold);
  color: #17170f;
}
#audit-studio .au-danger {
  border-color: var(--red);
  color: var(--red);
}
#audit-studio .au-btn:focus-visible,
#audit-studio .au-link:focus-visible,
#audit-studio .au-tab:focus-visible,
#audit-studio .au-step button:focus-visible,
#audit-studio .au-place:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#audit-studio .au-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
#audit-studio .au-link:hover {
  text-decoration-color: var(--ink);
}

#audit-studio .au-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  border-bottom: var(--rule);
  margin-bottom: 24px;
}
#audit-studio .au-tab {
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
#audit-studio .au-tab:hover {
  color: var(--ink);
}
#audit-studio .au-tab[aria-pressed="true"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ tables */

#audit-studio .au-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
#audit-studio .au-table th {
  padding: 0 16px 9px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
#audit-studio .au-table td {
  padding: 14px 16px 14px 0;
  border-bottom: var(--rule);
  vertical-align: top;
}
#audit-studio .au-table tr:last-child td {
  border-bottom: 0;
}
#audit-studio .au-table th:last-child,
#audit-studio .au-table td:last-child {
  padding-right: 0;
}
#audit-studio .au-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
#audit-studio .au-table-compact td {
  padding-block: 8px;
}
#audit-studio .au-tablewrap {
  overflow-x: auto;
}
#audit-studio .au-panel .au-tablewrap,
#audit-studio .au-panel.au-tablewrap {
  padding: 6px 26px 18px;
}
/* A table inside a panel that already has padding needs none of its own. */
#audit-studio .au-pad .au-tablewrap {
  padding: 0;
}
/* The report's answer tables: fixed columns, the same in every section. */
#audit-studio .au-answers .au-table {
  min-width: 560px;
  table-layout: fixed;
}
#audit-studio .au-answers .au-col-answer {
  width: 26%;
}
#audit-studio .au-answers .au-col-status {
  width: 180px;
}
#audit-studio .au-answers td,
#audit-studio .au-answers th {
  padding-right: 28px;
  overflow-wrap: anywhere;
}
#audit-studio .au-panel .au-table th {
  padding-top: 16px;
}

/* An answer's value, set as the thing the row is about. */
#audit-studio .au-result {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------ status */

/* A status is a short letterspaced word with a rule under it. */
#audit-studio .au-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 0 2px;
  border-bottom: 1.5px solid currentcolor;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  gap: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
#audit-studio .au-good {
  color: var(--green);
}
#audit-studio .au-warn {
  color: var(--amber);
}
#audit-studio .au-bad {
  color: var(--red);
}
#audit-studio .au-purple {
  color: var(--gold);
}
#audit-studio .au-loud {
  font-weight: 600;
}

/* ------------------------------------------------------------- the report */

#audit-studio .au-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}
#audit-studio .au-masthead h1 {
  margin-bottom: 20px;
}
#audit-studio .au-docmeta {
  display: grid;
  gap: 2px 22px;
  grid-template-columns: auto auto;
  justify-content: start;
  font-size: 13px;
}
#audit-studio .au-docmeta dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 2;
  text-transform: uppercase;
}
#audit-studio .au-docmeta dd {
  margin: 0;
  line-height: 1.55;
}

/* The attestation behind the report, as a square stamp. */
#audit-studio .au-seal {
  display: grid;
  width: 132px;
  height: 132px;
  flex: none;
  padding: 14px;
  border: 1px solid var(--line-strong);
  align-content: center;
  color: var(--ink-soft);
  gap: 8px;
  justify-items: center;
  text-align: center;
}
#audit-studio .au-seal-kind {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
#audit-studio .au-seal-rule {
  width: 26px;
  height: 1px;
  background: currentcolor;
}
#audit-studio .au-seal-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

#audit-studio .au-tally {
  padding-top: 14px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 13.5px;
}
#audit-studio .au-tally b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- the run */

#audit-studio .au-progress {
  height: 3px;
  margin: 20px 0 28px;
  background: var(--line);
}
#audit-studio .au-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 400ms ease;
}
#audit-studio .au-timeline {
  display: grid;
}
#audit-studio .au-event {
  display: grid;
  position: relative;
  padding-bottom: 26px;
  gap: 16px;
  grid-template-columns: 26px 1fr;
}
#audit-studio .au-event::before {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 12px;
  width: 1px;
  background: var(--line);
  content: "";
}
#audit-studio .au-event:last-child::before {
  display: none;
}
#audit-studio .au-event p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
#audit-studio .au-dot {
  display: grid;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  place-items: center;
}
#audit-studio .au-event.done .au-dot {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}
#audit-studio .au-event.current .au-dot {
  border-color: var(--ink);
  color: var(--ink);
}
#audit-studio .au-event.failed .au-dot {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper-light);
}
#audit-studio .au-spin {
  display: block;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  animation: au-spin 900ms linear infinite;
  border-top-color: transparent;
}
@keyframes au-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #audit-studio * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------- the inspection */

/* Where an inspection stands: one sentence and, if it is your turn, one button. */
#audit-studio .au-standing {
  display: grid;
  padding: 30px 32px;
  border: var(--rule);
  border-left: 4px solid var(--line-strong);
  background: var(--paper-light);
  gap: 18px;
  justify-items: start;
}
#audit-studio .au-standing-text {
  max-width: 48ch;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
#audit-studio .au-standing-act {
  border-left-color: var(--ink);
}
#audit-studio .au-standing-wait {
  border-left-color: var(--gold);
}
#audit-studio .au-standing-done {
  border-left-color: var(--green);
}
#audit-studio .au-standing-done .au-standing-text {
  color: var(--green);
}
#audit-studio .au-standing-stop {
  border-left-color: var(--red);
}
#audit-studio .au-standing .au-progress {
  width: 100%;
  margin: 0;
}
#audit-studio .au-quiet {
  margin-top: 18px;
  font-size: 13px;
}

/* The one green thing: a report you can open. */
#audit-studio .au-primary.au-go {
  border-color: var(--green);
  background: var(--green);
  color: #fbfaf6;
}
#audit-studio .au-primary.au-go:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

/* The list of inspections: title, where it stands, and the next action. */
#audit-studio .au-inspection {
  border-left: 3px solid transparent;
}
#audit-studio .au-inspection.au-tone-done {
  border-left-color: var(--green);
}
#audit-studio .au-inspection.au-tone-act {
  border-left-color: var(--ink);
}
#audit-studio .au-inspection.au-tone-stop {
  border-left-color: var(--red);
}
#audit-studio .au-inspection p {
  margin-top: 4px;
  font-size: 13.5px;
}
#audit-studio .au-inspection.au-tone-done p {
  color: var(--green);
}

/* ------------------------------------------------------- the lifecycle */

/* Six stages in a row on a rail, each a switch. A chosen stage is a solid
   ink square; the rail between two chosen stages is solid too, so the span
   the inspection covers reads as one line. The rail ends in an arrow: the
   output of the lifecycle is a model in production. */
#audit-studio .au-lifecycle {
  display: grid;
  padding: 8px 0 0;
  margin: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
}
#audit-studio .au-lc {
  position: relative;
  min-width: 0;
}
#audit-studio .au-lc label {
  display: grid;
  padding-right: 14px;
  cursor: pointer;
  gap: 6px;
  justify-items: start;
}
#audit-studio .au-lc-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
/* The rail: from this node's centre to the next node's. */
#audit-studio .au-lc::after {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 0;
  left: 36px;
  height: 2px;
  background: var(--line);
  content: "";
}
#audit-studio .au-lc.links-next::after {
  background: var(--ink);
}
#audit-studio .au-lc.is-last::after {
  right: 6px;
}
/* The arrowhead at the end of the rail. */
#audit-studio .au-lc.is-last::before {
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--line-strong);
  content: "";
}
#audit-studio .au-lc-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line-strong);
  margin-bottom: 8px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  place-items: center;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
#audit-studio .au-lc:hover .au-lc-node {
  border-color: var(--ink);
  color: var(--ink);
}
#audit-studio .au-lc.is-on .au-lc-node {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}
#audit-studio .au-lc-input:focus-visible + .au-lc-node {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
#audit-studio .au-lc-name {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
#audit-studio .au-lc.is-on .au-lc-name {
  color: var(--ink);
}
#audit-studio .au-lc-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
#audit-studio .au-lc-input:disabled + .au-lc-node,
#audit-studio .au-lc label:has(.au-lc-input:disabled) {
  cursor: default;
}
#audit-studio .au-lc-end {
  padding-top: 14px;
  border-top: var(--rule);
  margin-top: 22px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------ sources */

#audit-studio .au-emptylist {
  padding: 34px 26px;
  border: 1px dashed var(--line-strong);
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
#audit-studio .au-sourcefields {
  margin-top: 16px;
}
#audit-studio .au-sourcefields .au-field {
  margin-bottom: 0;
}

#audit-studio .au-picker {
  display: grid;
  padding: 22px 24px;
  border: 1px solid var(--ink);
  margin: 18px 0;
  background: var(--paper-light);
  gap: 18px;
}
#audit-studio .au-pickgroups {
  display: grid;
  max-height: 420px;
  gap: 18px;
  overflow: auto;
}
#audit-studio .au-pickgroup h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#audit-studio .au-picklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#audit-studio .au-pick {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px 8px 11px;
  border: var(--rule);
  background: var(--paper);
  font-size: 13.5px;
  gap: 9px;
}

/* A source's mark: 18px, never stretched, next to its name. */
#audit-studio .au-logo {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}
#audit-studio .au-logo-wide {
  width: 28px;
}
#audit-studio .au-logo-glyph {
  color: var(--ink-soft);
}
#audit-studio .au-logo-glyph svg {
  width: 17px;
  height: 17px;
}
#audit-studio .au-srctitle {
  display: flex;
  align-items: center;
  gap: 10px;
}
#audit-studio .au-srclist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
#audit-studio .au-pick:hover {
  border-color: var(--ink);
  background: var(--paper-light);
}

#audit-studio .au-qlist {
  display: grid;
  padding: 0;
  margin: 8px 0 0;
  gap: 5px;
  font-size: 13.5px;
  list-style: none;
}
#audit-studio .au-qlist .au-mono {
  display: inline-block;
  min-width: 3.4em;
  color: var(--muted);
}
#audit-studio .au-issues {
  padding: 14px 18px 14px 34px;
  border-left: 3px solid var(--amber);
  margin: 0 0 8px;
  background: var(--gold-soft);
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* ------------------------------------------------------------ evidence */

#audit-studio .au-sourceinput {
  display: grid;
  margin-top: 14px;
  gap: 10px;
  justify-items: start;
}
#audit-studio .au-sourceinput .au-field {
  width: 100%;
  margin-bottom: 0;
}
#audit-studio .au-sourceinput input[type="file"] {
  width: auto;
  padding: 8px;
}
#audit-studio .au-received {
  margin-top: 10px;
  font-size: 14px;
}
#audit-studio .au-tick {
  color: var(--green);
  font-size: 18px;
  font-weight: 600;
}

/* ------------------------------------------------------------ pop-ups */

html.au-modal-open,
html.au-modal-open body {
  overflow: hidden;
}
#audit-studio .au-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  padding: 48px 20px;
  overflow-y: auto;
  place-items: start center;
}
#audit-studio .au-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 19, 0.38);
}
#audit-studio .au-modal-panel {
  position: relative;
  display: grid;
  width: min(760px, 100%);
  max-height: calc(100vh - 96px);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(23, 23, 19, 0.28);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
#audit-studio .au-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px 16px;
  border-bottom: var(--rule);
}
#audit-studio .au-modal-head h2 {
  font-size: 20px;
}
#audit-studio .au-modal-x {
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}
#audit-studio .au-modal-x:hover {
  color: var(--ink);
}
#audit-studio .au-modal-body {
  display: grid;
  padding: 22px 26px;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
}
#audit-studio .au-modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 16px 26px;
  border-top: var(--rule);
  background: var(--paper-light);
  gap: 10px;
}
#audit-studio .au-modal .au-pickgroups {
  max-height: none;
  overflow: visible;
  margin-top: 16px;
}
#audit-studio .au-modal input[type="search"] {
  margin-bottom: 4px;
}

/* The lifecycle as the question picker's filter: each stage is a button. */
#audit-studio .au-lifecycle-filter {
  padding: 4px 0 0;
}
#audit-studio .au-lifecycle-filter .au-lc button {
  display: grid;
  width: 100%;
  padding: 0 10px 0 0;
  border: 0;
  background: none;
  cursor: pointer;
  gap: 4px;
  justify-items: start;
  text-align: left;
}
#audit-studio .au-lifecycle-filter .au-lc-node {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  font-size: 12.5px;
}
#audit-studio .au-lifecycle-filter .au-lc::after {
  top: 15px;
  left: 30px;
}
#audit-studio .au-lifecycle-filter .au-lc.is-last::before {
  top: 11px;
}
#audit-studio .au-lifecycle-filter .au-lc-name {
  font-size: 12px;
}
#audit-studio .au-lifecycle-filter .au-lc-desc {
  font-size: 11px;
}
#audit-studio .au-qsearch {
  width: 100%;
  margin-bottom: 18px;
}
#audit-studio .au-qpicklist + .au-picknone {
  padding: 18px 0 6px;
}
#audit-studio .au-filterextra {
  padding: 14px 0 4px;
  gap: 8px;
}
#audit-studio .au-tabbtn,
#audit-studio .au-tabon {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}
#audit-studio .au-tabon {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

#audit-studio .au-pickall {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-top: var(--rule);
  border-bottom: 1px solid var(--line-strong);
  margin-top: 10px;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
}
#audit-studio .au-qpicklist {
  display: grid;
}
#audit-studio .au-qpick {
  display: grid;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: var(--rule);
  cursor: pointer;
  font-size: 13.5px;
  gap: 12px;
  grid-template-columns: auto 3.4em 1fr;
}
#audit-studio .au-qpick:hover {
  background: var(--paper-light);
}
#audit-studio .au-qpick .au-mono {
  color: var(--muted);
}
#audit-studio .au-qpick.is-added {
  color: var(--muted);
  cursor: default;
}
#audit-studio .au-qpick em {
  margin-left: 6px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The chosen questions, grouped by stage. */
#audit-studio .au-grouphead {
  margin: 26px 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#audit-studio .au-grouphead:first-of-type {
  margin-top: 0;
}
#audit-studio .au-grouphead + .au-panel {
  margin-bottom: 8px;
}
#audit-studio .au-chosenhead {
  align-items: flex-start;
  flex-wrap: nowrap;
}
/* A chosen question is its own disclosure: a chevron, the number and the
   wording. Opening it shows how the answer is decided, under the wording. */
#audit-studio .au-why {
  min-width: 0;
  flex: 1;
}
#audit-studio .au-why summary {
  display: grid;
  align-items: baseline;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  gap: 10px;
  grid-template-columns: 12px 40px 1fr;
  list-style: none;
}
#audit-studio .au-why summary::-webkit-details-marker {
  display: none;
}
#audit-studio .au-why summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
#audit-studio .au-why .au-mono {
  color: var(--muted);
  font-weight: 400;
}
#audit-studio .au-chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 120ms ease;
}
#audit-studio .au-why summary:hover .au-chev {
  border-color: var(--ink);
}
#audit-studio .au-why[open] .au-chev {
  border-color: var(--ink);
  transform: translateY(0) rotate(-135deg);
}
#audit-studio .au-whybody {
  padding: 10px 0 2px 72px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
#audit-studio .au-chosenhead > .au-link {
  min-height: 0;
  line-height: 1.45;
}
#audit-studio .au-whybody p + p {
  margin-top: 6px;
}
#audit-studio .au-params {
  margin-top: 12px;
}
#audit-studio .au-params .au-field {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ attestation check */

/* One line that says whether the box is an attested TEE, with the checks
   behind it on request. Green when every check passed, red when one failed. */
#audit-studio .au-tee {
  display: grid;
  align-items: start;
  padding: 18px 22px;
  border: var(--rule);
  border-left: 3px solid var(--line-strong);
  margin-bottom: 24px;
  background: var(--paper-light);
  gap: 16px;
  grid-template-columns: 28px 1fr;
}
#audit-studio .au-tee-ok {
  border-left-color: var(--green);
}
#audit-studio .au-tee-bad {
  border-left-color: var(--red);
  background: var(--red-soft);
}
#audit-studio .au-tee-partial {
  border-left-color: var(--gold);
}
#audit-studio .au-tee-partial .au-tee-mark {
  background: var(--gold);
}
#audit-studio .au-tee-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--paper-light);
  font-size: 15px;
  font-weight: 700;
}
#audit-studio .au-tee-ok .au-tee-mark {
  background: var(--green);
}
#audit-studio .au-tee-bad .au-tee-mark {
  background: var(--red);
}
#audit-studio .au-tee-wait .au-tee-mark {
  width: 18px;
  height: 18px;
  margin: 5px;
}
#audit-studio .au-tee-text {
  margin: 3px 0 4px;
  font-size: 15px;
  font-weight: 600;
}
#audit-studio .au-tee-ok .au-tee-text {
  color: var(--green);
}
#audit-studio .au-tee .au-link {
  font-size: inherit;
}
#audit-studio .au-tee-details {
  margin-top: 12px;
}
#audit-studio .au-checks {
  padding: 0;
  margin: 0;
  list-style: none;
}
#audit-studio .au-checks li {
  display: grid;
  padding: 10px 0;
  border-top: var(--rule);
  gap: 12px;
  grid-template-columns: 16px 1fr;
}
#audit-studio .au-checks strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
#audit-studio .au-checks span:not([class]) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#audit-studio .au-check-ok,
#audit-studio .au-check-bad,
#audit-studio .au-check-off {
  font-weight: 700;
}
#audit-studio .au-check-ok {
  color: var(--green);
}
#audit-studio .au-check-bad {
  color: var(--red);
}
#audit-studio .au-check-off {
  color: var(--muted);
}
/* The report's one line about where it came from. */
#audit-studio .au-attestline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: -24px 0 34px;
  color: var(--ink-soft);
  font-size: 13.5px;
  gap: 4px 8px;
}
#audit-studio .au-attestline > span {
  font-weight: 700;
}
#audit-studio .au-attestline.is-ok > span {
  color: var(--green);
}
#audit-studio .au-attestline.is-bad > span {
  color: var(--red);
}
#audit-studio .au-attestline.is-partial > span {
  color: var(--gold);
}
/* One line comparing a plan (or the box) with the viewer's own pin. */
#audit-studio .au-pinline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 12px 16px;
  border: var(--rule);
  border-left: 3px solid var(--line-strong);
  margin: 0 0 22px;
  background: var(--paper-light);
  color: var(--ink-soft);
  font-size: 13.5px;
  gap: 4px 10px;
}
#audit-studio .au-pinline > span {
  font-weight: 700;
}
#audit-studio .au-pinline.is-match {
  border-left-color: var(--green);
}
#audit-studio .au-pinline.is-match > span {
  color: var(--green);
}
#audit-studio .au-pinline.is-mismatch {
  border-left-color: var(--red);
  background: var(--red-soft);
}
#audit-studio .au-pinline.is-mismatch > span {
  color: var(--red);
}
#audit-studio .au-pinline.is-none {
  border-left-color: var(--gold);
}
#audit-studio .au-pinline.is-none > span {
  color: var(--gold);
}
#audit-studio .au-commissionline {
  margin: -8px 0 22px;
  color: var(--ink-soft);
  font-size: 13.5px;
}
#audit-studio .au-setupwho {
  margin: -4px 0 14px 40px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#audit-studio .au-setupintro {
  margin-bottom: 24px;
}
#audit-studio .au-limits {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 13.5px;
}
#audit-studio .au-tee-own {
  margin: 14px 0 8px;
}

/* ------------------------------------------------------------------ setup (admin) */

#audit-studio .au-setupstep {
  margin-bottom: 18px;
}
#audit-studio .au-setuphead {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 14px;
}
#audit-studio .au-setuphead h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
}
#audit-studio .au-setupnum {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}
#audit-studio .au-setupstep.is-done .au-setupnum {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper-light);
}
#audit-studio .au-setupstep .au-row {
  margin-top: 16px;
}
#audit-studio .au-setupstep .au-row:not(:has(*)) {
  display: none;
}
#audit-studio .au-todo {
  color: var(--amber);
}
#audit-studio .au-setupstate {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
#audit-studio .au-setupstate.is-ok {
  color: var(--green);
}
#audit-studio .au-setupstate.is-todo {
  color: var(--amber);
}
#audit-studio .au-setuptext {
  max-width: 64ch;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
#audit-studio .au-setupcmd {
  margin: 16px 0 6px;
}
#audit-studio .au-setupstep .au-tee {
  margin: 16px 0 0;
}
#audit-studio .au-setuptable {
  margin: 4px 0 6px;
}
#audit-studio .au-ok {
  color: var(--green);
}
#audit-studio .au-fieldset {
  padding: 0;
  border: 0;
  margin: 0 0 14px;
}
#audit-studio .au-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  #audit-studio .au-setuphead {
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------------------------ toasts */

#audit-studio .au-toasts {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: grid;
  max-width: min(400px, calc(100vw - 48px));
  gap: 8px;
}
#audit-studio .au-toast {
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 0 12px 30px rgba(23, 23, 19, 0.14);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}
#audit-studio .au-toast.au-toast-error {
  border-left-color: var(--red);
}
#audit-studio .au-toast.au-toast-ok {
  border-left-color: var(--green);
}
#audit-studio .au-toast.au-toast-warn {
  border-left-color: var(--amber);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  #audit-studio {
    padding: 0 18px 40px;
  }
  #audit-studio .au-top {
    height: auto;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 12px;
  }
  #audit-studio .au-identity {
    flex-wrap: wrap;
    gap: 16px;
  }
  /* Seven stages do not fit side by side on a phone: show the numbers, and
     the name of the current stage only. */
  #audit-studio .au-steplist {
    gap: 4px;
  }
  #audit-studio .au-steplabel {
    font-size: 11.5px;
  }
  #audit-studio .au-modal {
    padding: 0;
  }
  #audit-studio .au-modal-panel {
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
  }
  #audit-studio .au-lifecycle-filter {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  #audit-studio .au-lifecycle-filter .au-lc-name,
  #audit-studio .au-lifecycle-filter .au-lc-desc {
    display: none;
  }
  #audit-studio .au-lifecycle-filter .au-lc button {
    padding: 0;
  }

  #audit-studio .au-standing {
    padding: 22px;
  }
  #audit-studio .au-standing-text {
    font-size: 17px;
  }
  #audit-studio .au-main {
    padding-top: 32px;
  }
  #audit-studio .au-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  #audit-studio .au-grid,
  #audit-studio .au-grid3,
  #audit-studio .au-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  #audit-studio .au-stat,
  #audit-studio .au-stat + .au-stat {
    padding: 16px 0;
    border-right: 0;
    border-bottom: var(--rule);
  }
  #audit-studio .au-stat:last-child {
    border-bottom: 0;
  }
  #audit-studio .au-masthead {
    flex-direction: column;
    gap: 22px;
  }
  #audit-studio .au-seal {
    width: 112px;
    height: 112px;
  }
  #audit-studio .au-pad,
  #audit-studio .au-listrow,
  #audit-studio .au-inlineform {
    padding: 18px;
  }
  #audit-studio .au-panel .au-tablewrap,
  #audit-studio .au-panel.au-tablewrap {
    padding: 4px 18px 14px;
  }
  #audit-studio .au-input {
    font-size: 16px;
  }
  #audit-studio .au-toasts {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

/* On a phone, each answer becomes a small card: the question across the top,
   the answer and its status side by side under it. Nothing scrolls sideways. */
@media (max-width: 640px) {
  #audit-studio .au-answers .au-table {
    min-width: 0;
    table-layout: auto;
  }
  #audit-studio .au-answers colgroup,
  #audit-studio .au-answers thead {
    display: none;
  }
  #audit-studio .au-answers tbody {
    display: block;
  }
  #audit-studio .au-answers tr {
    display: grid;
    padding: 16px 0;
    border-bottom: var(--rule);
    column-gap: 16px;
    grid-template-columns: 1fr auto;
  }
  #audit-studio .au-answers tr:last-child {
    border-bottom: 0;
  }
  #audit-studio .au-answers td {
    display: block;
    padding: 0;
    border: 0;
  }
  #audit-studio .au-answers td:first-child {
    margin-bottom: 10px;
    grid-column: 1 / -1;
  }
}
