/* FLO: the doorstep (2026-11-09, preview).
   THE ROYAL STANDARD, as in FLO itself: navy #253069; gold #CBA260 only on
   the one main action (.btn-main) and on what is done (a gold bubble, like
   the gold O in the FLO mark). Gold is a fill, never text on white.
   No inline styles anywhere: the page's CSP allows only this file. */

@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/client/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --navy: #253069;
  --navy-deep: #171F49;
  --navy-ink: #0F1533;
  --gold: #CBA260;
  --paper: #FFFFFF;
  --page: #F7F6F2;
  --card-tint: #FCFBF8;
  --line: #E7E4DB;
  --line-soft: #F1EFE8;
  --track: #E2DFD4;
  --ink: #1B2140;
  --muted: #5C6178;
  --ink-off: #8F8B80;
  --green: #2F6B4F;
  --green-bg: #EFF6F2;
  --alert: #A34B3D;
  --alert-bg: #FBF1EF;
  --warn-bg: #FFF4D6;
  --warn-ink: #6B4E00;
  --navy-tint: #EEF0F7;
  --font: "Montserrat", "Segoe UI", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-pill: 999px;
  --lift-1: 0 6px 18px rgba(37, 48, 105, .07);
  --lift-2: 0 14px 36px rgba(37, 48, 105, .14);
  --rail: 1180px;
  --gutter: 16px;
  --ball-gold: radial-gradient(circle at 34% 30%, #F6E7C3 0, #CBA260 42%, #8E6E37 100%);
  --ball-navy: radial-gradient(circle at 34% 30%, #8590CF 0, #253069 45%, #121842 100%);
  --ball-off: radial-gradient(circle at 34% 30%, #FFFFFF 0, #D9DCEB 50%, #AEB3CE 100%);
}
@media (min-width: 700px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; font-variant-numeric: tabular-nums; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy-ink); line-height: 1.2; margin: 0; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 15px; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-pill); z-index: 50; }
.skip:focus { top: 10px; }

/* ------------------------------------------------------------ chrome */
.preview-ribbon { text-align: center; background: var(--navy-ink); color: #fff; font-size: 12.5px; padding: 7px var(--gutter); }
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--rail); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.brand { display: block; flex: none; }
.flo-mark { width: 124px; }
.tabs { display: flex; gap: 4px; }
.tabs a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: var(--r-pill); }
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--navy); background: var(--navy-tint); }
.seat { margin-left: auto; display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; font-size: 13px; }
.seat-name { font-weight: 700; color: var(--navy-ink); }
.seat-role, .seat-until { color: var(--muted); }
.seat-link { font-weight: 700; color: var(--navy); text-underline-offset: 3px; }
.seat-link[aria-current="page"] { text-decoration-thickness: 2px; }
@media (max-width: 699px) {
  .top-in { gap: 6px 8px; padding-top: 8px; padding-bottom: 8px; }
  .flo-mark { width: 120px; }
  .tabs a { padding: 7px 10px; }
  /* Row one: the mark and the tabs. Row two: who is signed in, and Lock (the chip's
     basis leaves Lock its 70 px, so Lock never drops to a row of its own). */
  .seat { order: 3; margin-left: 0; flex: 1 1 calc(100% - 96px); font-size: 12.5px; }
  .btn-lock { order: 4; margin-left: auto; min-height: 34px; padding: 4px 12px; }
}
/* 700 px and up: the chip takes the room between the tabs and Lock, its items at the
   right end, so Lock never drops to a row of its own at the left. */
@media (min-width: 700px) {
  .seat { flex: 1 1 0; justify-content: flex-end; }
}
main { display: block; max-width: var(--rail); margin: 0 auto; padding: 22px var(--gutter) 56px; }
main:focus, main:focus-visible { outline: none; }
.foot { text-align: center; color: var(--ink-off); font-size: 12px; padding: 0 var(--gutter) 28px; }
.loading { color: var(--muted); padding: 40px 0; }

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy);
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--navy-tint); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-main { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
.btn-main:hover { background: #B8914F; border-color: #B8914F; }
/* One gold button on the screen: while a dialog is open, the page's steps back. */
body:has(dialog[open]) main .btn-main { background: var(--paper); border-color: var(--navy); color: var(--navy); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-small { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.btn-wide { width: 100%; }
.btn-danger { color: var(--alert); }
.btn-danger:hover { background: var(--alert-bg); }
.btn-danger.btn-solid { background: var(--alert); border-color: var(--alert); color: #fff; }

/* --------------------------------------------------- sign-in, set up */
.door { max-width: 420px; margin: 32px auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); padding: 28px 24px; }
.door-mark { width: 150px; margin: 0 auto 18px; }
.door h1 { text-align: center; font-size: 22px; margin-bottom: 8px; }
.door-lead, .door-why { text-align: center; color: var(--muted); margin-bottom: 14px; }
.door-why { color: var(--navy); font-weight: 600; }
.door-form { display: grid; gap: 14px; margin-top: 12px; }
.door .hint { text-align: center; margin-top: 16px; }
.door > .btn-quiet { display: flex; margin: 10px auto 0; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--navy-ink); }
.field input, .field select, .dlg input, .dlg select {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .dlg input:focus, .dlg select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.field input[readonly] { background: var(--line-soft); color: var(--muted); }
.field .opt { font-weight: 500; color: var(--muted); }
.preview-code { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 4px; }
.msg { color: var(--alert); font-weight: 600; min-height: 1.2em; font-size: 14px; }

/* ------------------------------------------------------- page heads */
.page-head { margin-bottom: 16px; }
.page-head .lead { color: var(--muted); margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; margin-bottom: 12px; }
.back:hover { text-decoration: underline; }

/* ---------------------------------------------- the summary (always) */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); margin: 0 0 18px; }
.sum-col { padding: 16px 18px; border-left: 1px solid var(--line-soft); }
.sum-col:first-child { border-left: 0; }
.sum-col h2 { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sum-col li { padding: 2px 0; }
.sum-col li + li { border-top: 1px dashed var(--line-soft); }
.sum-col.is-next p { font-weight: 700; color: var(--navy-ink); }
@media (max-width: 799px) {
  .summary { grid-template-columns: minmax(0, 1fr); }
  .sum-col { border-left: 0; border-top: 1px solid var(--line-soft); }
  .sum-col:first-child { border-top: 0; }
}

/* ------------------------------------------------------ the doorstep */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.count { color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 7px 14px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.rows { display: grid; gap: 10px; }
.row { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); }
.row.is-ready { border-color: var(--navy); }
.row-link { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 8px 18px; align-items: center; padding: 14px 18px; text-decoration: none; color: inherit; }
.row-link:hover { background: var(--card-tint); border-radius: var(--r); }
.row-who, .row-what, .row-when { display: grid; gap: 6px; min-width: 0; }
.row-name { font-size: 16px; color: var(--navy-ink); overflow-wrap: anywhere; }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.row-what > span:first-child { color: var(--ink); font-weight: 600; }
.row-lo { font-size: 13px; color: var(--muted); }
.row-next { font-size: 13px; color: var(--navy-ink); font-weight: 600; }
@media (max-width: 799px) { .row-link { grid-template-columns: minmax(0, 1fr); } }
.pill { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--navy-tint); color: var(--navy); }
.pill.is-credit_authorized, .pill.is-pre_review_complete { background: var(--navy); color: #fff; }
.pill.is-with_underwriter { background: var(--green-bg); color: var(--green); }
.pill.is-withdrawn { background: var(--line-soft); color: var(--muted); }
.tag { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 2px 9px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.tag-sandbox { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.chip { display: inline-flex; align-items: center; width: fit-content; border-radius: var(--r-pill); padding: 2px 10px; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--navy); color: var(--navy); }
.empty { background: var(--paper); border: 1px dashed var(--track); border-radius: var(--r); padding: 26px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty p { color: var(--muted); max-width: 520px; }

/* the mini FLO Chart on a row */
.mini { display: inline-flex; align-items: center; gap: 0; }
.mini .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ball-navy); position: relative; flex: none; }
.mini .dot + .dot { margin-left: 10px; }
.mini .dot + .dot::before { content: ""; position: absolute; right: 14px; top: 6px; width: 10px; height: 2px; background: var(--track); }
.mini .dot.is-gold { background: var(--ball-gold); }
.mini .dot.is-gold + .dot.is-gold::before, .mini .dot.is-gold + .dot.is-now::before { background: var(--gold); }
.mini .dot.is-now { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--navy); }
.mini .dot.is-off { background: var(--ball-off); }

/* ----------------------------------------------------------- a file */
.file-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.file-head h1 { overflow-wrap: anywhere; }
.file-sub { color: var(--muted); margin-top: 4px; }
.file-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* the application's own FLO Chart */
.chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); padding: 54px 12px 16px; margin-bottom: 18px; counter-reset: bub; }
.bub { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.bub::before { content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 4px; background: var(--track); z-index: 0; }
.bub:first-child::before { display: none; }
.bub.is-gold::before, .bub.is-now::before { background: var(--track); }
.bub.is-gold + .bub.is-gold::before, .bub.is-gold + .bub.is-now::before { background: var(--gold); }
.ball { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--ball-navy); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .18), 0 4px 10px rgba(37, 48, 105, .22); }
.bub.is-gold .ball { background: var(--ball-gold); }
.bub.is-off .ball { background: var(--ball-off); }
.bub.is-now .ball { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--navy), 0 4px 10px rgba(37, 48, 105, .22); }
.rover { position: absolute; left: 50%; top: -46px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: var(--lift-1); }
.bub-label { font-weight: 800; font-size: 13px; color: var(--navy-ink); margin-top: 8px; }
.bub-note { font-size: 12px; color: var(--muted); min-height: 1.4em; overflow-wrap: anywhere; }
.bub.is-off .bub-label { color: var(--ink-off); }
@media (max-width: 799px) {
  .chart { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; gap: 14px; }
  .bub { grid-template-columns: 48px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 0; padding: 0; }
  .bub .ball { grid-row: span 2; }
  .bub-label { margin-top: 4px; }
  .bub::before { top: auto; bottom: 100%; right: auto; left: 22px; width: 4px; height: 14px; }
  /* On a phone ROVER sits inside his bubble, so he never covers its words. */
  .rover { left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-width: 1px; box-shadow: none; }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.assign { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.assign select { min-height: 40px; padding: 6px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--paper); max-width: 100%; }

.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); padding: 16px 18px; min-width: 0; }
.panel.is-wide { grid-column: 1 / -1; }
.panel > h2 { margin-bottom: 10px; }
.panel > p + p, .panel > p + ul, .panel > ul + p { margin-top: 8px; }
.panel.locked { text-align: center; padding: 30px 20px; }
@media (max-width: 799px) { .panels { grid-template-columns: minmax(0, 1fr); } }
.big { font-size: 20px; font-weight: 800; color: var(--navy-ink); }
.kv { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 459px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .kv dd { margin-bottom: 8px; } }
.person + .person { border-top: 1px solid var(--line-soft); margin-top: 12px; padding-top: 12px; }
.person h3 { font-size: 15px; margin-bottom: 6px; }
.checks li { position: relative; padding: 4px 0 4px 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--track); background: var(--paper); }
.checks li.is-done::before { border-color: transparent; background: var(--ball-gold); }
.list li { padding: 5px 0; border-top: 1px solid var(--line-soft); }
.list li:first-child { border-top: 0; }
.verdict { display: inline-flex; border-radius: var(--r-pill); padding: 1px 9px; font-size: 12px; font-weight: 700; background: var(--navy-tint); color: var(--navy); }
.verdict.is-meets, .verdict.is-clear { background: var(--green-bg); color: var(--green); }
.verdict.is-conflict, .verdict.is-does_not_meet { background: var(--alert-bg); color: var(--alert); }
.agency { border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 10px; }
.agency-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 800; color: var(--navy-ink); }
details { border-top: 1px solid var(--line-soft); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; padding: 8px 0; font-weight: 700; color: var(--navy-ink); }
summary::marker { color: var(--navy); }
.check-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 8px; padding: 6px 0; font-size: 13.5px; }
.check-row .ok { font-weight: 800; color: var(--green); }
.check-row .no { font-weight: 800; color: var(--alert); }
.cite { color: var(--muted); font-size: 12px; }
.disclosure { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; }
.sec-rows { display: grid; grid-template-columns: minmax(0, 7em) minmax(0, 12em) minmax(0, 1fr); gap: 4px 12px; padding: 0 0 10px; font-size: 13.5px; }
.sec-rows .who { color: var(--ink-off); }
.sec-rows .lab { color: var(--muted); }
.sec-rows .val { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 599px) { .sec-rows { grid-template-columns: minmax(0, 1fr); gap: 0; } .sec-rows .val { margin-bottom: 8px; } }
.timeline li { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 10px; padding: 5px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.timeline li:first-child { border-top: 0; }
.timeline time { color: var(--muted); }
@media (max-width: 459px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ------------------------------------------------------------- seats */
.seat-list { display: grid; gap: 10px; }
.seat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--lift-1); }
.seat-row.is-removed { opacity: .6; box-shadow: none; }
.seat-who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seat-who strong { color: var(--navy-ink); font-size: 15.5px; }
.seat-reach { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.seat-status { font-size: 13px; color: var(--navy-ink); }
.seat-acts { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 599px) { .seat-row { grid-template-columns: minmax(0, 1fr); } .seat-acts { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 6px; } }

/* ----------------------------------------------------- dialog, toast */
.dialog { border: 0; border-radius: var(--r); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--lift-2); color: var(--ink); }
.dialog::backdrop { background: rgba(15, 21, 51, .45); }
.dlg { padding: 22px 22px 18px; display: grid; gap: 12px; }
.dlg h2 { font-size: 19px; }
.dlg p { color: var(--ink); }
.dlg .field { font-size: 13px; }
.dlg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
@media (max-width: 459px) { .dlg-grid { grid-template-columns: minmax(0, 1fr); } }
.dlg-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.dlg .note { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-sm); padding: 8px 10px; font-size: 13px; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--navy-ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 60; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-error { background: var(--alert); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ROYAL Ai Underwriting, the pre-approval letter and ROVER PROCESSOR (2026-11-12) */
.res { display: inline-block; min-width: 7.5rem; margin-right: .5rem; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 700; text-align: center; white-space: nowrap; }
.res.is-pass { background: #e6f4ea; color: #1e6b36; }
.res.is-condition { background: #fff3d6; color: #7a5300; }
.res.is-needs_fact { background: #e8eefc; color: #2a4a9a; }
.res.is-human { background: #fde8e8; color: #9b1c1c; }
.res.is-later { background: #eeeeee; color: #555; }
.uw-dec.is-ready { color: #1e6b36; }
.uw-dec.is-paused { color: #666; }
.uw-dec.is-waiting { color: #2a4a9a; }
.uw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: .5rem 0 1rem; }
.uw-grid h3 { margin: 0 0 .25rem; font-size: 1rem; }
.uw-row { align-items: flex-start; }
.letter { white-space: pre-wrap; font: inherit; line-height: 1.45; padding: 1rem; border: 1px solid rgba(0,0,0,.12); border-radius: .5rem; background: #fff; }
.cond-round { padding: .5rem 0 .75rem; border-top: 1px solid rgba(0,0,0,.08); }
.cond-round:first-child { border-top: 0; padding-top: 0; }
.cond-round h3 { font-size: .95rem; margin: 0 0 .35rem; }
.cond-msg { padding: .75rem 1rem; border-radius: .5rem; background: #f6f1e4; }
.cond-held { padding: .75rem 1rem; border-radius: .5rem; background: #fde8e8; }
@media (max-width: 720px) { .uw-grid { grid-template-columns: 1fr; } .res { min-width: 0; } }
.bub.is-skip .ball { background: var(--ball-off); opacity: .55; }
.bub.is-skip .bub-label { color: var(--ink-off); }
.mini .dot.is-skip { background: var(--ball-off); opacity: .55; }

/* The authenticator app (2026-11-13, sandbox): set-up, "Your sign-in", the seat line */
.auth-setup { display: grid; gap: 14px; margin-top: 8px; }
.auth-steps { display: grid; gap: 18px; counter-reset: auth-step; }
.auth-steps > li { position: relative; padding-left: 36px; counter-increment: auth-step; min-width: 0; }
.auth-steps > li::before { content: counter(auth-step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; line-height: 26px; text-align: center; }
.auth-steps > li > p + p, .auth-steps > li > p + .auth-key-row { margin-top: 6px; }
/* The QR code: black on white in every colour scheme. The canvas is drawn at
   a whole number of pixels per module and shown at that size (smaller only
   when the screen is narrower), with no smoothing. */
.qr { display: block; width: auto; height: auto; max-width: 100%; margin: 10px 0 12px; background: #fff; image-rendering: crisp-edges; image-rendering: pixelated; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.auth-key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.auth-key { font-family: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--navy-ink); background: var(--line-soft); border-radius: var(--r-sm); padding: 6px 10px; user-select: all; overflow-wrap: anywhere; }
.auth-said { color: var(--green); font-size: 13px; font-weight: 600; }
.auth-said:empty { display: none; }
.auth-steps .hint { margin-top: 6px; text-align: left; }
.auth-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.auth-form .btn { white-space: normal; text-align: center; }
.auth-setup > .hint { text-align: center; margin-top: 0; }
.auth-setup > .btn-quiet { justify-self: center; }
.auth-setup > .msg:empty { display: none; }
.auth-panel { max-width: 560px; }
.me-panel { max-width: 640px; }
.me-panel .actions { margin: 16px 0 0; }
.me-panel .hint { margin-top: 10px; }
.tag-app { background: var(--green-bg); color: var(--green); border-color: transparent; }

/* ============================================================================
   ROYAL C (2026-11-15): Royal's CRM inside FLO. The bubbles are Bryan's 11/3
   ruling: one bubble per call or step, blue with its number = open (best
   first), gold = done today; a tap opens the tag under that bubble's row.
   ========================================================================== */
.rc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.rc-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--navy); margin: 0 0 2px; }
.rc-head-side { display: grid; gap: 8px; justify-items: end; }
.rc-nav { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.rc-nav-a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: var(--r-pill); }
.rc-nav-a:hover { background: var(--navy-tint); color: var(--navy); }
.rc-nav-a[aria-current="page"] { background: var(--navy-tint); color: var(--navy-ink); }
@media (max-width: 699px) { .rc-head-side { justify-items: start; } }

.rc-bubbles { margin: 16px 0; }
.bubbles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; margin: 0; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-b { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.calls-rule { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }

.cb-field { list-style: none; margin: 0; padding: 6px 0 2px; display: flex; flex-wrap: wrap; gap: 16px 10px; align-items: flex-start; }
.cb-item { display: grid; grid-template-rows: 82px auto auto; justify-items: center; align-content: start; gap: 1px; width: 84px; text-align: center; }
.cb {
  position: relative; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; align-self: center;
  box-shadow: inset -3px -4px 7px rgba(0, 0, 0, .28), 0 2px 6px rgba(15, 21, 51, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cb-xl { width: 76px; height: 76px; }
.cb-l { width: 64px; height: 64px; }
.cb-m { width: 56px; height: 56px; }
.cb-s { width: 48px; height: 48px; }
.cb.is-blue, .lg-b.is-blue { background: var(--ball-navy); }
.cb.is-gold, .lg-b.is-gold { background: var(--ball-gold); }
.cb:hover { transform: scale(1.08); }
.cb:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.cb.is-picked { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--navy-ink), 0 6px 16px rgba(15, 21, 51, .3); transform: scale(1.1); }
.cb-n { color: #fff; font-weight: 800; font-size: 18px; line-height: 1; }
.cb-xl .cb-n { font-size: 30px; }
.cb-l .cb-n { font-size: 24px; }
.cb-m .cb-n { font-size: 20px; }
.cb-check { color: var(--navy-ink); font-weight: 800; font-size: 20px; line-height: 1; }
.cb-name { font-size: 12px; font-weight: 800; color: var(--navy-ink); max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 5px; }
.cb-word { font-size: 11px; color: var(--muted); font-weight: 600; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 699px) {
  .cb-field { gap: 14px 6px; }
  .cb-item { width: 70px; grid-template-rows: 70px auto auto; }
  .cb-xl { width: 66px; height: 66px; }
  .cb-l { width: 58px; height: 58px; }
  .cb-name, .cb-word { max-width: 70px; }
}
.cb-tag-slot { flex-basis: 100%; min-width: 0; list-style: none; }
.cb-tag {
  position: relative; margin: 4px 0 6px; border: 1.5px solid var(--navy); border-radius: 18px; background: var(--card-tint);
  padding: 14px 16px 16px; box-shadow: var(--lift-2); animation: cb-open .25s ease;
}
.cb-tag::before {
  content: ''; position: absolute; top: -9px; left: calc(var(--caret, 40px) - 8px); width: 16px; height: 16px;
  background: var(--card-tint); border-left: 1.5px solid var(--navy); border-top: 1.5px solid var(--navy); transform: rotate(45deg);
}
@keyframes cb-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 699px) { .cb-tag { padding: 12px 12px 14px; } }

.tag-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tag-id { min-width: 0; }
.tag-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; }
.tag-title { font-size: 19px; font-weight: 800; line-height: 1.25; margin: 2px 0; }
.tag-title a { color: var(--navy-ink); text-decoration: none; }
.tag-title a:hover { text-decoration: underline; }
.tag-where { font-size: 13px; color: var(--muted); margin: 0; }
.tag-body { display: grid; gap: 8px; margin-top: 10px; }
.tag-why { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.45; margin: 0; }
.rc-more { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.rc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.choices { display: grid; gap: 10px; margin-top: 4px; }
@media (min-width: 800px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.choice-rover { border-color: var(--navy); }
.choice-title { font-size: 14px; font-weight: 800; color: var(--navy-ink); margin: 0; }
.choice-says { font-size: 13.5px; margin: 0; }
.choice-no { font-size: 12.5px; color: var(--muted); margin: 0; }
.choice-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.rc-sms { background: var(--navy-tint); border-radius: 12px; padding: 8px 10px; }
.rc-after { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
.rc-rules { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.rc-warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; margin: 0; }
.tag-foot { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 2px; }
a.btn.is-off { opacity: .45; pointer-events: none; }

.rc-left { margin: 12px 0; }
.rc-left summary { cursor: pointer; font-weight: 800; color: var(--navy-ink); }
.rc-names { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 14px; }
.rc-foot { margin-top: 16px; }
.rc-tools input[type="search"] { flex: 1 1 260px; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 10px 16px; font: inherit; background: var(--paper); }
.rc-tools input[type="search"]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.rc-kinds { margin: 0 0 12px; flex-wrap: wrap; }
.rc-results { display: grid; gap: 8px; }
.rc-tag-dnc { background: var(--alert-bg); color: var(--alert); border-color: transparent; }
.rc-why { margin-bottom: 14px; }
.rc-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-form { display: grid; gap: 10px; margin: 8px 0; }
.rc-form textarea, .panel textarea, .dlg textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; resize: vertical; background: var(--paper); }
.rc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.rc-check input { margin-top: 3px; }
.rc-rover { background: var(--navy-tint); border-radius: 12px; padding: 10px 12px; font-weight: 500; }
.rc-tasks { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; }
.rc-tasks li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.rc-tasks li.is-done { color: var(--muted); text-decoration: line-through; }
.rc-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.rc-text { margin: 2px 0 0; white-space: pre-wrap; color: var(--ink); }
.rc-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.rc-map { display: grid; gap: 8px; margin: 10px 0 14px; }
.rc-map-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.rc-map-row select { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font: inherit; background: var(--paper); min-width: 0; }
@media (max-width: 599px) { .rc-map-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.rc-preview h3 { font-size: 15px; margin: 0 0 4px; }
.rc-progress { font-weight: 700; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .cb, .cb-tag { transition: none; animation: none; } }

/* ---------- the ROYAL Ai hub (2026-11-15): every software and ROVER division ---------- */
.hub-sec { margin: 0 0 22px; }
.hub-sec > h2 { margin: 0 0 10px; }
.hub-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.hub-sec-head h2 { margin: 0; }
.hub-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hub-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.hub-step:first-child { border-top: 0; }
.hub-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--navy-tint); color: var(--navy); }
.hub-step.is-live .hub-num, .hub-step.is-sandbox .hub-num { background: var(--navy); color: #fff; }
.hub-step.is-planned .hub-num { background: var(--paper); border: 1.5px dashed var(--track); color: var(--ink-off); }
.hub-step-body { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.hub-step-head { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; }
.hub-step-head h3 { margin: 0; font-size: 16px; color: var(--navy-ink); }
.hub-who { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hub-what { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.hub-step-body .btn { margin-top: 4px; }
.hub-chip { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hub-chip.is-live { background: var(--green-bg); color: var(--green); }
.hub-chip.is-sandbox { background: var(--warn-bg); color: var(--warn-ink); }
.hub-chip.is-built { background: var(--navy-tint); color: var(--navy); }
.hub-chip.is-preview { background: var(--line-soft); color: var(--muted); }
.hub-chip.is-planned { background: var(--paper); color: var(--muted); border: 1px dashed var(--track); }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hub-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); padding: 14px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.hub-card.is-planned { box-shadow: none; border-style: dashed; background: var(--card-tint); }
.hub-card-foot { margin-top: 2px; }
.hub-out { font-weight: 800; }
.hub-checked { margin-top: 4px; }

/* ---------- the board (2026-11-15, preview): view only ---------- */
.bd-huddle h2 { margin: 0 0 8px; }
.bd-huddle-text { margin: 0; white-space: pre-wrap; word-break: break-word; font: 600 14px/1.6 var(--font); color: var(--ink); }
.bd-rows { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.bd-row { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); padding: 12px 16px; display: grid; gap: 8px 20px; grid-template-columns: minmax(0, 1fr); }
.bd-row.is-stalled { border-left-color: var(--alert); }
.bd-row.is-clock { border-left-color: var(--warn-ink); }
.bd-row.is-on_time { border-left-color: var(--green); }
@media (min-width: 800px) { .bd-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.bd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bd-name a { color: var(--navy); }
.bd-flags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.bd-flag { border-radius: var(--r-pill); padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bd-flag.is-stalled { background: var(--alert-bg); color: var(--alert); }
.bd-flag.is-clock { background: var(--warn-bg); color: var(--warn-ink); }
.bd-flag.is-on_time { background: var(--green-bg); color: var(--green); }
.bd-stage { margin: 2px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bd-waits { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }
.bd-facts { margin: 0; display: grid; gap: 6px; align-content: start; }
.bd-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.bd-facts dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.bd-facts dd { margin: 0; font-size: 14px; }
.bd-limits { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.bd-limits summary { cursor: pointer; font-weight: 700; color: var(--navy); }

/* ---------- ROYAL C automations (2026-11-15) ---------- */
.unsub { max-width: 560px; margin: 48px auto; padding: 0 var(--gutter); }
.unsub form { margin: 16px 0; }
.au-triggers { display: grid; gap: 10px; }
.au-trigger { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.au-trigger:first-child { border-top: 0; }
.au-trigger h3 { margin: 0; font-size: 15px; color: var(--navy-ink); }
.au-trigger p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.au-switch { min-width: 74px; }
.au-switch[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.au-rate { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.au-rate input { width: 110px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font: inherit; }
.au-queue { display: grid; gap: 12px; }
.au-mail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-1); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.au-mail-head { display: flex; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; align-items: baseline; }
.au-to { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.au-subject { margin: 0; font-weight: 800; color: var(--navy-ink); }
.au-body { margin: 0; white-space: pre-line; font-size: 14.5px; line-height: 1.55; background: var(--card-tint); border-radius: var(--r-sm); padding: 10px 12px; overflow-wrap: anywhere; }
.au-foot { margin: 0; white-space: pre-line; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.au-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.au-rate .field { margin: 0; }
.au-rate .btn { margin-bottom: 2px; }
.au-rate .hint { flex-basis: 100%; margin: 0; }
.au-dnc { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; font-size: 14px; }
.brain-warn { margin: 0 0 14px; }
