/* ---------------------------------------------------------------
   Hive - styling
   Colours live in one place, at the top, so they are easy to change.
   --------------------------------------------------------------- */

:root {
  --bg:          #f6f7f9;
  --surface:     #ffffff;
  --sidebar:     #16191d;
  --sidebar-dim: #9aa2ad;
  --ink:         #1b1f24;
  --ink-dim:     #676f7b;   /* a shade darker, to clear 4.5:1 on the page */
  --line:        #e3e6ea;
  /* The accent does two different jobs, and in dark mode one colour cannot do
     both. --accent is a filled shape with white text on it: a button, the
     selected item, the logo. --accent-line is the accent drawn ON a surface:
     link text, a focus ring, a hover border. A fill has to be dark enough for
     white to read on it; a line has to be light enough to read on a dark
     background. In light mode they happen to be the same colour. */
  --accent:      #2f6feb;
  --accent-line: #2f6feb;
  --accent-dark: #2457bd;
  --chip-bg:     #eceff3;   /* the plain chip: "stopped", or anything new */
  --chip-ink:    #5b636e;
  --ok:          #177140;
  --ok-bg:       #e4f5ea;
  --bad:         #b3261e;
  --bad-bg:      #fdeceb;
  --busy:        #8a5a00;
  --busy-bg:     #fdf2dc;
  --radius:      10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 "Segoe UI", system-ui, sans-serif;
}

/* ---- sidebar ------------------------------------------------- */

.sidebar {
  width: 250px;
  flex: 0 0 250px;
  background: var(--sidebar);
  color: var(--sidebar-dim);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 26px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
}

.brand-text { font-size: 15px; font-weight: 600; }

.nav-group { margin-bottom: 20px; }

.nav-group-title {
  padding: 0 8px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #6c7681;
}

.nav-link {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
  color: #cdd3db;
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover { background: #22262c; color: #fff; }
.nav-link.is-active { background: var(--accent); color: #fff; }

.nav-empty { padding: 0 8px; font-size: 14px; }

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #272b31;
}

/* ---- main area ----------------------------------------------- */

.main {
  flex: 1;
  min-width: 0;
  padding: 36px 40px 60px;
  /* Wide enough for a table of translations to breathe on a desktop screen.
     Running text is kept narrow by .lede and .help, so nothing turns into a
     line you have to track back across. Hive is not used on a phone. */
  max-width: 1500px;
}

.page-head { margin-bottom: 30px; }

.crumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}

h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.2px; }

.lede { margin: 0; color: var(--ink-dim); max-width: 62ch; }

.section-title {
  margin: 32px 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.muted { color: var(--ink-dim); }

/* ---- tool cards ---------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.card {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}

.card:hover { border-color: var(--accent-line); box-shadow: 0 2px 10px rgba(20,30,50,.07); }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p  { margin: 0; font-size: 13.5px; color: var(--ink-dim); }

/* ---- panels and forms ---------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.panel h2 { margin: 0 0 14px; font-size: 15px; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.req {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bad);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.help { margin: 0 0 8px; font-size: 13px; color: var(--ink-dim); max-width: 60ch; }

input[type=text], input[type=number], input[type=password], select {
  width: 100%;
  max-width: 420px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  background: #fff;
}

input[type=file] {
  width: 100%;
  max-width: 460px;
  padding: 14px;
  border: 1.5px dashed #c3cad3;
  border-radius: 8px;
  background: #fbfcfd;
  font: inherit;
}

input:focus, select:focus { outline: 2px solid var(--accent-line); outline-offset: 1px; }

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkbox input { width: 16px; height: 16px; }

.btn {
  display: inline-block;
  padding: 9px 20px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: .45; cursor: default; }

.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-quiet:hover { background: #eef1f5; }

.alert {
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid #f2c3c0;
  border-left: 4px solid var(--bad);
  border-radius: 8px;
  background: var(--bad-bg);
  color: #7d1a15;
}

/* ---- run page ------------------------------------------------ */

.run-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.run-bar form { margin: 0; }

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--chip-bg);
  color: var(--chip-ink);
}

.status-running, .status-stopping { background: var(--busy-bg); color: var(--busy); }
.status-finished { background: var(--ok-bg);  color: var(--ok); }
.status-failed   { background: var(--bad-bg); color: var(--bad); }

.log {
  margin: 0;
  padding: 16px;
  max-height: 460px;
  overflow: auto;
  border-radius: 8px;
  background: #14171b;
  color: #d8dee6;
  font: 13px/1.6 Consolas, "Cascadia Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.file {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  text-decoration: none;
  color: inherit;
}

.file:hover { border-color: var(--accent-line); background: #f4f8ff; }
.file-name { font-weight: 600; word-break: break-all; }
.file-size { color: var(--ink-dim); font-size: 13px; white-space: nowrap; }

/* ---- tables and empty states --------------------------------- */

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th {
  padding: 10px 16px;
  background: #f2f4f7;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: left;
}

.table td { padding: 11px 16px; border-top: 1px solid var(--line); }
.table a  { color: var(--accent-line); text-decoration: none; font-weight: 600; }
.table a:hover { text-decoration: underline; }

.empty-state {
  padding: 40px;
  text-align: center;
  border: 1.5px dashed #ccd3dc;
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h2 { margin: 0 0 8px; font-size: 17px; }
.empty-state p  { margin: 0; color: var(--ink-dim); }

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #eceff3;
  font: 13px Consolas, monospace;
}

/* ---- narrow screens ------------------------------------------ */

@media (max-width: 820px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; flex: none; }
  .main { padding: 24px 18px 50px; }
}

/* ---- added for settings, notices and multi-choice fields ------- */

.notice {
  padding: 11px 16px;
  margin-bottom: 18px;
  border: 1px solid #bfe3cc;
  border-left: 4px solid var(--ok);
  border-radius: 8px;
  background: var(--ok-bg);
  color: #145c34;
}

.alert-warn {
  border-color: #f0d9a8;
  border-left-color: var(--busy);
  background: var(--busy-bg);
  color: #6b4600;
}

.alert-warn a { color: #6b4600; font-weight: 600; }

.tag {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-dim);
}

.field-label {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.help.indent { margin-left: 24px; }

textarea {
  width: 100%;
  max-width: 520px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  resize: vertical;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
  font-weight: 400;
}

.choice:hover { border-color: var(--accent-line); background: #f4f8ff; }
.choice input { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.choice strong { display: block; font-size: 14px; font-weight: 600; }
.choice em {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-style: normal;
  color: var(--ink-dim);
}

.status-interrupted { background: var(--busy-bg); color: var(--busy); }
.status-stopped { background: var(--chip-bg); color: var(--chip-ink); }

.notes p { margin: 0 0 10px; color: var(--ink-dim); font-size: 14px; }
.notes p:last-child { margin-bottom: 0; }

.file-folder { cursor: default; background: #f4f6f8; }
.file-folder:hover { border-color: var(--line); background: #f4f6f8; }
.file-folder .file-name::before { content: "\01F4C1  "; }
.help code { font-size: 12px; word-break: break-all; }

.clear-secret { margin-top: 8px; font-size: 13px; font-weight: 400; color: var(--ink-dim); }

textarea.mono {
  font: 13px/1.6 Consolas, "Cascadia Mono", monospace;
  max-width: 340px;
}

/* ---- a job still running ------------------------------------- */

.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.running-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0a52a;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  .running-dot { animation: none; }
}

.panel-live { border-color: #f0d9a8; background: #fffdf8; }

.live-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.live-head h2 { margin: 0; }
.live-head .muted { font-size: 13px; }

.live-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.live-actions form { margin: 0; }

.panel-live .log { max-height: 300px; }

.last-run {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-dim);
}

.last-run a { color: var(--accent-line); font-weight: 600; text-decoration: none; }
.last-run a:hover { text-decoration: underline; }

.sub {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.live-head h2 + .status { margin-left: 2px; }
#live-panel .sub:first-of-type { margin-top: 0; }

/* ---------------------------------------------------------------
   Dark theme
   Only the colour variables change. Everything else is written in
   terms of them, so nothing else needs a dark version.
   --------------------------------------------------------------- */

:root[data-theme="dark"] {
  --bg:          #14171a;
  --surface:     #1c2024;
  --sidebar:     #0f1214;
  --sidebar-dim: #8b939c;
  --ink:         #e6e9ec;
  --ink-dim:     #98a1ab;
  --line:        #2c3238;
  --accent:      #2a5fd0;   /* fills: buttons, selected item, logo */
  --accent-line: #6aa3ff;   /* links, focus rings, hover borders */
  --chip-bg:     #2b3239;   /* the plain chip, was a near-white pill here */
  --chip-ink:    #c2cbd5;
  --accent-dark: #2450b8;
  --ok:          #6ddba0;
  --ok-bg:       #16301f;
  --bad:         #ff8a80;
  --bad-bg:      #3a1c19;
  --busy:        #f0c274;
  --busy-bg:     #362a13;
}

:root[data-theme="dark"] body { color-scheme: dark; }
/* The sidebar in dark mode.
   The accent blue is lightened for dark backgrounds, which makes it a poor
   bed for white text. So the selected item gets a deeper blue of its own
   rather than the shared accent. These rules also need to out-rank
   `.nav-link.is-active` above, hence the longer selectors. */

:root[data-theme="dark"] .nav-link { color: #d5dbe2; }
:root[data-theme="dark"] .nav-link:hover { background: #1e242a; color: #fff; }
:root[data-theme="dark"] .nav-link.is-active,
:root[data-theme="dark"] .nav-link.is-active:hover {
  background: var(--accent);
  color: #fff;
}
:root[data-theme="dark"] .nav-link.quiet { color: #aab3bd; }
:root[data-theme="dark"] .sidebar-foot { border-top-color: #272d33; }
:root[data-theme="dark"] .nav-group-title { color: #98a3ae; }
:root[data-theme="dark"] .role-chip { background: #2f363e; color: #c3ccd6; }

:root[data-theme="dark"] input[type=text],
:root[data-theme="dark"] input[type=number],
:root[data-theme="dark"] input[type=password],
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #14181c;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] input[type=file] {
  background: #14181c;
  color: var(--ink);
  border-color: #39424b;
}

:root[data-theme="dark"] .table th { background: #21262b; }
:root[data-theme="dark"] .file { background: #191d21; }
:root[data-theme="dark"] .file:hover { background: #1e252c; }
:root[data-theme="dark"] .file-folder,
:root[data-theme="dark"] .file-folder:hover { background: #21262b; }
:root[data-theme="dark"] .choice { background: #191d21; }
:root[data-theme="dark"] .choice:hover { background: #1e252c; }
:root[data-theme="dark"] .btn-quiet:hover { background: #272d33; }
:root[data-theme="dark"] code { background: #262c32; }
:root[data-theme="dark"] .panel-live { background: #22201a; border-color: #3d341f; }
:root[data-theme="dark"] .alert { color: #ffb4ab; }
:root[data-theme="dark"] .alert-warn { color: #f0c274; }
:root[data-theme="dark"] .alert-warn a { color: #f0c274; }
:root[data-theme="dark"] .notice { color: #8fe0b0; }
:root[data-theme="dark"] .empty-state { border-color: #333b42; }


/* ---- sign-in page --------------------------------------------- */

.signin-page {
  display: block;
  background: var(--bg);
}

.signin {
  max-width: 380px;
  margin: 0 auto;
  padding: 12vh 20px 40px;
}

.signin-brand {
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ink);
}

.signin h1 { margin: 0 0 18px; font-size: 20px; }
.signin .panel { margin-bottom: 14px; }
.signin .btn { width: 100%; }

.signin-foot {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-dim);
}

/* ---- who is signed in ----------------------------------------- */

.whoami {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #272b31;
}

.role-chip {
  padding: 1px 7px;
  border-radius: 20px;
  background: #2a3038;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #aeb7c1;
}

.nav-link.quiet { color: #8b939c; font-size: 13px; }
.admin-title { margin-top: 16px; }

/* ---- people and arranging ------------------------------------- */

.person { display: grid; gap: 20px; }
.person-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.person-head h2 { margin: 0; }
.person-head .muted { font-size: 13px; }

.person-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 20px;
}

.person-reset {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.arrange-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.arrange-row:last-of-type { border-bottom: 0; }
.arrange-row form { margin: 0; display: flex; align-items: center; gap: 8px; }
.arrange-row input[type=text] { max-width: 220px; }
.arrange-row select { max-width: 190px; }

.btn-move {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.btn-move:hover:not([disabled]) { border-color: var(--accent-line); }
.btn-move[disabled] { opacity: .3; cursor: default; }

.arrange-add { margin-top: 18px; }
.arrange-add .field { margin-bottom: 10px; }

.tag.locked { background: var(--busy-bg); color: var(--busy); border-color: transparent; }

.locked-value {
  margin: 0;
  padding: 8px 11px;
  max-width: 420px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--ink-dim);
  font-size: 14px;
}

textarea.wide { max-width: 100%; }

.handle {
  flex: none;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--ink-dim);
  background: transparent;
  border: 1px dashed var(--line);
  white-space: nowrap;
}

/* ---- Arrange page columns -------------------------------------
   Every row is a grid with the same column widths, so the handles,
   category boxes and buttons line up down the page whatever length
   the names are, and nothing wraps onto a second line. */

.arrange-row.tool-row,
.arrange-row.category-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  flex-wrap: nowrap;
}

.arrange-row .arrange-tool {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 140px 170px auto;
  gap: 8px;
  min-width: 0;
}

.arrange-row .arrange-name {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.arrange-row .arrange-tool input[type=text],
.arrange-row .arrange-tool select,
.arrange-row .arrange-name input[type=text] {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.arrange-row .arrange-tool .handle {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.arrange-row .btn { white-space: nowrap; }

@media (max-width: 820px) {
  .arrange-row.tool-row,
  .arrange-row.category-row { display: flex; flex-wrap: wrap; }
  .arrange-row .arrange-tool { grid-template-columns: 1fr; width: 100%; }
}

/* ---- storage page ---------------------------------------------- */

.storage-table { margin-bottom: 12px; }
.storage-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.storage-table .indent-cell { padding-left: 34px; color: var(--ink-dim); }
.days { display: inline-flex; align-items: center; gap: 8px; }
.days input { width: 110px; }

/* ---- the column overview on a settings page ---- */
.column-group {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; margin: 22px 0 8px;
}
.column-group .muted { font-weight: 400; font-size: 13px; }
.swatch {
  width: 14px; height: 14px; border-radius: 3px; flex: none;
  border: 1px solid rgba(0, 0, 0, .15);
}
.swatch-blue   { background: #9DC3E6; }
.swatch-green  { background: #C5E0B4; }
.swatch-purple { background: #CC99FF; }
.table-scroll { overflow-x: auto; }
.columns-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.columns-table th, .columns-table td {
  text-align: left; padding: 5px 10px 5px 0; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.columns-table th { font-weight: 600; color: var(--ink-dim); font-size: 12px; }
.columns-table .mono { font-family: ui-monospace, Consolas, monospace; }

/* ---- the table a script leaves behind ---- */
.report-filter {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 14px;
}
.report-filter span { font-size: 13px; color: var(--ink-dim); }
.report-filter input {
  flex: 0 1 320px; padding: 7px 10px; font-size: 13px;
}
.report-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  table-layout: fixed;
}
.report-table th, .report-table td {
  text-align: left; padding: 9px 16px 9px 0; vertical-align: top;
  border-bottom: 1px solid var(--line); line-height: 1.5;
}
.report-table th { white-space: nowrap; }
/* Only the long text columns may break inside a word. */
.report-table td.wide { overflow-wrap: anywhere; }
.report-table th {
  font-weight: 600; color: var(--ink-dim); font-size: 12px;
  position: sticky; top: 0; background: var(--surface);
}

.report-table tbody tr:hover { background: var(--chip-bg); }
/* The page scrolls, not the table: two scrollbars inside each other are
   miserable to use. The headings stay put while the rows go by. */
#report-panel .table-scroll { overflow: visible; }
.report-table thead th { top: 0; z-index: 1; }

/* ---- a file shown for copying ---- */
.code-view {
  max-height: 65vh; overflow: auto; white-space: pre;
  font-size: 12.5px; line-height: 1.55;
}

/* A form does not want to be as wide as a table: a lone input stranded in a
   1300px panel looks lost. Tables, logs and reports keep the full width. */
form .panel { max-width: 980px; }

/* ---- a column that is switched off ---- */
.columns-table tr.is-off td { opacity: .55; }
.columns-table tr.is-off label { text-decoration: line-through; }
.btn-small { padding: 4px 10px; font-size: 12px; }
.add-columns {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.add-columns label { font-size: 13px; color: var(--ink-dim); }
.add-columns input[type=text] { width: 190px; }

/* the little "put it back" line above a settings form */
.alert .inline-form { display: inline; margin-left: 8px; }

/* An offer rather than a problem: the same shape as a notice, no colour. */
.notice-quiet {
  background: var(--chip-bg); color: var(--ink-dim);
  border: 1px solid var(--line); border-left: 4px solid var(--line);
}

/* ---- Claude's own runs, kept below everybody else's ---- */
.assistant-runs {
  margin-top: 46px; padding-top: 10px;
  border-top: 2px solid var(--line);
}
.assistant-runs .page-head { margin-bottom: 16px; }
.assistant-runs h2 { margin: 0 0 6px; font-size: 18px; }
.assistant-runs .help { max-width: 70ch; margin-bottom: 10px; }
.assistant-runs table { opacity: .92; }

/* ---- two-step sign-in ---- */

/* The code box: a handful of characters read back one at a time, so they are
   set large and spaced, the way a bank card number is printed. */
input.code-entry {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 22px; letter-spacing: .28em; text-align: center;
  max-width: 260px; padding: 10px 12px;
}
.signin-aside { margin: 16px 0 0; }

/* Setup: the instructions and the square side by side, stacking when there
   is not room for both. */
.setup-rows {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
}
.setup-steps { flex: 1 1 380px; margin: 0; padding-left: 20px; }
.setup-steps li { margin-bottom: 14px; line-height: 1.6; }
.setup-code { flex: 0 0 auto; max-width: 300px; }
/* The square is drawn in black on white whatever the theme, because that is
   the contrast a camera is looking for. The border keeps it from floating
   on a white surface. */
.qr {
  background: #fff; padding: 10px; border: 1px solid var(--line);
  border-radius: var(--radius); line-height: 0; display: inline-block;
}
.setup-code .help { margin: 12px 0 6px; }
.setup-key code {
  font-size: 14px; letter-spacing: .06em; word-spacing: .2em;
  display: inline-block; line-height: 1.7;
}
.setup-confirm { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Backup codes: shown once, so they are made easy to read off and to print. */
.backup-panel { border-left: 4px solid var(--accent-line); }
.backup-codes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 18px; margin: 16px 0; padding-left: 26px;
}
.backup-codes li {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 16px; letter-spacing: .05em;
}
.backup-actions { display: flex; gap: 10px; }
@media print {
  /* Printing the list should give the codes, not the whole platform. */
  .sidebar, .backup-actions, .page-head, .panel:not(.backup-panel) { display: none; }
  .backup-panel { border: 0; }
}

.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin-bottom: 8px; line-height: 1.6; }

/* On the People page: where an account stands on two-step. */
.two-step-state { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
