:root {
    /* The KYC Validation look (as on kycvalidation.com): graphite bar, blue accent, grouped gray page, the system font.
       --brand-2 carries white text (5.3:1); links use --link (6.6:1 on white); --teal is the accent for non-text marks only.
       The names are kept from the first design so every rule below still reads the same tokens; kv.css sets the desk's own values. */
    color-scheme: light;
    --brand: #1c1c1e; --brand-2: #0067d6; --brand-soft: #e5f0ff; --teal: #007aff; --link: #0059bd; --brand-ink: #0040a8;
    --bg: #f2f2f7; --card: #fff; --border: #e5e5ea; --text: #1c1c1e; --text-2: #48484a; --muted: #636366;
    --green: #1a7f37; --green-soft: #e3f6e8; --red: #c4271e; --red-soft: #fdebea;
    --amber: #8f5400; --amber-soft: #fff3df; --gray-soft: #efeff4;
    --r: 12px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); }
  a { color: var(--link); }
  header { background: var(--brand); color: #fff; }
  header .in { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .logo { font-weight: 750; letter-spacing: .02em; font-size: 17px; display: flex; align-items: center; gap: 4px; }
  .logo, header nav { min-width: 0; flex-wrap: wrap; } header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; } header nav a { overflow-wrap: anywhere; }
  .logo img { height: 40px; width: auto; display: block; margin: -6px 0 -6px -4px; }
  .logo small { font-weight: 500; opacity: .75; margin-left: 6px; font-size: 13px; }
  header nav a { color: #c2cad6; text-decoration: none; font-size: 13px; }
  header nav a.on { color: #fff; font-weight: 600; }
  main { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }
  .narrow { max-width: 760px; margin: 0 auto; }
  h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
  h2 { font-size: 17px; margin: 0 0 4px; }
  h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
  .lede { color: var(--text-2); margin: 0 0 18px; }
  .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
  .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .full { grid-column: 1 / -1; }
  label.f { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
  .opt { font-weight: 400; color: var(--muted); }
  input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], select, textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
  textarea { min-height: 80px; resize: vertical; }
  input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand-2); }
  .invalid { border-color: var(--red) !important; }
  .yn { display: flex; gap: 16px; margin-top: 4px; }
  .yn label, .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
  .yn input, .chk input { accent-color: var(--brand-2); margin-top: 3px; }
  .q { padding: 12px 0; border-top: 1px solid var(--border); }
  .q:first-child { border-top: 0; padding-top: 0; }
  .q p { margin: 0; }
  .sub { margin: 10px 0 0 18px; padding-left: 12px; border-left: 2px solid var(--border); }
  .hidden { display: none !important; }
  .steps { display: flex; gap: 6px; margin: 0 0 8px; }
  .steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
  .steps i.on { background: var(--teal); }
  .stepname { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
  .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .between { justify-content: space-between; }
  button, .btn { font: inherit; font-weight: 600; font-size: 13.5px; border-radius: 8px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; display: inline-block; }
  button.primary, a.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
  button.good { background: var(--green); border-color: var(--green); color: #fff; }
  button.bad { color: var(--red); border-color: #f0c4bf; }
  button:disabled { opacity: .45; cursor: not-allowed; }
  .note { border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 8px; }
  .note.info { background: var(--brand-soft); color: var(--brand-ink); }
  .note.warn { background: var(--amber-soft); color: #7a4a00; }
  .err { color: var(--red); font-size: 12px; margin-top: 3px; }
  .pill { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
  .vflags .pill { white-space: normal; border-radius: 10px; }   /* check warnings are sentences: wrap, don't widen the page */
  .s-new, .s-in_review { background: var(--brand-soft); color: var(--brand-2); }
  .s-needs_consent, .s-info_requested { background: var(--amber-soft); color: var(--amber); }
  .s-approved { background: #efe9fb; color: #5b3aa6; }
  .s-live { background: var(--green-soft); color: var(--green); }
  .s-signoff { background: var(--red-soft); color: var(--red); }
  .s-uploading { background: var(--amber-soft); color: var(--amber); }
  .s-declined { background: var(--red-soft); color: var(--red); }
  .f-red { background: var(--red-soft); color: var(--red); }
  .f-amber { background: var(--amber-soft); color: var(--amber); }
  .f-info { background: var(--gray-soft); color: var(--text-2); }
  /* Review desk */
  .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
  .tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 12px; color: var(--text-2); white-space: nowrap; }
  .tabs button.on { color: var(--brand-2); border-bottom-color: var(--brand-2); }
  .tabs .ct { font-size: 11px; background: var(--gray-soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
  table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
  th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
  th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfc; }
  tr.click { cursor: pointer; } tr.click:hover td { background: #f8fafc; }
  .late { color: var(--red); font-weight: 600; }
  .two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 5px 12px; margin: 0; font-size: 13.5px; }
  dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; word-break: break-word; }
  .doc { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
  .doc.missing { border-style: dashed; color: var(--muted); }
  .list label { display: flex; gap: 8px; padding: 6px 0; font-size: 13.5px; align-items: flex-start; }
  .list input { accent-color: var(--green); margin-top: 3px; }
  .log { font-size: 12.5px; color: var(--text-2); max-height: 220px; overflow: auto; }
  .log div { padding: 4px 0; border-bottom: 1px dashed var(--border); }
  .stack > * + * { margin-top: 14px; }
  .muted { color: var(--muted); font-size: 12.5px; }
  .banner { background: #fff8e6; border-bottom: 1px solid #f1e2b8; color: #6d5310; font-size: 12.5px; text-align: center; padding: 6px 12px; }
  dialog { border: 1px solid var(--border); border-radius: var(--r); padding: 20px; max-width: 520px; width: calc(100% - 32px); }
  dialog::backdrop { background: rgba(10,20,30,.35); }
  @media (max-width: 760px) {
    .grid, .two { grid-template-columns: 1fr; }
    dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; }
    .hide-sm { display: none; }
  }

  .signin { max-width: 420px; margin: 40px auto; text-align: center; }
  .spin { display:inline-block; width:14px; height:14px; border:2px solid var(--border); border-top-color: var(--brand-2); border-radius:50%; animation: sp .8s linear infinite; vertical-align: -2px; margin-right:6px; }
  @keyframes sp { to { transform: rotate(360deg); } }
  .hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
  .cp { cursor: pointer; border-bottom: 1px dashed var(--muted); } .cp:hover { background: var(--brand-soft); }

  /* ---- Queue board (2026-10-08): stages left to right, one card = one next step ---- */
  main:has(.board), body:has(.board) header .in { max-width: 1320px; }
  .qhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
  .qhead h1 { margin: 0; font-size: 21px; }
  .qhead h1 em { font-style: normal; color: var(--red); }
  .qfilters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
  .chip { font-weight: 500; font-size: 13px; padding: 5px 12px; border-radius: 999px; color: var(--text-2); }
  .chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
  .qfilters input[type=search] { width: 180px; padding: 5px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--border); font: inherit; }
  .board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; align-items: start; }
  .kcol { background: #e9edf2; border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; scroll-snap-align: start; min-width: 0; }
  .khead { padding: 2px 4px 4px; }
  .kt { display: flex; justify-content: space-between; font-weight: 700; }
  .kt span { color: var(--text-2); font-variant-numeric: tabular-nums; }
  .kcol.hot .kt { color: var(--red); }
  .kwho { font-size: 12px; color: var(--muted); }
  .kcard { display: grid; gap: 5px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; color: inherit; text-decoration: none; }
  .kcard:hover { border-color: var(--brand-2); }
  .kcard:focus-visible, .kdone:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
  .kcard.red { border-left: 3px solid var(--red); }
  .ktop { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
  .ktop b { font-size: 14px; line-height: 1.3; }
  .ksrc { font-size: 12px; color: var(--muted); }
  .knext { font-size: 13px; color: var(--text-2); }
  .kact { font-size: 12.5px; font-weight: 600; color: var(--brand-2); }
  .kbar { display: flex; gap: 2px; } .kbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); } .kbar i.on { background: var(--brand-2); }
  .age { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--green-soft); color: var(--green); }
  .age.warn { background: var(--amber-soft); color: var(--amber); } .age.late { background: var(--red-soft); color: var(--red); }
  .kdone { display: flex; justify-content: space-between; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; font-size: 13px; color: inherit; text-decoration: none; }
  .kdone:hover { border-color: var(--brand-2); }
  .kzero { font-size: 12.5px; color: var(--muted); padding: 4px; }
  .qfoot { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
  @media (max-width: 760px) { .board { grid-template-columns: repeat(5, 84%); } }

  /* ---- Review page: next step on top, evidence beside each check ---- */
  .rhead { margin-bottom: 12px; }
  .nextbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; align-items: center;
    background: var(--brand-soft); border: 1px solid #c8eae3; border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; }
  @media (max-width: 760px) { .nextbar { position: static; } }   /* after the rule above, or it never applies: a phone has no room for a bar that follows */
  /* Tabbing back up the page: what gets the keyboard stops below the bar that follows, not under it. */
  @media (min-width: 761px) { html:has(.nextbar) { scroll-padding-top: 130px; } }
  .nb-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 280px; }
  .nb-text small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
  .nb-text b { font-size: 15.5px; }
  .nb-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  .nb-more { width: 100%; text-align: right; font-size: 12.5px; }
  .vflags { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 4px; }
  .vlist { display: grid; margin-top: 6px; }
  .vrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
  .vrow label { cursor: pointer; }
  .vrow:first-child { border-top: 0; }
  .vrow input { accent-color: var(--green); margin-top: 3px; flex: none; }
  .vrow.ok .vq > b { color: var(--green); }
  .vq { display: grid; gap: 3px; min-width: 0; }
  .vev { display: grid; gap: 2px; color: var(--text-2); font-size: 13px; }
  .vmiss { color: var(--red); }

  /* ---- Application page (2026-12-03): flags box, one Checks card, folded right column, one approve dialog.
     Every rule starts with .rv (the page) or dialog.confirm, so nothing here reaches the application form. They live in this file,
     not kv.css, because the practice desk draws the same page without kv.css. ---- */
  .rv .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rv .rhead .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
  .rv .redtxt, dialog.confirm .redtxt { color: var(--red); }
  .rv .nextbar .nb-text b { font-size: 16px; }
  .rv .nextbar .why { color: var(--text-2); font-size: 13px; }
  .rv .nextbar .why b.redtxt { font-size: 13px; }
  /* Flags, right under the next bar */
  .rv .card.flags { margin: 0 0 16px; padding: 0; overflow: hidden; }
  .rv .flags-head { background: var(--red-soft); padding: 11px 20px; }
  .rv .flags.calm .flags-head { background: var(--amber-soft); }
  .rv .flags h2 { font-size: 15px; margin: 0; color: var(--red); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
  .rv .flags.calm h2 { color: var(--amber); }
  .rv .flags h2 svg { width: 17px; height: 17px; flex: none; }
  .rv .flags h2 span { color: var(--text-2); font-weight: 600; }
  .rv .flag-list { list-style: none; margin: 0; padding: 0 20px 4px; }
  .rv .flag { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; }
  .rv .flag:first-child { border-top: 0; }
  .rv .flag .lvl { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; justify-self: start; white-space: nowrap; }
  .rv .flag.red .lvl { background: var(--red-soft); color: var(--red); }
  .rv .flag.amber .lvl { background: var(--amber-soft); color: var(--amber); }
  .rv .flag .what b { display: block; }
  .rv .flag .what span { color: var(--text-2); font-size: 13.5px; }
  .rv .flag a.go { font-size: 13px; white-space: nowrap; padding: 4px 0; }
  .rv .flag .act { display: flex; gap: 4px 12px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
  .rv .flag .ans { color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
  .rv .flags .noted { margin: 0; padding: 10px 20px 12px; color: var(--muted); font-size: 13px; }
  .rv .flag-list + .noted { border-top: 1px solid var(--border); }
  /* Checks card: answer what was found, tick what was checked, see what the system confirmed */
  .rv .checks h2 { margin: 0; }
  .rv .checks .count { color: var(--text-2); font-size: 13px; }
  .rv .checks h3 { font-size: 12.5px; font-weight: 650; color: var(--text-2); margin: 18px 0 2px; }
  .rv .checks h3 .hnote { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
  .rv .crow { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 13.5px; scroll-margin-top: 130px; }
  .rv .checks h3 + .crow { border-top: 0; }
  .rv .crow input[type=checkbox] { width: 18px; height: 18px; margin: 1px 0 0; cursor: pointer; }
  .rv .crow label { font-weight: 650; cursor: pointer; }
  .rv .crow:has(> input[type=checkbox]:checked) label { font-weight: 500; color: var(--text-2); }   /* done: it steps back, what's left stands out */
  .rv .checks #lockNote { margin: 10px 0 0; }
  .rv .crow .ev { display: grid; gap: 3px; color: var(--text-2); font-size: 13px; margin-top: 3px; }
  .rv .crow .ev a { padding: 3px 0; display: inline-block; }
  .rv .crow .how { margin: 4px 0 0; }
  .rv .tagline { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
  .rv .tagline.amber { background: var(--amber-soft); color: var(--amber); }
  .rv .crow .redo { color: var(--amber); font-weight: 600; }
  .rv fieldset.crow.find { display: block; margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--border); min-width: 0; }
  .rv .checks h3 + fieldset.crow.find { border-top: 0; }
  .rv fieldset.crow.find legend { float: left; width: 100%; padding: 0; font-weight: 650; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .rv fieldset.crow.find legend + * { clear: both; }
  .rv .lvlpill { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--red-soft); color: var(--red); white-space: nowrap; }
  .rv .find .ev { margin-top: 6px; }
  .rv .find .fby { margin-top: 6px; min-height: 18px; }   /* always there ("Not answered yet"), so answering moves nothing */
  .rv .nextbar .undone b { font-size: 13px; }
  .rv .src { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; }
  .rv .src .res { font-weight: 650; color: var(--text); }
  .rv .src .res.no { color: var(--red); }
  .rv .choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .rv .choice { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px 0 10px; border: 1px solid #c7c7cc; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; }
  .rv .choice input { margin: 0; width: 16px; height: 16px; }
  .rv .choice:hover { background: var(--gray-soft); }
  .rv .choice.fine:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: #14662b; }
  .rv .choice.unsure:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); color: #6d4100; }
  .rv .choice.bad:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red); }
  .rv .choice:has(input:disabled) { cursor: default; }
  .rv .choice:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }
  .rv .choice input[type=radio]:focus-visible { outline: none; }   /* the ring goes round the whole answer */
  .rv .idsum { padding: 12px 0 2px; border-top: 1px solid var(--border); font-size: 13.5px; margin-top: 6px; scroll-margin-top: 130px; }
  .rv .idline { display: flex; gap: 4px 8px; align-items: baseline; flex-wrap: wrap; }
  .rv .idsum .res { font-weight: 650; }
  .rv .idsum .res.ok { color: var(--green); }
  .rv .idsum .res.warn { color: var(--amber); }
  .rv .idsum .res.bad { color: var(--red); }
  .rv .idline .muted { font-size: 13px; }
  .rv .idline .redtxt { font-size: 13px; flex-basis: 100%; }
  .rv .idsum details.more { margin-top: 2px; }
  .rv .fccsum .idline + .idline, .rv .fccsum .fdet + .idline { margin-top: 8px; }
  .rv .fccsum .fdet { font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
  .rv .checks-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
  .rv .flash { animation: rvflash 1.4s cubic-bezier(.16, 1, .3, 1); border-radius: 8px; }
  @keyframes rvflash { 0% { box-shadow: 0 0 0 4px #99c6ff; background: var(--brand-soft); } 100% { box-shadow: 0 0 0 4px transparent; background: transparent; } }
  @media (prefers-reduced-motion: reduce) { .rv .flash { animation: none; } }
  /* Right column: three lines to know it by, the rest behind folds */
  .rv .app-card h3 { font-size: 12.5px; font-weight: 650; color: var(--text-2); margin: 16px 0 6px; }
  .rv dl.kv dd { text-wrap: pretty; }
  .rv .app-card .glance { margin-top: 10px; }
  .rv details.more { font-size: 13.5px; scroll-margin-top: 130px; }
  .rv details.more > summary, dialog.confirm details.more > summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 6px 0; }
  .rv details.more[open] > summary { margin-bottom: 6px; }
  .rv .app-card details.more { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 4px; }
  .rv .app-card details.more h3:first-of-type { margin-top: 6px; }
  .rv .app-card dd[id] { scroll-margin-top: 130px; }
  .rv .notes label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 8px; }
  .rv .notes textarea { width: 100%; min-height: 72px; display: block; }
  .rv .folds details.more + details.more { border-top: 1px solid var(--border); }
  .rv .folds details.more[open] { padding-bottom: 8px; }
  .rv .msec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
  .rv .msec h3 { margin: 0; font-size: 13.5px; text-transform: none; letter-spacing: 0; color: var(--text); }
  /* One confirmation for approving or sending to an owner */
  dialog.confirm { max-width: 540px; padding: 22px 24px; }
  dialog.confirm h2 { font-size: 19px; margin: 0 0 4px; }
  dialog.confirm .lead { color: var(--text-2); font-size: 13.5px; margin: 0 0 12px; }
  dialog.confirm .sumline { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14px; font-weight: 600; margin: 0 0 4px; align-items: baseline; }
  dialog.confirm .sumline svg { width: 15px; height: 15px; }
  dialog.confirm .sumlist { list-style: none; margin: 0; padding: 0; font-size: 13.5px; border-top: 1px solid var(--border); }
  dialog.confirm .sumlist li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
  dialog.confirm .sumlist li .who { color: var(--muted); font-size: 12.5px; text-align: right; }
  dialog.confirm .sumlist li.redf > span:nth-child(2) { color: var(--red); font-weight: 600; }
  dialog.confirm .sumlist li.redf .who { color: var(--text); font-weight: 600; }
  dialog.confirm .sumlist svg { width: 14px; height: 14px; }
  dialog.confirm .undone { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--red); }
  dialog.confirm .fromrev { margin: 12px 0 0; font-size: 13.5px; color: var(--text-2); }
  dialog.confirm .field { margin-top: 14px; }
  dialog.confirm .field label { font-weight: 650; font-size: 13.5px; display: block; }
  dialog.confirm .field small { color: var(--text-2); display: block; margin: 2px 0 6px; font-size: 12.5px; }
  dialog.confirm .field small.redtxt { color: var(--red); }
  dialog.confirm textarea { width: 100%; min-height: 64px; display: block; }
  dialog.confirm .limnote { margin: 8px 0 0; min-height: 20px; font-size: 13px; font-weight: 600; color: var(--amber); }   /* the room is kept, so the buttons don't move when it appears */
  dialog.confirm .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
  dialog.confirm .acts #askno { margin-right: auto; }   /* Cancel stands apart from the buttons that go ahead */
  dialog.confirm .acts button.good-line { background: #fff; border-color: var(--green); color: var(--green); }   /* the second way to approve: green, but not the main one */
  @media (max-width: 760px) {
    .rv .flag { grid-template-columns: 1fr; }
    .rv .flag a.go { justify-self: start; }
    .rv .flag .act { justify-content: flex-start; }
    .rv .flags-head, .rv .flag-list, .rv .flags .noted { padding-left: 16px; padding-right: 16px; }
    .rv .src { grid-template-columns: 1fr; }
    .rv .src .res { margin-bottom: 4px; }
    .rv details.more > summary, dialog.confirm details.more > summary { padding: 12px 0; }
    .rv .choice { min-height: 44px; }
    .rv .find .fby { min-height: 38px; }   /* who answered runs to two lines on a phone: the room is there from the start */
    .rv .flag a.go, .rv .crow .ev a { padding: 8px 0; }
    dialog.confirm { padding: 18px 16px; }
    dialog.confirm .acts button { flex: 1 1 auto; }
    dialog.confirm .acts #askno { margin-right: 0; }
  }

  /* ---- Request info, Send a reminder, Decline and the email to send (2026-12-03): one box with a head that stays, a middle that
     scrolls and a foot that stays, so the buttons are always in reach. Every rule starts with dialog.box; where it has to win over
     the desk's own rules for dialogs and text boxes (kv.css, loaded later) it says dialog.confirm.box. ---- */
  dialog.confirm.box { max-width: 600px; width: calc(100% - 32px); padding: 0; overflow: hidden; margin-top: max(16px, 4vh); max-height: calc(100dvh - max(16px, 4vh) - 16px); }   /* anchored at the top: the title doesn't jump as the box grows */
  dialog.box[open] { display: flex; flex-direction: column; }
  dialog.box .bx-head { padding: 22px 24px 12px; border-bottom: 1px solid var(--border); }
  dialog.box .bx-head h2 { text-wrap: balance; }
  dialog.box .bx-head .lead { margin: 0; }
  dialog.box .bx-head .back { display: inline-block; font-size: 13px; margin-bottom: 4px; }
  dialog.box .bx-body { padding: 4px 24px 18px; overflow: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
  dialog.box .bx-foot { padding: 12px 24px 16px; border-top: 1px solid var(--border); background: #f9f9fb; }
  dialog.box fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
  dialog.confirm.box legend, dialog.box .sec { padding: 0; font-weight: 650; font-size: 14.5px; margin: 16px 0 2px; display: block; color: var(--text); }
  dialog.box .sec small, dialog.box legend small { font-weight: 500; color: var(--text-2); font-size: 13px; margin-left: 4px; }
  dialog.confirm.box h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 12px 0 0; text-transform: none; letter-spacing: 0; }
  /* A reason: one row to tick. Ticked, its message opens right under it. */
  dialog.box .pick { border-top: 1px solid var(--border); }
  dialog.box h3 + .pick, dialog.box legend + .pick, dialog.box .sens .pick { border-top: 0; }
  dialog.box .pick > label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; font-size: 14px; cursor: pointer; align-items: start; }
  dialog.box .pick > label input, dialog.box .switch input { width: 18px; height: 18px; margin: 1px 0 0; }
  dialog.confirm.box input[type=checkbox] { accent-color: var(--brand-2); }
  dialog.box .pick.on > label { font-weight: 650; }
  dialog.box .pick.off > label { color: var(--muted); cursor: not-allowed; }   /* held off while a reason that goes alone is ticked */
  dialog.confirm.box .pick .hint { display: block; font-weight: 400; color: var(--text-2); font-size: 13px; margin-top: 2px; }
  dialog.box .pick .pill { margin-left: 4px; vertical-align: 1px; }
  dialog.box .pick .open { margin: 0 0 12px 32px; }
  dialog.box .pick .open label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
  dialog.confirm.box textarea, dialog.confirm.box input[type=text] { width: 100%; font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; border: 1px solid #8e8e93; background: #fff; color: var(--text); display: block; min-height: 0; }
  dialog.confirm.box textarea { resize: none; overflow: hidden; line-height: 1.45; }   /* it grows to fit what's in it */
  dialog.confirm.box textarea[readonly] { background: var(--gray-soft); color: var(--text-2); border-color: #767680; }   /* 3:1 against its own grey */
  dialog.confirm.box .invalid { border-color: var(--red); }
  dialog.confirm.box fieldset.invalid > legend, dialog.confirm.box details.invalid > summary { color: var(--red); }
  dialog.box .lockn { font-size: 12.5px; color: var(--text-2); margin: 4px 0 0; }
  dialog.box .alone { margin: 0 0 12px 32px; font-size: 13px; font-weight: 600; color: var(--red); }
  dialog.box .alone.own { color: var(--amber); }   /* "Something else" holding the list off is a notice, not a warning */
  dialog.box .aside { margin: 10px 0 0; font-size: 13.5px; }
  /* What they send: worked out from the reasons, changeable by hand. */
  dialog.box .sends { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
  dialog.box .sends li { font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; padding: 3px 10px; }
  dialog.box .sends li.none { background: var(--gray-soft); color: var(--text-2); font-weight: 500; }
  dialog.box .warn { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--amber); }
  dialog.box details.more { margin-top: 6px; font-size: 13.5px; }
  dialog.box .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  dialog.confirm.box .cols h3 { margin-top: 4px; }
  dialog.box .cols label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
  dialog.box .cols input { width: 16px; height: 16px; margin: 2px 0 0; }
  dialog.box .owed { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
  dialog.box .owed li { padding: 2px 0; }
  /* Decline: the sensitive reason stands apart in its own frame; the switch opens the fix list and the other reasons step aside. */
  dialog.box .sens { margin-top: 14px; border: 1px solid #d0564d; border-radius: 10px; padding: 0 12px; background: #fff; }
  dialog.box .switch { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin-top: 16px; padding: 12px; border-radius: 10px; border: 1px solid #808086; background: var(--gray-soft); font-size: 14px; cursor: pointer; }   /* its edge reads against the grey and the white (3:1) */
  dialog.box .switch b { display: block; }
  dialog.box .switch span span { color: var(--text-2); font-size: 13px; }
  dialog.box .tight > .pick:not(.on), dialog.box .tight > .sens { display: none; }
  dialog.box .tight > .pick { border-top: 0; } dialog.box .tight > .pick.on ~ .pick.on { border-top: 1px solid var(--border); }   /* a line only between two that show */
  dialog.box #bx_fixpart { margin-top: 4px; }
  /* Foot: what will happen, in a sentence; how it reaches the client; an error line that takes no room when empty; the buttons. */
  dialog.box .bx-foot .out { margin: 0; font-size: 13.5px; color: var(--text); }
  dialog.box .bx-foot .out b { font-weight: 650; }
  dialog.box .bx-foot .how { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }
  dialog.box .bx-foot .err { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--red); }
  dialog.box .warn:empty, dialog.box .bx-foot .err:empty, dialog.box .bx-foot .how:empty, dialog.box .bx-foot .out:empty, dialog.box .bx-body:empty { display: none; }
  dialog.box .bx-foot:has(.err:not(:empty)) .out[data-idle] { display: none; }   /* an error takes the place of the line that only said nothing is saved yet */
  dialog.box .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* The email to send: who it goes to and a subject, each with its own copy button, then the text. */
  dialog.box .mhead { margin-top: 14px; border-top: 1px solid var(--border); }
  dialog.box .mrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
  dialog.box .mrow .ml { color: var(--text-2); font-weight: 600; font-size: 12.5px; }
  dialog.box .mrow .mv { overflow-wrap: anywhere; }
  dialog.confirm.box .mrow button { padding: 5px 10px; font-size: 12.5px; }
  dialog.box .acts.in { margin-top: 10px; }
  dialog.box .bx-foot .acts { margin-top: 8px; }
  dialog.box .bx-foot .acts #bx_no { margin-right: auto; }   /* leaving stands apart from the button that goes ahead */
  dialog.box .bx-foot .acts.one #bx_no { margin: 0 0 0 auto; }   /* the only button, and the main one: it stands where the main one always does */
  dialog.confirm.box .acts button.stop { background: var(--red); border-color: var(--red); color: #fff; }
  dialog.confirm.box .linkb { all: unset; color: var(--link); text-decoration: underline; cursor: pointer; border-radius: 4px; font: inherit; }   /* a link inside a sentence stays inline */
  dialog.confirm.box .bx-head .back { font-size: 13px; }   /* after the rule above, which would give it the page's size */
  dialog.confirm.box button:focus-visible, dialog.confirm.box input:focus-visible, dialog.confirm.box textarea:focus-visible, dialog.confirm.box summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
  dialog.box .lead, dialog.box .out, dialog.box .how, dialog.box .hint, dialog.box .aside, dialog.box .alone, dialog.box .warn { text-wrap: pretty; }
  @media (max-width: 760px) {
    dialog.confirm.box { width: calc(100% - 16px); margin-top: 8px; max-height: calc(100dvh - 16px); }
    dialog.box .bx-head, dialog.box .bx-body, dialog.box .bx-foot { padding-left: 16px; padding-right: 16px; }
    dialog.box .bx-head { padding-top: 18px; }
    dialog.box .cols { grid-template-columns: 1fr; }
    dialog.box .cols label { padding: 9px 0; }
    dialog.box .pick .open, dialog.box .alone { margin-left: 0; }
    dialog.box .bx-foot .acts button, dialog.box .acts .btn, dialog.confirm.box .mrow button { min-height: 44px; }
    dialog.box .acts .btn { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; }
    dialog.box .mrow { grid-template-columns: 52px minmax(0, 1fr) auto; }
    dialog.box .bx-foot .acts #bx_no { margin-right: 0; }
    dialog.confirm.box textarea, dialog.confirm.box input[type=text] { font-size: 16px; }   /* iPhone Safari zooms in on anything smaller */
    dialog.confirm.box input[type=text] { min-height: 44px; }
  }

  /* ---- Who can do what (2026-12-03): the Team page, the Platform team, their boxes, and what a read-only person sees.
     Every class starts with ax-. Page rules start with #app .ax (so they hold with or without the desk's own styles, kv.css, which
     the practice desk doesn't load); the boxes build on dialog.box above. ---- */
  .ax-strip { position: sticky; top: 0; z-index: 4; max-width: 1100px; margin: 0 auto; padding: 12px 16px 0; background: var(--bg); }   /* the page's own background: nothing scrolls past in the gap above the strip */
  .ax-strip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
  .ax-ro .ax-narrow, .ax-phone { display: none; }
  @media (max-width: 700px) { .ax-ro .ax-wide { display: none; } .ax-ro .ax-narrow, .ax-phone { display: inline; } }
  /* A read-only person who types the address of a page that isn't in their menu (Desk setup) can look. Nothing on it looks like it can be edited. */
  body.ax-looking #app :is(input:not([type=checkbox]):not([type=radio]):not([type=search]), select, textarea):disabled { background: var(--gray-soft); color: var(--text-2); border-color: #d1d1d6; border-style: dashed; box-shadow: none; opacity: 1; -webkit-text-fill-color: var(--text-2); cursor: default; }
  body.ax-looking #app :is(input[type=checkbox], input[type=radio]):disabled { opacity: .55; cursor: default; }
  body.ax-looking #app button:disabled { display: none; }
  .ax-strip[hidden] { display: none; }
  body:has(.board) .ax-strip { max-width: 1320px; }
  body.kv-desk:not(:has(.board)) .ax-strip { max-width: 1132px; }
  .ax-strip + main { padding-top: 12px; }
  .ax-ro { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #8e8e93; font-size: 14px; color: var(--text-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
  .ax-ro svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
  .ax-ro > span { min-width: 0; text-wrap: pretty; }
  .ax-ro b { color: var(--text); }
  html:has(.ax-strip:not([hidden])) { scroll-padding-top: 76px; }

  #app .ax-tabrow { margin: 0 0 16px; }
  #app .ax-head { display: flex; justify-content: space-between; gap: 12px 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
  #app .ax-head > div:first-child { min-width: 0; flex: 1 1 320px; }
  #app .ax-head h1, #app .ax-head h2 { margin: 0 0 6px; }
  #app .ax-head .lede { margin: 0; color: var(--text-2); font-size: 14px; max-width: 60ch; text-wrap: pretty; }
  #app .ax :is(h1, h2)[tabindex="-1"]:focus { outline: none; }
  #app .ax-back { margin: 0 0 6px; font-size: 13.5px; }
  #app .ax-back a, #app .ax-log > a { display: inline-flex; align-items: center; min-height: 24px; }
  #app .ax-under { margin: 8px 0 0; font-size: 13.5px; }
  #app .ax .linkb, dialog.box .ax-linkb { all: unset; cursor: pointer; color: var(--link); text-decoration: underline; font: inherit; border-radius: 4px; display: inline-flex; align-items: center; min-height: 24px; }
  #app .ax .linkb:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
  #app .ax-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
  #app .ax-filters .qfilters { margin: 0; }
  #app .ax-who { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
  #app .ax-who select { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 8px; border: 1px solid #8e8e93; background: #fff; color: var(--text); max-width: 60vw; }
  #app .ax-hist a { color: var(--link); }
  #app .ax .quiet, .ax-look .quiet { color: var(--text-2); }
  #app .ax .sr, .ax-look .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #app .ax-month { gap: 8px; } #app .ax-month b { min-width: 120px; text-align: center; }

  .ax-legend { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
  .ax-legend li { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .ax .lvl { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; white-space: nowrap; justify-self: start; }
  .ax .lvl.owner { background: var(--brand-soft); color: var(--brand-ink); }
  .ax .lvl.reviewer { background: var(--green-soft); color: #14662b; }
  .ax .lvl.look, .ax .lvl.support { background: #e5e5ea; color: #3a3a3c; }
  .ax .lvl.ids { background: var(--amber-soft); color: #6d4100; }
  .ax .lvl.wait { background: #fff; color: var(--text-2); box-shadow: inset 0 0 0 1px #8e8e93; }   /* an invite that isn't accepted yet: plain, not a warning */
  .ax .lvl.out { background: var(--gray-soft); color: var(--text-2); font-weight: 600; }
  #app .ax-people .pp .lvl.out { margin-top: 3px; }

  #app table.ax-people { width: 100%; border-collapse: collapse; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--border); border-radius: 12px; overflow: hidden; font-size: 13.5px; table-layout: fixed; }
  #app .ax-people .c1 { width: 26%; } #app .ax-people .c2 { width: 18%; } #app .ax-people .c3 { width: 12%; } #app .ax-people .c4 { width: 20%; } #app .ax-people .c5 { width: 24%; }
  #app .ax-people thead th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 9px 12px; background: #f9f9fb; border-bottom: 1px solid var(--border); text-transform: none; letter-spacing: 0; }
  #app .ax-people td, #app .ax-people tbody th { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; font-weight: 400; background: none; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13.5px; overflow-wrap: anywhere; }
  #app .ax-people tbody tr:last-child > * { border-bottom: 0; }
  #app .ax-people .pp .nm { font-weight: 650; }
  #app .ax-people .pp .you { font-weight: 500; color: var(--text-2); }
  #app .ax-people .pp .em { color: var(--text-2); font-size: 13px; }
  #app .ax-people .lvl { margin: 0 2px 3px 0; }
  #app .ax-people .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  #app .ax-people .acts button { padding: 6px 10px; font-size: 13px; border-color: #8e8e93; }
  #app .ax-people .why { display: block; color: var(--text-2); font-size: 12.5px; text-wrap: pretty; }
  #app .ax-people tr.locked > * { background: #f9f9fb; }
  #app .ax-hist thead th:nth-child(1) { width: 150px; } #app .ax-hist thead th:nth-child(2) { width: 32%; }
  .ax-log { margin-top: 14px; font-size: 13px; color: var(--text-2); }
  #app .ax-log h2 { font-size: 13px; font-weight: 650; color: var(--text); margin: 0 0 4px; }
  .ax-log ul { margin: 0 0 4px; padding-left: 18px; } .ax-log li { padding: 1px 0; overflow-wrap: anywhere; } .ax-log p { margin: 0 0 4px; }
  .ax-cansec { margin-top: 22px; }
  #app .ax-cansec > summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 14.5px; padding: 6px 0; min-height: 24px; }
  #app .ax-cansec > summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
  #app .ax-cansec[open] > summary { margin-bottom: 6px; }
  #app table.ax-can, dialog.box table.ax-can { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border-radius: 12px; box-shadow: none; border: 1px solid var(--border); overflow: hidden; }
  #app .ax-can th, #app .ax-can td, dialog.box .ax-can th, dialog.box .ax-can td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; text-transform: none; letter-spacing: 0; background: none; font-size: inherit; color: var(--text); vertical-align: middle; }
  #app .ax-can thead th, dialog.box .ax-can thead th { font-size: 12px; font-weight: 600; color: var(--text-2); background: #f9f9fb; }
  #app .ax-can tbody th.what, dialog.box .ax-can tbody th.what { font-weight: 500; }
  #app .ax-can th.c, #app .ax-can td, dialog.box .ax-can th.c, dialog.box .ax-can td { text-align: center; width: 128px; }
  #app .ax-can td.y, dialog.box .ax-can td.y { color: #14662b; font-weight: 650; }
  #app .ax-can td.n, dialog.box .ax-can td.n { color: var(--text-2); }
  #app .ax-can td.m, dialog.box .ax-can td.m { color: #6d4100; font-weight: 600; }
  .ax-can tbody tr:last-child > * { border-bottom: 0; }

  /* Read only: the application */
  .ax-state { display: grid; gap: 2px; padding: 12px 16px; margin: 12px 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
  .ax-state b { font-size: 15.5px; } .ax-state span { color: var(--text-2); font-size: 13px; text-wrap: pretty; }
  .ax-checks { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
  .ax-checks li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--border); align-items: baseline; scroll-margin-top: 90px; }
  .ax-checks li:first-child { border-top: 0; }
  .ax-checks li > span:first-child { min-width: 0; }
  .ax-checks .st { color: var(--text-2); font-size: 13px; white-space: nowrap; }
  .ax-checks li.done .st { color: #14662b; font-weight: 600; }
  .ax-checks .lvlpill { margin-right: 6px; }
  .ax-look .ax-notes { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
  .ax-look .card.notes h2 { margin: 0 0 4px; }
  .ax-look .kv dd { text-wrap: pretty; }
  .ax-look .doc { gap: 10px; } .ax-look .doc > span { min-width: 0; overflow-wrap: anywhere; } .ax-look .doc a { flex: none; white-space: nowrap; }
  .ax-look .linkb { all: unset; cursor: pointer; color: var(--link); text-decoration: underline; font: inherit; border-radius: 4px; }
  .ax-look .linkb:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

  /* The boxes: who to add, what they become, and removing someone */
  dialog.box .ax-lab { display: block; font-weight: 650; font-size: 14px; margin: 14px 0 6px; color: var(--text); }
  dialog.confirm.box input[type=email] { width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 8px; border: 1px solid #8e8e93; background: #fff; color: var(--text); display: block; }
  /* Invite a customer (2026-12-04): one email field, and the link way under it */
  dialog.box .iv-alt { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
  dialog.box #iv_why { margin: 4px 0 0; font-size: 14px; }
  #app .iv .linkb { all: unset; cursor: pointer; color: var(--link); text-decoration: underline; font: inherit; border-radius: 4px; }
  #app .iv .linkb:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
  #app .iv .iv-to { overflow-wrap: anywhere; }
  #app .iv .note a { color: inherit; font-weight: 650; }
  #app .iv .kv-head .row { flex-wrap: wrap; justify-content: flex-end; }
  #app .iv .chips button.bad:not([aria-pressed="true"]) { color: var(--red); }
  @media (min-width: 701px) {
    #app .iv td.nw { white-space: nowrap; }
    #app .iv td.act .row { justify-content: flex-end; }   /* Remove always at the right edge, whatever comes before it */
  }
  @media (max-width: 700px) { body.kv-desk dialog.confirm.box .iv-alt .linkb { padding: 12px 4px; margin: -12px 0; } }   /* 44px to tap, still inside the sentence */
  dialog.box .ax-flag { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #6d4100; text-wrap: pretty; }
  dialog.box .ax-flag:empty { display: none; }
  dialog.box #ax_set { margin-top: 16px; } dialog.confirm.box #ax_set legend { margin-top: 0; }
  dialog.box .ax-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); cursor: pointer; font-size: 14px; color: var(--text); font-weight: 400; }
  dialog.box legend + .ax-opt { border-top: 0; }
  dialog.confirm.box .ax-opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-2); }
  dialog.box .ax-opt b { display: block; font-weight: 650; color: var(--text); }
  dialog.box .ax-opt span span { color: var(--text-2); font-size: 13px; text-wrap: pretty; }
  dialog.box .ax-opt.ax-ids { margin-top: 12px; padding: 12px; border: 1px solid #8e8e93; border-radius: 10px; }
  dialog.box .ax-opt.ax-ids[hidden] { display: none; }
  dialog.box .ax-compare { margin-top: 8px; font-size: 13.5px; }
  dialog.box .ax-compare > summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 6px 0; }
  dialog.box .ax-compare .ax-can { margin-top: 6px; font-size: 13px; }
  dialog.box .ax-compare .ax-can th.c, dialog.box .ax-compare .ax-can td { width: 84px; padding-left: 6px; padding-right: 6px; }
  dialog.box .bx-foot .out { overflow-wrap: anywhere; }
  dialog.box .bx-foot .out .care { display: block; margin: 6px 0 0; font-weight: 600; color: #6d4100; }
  dialog.box .ax-past { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; } dialog.box .ax-past li { padding: 2px 0; overflow-wrap: anywhere; } dialog.box .quiet { color: var(--text-2); }
  dialog.box.solo .bx-head { border-bottom: 0; } dialog.box.solo .bx-foot { border-top: 0; background: none; padding-top: 4px; }
  @media (max-width: 760px) {
    .ax-strip { padding: 8px 12px 0; }
    .ax-ro { padding: 8px 10px; gap: 8px; font-size: 13.5px; } .ax-ro > span { text-wrap: wrap; }
    @media (max-width: 360px) { .ax-ro { font-size: 13px; } .ax-ro svg { width: 16px; height: 16px; } }
    .ax-legend li { grid-template-columns: 1fr; gap: 2px; }
    #app table.ax-people, #app .ax-people tbody, #app .ax-people tr, #app .ax-people td, #app .ax-people tbody th { display: block; width: auto; }
    #app .ax-people colgroup, #app .ax-people thead { display: none; }
    #app .ax-people tbody tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
    #app .ax-people tbody tr:last-child { border-bottom: 0; }
    #app .ax-people td, #app .ax-people tbody th { padding: 2px 0; border: 0; width: auto; }
    #app .ax-people td[data-l]::before { content: attr(data-l) ": "; color: var(--text-2); }
    #app .ax-people .acts { justify-content: flex-start; margin-top: 6px; }
    #app .ax-people .acts button { min-height: 44px; }
    #app .ax-head > button { min-height: 44px; }
    #app .ax-can th.c, #app .ax-can td, dialog.box .ax-can th.c, dialog.box .ax-can td { width: 68px; padding-left: 4px; padding-right: 4px; }
    #app .ax-cansec > summary, #app .ax .linkb, #app .ax-back a, #app .ax-log > a { min-height: 44px; }
    #app .ax-who select { font-size: 16px; min-height: 44px; } #app .ax-filters { justify-content: flex-start; }
    .ax-checks li { flex-direction: column; gap: 2px; } .ax-checks .st { white-space: normal; }
    dialog.confirm.box input[type=email] { font-size: 16px; min-height: 44px; }   /* iPhone Safari zooms in on anything smaller */
    dialog.box .ax-opt { padding: 12px 0; }
    dialog.box .ax-compare > summary { padding: 12px 0; }
  }

  /* ---- "How?" help (replaces the onboarding playbook PDF) ---- */
  details.how { font-size: 12.5px; color: var(--text-2); }
  details.how summary { cursor: pointer; color: var(--brand-2); font-weight: 600; list-style: none; display: inline-block; }
  details.how summary::-webkit-details-marker { display: none; }
  details.how summary::before { content: "? "; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-soft); font-size: 10.5px; margin-right: 2px; }
  details.how[open] summary { margin-bottom: 4px; }
  details.how > div { background: var(--brand-soft); border-radius: 8px; padding: 8px 10px; color: var(--brand-ink); line-height: 1.5; max-width: 62ch; }
  .nb-text details.how { margin-top: 4px; }
  .slist { display: grid; }
  .srow { display: grid; gap: 2px; padding: 6px 0; border-top: 1px dashed var(--border); }
  .srow:first-child { border-top: 0; }
  .srow label { display: flex; gap: 8px; font-size: 13.5px; align-items: flex-start; cursor: pointer; }
  .srow input { accent-color: var(--green); margin-top: 3px; }
  .srow details.how { margin-left: 22px; }
  .pnotes div { white-space: pre-wrap; margin-top: 4px; }
  details.rules { margin-top: 10px; } details.rules summary::before { content: "! "; background: var(--red-soft); color: var(--red); }
  details.rules ul { margin: 4px 0 0; padding: 8px 10px 8px 26px; background: var(--red-soft); border-radius: 8px; color: #7a2018; }

  /* ---- Partner integration guide (replaces the quickstart PDFs) ---- */
  main:has(.guide) { max-width: 920px; }
  .guide { display: grid; gap: 26px; }
  .guide section { display: grid; gap: 10px; scroll-margin-top: 16px; }
  .guide, .guide section { grid-template-columns: minmax(0, 1fr); }   /* long code blocks scroll in their own box instead of widening the page on phones */
  .g-ep { flex-wrap: wrap; } .g-ep code { min-width: 0; overflow-wrap: anywhere; }
  .g-meta code, .guide p code, .g-t td code, .g-list code, .g-note code { overflow-wrap: anywhere; }
  .guide h2 { font-size: 20px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
  .guide h3 { margin: 10px 0 0; }
  .guide p { margin: 0; max-width: 64ch; line-height: 1.6; }
  .g-t td:first-child code { overflow-wrap: normal; white-space: nowrap; }   /* a field name never breaks in the middle */
  .g-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }
  .g-head h1 { font-size: 28px; margin: 6px 0 8px; }
  .g-meta { font-size: 12.5px; color: var(--muted); }
  .g-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .g-steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); align-content: start; }
  .g-steps b { color: var(--text); font-size: 14px; }
  .g-who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-2); }
  .g-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); }
  .g-tw, .tw { overflow-x: auto; }   /* wide tables scroll inside their own box on phones */
  .g-t { font-size: 13px; } .g-t td { line-height: 1.55; }
  .g-t td code, .guide p code, .g-list code, .g-note code { font-size: 12px; background: var(--gray-soft); padding: 1px 5px; border-radius: 4px; }
  .g-link { word-break: break-all; }
  .g-code { margin: 0; background: var(--brand); color: #dbe7f5; border-radius: var(--r); padding: 12px 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.55; }
  .g-ep { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .g-ep code { font-size: 13.5px; font-weight: 600; }
  .g-m { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; color: #fff; background: var(--brand-2); }
  .g-post { background: var(--green); } .g-delete { background: var(--red); }
  .g-note { background: var(--amber-soft); color: #6d4300; border-radius: var(--r); padding: 10px 12px; font-size: 13px; line-height: 1.55; }
  .g-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; max-width: 72ch; }
  @media (max-width: 760px) { .g-steps { grid-template-columns: 1fr; } .g-head h1 { font-size: 23px; } }

  /* ---- Settings: industries we don't serve (2026-10-23) ---- */
  .blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .blist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 6px 6px 12px; font-size: 13.5px; }
  /* Click-to-copy values in the Texting panel: buttons (keyboard reachable) that read like text */
  .cpb { all: unset; cursor: pointer; border-bottom: 1px dashed var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; } .cpb:hover { background: var(--brand-soft); } .cpb:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
