@font-face { font-family: "Space Grotesk Variable"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"); }
:root {
    /* SIPNEX brand (sipnex.ca src/styles/tokens.css, same values as clients.sipnex.ca): obsidian masthead, signal teal as the one accent,
       paper / ink for the work surface. --brand-2 is signal-ink (white text passes AA); --teal (signal-soft) is for non-text marks only. */
    --brand: #0A0B0F; --brand-2: #00766C; --brand-soft: #E3F7F4; --teal: #00B8A8; --signal: #00E5D1; --link: #00665D; --brand-ink: #003B33;
    --edge: #262A33; --ghost: #F2F4F7; --mute: #8A92A3;
    --bg: #FAFAFB; --card: #fff; --border: #DADEE6; --text: #0A0B0F; --text-2: #4A5261; --muted: #5A6170;
    --green: #16875b; --green-soft: #e3f4ec; --red: #c9392b; --red-soft: #fcebe9;
    --amber: #b86e00; --amber-soft: #fdf2e0; --gray-soft: #eef1f4;
    --r: 12px; --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Space Grotesk Variable", "Inter", ui-sans-serif, system-ui, 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: var(--ghost); box-shadow: inset 0 -2px 0 var(--signal); }
  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-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; font-size: 21px; line-height: 1; display: flex; align-items: center; gap: 10px; color: var(--ghost); }
  .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: 28px; width: 28px; display: block; }
  .logo small { font-family: var(--font); font-weight: 400; letter-spacing: 0; color: var(--mute); margin-left: 2px; font-size: 13px; }
  header nav a { color: var(--mute); text-decoration: none; font-size: 13px; }
  header nav a.on { color: var(--ghost); font-weight: 600; }
  main { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }
  .narrow { max-width: 760px; margin: 0 auto; }
  h1 { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
  h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; letter-spacing: -.01em; }
  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%); } .nextbar { position: static; } }

  /* ---- 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; }
  .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); }

  /* ---- "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: 72ch; line-height: 1.6; }
  .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; }
