/* ==========================================================================
   Flovino — web app
   PerformAura design language: Inter, navy #092A4B, teal #3BAD92,
   soft grey surfaces, generous radii, restrained shadows.
   ========================================================================== */

:root {
  --navy: #092a4b;
  --navy-2: #0d3a63;
  --teal: #3bad92;
  --teal-dark: #2c8a73;
  --cyan: #19c7b1;
  --amber: #d97706;
  --indigo: #6366f1;
  --success: #059669;
  --danger: #dc2626;

  --ink: #101828;
  --body: #475467;
  --faint: #98a2b3;
  --line: #e9ebef;
  --line-subtle: #f1f3f7;
  --surface: #f7f8fa;

  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, 0.12);

  --sidebar-w: 286px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(59, 173, 146, 0.24); }

/* ------------------------------------------------------------------ boot */

.app-loading { display: grid; place-items: center; min-height: 100vh; }
.boot { text-align: center; color: var(--faint); font-size: 13px; }
.boot-mark {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: block; object-fit: contain;
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(0.94); opacity: 0.75 } }

/* --------------------------------------------------------------- brand */

/* ---- logo -------------------------------------------------------------
   One asset, three sizes, one rule: the bare mark only ever sits on a light
   surface. Its gradient starts at #00133F, which measures 1.24:1 against our
   navy — on a dark bar the stem of the F disappears. Dark surfaces and
   anything at or below 32px use the chip variant instead.
   Clear space: a quarter of the mark's height on every side.          */

.mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: block; object-fit: contain;
}
.mark-sm { width: 26px; height: 26px; }
.mark-lg { width: 44px; height: 44px; }

.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
/* Solid navy. The mark carries the colour; a two-tone wordmark next to a
   gradient mark had two elements doing the same job. */
.wordmark-text b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.wordmark-text small { font-size: 10.5px; color: var(--faint); font-weight: 500; }

/* -------------------------------------------------------------- buttons */

.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 650; letter-spacing: -0.01em;
  padding: 10px 18px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease,
              box-shadow 150ms ease, transform 90ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); box-shadow: var(--shadow); }

.btn-accent { background: var(--teal); color: #04261e; }
.btn-accent:hover:not(:disabled) { background: var(--cyan); }

.btn-ghost { background: #fff; color: var(--body); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover:not(:disabled) { color: var(--navy); border-color: #d3dae4; }

.btn-quiet { background: transparent; color: var(--body); }
.btn-quiet:hover:not(:disabled) { background: var(--line-subtle); color: var(--navy); }

.btn-danger { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.btn-danger:hover:not(:disabled) { background: #fee4e2; }

.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 13px; }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--teal-dark); font-weight: 600; font-size: 14px;
  text-decoration: underline; text-underline-offset: 2px;
}
.link:hover { color: var(--navy); }

/* --------------------------------------------------------------- inputs */

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--body); margin-bottom: 7px;
}

.input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 14.5px; color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.input::placeholder { color: var(--faint); }
.input:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 173, 146, 0.15);
}

/* A combobox that behaves like the onboarding pickers in the brief. */
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto; padding: 5px;
}
.combo-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: 0; background: none; cursor: pointer;
  border-radius: 9px; font-size: 14px; text-align: left; color: var(--ink);
}
.combo-opt:hover, .combo-opt.is-active { background: var(--line-subtle); }
.combo-opt .emoji { font-size: 15px; line-height: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; width: 100%; justify-content: space-between;
}
.chip-x {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--faint); padding: 2px; line-height: 0; border-radius: 6px;
}
.chip-x:hover { color: var(--danger); background: #fef3f2; }

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

/* What was here was the topbar's responsive block, and removing the topbar
   left its tail behind: a stray closing brace and, outside any media query,
   `.status-pill span:not(.status-dot) { display: none }`. That line was
   written to shorten the pill on a 420px phone. Unscoped it applied
   everywhere, so the pill lost its label at 1440 too and read as a bare
   green dot — a status indicator that does not say what it is reporting.
   The phone-width version of it now lives with the rest of the sidebar's
   responsive rules, at the bottom of this file. */

/* Status, not a label. It was a bordered, filled pill carrying a full
   sentence — the same weight as the page title, for a line nobody reads
   twice. Now it is quiet until you point at it, and the border only appears
   on hover to say it can be clicked. */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px; border-radius: 999px;
  background: transparent; border: 1px solid transparent;
  font-size: 12px; font-weight: 500; color: #667085;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.status-pill:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.status-pill:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
/* A model name is worth reading properly; "Models run in your extension" is
   not, and should not push the page title off a narrow bar. */
.status-pill.is-ready { font-weight: 600; color: var(--ink); }
.status-text { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-dot.ok { background: var(--success); }
.status-dot.off { background: var(--danger); }

/* ---------------------------------------------------------- onboarding */

.onboard {
  min-height: 100vh; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
@media (max-width: 900px) { .onboard { grid-template-columns: 1fr; } }

.onboard-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 8vw; background: #fff;
}
.onboard-right {
  background: linear-gradient(150deg, #eef4f2 0%, #e7eef6 45%, #f3eef8 100%);
  display: grid; place-items: center; padding: 40px;
}
@media (max-width: 900px) { .onboard-right { display: none; } }

.onboard h1 {
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.16; color: var(--navy); margin: 26px 0 8px;
}
.onboard .lede { font-size: 15.5px; color: var(--body); margin: 0 0 28px; max-width: 42ch; }
.onboard form { max-width: 420px; }

/* The setup is one screen now, so there is no progress to indicate. */
.field-note {
  margin: 2px 0 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--faint);
}

/* Decorative stack of captured cards on the onboarding right panel. */
.deck { position: relative; width: 300px; height: 230px; }
.deck-card {
  position: absolute; inset: 0;
  background: #fff; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(9, 42, 75, 0.14);
  padding: 16px;
}
.deck-card:nth-child(1) { transform: rotate(-7deg) translate(-16px, 8px); opacity: 0.55; }
.deck-card:nth-child(2) { transform: rotate(-2.5deg) translate(-6px, 4px); opacity: 0.8; }
.deck-card:nth-child(3) { transform: rotate(2deg); }
.deck-line { height: 7px; border-radius: 999px; background: var(--line-subtle); margin-bottom: 9px; }
.deck-line.w60 { width: 60%; } .deck-line.w80 { width: 80%; } .deck-line.w40 { width: 40%; }
.deck-line.accent { background: linear-gradient(90deg, var(--teal), var(--cyan)); width: 45%; height: 8px; }
.deck-shot { height: 92px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); margin-top: 11px; }

/* -------------------------------------------------------------- library */

.page { max-width: 1120px; margin: 0 auto; padding: 34px 26px 80px; width: 100%; }

.page-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.028em;
  color: var(--navy); margin: 0 0 4px;
}
.page-head p { margin: 0; color: var(--body); font-size: 14.5px; }
.page-head .spacer { flex: 1; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { border-color: #d3dae4; box-shadow: var(--shadow); transform: translateY(-2px); }

.card-thumb {
  aspect-ratio: 16 / 9; background: var(--surface);
  border-bottom: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-thumb .ph { color: var(--faint); font-size: 12px; }

.card-body { padding: 15px 17px 17px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: 15px; font-weight: 700; letter-spacing: -0.017em; color: var(--navy);
  margin: 0 0 6px; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title:hover { color: var(--teal-dark); }
.card-desc {
  font-size: 13px; color: var(--body); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--faint);
}
.pill {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px; font-weight: 600;
}
.pill-live { background: #ecfdf3; border-color: #abefc6; color: #067647; }

.empty-state {
  text-align: center; padding: 64px 24px;
  background: #fff; border: 1px dashed #cfd6e0; border-radius: var(--radius-lg);
}
.empty-state h2 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 6px; letter-spacing: -0.02em; }
.empty-state p { color: var(--body); margin: 0 auto 20px; max-width: 46ch; font-size: 14.5px; }
/* The second paragraph is context, not the answer — it should read quieter. */
.empty-state p.dim { color: #667085; font-size: 13.5px; margin-top: -8px; }

/* ------------------------------------------------------------ guide doc */

.doc { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
@media (max-width: 940px) { .doc { grid-template-columns: 1fr; } .doc-rail { display: none; } }

.doc-rail {
  border-right: 1px solid var(--line); background: #fff;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px 28px;
}
.rail-head { padding: 0 6px 14px; border-bottom: 1px solid var(--line-subtle); margin-bottom: 12px; }
.rail-title {
  font-size: 13px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1.35;
}
.rail-sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

.rail-step {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 9px; border-radius: 9px; cursor: pointer;
  color: var(--body); font-size: 13px; line-height: 1.4;
  border: 0; background: none; width: 100%; text-align: left;
  transition: background 130ms ease, color 130ms ease;
}
.rail-step:hover { background: var(--line-subtle); color: var(--navy); }
.rail-step.is-active { background: var(--surface); color: var(--navy); font-weight: 650; }
.rail-no {
  flex: 0 0 auto; width: 19px; font-size: 11.5px; font-weight: 700;
  color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 1px;
}
.rail-step.is-active .rail-no { color: var(--teal-dark); }
.rail-label { min-width: 0; word-break: break-word; }

.doc-main { padding: 30px 40px 100px; max-width: 880px; width: 100%; }
@media (max-width: 640px) { .doc-main { padding: 22px 18px 70px; } }

.doc-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap;
}
.doc-bar .spacer { flex: 1; }
.crumb { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.crumb button { background: none; border: 0; cursor: pointer; color: var(--faint); font-size: 13px; padding: 0; }
.crumb button:hover { color: var(--navy); text-decoration: underline; }

.byline { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.byline-text b { display: block; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.byline-text span { font-size: 12px; color: var(--faint); }

.doc-title {
  font-size: 40px; font-weight: 800; letter-spacing: -0.033em;
  line-height: 1.12; color: var(--navy); margin: 0 0 12px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 3px 6px; margin-left: -6px; outline: none;
}
.doc-title:hover { border-color: var(--line); }
.doc-title:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(59,173,146,0.15); background: #fff; }
@media (max-width: 640px) { .doc-title { font-size: 28px; } }

.doc-desc {
  font-size: 16px; color: var(--body); margin: 0 0 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 5px 6px; margin-left: -6px; outline: none; min-height: 28px;
}
.doc-desc:empty::before { content: attr(data-placeholder); color: var(--faint); }
.doc-desc:hover { border-color: var(--line); }
.doc-desc:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(59,173,146,0.15); background: #fff; }

.doc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; font-size: 12px; color: var(--faint); }

.start-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 8px; box-shadow: var(--shadow-sm);
}
.start-card .favicon {
  width: 26px; height: 26px; border-radius: 7px; background: var(--navy);
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
  flex: 0 0 auto;
}
.start-card-text { min-width: 0; flex: 1; }
.start-card-text b { display: block; font-size: 13.5px; font-weight: 650; color: var(--navy); }
.start-card-text span {
  font-size: 12px; color: var(--faint);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.flowarrow { display: grid; place-items: center; color: var(--faint); padding: 8px 0; }

/* ---- the step blocks ---- */

.dstep {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  margin-bottom: 14px; overflow: hidden; scroll-margin-top: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.dstep:hover { border-color: #d9e0e9; box-shadow: var(--shadow-sm); }
.dstep.is-active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(59,173,146,0.13); }

.dstep-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; }
.dstep-no {
  flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--body);
  font-variant-numeric: tabular-nums;
}
.dstep-title {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 650;
  letter-spacing: -0.015em; color: var(--ink); line-height: 1.4;
  border: 1px solid transparent; border-radius: 8px;
  padding: 1px 6px; margin: -1px -6px; outline: none; word-break: break-word;
}
.dstep-title:hover { border-color: var(--line); }
.dstep-title:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(59,173,146,0.15); }

.dstep-del {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--faint); padding: 4px; border-radius: 7px; line-height: 0;
  opacity: 0; transition: opacity 140ms ease, color 140ms ease, background 140ms ease;
}
.dstep:hover .dstep-del { opacity: 1; }
.dstep-del:hover { color: var(--danger); background: #fef3f2; }

/* Annotated screenshot: the image is cropped toward the target and the
   highlight is drawn as a box, not baked into the pixels — so it stays
   crisp and can be re-framed later. */
.shot {
  position: relative; margin: 0 18px 18px;
  border-radius: 11px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  aspect-ratio: 16 / 9;
}
.shot-inner { position: absolute; inset: 0; overflow: hidden; }
.shot-inner img { position: absolute; display: block; max-width: none; }
.shot-hi {
  position: absolute; border: 2.5px solid var(--amber); border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
  pointer-events: none;
}
.shot-missing {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--faint); font-size: 12.5px;
}
.shot-zoom {
  position: absolute; right: 9px; bottom: 9px;
  appearance: none; border: 0; cursor: pointer;
  background: rgba(9, 42, 75, 0.84); color: #fff;
  font-size: 11px; font-weight: 650;
  padding: 5px 10px; border-radius: 7px;
  opacity: 0; transition: opacity 140ms ease;
}
.shot:hover .shot-zoom { opacity: 1; }
.shot-zoom:hover { background: var(--navy); }

.dstep-note {
  margin: -6px 18px 16px; padding: 9px 11px;
  background: var(--surface); border-radius: 9px;
  font-size: 13.5px; color: var(--body); outline: none;
  border: 1px solid transparent;
}
.dstep-note:empty::before { content: 'Add a note…'; color: var(--faint); }
.dstep-note:focus { border-color: var(--teal); background: #fff; }

/* -------------------------------------------------------------- modal */

.modal-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(9, 42, 75, 0.42); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 22px;
}
.modal {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 480px;
  padding: 24px; max-height: 86vh; overflow-y: auto;
}
.modal h2 { margin: 0 0 6px; font-size: 19px; font-weight: 750; letter-spacing: -0.02em; color: var(--navy); }
.modal p.sub { margin: 0 0 18px; color: var(--body); font-size: 14px; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-subtle); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--body); }
.kv dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; word-break: break-word; }

.mono { font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

.code {
  background: var(--navy); color: #d8e6f2; border-radius: 10px;
  padding: 11px 13px; font-family: "Fira Code", ui-monospace, monospace;
  font-size: 12.5px; overflow-x: auto; margin: 10px 0;
  /* These blocks hold shell commands, one per line. Without this the newlines
     collapse and two commands run together into one unusable line. */
  white-space: pre;
  line-height: 1.6;
}

.ep {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  margin-bottom: 8px; font-size: 13.5px;
}
.ep-model { font-weight: 650; color: var(--navy); }
.ep-url { color: var(--faint); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 11px 18px;
  border-radius: 11px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600; z-index: 120;
  animation: toast-in 220ms ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===================================================================
   Dashboard — the shift report

   Three zones, two columns, one sentence at the top. No KPI row: if the
   sentence works the tiles are decoration, and if it does not the tiles
   will not save it.
   =================================================================== */

.dash-head { margin-bottom: 26px; }
.dash-line {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  max-width: 34ch;
}

.dash { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.dash-left { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.dash-right { flex: 0 1 372px; min-width: 288px; display: flex; flex-direction: column; gap: 26px; }

.zone-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.zone-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
}
.zone-head span { font-size: 12.5px; color: #667085; }

.stack { display: flex; flex-direction: column; gap: 11px; }

/* ---- needs you ---- */
.need {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #98A2B3;
  border-radius: 12px;
  padding: 16px 18px;
}
.need-undesigned { border-left-color: var(--amber); }
.need-unlabelled { border-left-color: var(--amber); }
.need-fragile { border-left-color: var(--navy-2); }
/* Two colours, one meaning each: amber is degraded and fixable, navy is a
   judgement already recorded that you may want to look at. A third colour
   would be a legend nobody reads. */
.need-flags { border-left-color: var(--navy-2); }

.need-top { display: flex; align-items: flex-start; gap: 14px; }
.need-copy { min-width: 0; flex-grow: 1; }
.need-title { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.35; }
.need-detail { font-size: 13px; color: var(--body); line-height: 1.5; margin-top: 4px; }
.need-count { flex: 0 0 auto; text-align: right; }
.need-count b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.need-count span { font-size: 11px; color: #667085; }

.need-prop {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 13px;
  background: var(--surface);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.need-mark {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--cyan);
  display: grid; place-items: center;
  margin-top: 1px;
}
.need-foot { display: flex; align-items: center; gap: 10px; margin-top: 13px; }

/* The workflows a card is actually talking about, so the page does not need
   a second zone repeating them. */
.need-targets { margin-top: 10px; border-top: 1px solid #F1F3F6; }
.ntarget {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 2px;
  background: none; border: 0; border-bottom: 1px solid #F4F6F9;
  font: inherit; text-align: left; color: inherit;
  cursor: pointer;
}
.ntarget:last-child { border-bottom: 0; }
.ntarget:hover { background: var(--surface); }
.ntarget:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: -2px; border-radius: 6px; }
/* The one part of the row that is allowed to take the leftover width, so
   the count and the chevron are pinned to the right edge at any width. */
.ntarget-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.ntarget-title {
  min-width: 0;
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Wraps instead of pushing the row wider. This is a subordinate detail, so
   two short lines of it is better than one line that ends in an ellipsis
   where the number should be. */
.ntarget-ev { font-size: 11.5px; color: #667085; line-height: 1.45; }
.ntarget-n {
  flex: 0 0 auto;
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 12px; color: var(--body); white-space: nowrap;
}
.ntarget-go { flex: 0 0 auto; color: #667085; display: grid; place-items: center; }
.ntarget:hover .ntarget-go { color: var(--teal-dark); }

.zone-foot { margin-top: 12px; font-size: 12.5px; color: #667085; line-height: 1.5; max-width: 62ch; }

/* ---- panel: the ledger ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-foot {
  padding: 11px 16px;
  font-size: 12px;
  color: var(--body);
  line-height: 1.5;
  background: var(--surface);
}

.led { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #F4F6F9; }
.led-main { min-width: 0; flex-grow: 1; }
.led-what { font-size: 13.5px; line-height: 1.45; }
.led-what b { font-weight: 600; }
.led-what span { color: var(--body); }
.led-when { font-size: 11.5px; color: #667085; margin-top: 3px; }
.led-undo {
  flex: 0 0 auto;
  font: inherit; font-size: 12px; font-weight: 600;
  color: #1F6B59;
  background: transparent;
  border: 1px solid #BBE0D4;
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
}
.led-undo:hover { background: #F4FAF8; }

.quiet-card {
  background: #fff;
  border: 1px dashed #D8DEE7;
  border-radius: 12px;
  padding: 16px 18px;
}
.quiet-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.quiet-card p { margin: 0; font-size: 13px; color: var(--body); line-height: 1.5; }

/* ---- the model card ---- */
.ask { background: var(--navy); border-radius: 14px; padding: 18px; }
.ask-title { font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: 0.02em; }
.ask p { margin: 7px 0 13px; font-size: 13px; color: #DCE8F2; line-height: 1.55; }
.ask .btn-ghost { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); color: #DCE8F2; }
.ask .btn-ghost:hover { background: rgba(255,255,255,0.16); }

.btn-sm { font-size: 12.5px; padding: 7px 13px; }
.linklike {
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: #1F6B59; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .dash-line { font-size: 24px; max-width: none; }
  .dash-right { flex-basis: 100%; }
}

/* =====================================================================
   Sign in

   Both columns are one vertically-centred block, so they share a centre
   line and read as a pair rather than as two pages that happen to touch.
   The form column is the narrower of the two: the panel is the thing that
   benefits from width, and a form floating in the middle of 580px of
   white is not generous, it is unfinished.
   ===================================================================== */

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }

.auth-main {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 24px;
  min-height: 100vh;
  box-sizing: border-box;
}
/* The form owns the whole column's height so it can centre against the
   panel, and the wordmark travels with it. */
.auth-col { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 372px; margin: 0 auto; }

/* The lockup, and now a control.
   Pressed, it reloads — so it has to look pressable: a hit area that is not
   just the glyphs, a hover that acknowledges the press before it happens,
   and a focus ring, because a link reachable by Tab and invisible when it
   gets there is a link only a mouse can use. The negative margin keeps the
   padded box optically aligned with the heading below it rather than
   indenting the whole column by its own padding. */
.auth-brand {
  display: inline-flex; align-items: center; gap: 11px;
  margin: -8px 0 28px -8px; padding: 8px;
  border-radius: 10px; text-decoration: none;
  transition: background 140ms ease;
}
.auth-brand:hover { background: var(--surface); }
.auth-brand:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 1px; }
.auth-brand .mark { object-fit: contain; flex: 0 0 auto; }
/* 15.5 against the tagline's 11.5. The name was 16 over 11 and the two
   lines read as one grey block at a glance; a smaller step with more
   contrast in weight separates them faster than more size does. */
.auth-brand b {
  display: block; font-size: 15.5px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--navy);
}
/* The tagline. Quiet on purpose: it is there for the person who has never
   seen this product and in the way of everyone who has. 500 rather than
   600 — at this size weight reads as emphasis, and a descriptor that
   competes with the name it describes is a lockup arguing with itself. */
.auth-brand-id small {
  display: block; margin-top: 2px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.005em;
  line-height: 1.2; color: #667085;
}

.auth-card { width: 100%; }

/* ---- arrival ----

   Motion that carries information, not decoration. The order things settle
   in is the order they are meant to be read: who this is, what it says,
   then the way in. 220ms and 10px — far enough to register as arriving,
   short enough that somebody who came to sign in is not waiting on it.

   Nothing here gates interaction: the buttons are clickable from the first
   frame, so a fast reader loses nothing to it. */
@media (prefers-reduced-motion: no-preference) {
  .auth-card > * { animation: auth-rise 220ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .auth-card > *:nth-child(1) { animation-delay: 0ms; }
  .auth-card > *:nth-child(2) { animation-delay: 45ms; }
  .auth-card > *:nth-child(3) { animation-delay: 85ms; }
  .auth-card > *:nth-child(4) { animation-delay: 120ms; }
  .aside-item { animation: auth-rise 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .aside-item:nth-child(1) { animation-delay: 120ms; }
  .aside-item:nth-child(2) { animation-delay: 170ms; }
  .aside-item:nth-child(3) { animation-delay: 220ms; }
  .aside-item:nth-child(4) { animation-delay: 270ms; }
}
@keyframes auth-rise { from { opacity: 0; transform: translateY(10px); } }

/* 34px against the panel's 30. The form is the job on this page; when the
   panel's headline was the larger of the two the eye landed on the right
   column and had to come back. */
.auth-title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--navy); line-height: 1.12; }
.auth-sub { margin: 10px 0 28px; font-size: 14.5px; line-height: 1.5; color: var(--body); }

.auth-stack { display: flex; flex-direction: column; gap: 10px; }

.prov {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 0 16px; height: 48px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.prov:hover { border-color: #cfd6e0; box-shadow: 0 1px 2px rgba(16,24,40,0.05); }

/* The one they are most likely to want.
   Three buttons of equal weight is a quiz the eye has to re-sit every
   visit; one with weight turns the decision into a confirmation. Weighted,
   not filled — a solid button under Google's mark runs into their branding
   terms, which are specific about how that button may look, and a heavier
   border says the same thing inside the rules. */
.prov-primary {
  border-color: #B6C2D2;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06), 0 0 0 3px rgba(9,42,75,0.045);
}
.prov-primary .prov-label { font-weight: 700; }
.prov-primary:hover { border-color: var(--navy-2); box-shadow: 0 2px 6px rgba(16,24,40,0.10); }
.prov:active { background: var(--surface); }
.prov:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }

/* A fixed slot, so the label lands in the same place whether or not the
   mark loaded. The provider marks are monochrome and stay that way: an
   <img> is its own document, so currentColor inside it never sees this
   stylesheet. Dropping a coloured SVG into web/brand/ replaces it with no
   change here. */
.prov-mark { flex: 0 0 20px; display: grid; place-items: center; color: #344054; }
.prov-mark img, .prov-mark svg { display: block; }

/* Left, not centred. The labels were centred with a -20px pull to cancel
   the icon's slot, which meant the text was not centred on the button and
   not aligned with the icon either — it floated between the two. Three rows
   sharing one left edge are read as a list of three choices; three rows of
   drifting centred text are read one at a time. */
.prov-label { flex: 1 1 auto; text-align: left; }

/* Which way in they used last time.
   A returning user usually has more than one of these and no memory of
   which they used, and picking wrong makes a second account rather than an
   error — so this is the difference between signing in and quietly forking
   your own identity. Marked rather than reordered: moving it to the top
   would reward reading and punish muscle memory. */
.prov-last {
  flex: 0 0 auto; margin-left: 8px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: #667085;
}

/* Pressed, and the browser is leaving. An OAuth redirect takes a second on
   a cold connection, and for that second the button did nothing — so
   pressing it again was the ordinary response, which starts a second flow
   over the first. */
.prov[disabled] { cursor: default; }
.prov[disabled]:not(.is-pending) { opacity: 0.45; }
.prov[disabled]:hover { border-color: var(--line); box-shadow: none; }
.prov.is-pending { border-color: var(--teal-dark); color: var(--navy); }
/* The brand mark becomes the spinner, so the row does not change width or
   gain a second thing to look at. */
.prov.is-pending .prov-mark img, .prov.is-pending .prov-mark svg { display: none; }
.prov.is-pending .prov-mark::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(31,107,89,0.25); border-top-color: var(--teal-dark);
  animation: prov-spin 620ms linear infinite;
}
@keyframes prov-spin { to { transform: rotate(360deg); } }
/* Honoured, because a spinner is decoration and motion is not free for
   everyone. The disabled state still reads without it. */
@media (prefers-reduced-motion: reduce) {
  .prov.is-pending .prov-mark::after { animation: none; }
}

.auth-or { display: flex; align-items: center; gap: 14px; margin: 6px 0; color: #667085; font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); }

.auth-input {
  width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 14.5px; color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.auth-input::placeholder { color: #98A2B3; }
.auth-input:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(31,107,89,0.14); }
.auth-code { font-family: "Fira Code", ui-monospace, monospace; letter-spacing: 0.34em; text-align: center; font-size: 17px; }
.auth-go { width: 100%; height: 48px; justify-content: center; border-radius: 11px; font-size: 14.5px; }
.auth-back { align-self: center; font-size: 13px; margin-top: 2px; }

.auth-note { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--body); }
.auth-note.bad { color: #9A3412; }
.auth-note.ok { color: #1F6B59; }

/* Out of flow on purpose. In flow it pushed the form up by half its own
   height, and the two columns stopped sharing a centre line — which was
   the point of the whole layout.

   It used to hold a paragraph about where captures are stored. Now it
   holds the only two things that genuinely belong at the foot of a sign-in
   screen: the documents you are agreeing to. #667085 rather than #98A2B3 —
   4.97:1 against white instead of 2.58:1, below the 4.5:1 body minimum
   however quiet it is meant to look. Quiet is a colour choice; unreadable
   is a defect. */
.auth-foot {
  position: absolute; left: 24px; right: 24px; bottom: 34px;
  width: auto; max-width: 372px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; line-height: 1.55; color: #98A2B3;
}
.auth-foot a {
  color: #667085; text-decoration: none;
  transition: color 120ms ease;
}
.auth-foot a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.auth-foot a:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 3px; }
/* The separator is not a link and must not read as one; it is also the
   only thing here a screen reader gains nothing from. */
.auth-foot-dot { color: #D0D5DD; }

/* ---- the panel ---- */

.auth-aside { display: none; }

@media (min-width: 980px) {
  /* 46/54. The panel carries prose and benefits from the width; the form
     is fixed at 372 either way, so the extra space on the left was doing
     nothing but separating the two columns. */
  .auth-shell { grid-template-columns: 46fr 54fr; }
  .auth-main { padding: 48px 56px; }
  .auth-foot { left: 56px; right: 56px; bottom: 44px; }

  .auth-aside {
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    background-image:
      linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
      radial-gradient(120% 90% at 100% 0%, #0D3A63 0%, rgba(13,58,99,0) 60%),
      linear-gradient(160deg, #092A4B 0%, #071F39 100%);
    background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  }
  .aside-glow {
    position: absolute; inset: auto -12% -30% -12%; height: 60%;
    background: radial-gradient(60% 100% at 50% 100%, rgba(25,199,177,0.20) 0%, rgba(25,199,177,0) 70%);
    pointer-events: none;
  }
  /* Matches the form column's breathing room rather than hugging the seam,
     which is what made the two halves feel unrelated. */
  .aside-body { position: relative; width: 100%; box-sizing: border-box; padding: 56px 12% 56px 9%; max-width: 620px; }
  .aside-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
  .aside-line {
    margin: 16px 0 40px;
    font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.2;
    color: #fff; max-width: 21ch; text-wrap: balance;
  }
  .aside-list { display: flex; flex-direction: column; gap: 24px; }
  .aside-item { display: flex; gap: 14px; align-items: flex-start; }
  .aside-mark {
    flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px;
    display: grid; place-items: center;
    border-radius: 8px; background: rgba(25,199,177,0.13); color: var(--cyan);
  }
  .aside-item-t { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.015em; }
  /* 14px, not 13.5: this is marketing prose on a dark field, read once, by
     someone who has not decided yet. #C3D6E6 lifts it to 9.7:1 on the navy. */
  .aside-item-b { font-size: 14px; line-height: 1.55; color: #C3D6E6; margin-top: 4px; max-width: 42ch; }
}

@media (min-width: 1440px) {
  /* Both scale, and the gap between them holds. Bumping only the panel put
     the two headlines at the same size on a large screen, which is where
     the hierarchy matters most. */
  .auth-col, .auth-foot { max-width: 400px; }
  .auth-title { font-size: 38px; }
  .aside-body { max-width: 680px; }
  .aside-line { font-size: 33px; }
}

/* On a short viewport the out-of-flow footer would eventually meet the form.
   Measured: 23px of clearance left at 1200x660. Below that it goes back into
   the flow — the two columns lose a few pixels of shared centre, which is a
   better trade than text over text. */
@media (max-height: 660px) {
  .auth-foot { position: static; left: auto; right: auto; margin: 26px auto 0; }
  .auth-main { justify-content: flex-start; padding-top: 7vh; }
}

/* A short window is not a narrow one, and the panel has to answer both.
   At 1024x560 — a small laptop with browser chrome — the panel's content
   was taller than the viewport, and overflow:hidden simply cut the first
   and last items off. It compresses instead. */
@media (min-width: 980px) and (max-height: 760px) {
  .aside-body { padding: 36px 10% 36px 9%; }
  .aside-line { font-size: 26px; margin: 12px 0 26px; }
  .aside-list { gap: 17px; }
  .aside-item-b { font-size: 13.5px; margin-top: 2px; }
  .aside-mark { width: 24px; height: 24px; }
}
@media (min-width: 980px) and (max-height: 600px) {
  .aside-line { font-size: 23px; margin: 10px 0 20px; }
  .aside-list { gap: 13px; }
  .aside-item-b { font-size: 13px; line-height: 1.45; }
}

/* The other half of capture, on the screen that otherwise implies there is
   only one way in. */
.empty-alt {
  margin: 4px auto 22px;
  max-width: 60ch;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.empty-alt-t { font-size: 13.5px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.empty-alt p { font-size: 13px; line-height: 1.55; color: var(--body); margin: 5px 0 12px; max-width: none; }
.empty-cmd {
  margin: 0; max-width: 100%; padding: 11px 13px;
  background: var(--navy); border-radius: 9px;
  overflow-x: auto;
}
.empty-cmd code {
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 12px; line-height: 1.6; color: #DCE8F2;
  white-space: pre;
}


/* =====================================================================
   Agents
   Two cards, and no running/stopped light on either — nothing reports
   that, and a dot that guesses is instrumentation that lies.
   ===================================================================== */

/* ---- a capture in progress ----

   The only thing on the Workflows page that changes while you are looking
   at it, so it is the only thing with movement in it. Everything else here
   is a list of finished work. */

.live {
  margin-bottom: 22px; padding: 16px 18px; max-width: 760px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  border-left: 3px solid var(--teal);
}
.live-top { display: flex; align-items: center; gap: 9px; }
.live-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.live-count { margin-left: auto; font-size: 12px; color: #667085; font-variant-numeric: tabular-nums; }
.live-stop { flex: 0 0 auto; }

/* A pulse, because this is the one place where "still going" is the thing
   being reported. Stilled for anybody who has asked their system not to
   animate. */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  flex: 0 0 auto; animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.live-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 1px; }
.live-step {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #F4F6F9;
  font-size: 13px; color: var(--ink);
}
.live-step:last-child { border-bottom: 0; }
.live-step-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Which agent wrote it. This is the only screen where you can watch two
   agents landing in one timeline, so the label is the point rather than
   decoration. */
.live-src {
  flex: 0 0 auto; width: 62px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.live-src-browser { color: var(--teal-dark); }
.live-src-desktop { color: var(--navy-2); }

.live-empty { padding: 6px 0; font-size: 13px; color: #667085; }
.live-foot { margin: 12px 0 0; font-size: 12px; color: #667085; }

/* ---- starting the desktop agent ----

   The button follows a flovino:// link and the browser asks before handing
   it over — that dialog is the approval, and it is the only approval a web
   page can ask for, because a page cannot run a program at all.

   The command stays underneath rather than being replaced, because nothing
   on this page can tell whether the scheme is registered: a browser that
   has never heard of it does nothing, silently. A fallback somebody can
   find is the difference between "it did not work" and "it is broken". */

.launch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.launch-row .btn { text-decoration: none; }
.launch-mark { display: inline-grid; place-items: center; margin-right: 7px; }
.launch-mark svg { width: 13px; height: 13px; }
/* What the browser agent's buttons are doing, or why they cannot. This
   line carries a refusal as often as a status — the extension missing, the
   server down — and a refusal that looks like a hint is how a correct
   refusal becomes indistinguishable from a dead button. */
.launch-note {
  margin: 10px 0 0; max-width: 56ch;
  font-size: 12.5px; line-height: 1.55; color: #667085;
}
.launch-note-on  { color: var(--teal-dark); font-weight: 600; }
.launch-note-off { color: #B42318; }

/* A disabled control has to look unavailable, not merely be unavailable:
   Start is disabled while a capture runs and while no extension is present,
   and both are states somebody will try to click. */
.launch-ext .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.launch-alt { margin-top: 12px; }
.launch-alt > summary {
  cursor: pointer; font-size: 12.5px; color: #667085;
  padding: 2px 0; list-style-position: outside;
}
.launch-alt > summary:hover { color: var(--ink); }
.launch-alt > summary:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; border-radius: 4px; }
.launch-alt-body { padding-top: 10px; }
.launch-alt-body p { margin: 0 0 9px; font-size: 13px; line-height: 1.6; color: var(--body); max-width: 62ch; }
.launch-alt-body .cmd-wrap + p { margin-top: 14px; }

/* ---- how you capture: one agent, or both ----

   This replaced two cards side by side, which framed the page as a choice
   between products. Nobody is choosing a product: the question is whether
   the task stays in the browser, and the answer decides whether one
   recorder sees all of it. So the page asks that first, remembers the
   answer, and each answer ends in one thing to do. */

.modes {
  display: inline-flex; gap: 4px; margin-bottom: 22px; padding: 4px;
  background: #EDF1F5; border-radius: 12px;
}
.mode-tab {
  padding: 9px 18px; border: 0; border-radius: 9px;
  background: none; cursor: pointer; text-align: center;
  font: inherit; font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em;
  color: #475467;
  transition: background 130ms ease, color 130ms ease, box-shadow 130ms ease;
}
.mode-tab:hover { color: var(--navy); }
.mode-tab.on {
  background: #fff; color: var(--navy);
  box-shadow: 0 1px 2px rgba(16,24,40,0.09), 0 0 0 1px rgba(16,24,40,0.04);
}
.mode-tab:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }

.mode-lede { margin: 0 0 18px; max-width: 70ch; font-size: 14.5px; line-height: 1.6; color: var(--body); }

/* Said in the product, not only in a source comment: there is no mode flag
   anywhere in the store, and a page that looked like a switch would be
   promising a setting that does not exist. */
.mode-note {
  max-width: 70ch; margin: 0 0 20px; padding: 13px 15px;
  background: var(--surface); border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  font-size: 13px; line-height: 1.6; color: var(--body);
}
.mode-note b { color: var(--navy); font-weight: 700; }

.msteps { list-style: none; margin: 0; padding: 0; max-width: 760px; display: flex; flex-direction: column; gap: 2px; }
.mstep { display: flex; gap: 14px; padding: 0 0 22px; position: relative; }
.mstep:last-child { padding-bottom: 0; }
/* The rule joins the numbers into a sequence, which is what these are —
   the desktop agent has to be running before the button is pressed. */
.mstep:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px;
  width: 1px; background: var(--line);
}
.mstep-n {
  flex: 0 0 auto; width: 27px; height: 27px; z-index: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 700;
}
.mstep-body { flex: 1 1 auto; min-width: 0; padding-top: 3px; }
.mstep-t { font-size: 14px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.mstep-p { margin: 4px 0 0; max-width: 66ch; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.mstep-body .cmd-wrap { margin-top: 12px; }

.mode-refuse {
  max-width: 760px; margin-top: 26px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.mode-refuse-t {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #667085; margin-bottom: 10px;
}
.mode-refuse ul { margin: 0; padding-left: 18px; }
.mode-refuse li { font-size: 13px; line-height: 1.6; color: var(--body); margin-bottom: 9px; max-width: 64ch; }
.mode-refuse li:last-child { margin-bottom: 0; }

/* A precondition, so it sits above the steps. On a surface-coloured page a
   surface-coloured box is not a box, so this carries a border of its own. */
.mode-ready {
  display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap;
  max-width: 760px; margin: 0 0 22px; padding: 12px 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; line-height: 1.55; color: var(--body);
}
.mode-ready-t { flex: 1 1 260px; min-width: 0; }
.mode-ready .conn-dot { margin-top: 6px; }
.mode-ready-on  .conn-dot { background: var(--success); }
.mode-ready-off .conn-dot { background: var(--danger); }
.mode-ready-off { background: #fef3f2; border-color: #FECDCA; color: #7A271A; }
.mode-ready-off .linklike { color: #B42318; }

@media (max-width: 560px) {
  .modes { display: flex; width: 100%; }
  .mode-tab { flex: 1 1 0; padding: 9px 10px; }
}

/* The Agents page had a previous life, and its stylesheet outlived it. The
   block that stood here defined .agent, .agent-mark, .agent-count, .agent-run
   and six more — every one of them either superseded by the section below or
   no longer rendered by anything at all.

   Dead, except that it was not. Two rules for .agent-mark meant the live one
   won on width, height and display, and lost nothing on `background: navy`
   and `border-radius: 10px`, because it never mentioned them to win. So
   every agent mark sat on a navy tile that nothing in the live stylesheet
   had asked for, and the cause was fifty lines further up under a heading
   for a page that no longer exists.

   Removed rather than patched: a rule that is both dead and load-bearing is
   the worst of the two. */


/* =====================================================================
   Agents

   An agent is defined by what it may touch, so each card is a spec sheet:
   scope, boundary, how it starts. Prose was the wrong form — nobody reads
   four paragraphs to decide whether to run something, and the thing they
   actually want to know was buried in the middle of them.
   ===================================================================== */

.page-lede { margin-bottom: 26px; }
/* The one place the brand gradient appears in the app chrome. Used once,
   at the top of a page, so it stays an accent rather than a texture. */
.eyebrow-brand {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--navy-2) 0%, var(--teal) 55%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--teal-dark);
  margin-bottom: 8px;
}
.page-lede h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; color: var(--navy); }
.page-lede p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--body); max-width: 62ch; }

.agent-list { display: grid; gap: 16px; }
@media (min-width: 1080px) {
  .agent-list { grid-template-columns: 1fr 1fr; }
  /* An odd card at the end spans. Three agents in a two-column grid leave
     the last one alone in the left column with a hole beside it, which reads
     as a card that failed to load rather than as a third agent. The rule is
     written against "last and unpaired" rather than against "the third", so
     two cards still sit side by side and a fourth would pair up again. */
  .agent:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.agent {
  min-width: 0;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 16px;
}

.agent-head { display: flex; align-items: center; gap: 13px; }
/* The artwork carries its own squircle and its own colour — navy for the
   browser, teal for the desktop — so the tile underneath is gone. The PNGs
   were supplied with a near-white background baked in; that is cropped away
   and replaced with a real rounded-rect alpha, or the glyph would sit in a
   faint grey square on a white card. */
.agent-mark {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: block;
  object-fit: contain;
}
.agent-id { min-width: 0; }
.agent-name { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.agent-where { font-size: 12.5px; color: #667085; margin-top: 2px; }
.agent-kind {
  flex: 0 0 auto; margin-left: auto;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: #475467;
  white-space: nowrap;
}

/* The spec. Label left, value right, on a grid so the two cards align with
   each other even when their content does not. */
.spec {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 12px 14px; align-items: start;
  margin: 20px 0 0;
}
.spec dt {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #667085;
  padding-top: 5px;
}
.spec dd { margin: 0; min-width: 0; }
.spec-p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }

.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* spec-chip, not .chip: that name is already taken further up this file by
   a flex-display pill, and an undeclared `display` here inherited it — each
   chip became a block-level flex container and filled its own row. A
   generic class name in a stylesheet this size is a collision waiting. */
.spec-chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; line-height: 1.4;
}
.chip-sees { background: #EDF6F3; color: #1F6B59; border: 1px solid #CDE7DE; }
/* Amber, not red: these are boundaries the product keeps, not errors. */
.chip-never { background: #FDF4EC; color: #9A3412; border: 1px solid #F3DFCC; }

.cmd-wrap { position: relative; margin-top: 2px; }
.cmd {
  margin: 0; max-width: 100%; padding: 12px 64px 12px 14px;
  background: var(--navy); border-radius: 10px; overflow-x: auto;
}
.cmd code {
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 11.5px; line-height: 1.7; color: #DCE8F2; white-space: pre;
}
/* A multi-line command with a line continuation is the exact thing people
   mis-select by hand. */
.cmd-copy {
  position: absolute; top: 9px; right: 9px;
  padding: 5px 10px; border-radius: 7px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  font: inherit; font-size: 11.5px; font-weight: 600; color: #DCE8F2;
  cursor: pointer;
}
.cmd-copy:hover { background: rgba(255,255,255,0.17); }
.cmd-copy:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.agent-foot {
  display: flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 15px;
  font-size: 12.5px; color: #667085;
}
.agent-foot .spacer { flex: 1; }
.agent-tally { font-weight: 600; color: var(--ink); }
.agent-dot { color: #C4CBD6; }
.agent-foot .linklike { font-size: 12.5px; }


/* =====================================================================
   The shell

   A sidebar, because the product has nine destinations and a topbar that
   holds nine is a menu. Same palette throughout — navy, teal, cyan — with
   the navy used as a surface here for the first time, which is what makes
   it read as an application rather than a page.
   ===================================================================== */

.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: var(--surface); }

.side {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  box-sizing: border-box;
  padding: 18px 12px 24px;
  background: linear-gradient(180deg, #0B2F52 0%, var(--navy) 42%, #071F39 100%);
  display: flex; flex-direction: column; gap: 4px;
}
.side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 18px; text-decoration: none;
}
.side-brand .mark { object-fit: contain; flex: 0 0 auto; }
.side-brand-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.side-brand b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.side-brand small {
  margin-top: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55); white-space: nowrap;
}

.side-group {
  margin: 18px 10px 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6E8FAD;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: #B6CBDD;
  text-decoration: none;
  transition: background 110ms ease, color 110ms ease;
}
.side-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.side-link.on { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.side-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.side-icon { flex: 0 0 auto; display: grid; place-items: center; color: currentColor; opacity: 0.85; }
.side-link.on .side-icon { color: var(--cyan); opacity: 1; }
/* The label truncates rather than running past the link's rounded edge.
   Inter comes from Google Fonts, and a reader behind an ad blocker, a
   corporate proxy or an offline machine gets the fallback instead, which is
   wider — "People & Skills" then overflowed by 8px and sat on top of the
   highlight. The layout should not depend on a font arriving. */
.side-link > span:not(.side-icon) {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Quieter, because they are real routes that cannot answer anything yet. */
.side-link.soon { color: #7E9DB8; }
.side-link.soon:hover { color: #D7E5F0; }

.app-main { min-width: 0; display: flex; flex-direction: column; }

.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.appbar .spacer { flex: 1; }
.appbar-title { font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
/* ---- who you are, at the foot of the nav ---- */

/* Pushed to the bottom of the sidebar and separated by a rule rather than a
   gap, so it reads as the end of the list instead of a tenth destination. */
.side-foot {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.who-wrap { position: relative; }



.who {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 8px; border-radius: 10px;
  background: none; border: 0; cursor: pointer;
  font: inherit; text-align: left; color: #B6CBDD;
  transition: background 120ms ease, color 120ms ease;
}
.who:hover, .who[aria-expanded="true"] { background: rgba(255,255,255,0.08); color: #fff; }
.who:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

/* The disc was a teal-to-navy gradient — the most saturated thing on the
   screen, pulling the eye to the one element that was not an action. On the
   navy rail a light tint is enough to read as a person. */
.who-initials {
  flex: 0 0 auto; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.13); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
}
.who[aria-expanded="true"] .who-initials { background: var(--teal); }
.who-name {
  flex: 1 1 auto; min-width: 0;
  font-size: 12.5px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.who-caret { flex: 0 0 auto; display: grid; place-items: center; opacity: 0.7; transition: transform 140ms ease; }
.who[aria-expanded="true"] .who-caret { transform: rotate(180deg); opacity: 1; }

/* Opens upward: there is nothing below it but the bottom of the window. */
.who-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 60;
  min-width: 212px; padding: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.who-head { padding: 9px 11px 11px; border-bottom: 1px solid var(--line-subtle); margin-bottom: 5px; }
.who-head-k {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #667085;
}
/* Wraps rather than truncates. An address you cannot read in full answers
   nothing, and "which account am I in" is the question this menu exists for. */
.who-head-v {
  margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--ink);
  line-height: 1.4; overflow-wrap: anywhere;
}
.who-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 13.5px; font-weight: 500; text-align: left;
  color: var(--ink);
}
.who-item:hover { background: var(--surface); }
/* Red is reserved for the one item that ends the session. It used to be on
   every item in this menu, which made Support look like a thing you might
   regret clicking. */
.who-item.is-danger { margin-top: 2px; }
.who-item.is-danger:hover { background: #fef3f2; color: var(--danger); }
.who-item:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: -2px; }
.who-item-mark { display: grid; place-items: center; color: currentColor; opacity: 0.8; }

/* The legal pair. Reachable, and visibly not competing with the two items
   above and below it — these are documents that have to exist, not places
   anybody is going. */
.who-legal {
  display: flex; align-items: center; gap: 7px;
  margin: 4px 0 2px; padding: 8px 11px 2px;
  border-top: 1px solid var(--line-subtle);
  font-size: 11.5px;
}
.who-legal a { color: #667085; text-decoration: none; border-radius: 4px; }
.who-legal a:hover { color: var(--ink); text-decoration: underline; }
.who-legal a:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.who-legal-dot { color: #C3CAD4; }

.app-body { flex: 1 1 auto; padding: 26px 22px 56px; background: var(--surface); }
.app-body > .page-lede { margin-bottom: 22px; }

/* =====================================================================
   Integrations

   Rows, not a grid of logo tiles. These are statements about a deployment,
   read left to right — name, state, what it means — and a card grid would
   invite scanning them as a set of equivalent products instead.

   Three states, because two cannot tell the truth here. The models row is
   neither connected nor broken: inference lives in the extension and this
   page has never been able to see it. Red would be a fault light for
   working software; green would be a lie.
   ===================================================================== */

.conns { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }

.conn {
  display: flex; gap: 14px;
  padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.conn-mark {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface); color: #667085;
}
.conn-on  .conn-mark { background: #ecfdf3; color: var(--teal-dark); }
.conn-off .conn-mark { background: #fef3f2; color: #B42318; }

.conn-body { flex: 1 1 auto; min-width: 0; }
.conn-top {
  display: flex; align-items: baseline; gap: 10px 14px;
  flex-wrap: wrap;
}
.conn-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }

/* The state reads as a phrase, not a badge. "Runs in your extension" is
   the honest label for the models row, and it does not fit in a chip. */
.conn-state {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  font-size: 12px; font-weight: 600; color: #667085; white-space: nowrap;
}
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: #98A2B3; flex: 0 0 auto; }
.conn-on  .conn-dot { background: var(--success); }
.conn-off .conn-dot { background: var(--danger); }
.conn-on  .conn-state { color: var(--teal-dark); }
.conn-off .conn-state { color: #B42318; }

.conn-what {
  margin: 6px 0 0; max-width: 64ch;
  font-size: 13.5px; line-height: 1.6; color: var(--body);
}
.conn-detail {
  margin-top: 9px; padding: 7px 10px;
  background: var(--surface); border-radius: 8px;
  font-size: 11.5px; color: #667085;
  overflow-wrap: anywhere;
}
.conn-act { margin-top: 11px; }

/* A brand mark sits in the same 34px well as the status glyphs, but it is a
   real asset: the on/off tints must not repaint it, so this wins on both. */
.conn-mark-logo,
.conn-on .conn-mark-logo,
.conn-off .conn-mark-logo { background: var(--surface); padding: 6px; }
.conn-mark-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 620px) {
  .conn { padding: 14px; gap: 12px; }
  /* The state drops under the name rather than squeezing it: a phrase that
     has been truncated to "Runs in your…" is worse than a second line. */
  .conn-state { margin-left: 0; }
  .conn-top { gap: 2px 10px; }
  .conn-name { flex: 1 1 100%; }
}

/* =====================================================================
   Support, privacy, terms

   The only pages here that are read rather than used. One column at a
   comfortable measure and nothing else: the fastest way to make a policy
   look evasive is to decorate it.
   ===================================================================== */

/* =====================================================================
   The public frame

   What a legal page is wrapped in when nobody is signed in. Not the app
   shell: that put nine dashboard destinations on screen for a visitor with
   no account, every one of them bouncing back to the sign-in screen. A
   navigation that cannot navigate is worse than none, and the inside of a
   product shown to somebody standing outside it misrepresents what they
   can reach.

   So: the wordmark, a way in, the document, and the two links. The page is
   centred on its own column rather than inheriting the app's sidebar
   offset, because there is no sidebar to offset from.
   ===================================================================== */

.public { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }

.public-top {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.public-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.public-brand .mark { object-fit: contain; flex: 0 0 auto; }
.public-brand-id b {
  display: block; font-size: 15px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--navy);
}
.public-brand-id small {
  display: block; margin-top: 1px;
  font-size: 10.5px; font-weight: 600; color: #667085;
}
/* margin-auto rather than a spacer element: every .spacer rule in this
   file is scoped to the component that declared it, so a bare one here has
   no flex at all. */
.public-top .btn { margin-left: auto; }

.public-main { flex: 1 1 auto; width: 100%; max-width: 820px; margin: 0 auto; padding: 36px 24px 0; box-sizing: border-box; }

.public-foot {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 820px; margin: 0 auto; padding: 26px 24px 34px;
  box-sizing: border-box;
  font-size: 12.5px; color: #98A2B3;
}
.public-foot a { color: #667085; text-decoration: none; transition: color 120ms ease; }
.public-foot a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.public-foot a:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 3px; }
.public-foot-dot { color: #D0D5DD; }

@media (max-width: 560px) {
  .public-top { padding: 14px 16px; }
  .public-main { padding: 26px 16px 0; }
  .public-foot { padding: 22px 16px 28px; }
  /* The tagline is the first thing to go: the wordmark and the way in are
     what this bar is for. */
  .public-brand-id small { display: none; }
}

.legal { max-width: 72ch; padding-bottom: 40px; }
.legal-top { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.legal h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; color: var(--navy); }
.legal-lede { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.legal-date { margin-top: 14px; font-size: 12px; color: #667085; }

/* A draft that does not announce itself gets relied on as if it were not
   one. This is the loudest thing on the page on purpose. */
.legal-draft {
  margin-bottom: 28px; padding: 14px 16px;
  background: #FFFAEB; border: 1px solid #FEDF89; border-radius: 10px;
  font-size: 13px; line-height: 1.6; color: #7A4B0B;
}
.legal-draft b { color: #633A05; }

.legal-h {
  margin: 34px 0 0; font-size: 17px; font-weight: 750;
  letter-spacing: -0.02em; color: var(--navy);
  scroll-margin-top: 70px;
}
.legal-h:first-child { margin-top: 0; }
.legal-p { margin: 11px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.legal-list { margin: 13px 0 0; padding-left: 20px; }
.legal-list li { font-size: 14.5px; line-height: 1.7; color: var(--ink); margin-bottom: 10px; }
.legal-list li:last-child { margin-bottom: 0; }

/* An unfilled blank, impossible to mistake for prose. */
.todo {
  background: #FEF0C7; color: #7A4B0B;
  padding: 1px 5px; border-radius: 4px;
  font-weight: 600; font-style: normal;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.legal-foot {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--body);
}

/* ---- a section with nothing behind it ---- */

.blank { max-width: 620px; margin: 6vh auto 0; text-align: center; }
.blank-mark {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--navy-2) 0%, var(--navy) 100%);
  color: var(--cyan);
}
.blank h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.blank-lede { margin: 9px auto 0; max-width: 46ch; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.blank-needs {
  margin: 26px auto 0; max-width: 520px;
  text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px;
}
.blank-needs-t {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #667085; margin-bottom: 10px;
}
.blank-needs ul { margin: 0; padding-left: 18px; }
.blank-needs li { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin-bottom: 8px; }
.blank-needs li:last-child { margin-bottom: 0; }
.blank-foot { margin: 18px auto 0; max-width: 52ch; font-size: 12.5px; line-height: 1.55; color: #667085; }

@media (max-width: 900px) {
  /* The sidebar becomes a strip of icons rather than disappearing: the nav
     is the product's structure, and hiding it behind a button on the size
     of screen where people are least certain where they are is backwards. */
  .app { grid-template-columns: 62px 1fr; }
  .side { padding: 14px 8px 20px; }
  .side-brand { padding: 6px 4px 14px; justify-content: center; }
  .side-brand-id, .side-group { display: none; }
  .side-link { justify-content: center; padding: 10px 0; }
  .side-link span:not(.side-icon) { display: none; }
  .app-body { padding: 20px 16px 48px; }
  .appbar { padding: 0 16px; }

  .side-foot { padding-top: 10px; }
  .who { justify-content: center; padding: 7px 0; }
  .who-name, .who-caret { display: none; }
  /* The rail is 62px wide and scrolls, so a menu positioned inside it would
     be clipped to a 38px sliver. Fixed positioning takes it out of the
     sidebar's overflow entirely and stands it beside the rail. */
  .who-menu {
    position: fixed; left: 70px; right: auto; bottom: 16px;
    width: 232px; min-width: 0;
  }
}

/* The pill's label is the first thing to go when the bar runs out of room,
   because the page title is the one thing in it that must stay readable.
   Scoped to the width where it actually stops fitting, and to the appbar,
   so no other instance of the pill loses its words. */
@media (max-width: 560px) {
  .appbar { gap: 8px; }
  /* Once the words are gone the pill has to carry the affordance on its
     own: a bare 7px dot floating in a white bar is a decoration, not a
     button, and it is nothing like a tap target. */
  .appbar .status-pill {
    width: 34px; padding: 0; justify-content: center;
    background: var(--surface); border-color: var(--line);
  }
  .appbar .status-pill span:not(.status-dot) { display: none; }
  .appbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* =====================================================================
   Insights

   One card per guide that has been run, and three facts on each: how many
   finish, where the others stop, and which step Guide Me could not follow
   on its own. A short list of things to fix, not every figure that can be
   computed.
   ===================================================================== */

.ins-list { display: grid; gap: 14px; max-width: 880px; }

.ins {
  min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px;
}
.ins-head { display: flex; align-items: baseline; gap: 12px; }
.ins-title {
  min-width: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--navy); text-decoration: none; overflow-wrap: anywhere;
}
.ins-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.ins-title:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 3px; }
.ins-when { margin-left: auto; flex: 0 0 auto; font-size: 12px; color: #667085; white-space: nowrap; }

.ins-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
/* The counts drawn, never a figure of its own. It carries no label, and the
   sentence beside it says the numbers, so it cannot be read as a claim the
   text does not make. */
.ins-bar { flex: 0 0 160px; height: 6px; border-radius: 999px; background: #EEF1F4; overflow: hidden; }
.ins-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
.ins-finished { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ins-live { font-size: 12px; font-weight: 600; color: var(--teal-dark); }

.ins-facts {
  display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px;
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #F1F3F6;
}
.ins-facts dt {
  padding-top: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: #667085;
}
.ins-facts dd { margin: 0; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--body); overflow-wrap: anywhere; }

.ins-foot { max-width: 72ch; margin: 18px 0 0; font-size: 12.5px; line-height: 1.55; color: #667085; }

@media (max-width: 560px) {
  .ins { padding: 16px; }
  .ins-head { flex-wrap: wrap; }
  .ins-when { margin-left: 0; }
  .ins-bar { flex-basis: 100%; }
  .ins-facts { grid-template-columns: 1fr; gap: 2px; }
  .ins-facts dd { margin-bottom: 8px; }
}

/* The guide page's one line about its runs. [hidden] is restated because
   `display: flex` on the class outranks the browser's own rule for the
   attribute, and the line would sit there empty until its numbers came. */
.doc-runs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 12px 0 0; padding: 10px 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; line-height: 1.5; color: var(--body);
}
.doc-runs[hidden] { display: none; }
.doc-runs-mark { display: inline-grid; color: var(--teal-dark); }
.doc-runs-mark svg { width: 14px; height: 14px; }
.doc-runs-t { flex: 1 1 260px; min-width: 0; }

/* =====================================================================
   Models
   ===================================================================== */

.mdl { max-width: 880px; }
.mdl-wait { color: #667085; font-size: 13.5px; margin: 4px 0; }
.mdl-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mdl-count { font-size: 13px; font-weight: 600; color: var(--ink); }
.mdl-bar .btn { margin-left: auto; }
.mdl-list { display: grid; gap: 12px; }
.mdl-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.mdl-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: #E8F6F2; color: var(--teal-dark);
}
.mdl-icon svg { width: 18px; height: 18px; }
.mdl-main { flex: 1 1 auto; min-width: 0; }
.mdl-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mdl-name b { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mdl-name .pill { font-size: 11px; }
.mdl-meta { margin-top: 4px; color: #667085; font-size: 12px; overflow-wrap: anywhere; }
.mdl-jobs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mdl-job {
  font-size: 12px; font-weight: 600; color: var(--navy-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 7px; padding: 3px 9px;
}
.mdl-job-idle { color: #667085; font-weight: 500; border-style: dashed; }
.mdl-status {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #067647;
}
.mdl-none {
  padding: 28px; background: #fff;
  border: 1px dashed #cfd6e0; border-radius: var(--radius-lg);
}
.mdl-none h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.mdl-none p { margin: 0; max-width: 60ch; font-size: 14px; line-height: 1.55; color: var(--body); }
.mdl-tried { margin-top: 14px; font-size: 12.5px; color: #667085; }
.mdl-tried summary { cursor: pointer; font-weight: 600; color: var(--body); }
.mdl-tried ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.mdl-tried li { display: flex; gap: 10px; flex-wrap: wrap; }
.mdl-tried-why { color: #98A2B3; }
.mdl-foot { max-width: 72ch; margin: 18px 0 0; font-size: 12.5px; line-height: 1.55; color: #667085; }

@media (max-width: 560px) {
  .mdl-card { flex-wrap: wrap; padding: 16px; }
  .mdl-status { order: -1; margin-left: auto; }
}
