/* The seller tools (/zh|en/notice/, /zh|en/verify/, /zh|en/calendar/) on the SAME shell as the free check: /check/brand.css and /check/flow.css
   are loaded first (progress bar, back link, .h1, .sub, selectable cards, the pill .btn, inputs, .note, .btn-quiet, .top, .flow-foot); this file only
   adds what a single-column tool needs: the stage, the pinned primary, the result blocks, the collapsed "why". Tokens: brand.css. */
body.tool { --page: #ffffff; background: #fff; }
.tool .top-in { max-width: 640px; }
.tool .lang a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px; justify-content: center; font: 500 14px/1 var(--font); color: var(--ink-3); text-decoration: none; border-radius: 999px; }
.tool .lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tool .lang a:hover { color: var(--ink); }

.fl-wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.fl { min-height: calc(100dvh - 56px); display: flex; flex-direction: column; }
.fl .q-top { margin: 8px 0 0; }
.fl-screens { flex: 1 0 auto; padding: 8px 0 24px; }
.fl .screen[hidden] { display: none; }
.fl-prog { display: block; flex: 1; }
.fl h1.h1, .fl h2.h1 { margin: 8px 0 8px; }
.fl [tabindex="-1"]:focus { outline: none; }
/* browser default paragraph margins (1em) fall off the 4 px grid; one explicit rhythm instead */
.fl p:not([class]), .seo p:not([class]) { margin: 0 0 8px; }
.fl p.small, .seo p.small { margin: 12px 0 0; }
/* two weights on the page (400 and 600): the shell's 500 and 700 fold into them */
.fl .h1, .fl h1.h1, .fl h2.h1 { font-weight: 600; }
.tool .lang a, .fl .back { font-weight: 400; }
.fl .btn-quiet, .seo .btn-quiet { font-weight: 600; }
.fl h3, .seo h3 { font-weight: 600; }
.fl h3 { margin: 0; }

/* the pinned primary: sticky to the bottom of the stage, never over the content that follows the stage */
.fl-dock { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-2); }
.fl-dock[hidden] { display: none; }
.fl-dock-in { max-width: 608px; margin: 0 auto; display: grid; gap: 4px; justify-items: center; }
.fl-dock .btn[disabled] { opacity: .45; cursor: default; }
.fl-err { margin: 0; min-height: 0; font-size: 15px; line-height: 1.5; color: var(--bad); text-align: center; }
.fl-err:empty { display: none; }
.fl-alt { margin: 0; justify-self: center; }
.fl-alt[hidden] { display: none; }

/* screen 1 of the notice reader: the text box and one muted line */
.tool .lbl { display: block; margin: 0 0 8px; font: 600 16px/1.4 var(--font); }
.fl .local { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.fl .samples { margin: 16px 0 0; }
.fl .samples summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--link); font-size: 15px; }
.fl .samples .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 8px; }
.fl .samples button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 14px var(--font); cursor: pointer; }
.fl .samples button:hover { background: var(--brand-soft); }
.fl .clear { margin: 8px 0 0; }

/* result: three or four short blocks, label above value, nothing side by side */
.fl .blks { display: grid; gap: 0; margin: 16px 0 0; }
.fl .blk { padding: 16px 0; border-top: 1px solid var(--line-2); }
.fl .blk-h { margin: 0 0 4px; font: 600 14px/1.4 var(--font); color: var(--ink-3); }
.fl .blk p, .fl .blk ul { margin: 0; font-size: 17px; line-height: 1.6; }
.fl .blk ul { padding-left: 20px; }
.fl .blk li + li { margin-top: 4px; }
.fl .blk q { font-weight: 600; quotes: "\201c" "\201d"; }
.fl .blk .note { margin: 8px 0 0; font-size: 14px; }
.fl .state { margin: 0 0 8px; font-weight: 600; }
.fl .state.bad { color: var(--bad); }
.fl .warn { margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: var(--bad-soft); color: var(--ink); font-size: 15px; line-height: 1.6; }
.fl .wx { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fl .kw { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.fl .again { margin: 16px 0 0; }

/* the collapsed "why?" */
.fl details.why { margin: 8px 0 0; border-top: 1px solid var(--line-2); }
.fl details.why > summary, .fl details.flag > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; color: var(--link); font: 600 16px/1.4 var(--font); }
.fl details.why > summary::-webkit-details-marker, .fl details.flag > summary::-webkit-details-marker { display: none; }
.fl details.why > summary::after, .fl details.flag > summary::after { content: ""; margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg); transition: transform .15s var(--ease); }
.fl details[open] > summary::after { transform: rotate(-135deg); }
.fl .why-in { padding: 0 0 8px; }
.fl .why-in .blk:first-child { border-top: 0; }
.fl .more { margin: 8px 0 0; font-size: 15px; }

/* verify */
.fl .opts { margin: 16px 0 0; }
.fl .opts .opt-name { font-weight: 600; }
.fl .fld { margin: 16px 0 0; display: grid; gap: 4px; }
.fl .fld label { font: 600 16px/1.4 var(--font); }
.fl .fld .hint { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.fl .num { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
.fl .num code { padding: 6px 12px; border-radius: 8px; background: var(--surface-2); font: 600 16px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); word-break: break-all; }
.fl .open-reg { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 24px; margin: 16px 0 0; border-radius: 999px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font: 600 17px/1.2 var(--font); text-decoration: none; }
.fl .open-reg:hover { background: var(--brand-soft); }
.fl .vflags { list-style: none; margin: 0; padding: 0; }
.fl details.flag { border-top: 1px solid var(--line-2); }
.fl details.flag .lv { flex: none; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 22px; white-space: nowrap; background: var(--info-soft); color: var(--info); }
.fl details.flag.red .lv { background: var(--bad-soft); color: var(--bad); }
.fl details.flag.amber .lv { background: var(--warn-soft); color: var(--warn-ink); }
.fl details.flag.ok .lv { background: var(--ok-soft); color: var(--ok); }
.fl details.flag > summary b { font-weight: 600; flex: 1; min-width: 0; color: var(--ink); }
.fl details.flag > p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.fl h3.reg-h { margin: 24px 0 0; font: 600 17px/1.4 var(--font); }
.fl .on { margin: 0; font-size: 14px; color: var(--ink-3); }

/* below the stage: the explanations, sources and links that make the page findable. Not part of the flow. */
.seo { max-width: 640px; margin: 0 auto; padding: 48px 16px 24px; border-top: 1px solid var(--line-2); }
.seo h2 { margin: 32px 0 8px; font: 600 19px/1.4 var(--font); }
.seo h2:first-child { margin-top: 0; }
.seo p { margin: 0 0 8px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.seo ul { margin: 8px 0 16px; padding-left: 20px; }
.seo li { margin: 0; padding: 4px 0; line-height: 1.6; }
.seo ul.known { list-style: none; padding: 0; display: grid; gap: 8px; }
.seo ul.known a { display: block; padding: 12px 16px; min-height: 44px; background: var(--surface-2); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.5; }
.seo ul.known a:hover { background: var(--brand-soft); }
.seo .small { font-size: 14px; color: var(--ink-3); }
.seo-foot { max-width: 640px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.seo-foot .flow-foot { margin-top: 0; }
.seo-foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.seo-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); }

/* calendar: one primary action, the next three dates, the rest collapsed */
.cal .cal-primary { margin: 16px 0 0; }
.cal .cal-primary .btn { text-decoration: none; display: inline-grid; place-items: center; }
.cal .cal-note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); text-align: center; }
.cal .wxban { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); font-size: 15px; line-height: 1.6; }
.cal .wxban b { display: block; }
.cal h2.cal-h { margin: 32px 0 8px; font: 600 19px/1.4 var(--font); }
.cal ul.evt { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cal ul.evt li { margin: 0; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.cal ul.evt li.gone { opacity: .7; }
.cal ul.evt time { display: block; font: 600 17px/1.4 var(--font); font-variant-numeric: tabular-nums; }
.cal ul.evt b { display: block; margin: 4px 0 0; font-weight: 600; }
.cal ul.evt .nt { display: block; margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.cal ul.evt .src { display: block; margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.cal ul.evt .ac { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 4px 0 0; }
.cal ul.evt .ac a, .cal ul.evt .ac button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: 600 15px var(--font); color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* the next 3 dates are cards with one action; the sources, copy and check links live in the full list */
.cal #evt-next .src, .cal #evt-next .a-copy, .cal #evt-next .a-chk { display: none; }
.cal details.more-d { border-top: 1px solid var(--line-2); }
.cal details.more-d > summary { list-style: none; display: flex; align-items: center; min-height: 52px; cursor: pointer; font: 600 16px/1.4 var(--font); color: var(--ink); }
.cal details.more-d > summary::-webkit-details-marker { display: none; }
.cal details.more-d > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg); transition: transform .15s var(--ease); color: var(--ink-3); }
.cal details.more-d[open] > summary::after { transform: rotate(-135deg); }
.cal details.more-d > div { padding: 0 0 16px; }
.cal .lnk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.cal .lnk label { flex: 1 0 100%; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.cal .lnk input { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 0 12px; font: 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: #fff; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--field-line); }
.cal .how details { border-top: 1px solid var(--line-2); }
.cal .how summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; }
.cal .how ol { margin: 0 0 8px; padding-left: 20px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.cal .small { font-size: 14px; color: var(--ink-3); }
.cal .al-cta { margin: 0; }
@media (min-width: 900px) { .fl-dock { margin: 0; border-radius: 0; } .fl { min-height: calc(100dvh - 160px); } }

/* compact toggles: several yes/no questions on ONE screen (verify). The input is the real radio under the pill. */
.fl .tgl { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.fl .tgl legend { padding: 0; margin: 0 0 8px; font: 600 16px/1.5 var(--font); }
.fl .tgl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fl .tgl-o { position: relative; display: inline-flex; max-width: 100%; }
.fl .tgl-o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fl .tgl-o span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--ink); font: 500 15px/1.35 var(--font); box-shadow: inset 0 0 0 1px var(--field-line); transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.fl .tgl-o:hover span { background: #fafafb; }
.fl .tgl-o:has(input:checked) span { background: var(--brand); color: #fff; box-shadow: none; }
.fl .tgl-o:has(input:focus-visible) span { outline: 2px solid var(--focus); outline-offset: 2px; }
.fl .tgl + .why, .fl .tgl + details { margin-top: 4px; }
.dk-segwrap { flex: 1; min-width: 0; }
.fl .open-reg { width: auto; }
@media (min-width: 1024px) { .fl .tgl { margin-top: 16px; } .fl .tgl-o span { min-height: 40px; } .fl .fld { margin-top: 12px; } .fl .opts { margin-top: 12px; } }
