/* ─────────────────────────────────────────────────────────────────────
   PASS landing + "My lists" pages.
   Tokens live on .pass-page so they never leak into the report pages.
   Accent: azure. Wordmark: Momo Trust Display, hairline outline that
   fills with the accent on hover.
   ───────────────────────────────────────────────────────────────────── */
.pass-page {
  --bg: #faf9f5;
  --elev: #fefdfb;
  --white: #ffffff;
  --ink: #1b1b1a;
  --ink-2: #3a3a37;
  --muted: #7a766e;
  --rule: #d9d4c6;
  --rule-soft: #e8e3d5;
  --accent: #2779e8;
  --accent-soft: #e6f0fc;
  --accent-line: #5f9bee;
  --accent-ink: #ffffff;
  --manual: #fbf3dc;
  --manual-line: #d9c27a;
  --manual-ink: #7a6420;
  --ok: #33693f;
  --ok-soft: #e7f1e8;
  --warn: #8a5a1a;
  --warn-soft: #fbf1dc;
  --danger: #a33b3b;
  --line-rgb: 27, 27, 26;
  --shadow: 0 1px 2px rgba(27, 27, 26, 0.05), 0 10px 30px -18px rgba(27, 27, 26, 0.25);
  --shadow-lg: 0 2px 4px rgba(27, 27, 26, 0.05), 0 24px 48px -24px rgba(39, 121, 232, 0.35);
  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Momo Trust Display", "Source Serif 4", "Iowan Old Style", Georgia, serif;

  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  position: relative;
}
.pass-page *, .pass-page *::before, .pass-page *::after { box-sizing: border-box; }
.pass-page button, .pass-page input, .pass-page textarea, .pass-page select { font: inherit; color: inherit; }
.pass-page a { color: inherit; }
.pass-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pass-page [hidden] { display: none !important; }
.pass-page .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the landing page's fine dot grain */
.pass-page .grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(var(--line-rgb), 0.07) 1px, transparent 1px); background-size: 3px 3px; }
.pass-page > * { position: relative; z-index: 1; }
.pass-page > main { z-index: 2; }   /* popovers under the pill paint above the footer */

/* the app topbar, on white */
.pass-page .app-topbar { background: var(--white); border-bottom-color: var(--rule-soft); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- page column ---------- */
.pass-page .page { max-width: 760px; width: 100%; margin: 0 auto; padding-block: 8px 40px; padding-inline: 16px; flex: 1 0 auto; }
.pass-page .page.wide { max-width: 960px; }
.pass-page .stage { min-height: calc(100vh - 200px); display: grid; align-content: center; }

/* ---------- wordmark ---------- */
.pass-page .hero { text-align: center; margin: 0 0 28px; }
.pass-page .brand-mark { display: inline-flex; align-items: baseline; justify-content: center; margin: 0; padding: 30px 0 0; list-style: none; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 12vw, 76px); line-height: 1; letter-spacing: 0.03em; color: var(--ink); }
.pass-page .pl { position: relative; display: inline-block; }
.pass-page .pl .l { all: unset; display: block; cursor: default; padding: 0 0.02em; }
.pass-page .pl .l:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.pass-page .pl .x { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(4px); font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; opacity: 0; padding-bottom: 6px; margin-bottom: 4px; pointer-events: none; transition: opacity 0.18s ease-out, transform 0.18s ease-out; }
.pass-page .pl .x::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 1.5px; width: 0; background: var(--accent-line); transform: translateX(-50%); transition: width 0.22s cubic-bezier(0.32, 0.72, 0, 1); }
.pass-page .pl:hover .x, .pass-page .pl:focus-within .x, .pass-page .pl.on .x { opacity: 1; transform: translateX(-50%) translateY(0); }
.pass-page .pl:hover .x::after, .pass-page .pl:focus-within .x::after, .pass-page .pl.on .x::after { width: 100%; }
.pass-page .brand-mark .l { color: transparent; -webkit-text-stroke: 1.4px var(--ink); paint-order: stroke fill; transition: color 0.2s ease, -webkit-text-stroke-color 0.2s ease; }
.pass-page .pl:hover .l, .pass-page .pl:focus-within .l, .pass-page .pl.on .l { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
@media (max-width: 480px) {
  .pass-page .pl:first-child .x { left: 0; transform: translateX(0) translateY(4px); }
  .pass-page .pl:first-child:hover .x, .pass-page .pl:first-child:focus-within .x, .pass-page .pl:first-child.on .x { transform: translateX(0) translateY(0); }
  .pass-page .pl:first-child .x::after { left: 0; transform: none; }
  .pass-page .pl:last-child .x { left: auto; right: 0; transform: translateX(0) translateY(4px); }
  .pass-page .pl:last-child:hover .x, .pass-page .pl:last-child:focus-within .x, .pass-page .pl:last-child.on .x { transform: translateX(0) translateY(0); }
  .pass-page .pl:last-child .x::after { left: auto; right: 0; transform: none; }
}

/* ---------- the instrument: two cells + run ---------- */
.pass-page .instrument { position: relative; }
.pass-page .irow { display: flex; align-items: center; gap: 10px; }
.pass-page .irow .dual { flex: 1 1 auto; min-width: 0; }
.pass-page .dual { display: grid; grid-template-columns: minmax(0, 1.25fr) 1px minmax(0, 1fr) auto; align-items: stretch; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-lg); padding: 6px; position: relative; }
.pass-page .cell { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border: 0; background: none; border-radius: 999px; text-align: left; cursor: pointer; min-width: 0; max-width: 100%; overflow: hidden; transition: background 0.15s ease; }
.pass-page .cell:hover { background: var(--accent-soft); }
.pass-page .cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 999px; }
.pass-page .cell .ico { width: 22px; height: 22px; color: var(--accent); flex: none; }
.pass-page .cell .ico svg { width: 100%; height: 100%; display: block; }
.pass-page .cell .txt { display: grid; gap: 1px; min-width: 0; max-width: 100%; overflow: hidden; }
.pass-page .cell .lbl { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); }
.pass-page .cell .val { display: block; min-width: 0; max-width: 100%; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-page .cell-cs .val, .pass-page .cell-ms:not(.has-file) .val { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; overflow-wrap: anywhere; }
.pass-page .cell-ms .val .linkbtn { white-space: nowrap; }
.pass-page .cell .val .dim { color: var(--muted); }
.pass-page .cell .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.pass-page .cell .meta:empty { display: none; }
.pass-page .cell .meta .badge { font-size: 10px; padding: 0 6px; }
.pass-page .cell-ms.over { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pass-page .cell-ms.has-file { grid-template-columns: auto minmax(0, 1fr) auto; }
.pass-page .cell-ms input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.pass-page .cell-cs { grid-template-columns: auto minmax(0, 1fr) auto; }
.pass-page .cell-cs .chev { width: 14px; height: 14px; color: var(--muted); flex: none; transition: transform 0.2s; }
.pass-page .cell-cs[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pass-page .cell-cs[aria-expanded="true"] { background: var(--accent-soft); }
.pass-page .vsep { width: 1px; background: var(--rule-soft); margin: 8px 0; }
.pass-page .x-file { width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.pass-page .x-file:hover { background: var(--elev); color: var(--ink); }
.pass-page .badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); background: var(--bg); white-space: nowrap; vertical-align: 1px; }
.pass-page .badge.pdf { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.pass-page .badge.xml { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.pass-page .run { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 24px; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; margin-left: 6px; transition: filter 0.15s, transform 0.15s; }
.pass-page .run:hover { filter: brightness(1.08); }
.pass-page .run:active { transform: scale(0.99); }
.pass-page .run:disabled { opacity: 0.6; cursor: wait; }
.pass-page .run svg { width: 16px; height: 16px; }
.pass-page .help-q { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin: 0 2px 0 5px; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 600; line-height: 1; cursor: pointer; vertical-align: 1px; padding: 0; }
.pass-page .help-q:hover { background: var(--accent); color: var(--accent-ink); }
.pass-page .help-steps { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.pass-page .help-img { width: 100%; max-width: 520px; height: auto; border-radius: 12px; border: 1px solid var(--rule-soft); display: block; }
.pass-page .linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); cursor: pointer; font-size: 13px; }
.pass-page .linkbtn:hover { text-decoration-color: var(--accent); }
.pass-page .iconbtn { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--rule); background: var(--elev); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.pass-page .iconbtn:hover { color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }
.pass-page .iconbtn svg { width: 15px; height: 15px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pass-page .iconbtn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pass-page .iconbtn[aria-expanded="true"] svg { transform: rotate(45deg); }
.pass-page .gear { width: 44px; height: 44px; flex: none; box-shadow: var(--shadow); background: var(--white); }
.pass-page .gear svg { width: 18px; height: 18px; }
.pass-page .tagline { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); letter-spacing: 0.01em; }
.pass-page .brand-expand { margin: 8px 0 0; text-align: center; font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }
.pass-page .tagline .detail-btn { all: unset; display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; cursor: pointer; color: var(--accent); font-family: var(--sans); font-size: 12.5px; font-weight: 500; }
.pass-page .tagline .detail-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.pass-page .tagline .detail-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pass-page .tagline .detail-btn .chev { width: 12px; height: 12px; transition: transform 0.2s ease; }
.pass-page .tagline .detail-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* The introduction floats in a zero-height slot, the same trick the settings
   and paste panels use: .stage centres its content, so anything that grows in
   flow pushes the wordmark and the input pill upwards. Out of flow, opening it
   moves nothing on the page. */
.pass-page .intro-slot { position: relative; height: 0; }
.pass-page .intro { position: absolute; z-index: 15; left: 50%; top: 10px; box-sizing: border-box; width: min(700px, 100%); margin: 0; padding: 14px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-lg); text-align: justify; text-justify: inter-word; hyphens: auto; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -6px); transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.24s; }
.pass-page .intro a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.pass-page .intro a:hover { border-bottom-color: var(--accent); }
.pass-page .intro.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .pass-page .intro { transition: none; } }
.pass-page .cite-line { margin: 0 auto; padding: 0 16px 14px; max-width: 760px; text-align: center; font-size: 12px; line-height: 1.55; color: var(--muted); }
.pass-page .cite-line em { font-style: italic; }
.pass-page .cite-line a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.pass-page .status { display: none; margin: 10px auto 0; font-size: 13px; padding: 7px 10px 7px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--elev); max-width: 560px; text-align: left; align-items: center; gap: 10px; }
.pass-page .status.show { display: flex; }
.pass-page .status .msg { flex: 1 1 auto; min-width: 0; }
.pass-page .status .x { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.pass-page .status .x:hover { opacity: 1; background: rgba(27, 27, 26, 0.06); }
/* the landing keeps a fixed slot for the message so showing one never shifts the centred wordmark and pill */
.pass-page .instrument .status { display: flex; visibility: hidden; min-height: 40px; }
.pass-page .instrument .status.show { visibility: visible; }
.pass-page .status.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.pass-page .status.warn { color: var(--ink); }
.pass-page .status.err { color: var(--danger); border-color: var(--danger); background: #fdf2f2; }

/* ---------- candidate dropdown: list under the right cell, preview beside it ---------- */
.pass-page .cs-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: 680px; max-width: calc(100vw - 32px); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px; align-items: start; }
.pass-page .cs-dd { border: 1px solid var(--rule); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg); padding: 8px 4px 8px 8px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 4px; overflow: hidden; min-width: 0; max-height: var(--avail, none); }
.pass-page .cs-dd .filter { width: calc(100% - 4px); border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); padding: 7px 11px; font-size: 13.5px; margin-bottom: 4px; }
.pass-page .cs-dd .filter:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.pass-page .cs-scroll { max-height: min(60vh, 440px, calc(var(--avail, 999px) - 64px)); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; display: grid; gap: 4px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.pass-page .cs-scroll::-webkit-scrollbar { width: 6px; }
.pass-page .cs-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 999px; }
.pass-page .cs-scroll::-webkit-scrollbar-track { background: transparent; }
.pass-page .cs-dd .grp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pass-page .cs-dd .grp + .grp, .pass-page .cs-dd #cs-yours + .grp { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.pass-page .cs-dd .grp-sep { height: 1px; background: var(--rule-soft); margin: 8px 0 4px; }
.pass-page .cs-dd .grp a { color: var(--accent); text-decoration: none; letter-spacing: 0; font-family: var(--sans); font-size: 12.5px; }
.pass-page .cs-dd .grp a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pass-page .cs-dd .grp span a { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.pass-page .cs-dd .grp span a:hover { text-decoration-color: var(--accent); }
.pass-page .cs-dd .sub { padding: 6px 10px 3px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pass-page .cs-dd .sub a { color: var(--accent); text-decoration: none; font-size: 12px; }
.pass-page .cs-dd .sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pass-page .cs-dd .sub .disc { border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-align: left; }
.pass-page .cs-dd .sub .disc:hover { color: var(--ink); }
.pass-page .cs-dd .sub .disc .chev { width: 12px; height: 12px; color: var(--muted); transform: rotate(-90deg); transition: transform 0.18s; flex: none; }
.pass-page .cs-dd .sub .disc[aria-expanded="true"] .chev { transform: rotate(0); }
.pass-page .cs-dd .sub.sep { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--rule-soft); }
.pass-page .opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.pass-page .opt:hover, .pass-page .opt.active { background: var(--accent-soft); }
.pass-page .opt .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.25px solid var(--rule); justify-self: center; }
.pass-page .opt[aria-selected="true"] .dot { background: var(--accent); border-color: var(--accent); }
.pass-page .opt .nm { min-width: 0; overflow-wrap: anywhere; }
.pass-page .opt .nm small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.pass-page .opt .k { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pass-page .opt.star .nm::before { content: "★ "; color: var(--accent); }
.pass-page .opt.free .nm { font-weight: 500; }
.pass-page .opt.extra { display: none; }
.pass-page .cs-dd .showall .opt.extra, .pass-page .cs-dd.filtering .opt.extra { display: grid; }
.pass-page .cs-dd .collapsed .opt { display: none; }
.pass-page .cs-dd .collapsed .opt[aria-selected="true"], .pass-page .cs-dd .opt.extra[aria-selected="true"], .pass-page .cs-dd.filtering .collapsed .opt:not([hidden]) { display: grid; }
.pass-page .cs-dd .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 6px; }
.pass-page .cs-dd .empty { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.pass-page .seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--bg); }
.pass-page .seg button { border: 0; background: none; padding: 3px 9px; font-family: var(--mono); font-size: 11.5px; cursor: pointer; color: var(--muted); border-right: 1px solid var(--rule-soft); }
.pass-page .seg button:last-child { border-right: 0; }
.pass-page .seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pass-page .seg button:focus-visible { outline-offset: -3px; border-radius: 6px; }
.pass-page .cs-preview { border: 1px solid var(--rule); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg); padding: 10px 10px 10px 12px; display: grid; gap: 8px; min-width: 0; align-content: start; max-height: var(--avail, none); overflow: hidden; }
.pass-page .cs-preview .ph { display: grid; gap: 2px; padding: 2px 2px 0; }
.pass-page .cs-preview .ph .k { font-size: 12px; font-weight: 500; color: var(--muted); }
.pass-page .cs-preview .ph .nmx { font-size: 13px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.pass-page .cs-preview .ph .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pass-page .cs-preview .ph .meta .badge { font-size: 10px; padding: 0 6px; }
.pass-page .cs-preview .note { margin: 0; font-size: 13px; color: var(--muted); padding: 0 2px; }
.pass-page .cs-preview .all { list-style: none; margin: 0; padding: 0; max-height: min(52vh, 400px, calc(var(--avail, 999px) - 110px)); overflow-y: auto; border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.pass-page .cs-preview .all::-webkit-scrollbar { width: 6px; }
.pass-page .cs-preview .all::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 999px; }
.pass-page .cs-preview .all li { display: flex; gap: 8px; padding: 5px 10px; font-size: 13px; border-bottom: 1px solid var(--rule-soft); }
.pass-page .cs-preview .all li:last-child { border-bottom: 0; }
.pass-page .cs-preview .all .rk { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 22px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.pass-page .cs-preview .all .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-page .cs-preview .all .sjr { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pass-page .cs-preview .all li.hdr { position: sticky; top: 0; background: var(--bg); font-size: 11px; font-weight: 500; color: var(--muted); }
.pass-page .cs-preview .all li.hdr .rk, .pass-page .cs-preview .all li.hdr .sjr { color: var(--muted); font-family: var(--sans); font-size: 11px; }
.pass-page .cs-preview .all li.more, .pass-page .cs-preview .all li.empty { color: var(--muted); font-style: italic; }

/* ---------- in-flow panels (paste, settings) ---------- */
.pass-page .panel { margin-top: 14px; border: 1px solid var(--rule); border-radius: 20px; background: var(--elev); box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 12px; }
/* on the landing page the paste / settings panels float under the pill (like the dropdown) so opening one never shifts the centred wordmark and box */
.pass-page .instrument .panel { position: absolute; left: 0; right: 0; top: 100%; margin-top: var(--panel-gap, 4px); z-index: 20; background: var(--white); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.pass-page .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.pass-page .panel-title { margin: 0; font-size: 14px; font-weight: 600; }
.pass-page .field { display: grid; gap: 5px; min-width: 0; }
.pass-page .field label, .pass-page .field .field-label { font-size: 13px; font-weight: 500; }
.pass-page .field label small { font-weight: 400; color: var(--muted); }
.pass-page .field label .opt-tag { margin-left: 10px; }
.pass-page .input, .pass-page .textarea { width: 100%; min-width: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); padding: 8px 11px; font-size: 14px; }
.pass-page .model-opts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) { .pass-page .model-opts { flex-direction: column; align-items: flex-start; } }
.pass-page .mopt { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--muted); cursor: pointer; }
.pass-page .mopt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.25px solid var(--rule); flex: none; }
.pass-page .mopt:has(input:checked)::before { background: var(--accent); border-color: var(--accent); }
.pass-page .mopt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; left: 0; top: 0; pointer-events: none; }
.pass-page .mopt:hover { border-color: var(--accent-line); }
.pass-page .mopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.pass-page .mopt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pass-page .mopt.off { cursor: not-allowed; opacity: 0.55; }
.pass-page .mopt.off:hover { border-color: var(--rule); }
.pass-page .mopt.off:has(input:checked) { opacity: 0.85; }
.pass-page select.input { -webkit-appearance: none; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237a766e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.pass-page .input:focus, .pass-page .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
/* iOS gives date inputs an intrinsic width; reset it so the field respects its box */
.pass-page input[type="date"].input { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 38px; }
.pass-page .panel .field { max-width: 100%; }
.pass-page .textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.pass-page .count { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }
.pass-page .btn-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pass-page .btn { border: 1px solid var(--rule); background: var(--bg); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; position: relative; text-decoration: none; }
.pass-page .btn:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); }
.pass-page .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pass-page .btn.fill { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pass-page .btn.fill:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
.pass-page .btn.danger:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); background: var(--bg); }
.pass-page .hint { font-size: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.pass-page .site-foot { margin-top: auto; padding: 14px 16px 18px; background: var(--white); border-top: 1px solid var(--rule-soft); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.pass-page .site-foot a { text-decoration: none; }
.pass-page .site-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pass-page .site-foot .copy { display: inline-flex; gap: 5px; }

/* ---------- "My lists" page ---------- */
.pass-page .lp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.pass-page .lp-head h2 { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; }
.pass-page .lp-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.pass-page .ltable-wrap { overflow-x: auto; }
.pass-page .ltable { width: 100%; border-collapse: collapse; font-size: 13.5px; border: 1px solid var(--rule-soft); border-radius: 14px; overflow: hidden; background: var(--elev); }
.pass-page .ltable th, .pass-page .ltable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.pass-page .ltable th { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg); }
.pass-page .ltable tr:last-child td { border-bottom: 0; }
.pass-page .ltable td.n { font-weight: 500; }
.pass-page .ltable td.n::before { content: "★ "; color: var(--accent); }
.pass-page .ltable td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.pass-page .ltable td.act { white-space: nowrap; text-align: right; }
.pass-page .ltable td.act .btn { padding: 4px 10px; font-size: 12px; margin-left: 4px; }
.pass-page .ltable .empty td { color: var(--muted); text-align: center; padding: 20px; }
.pass-page .ltable tr.expand td { padding: 10px 12px 14px; background: var(--bg); }
.pass-page .ltable tr.expand .all { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.pass-page .ltable tr.expand .all li { display: flex; gap: 8px; padding: 5px 10px; font-size: 13px; border-bottom: 1px solid var(--rule-soft); }
.pass-page .ltable tr.expand .all li:last-child { border-bottom: 0; }
.pass-page .ltable tr.expand .all .rk { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 22px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.pass-page .ltable tr.expand .all .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-page .ltable tr.expand .all .sjr { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pass-page .ltable tr.expand .all li.hdr { position: sticky; top: 0; background: var(--elev); font-size: 11px; font-weight: 500; color: var(--muted); }
.pass-page .ltable tr.expand .all li.hdr .rk, .pass-page .ltable tr.expand .all li.hdr .sjr { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.pass-page .ltable tr.expand .all li.empty { color: var(--muted); font-style: italic; }
.pass-page .builder-panel { margin-top: 4px; }
.pass-page .name-row { display: flex; align-items: center; gap: 10px; }
.pass-page .name-row label { font-size: 13px; font-weight: 500; white-space: nowrap; }
.pass-page .name-row .input { max-width: 360px; }

/* builder: two steps */
.pass-page .steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.pass-page .step { border: 0; background: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; }
.pass-page .step .n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; }
.pass-page .step[aria-current="step"] { color: var(--ink); background: var(--accent-soft); }
.pass-page .step[aria-current="step"] .n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pass-page .step.done .n { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.pass-page .step:disabled { cursor: not-allowed; opacity: 0.55; }
.pass-page .builder { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: stretch; }
.pass-page .b-left { display: grid; gap: 12px; min-width: 0; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.pass-page .b-step { display: grid; gap: 10px; align-content: start; }
.pass-page #bstep-2 { min-height: 0; align-content: stretch; grid-template-rows: auto auto auto minmax(0, 1fr); }
.pass-page #bstep-2 .scrollbox { position: relative; display: block; min-height: 140px; padding: 0; }
.pass-page #bstep-2 .review { position: absolute; inset: 4px 4px 4px 0; max-height: none; overflow-y: auto; }
.pass-page .b-step h4 { margin: 0; font-size: 13.5px; font-weight: 600; }
.pass-page .b-step h4 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.pass-page .start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pass-page .scard { text-align: left; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); cursor: pointer; padding: 9px 12px; display: grid; gap: 2px; min-width: 0; position: relative; }
.pass-page .scard:hover { border-color: var(--accent-line); }
.pass-page .scard[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pass-page .scard .nm { font-weight: 500; font-size: 13.5px; }
.pass-page .scard .ds { font-size: 12px; color: var(--muted); }
.pass-page .seed-opts { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--bg); }
.pass-page .seed-opts .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pass-page .area-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pass-page .area { border: 1px solid var(--rule); background: var(--elev); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--muted); }
.pass-page .area[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.pass-page .area:hover { border-color: var(--accent-line); }
.pass-page .area-chips.collapsed .area.extra:not([aria-pressed="true"]) { display: none; }
.pass-page .area.more { border-style: dashed; color: var(--accent); }
.pass-page .search-wrap { position: relative; }
.pass-page .dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-lg); max-height: 240px; overflow: auto; padding: 4px; }
.pass-page .dd-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.pass-page .dd-item .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-page .dd-item:hover:not(:disabled), .pass-page .dd-item.active { background: var(--accent-soft); }
.pass-page .dd-item:disabled { color: var(--muted); cursor: default; }
.pass-page .dd-item .sjr { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pass-page .dd-item .q { font-family: var(--mono); font-size: 10.5px; padding: 0 5px; border-radius: 4px; background: var(--bg); border: 1px solid var(--rule); color: var(--muted); }
.pass-page .dd-empty { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.pass-page .dd-empty b { color: var(--ink); font-weight: 500; }
.pass-page .scrollbox { border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--bg); padding: 4px 4px 4px 0; overflow: hidden; min-width: 0; min-height: 0; }
.pass-page .scrollbox.elev { background: var(--elev); }
.pass-page .scrollbox > ol { border: 0 !important; border-radius: 0 !important; background: none !important; margin: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.pass-page .scrollbox > ol::-webkit-scrollbar { width: 6px; }
.pass-page .scrollbox > ol::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 999px; }
.pass-page .scrollbox > ol::-webkit-scrollbar-track { background: transparent; }
.pass-page .review { list-style: none; margin: 0; padding: 0; max-height: 300px; }
.pass-page .review li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13px; border-bottom: 1px solid var(--rule-soft); }
.pass-page .review li:last-child { border-bottom: 0; }
.pass-page .review .rk { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 24px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.pass-page .review .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-page .review .src { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; padding: 0 6px; border-radius: 4px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.pass-page .review .src.manual { border-color: var(--manual-line); background: var(--manual); color: var(--manual-ink); }
.pass-page .review .src.unmatched { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.pass-page .review .sjr { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.pass-page .review .rm { border: 0; background: none; width: 20px; height: 20px; border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.pass-page .review .rm:hover { background: var(--elev); color: var(--ink); }
.pass-page .review li.more, .pass-page .review li.empty { color: var(--muted); font-style: italic; }
.pass-page .review li.manual { background: var(--manual); }
.pass-page .review li.manual .rk { color: var(--manual-ink); font-weight: 500; }
.pass-page .check { font-size: 12.5px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--rule-soft); background: var(--bg); }
.pass-page .check.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.pass-page .b-nav { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.pass-page .b-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-width: 0; }
.pass-page .b-side h4 { margin: 0; font-size: 13.5px; font-weight: 600; }
.pass-page .b-preview { border: 1px solid var(--rule-soft); border-radius: 14px; background: var(--bg); padding: 10px 12px 12px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; min-height: calc(clamp(160px, calc(100vh - 430px), 420px) + 76px); }
.pass-page .b-preview .scrollbox { display: grid; align-self: start; }
.pass-page .b-preview .big { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.pass-page .b-preview .big small { font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.pass-page .b-preview .all { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: clamp(160px, calc(100vh - 430px), 420px); }
.pass-page .b-preview .all li { display: flex; gap: 8px; padding: 5px 10px; font-size: 13px; border-bottom: 1px solid var(--rule-soft); }
.pass-page .b-preview .all li:last-child { border-bottom: 0; }
.pass-page .b-preview .all .rk { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 22px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.pass-page .b-preview .all .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-page .b-preview .all .sjr { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pass-page .b-preview .all li.hdr { position: sticky; top: 0; background: var(--elev); font-size: 11px; font-weight: 500; color: var(--muted); }
.pass-page .b-preview .all li.hdr .rk, .pass-page .b-preview .all li.hdr .sjr { color: var(--muted); font-family: var(--sans); font-size: 11px; }
.pass-page .b-preview .all li.manual { background: var(--manual); }
.pass-page .b-preview .all li.manual .rk { color: var(--manual-ink); font-weight: 500; }
.pass-page .b-preview .all li.more, .pass-page .b-preview .all li.empty { color: var(--muted); font-style: italic; }
.pass-page .app-flash { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13px; }

@media (max-width: 1000px) {
  .pass-page .builder { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* phone: centre in the dynamic viewport (100dvh follows the browser's collapsing toolbars, so it fits without scrolling) */
  .pass-page .stage { min-height: calc(100vh - 170px); min-height: calc(100dvh - 170px); align-content: center; padding-top: 0; }
  /* phone footer: copyright on one row, the two links on the next */
  .pass-page .site-foot { padding: 10px 12px 12px; gap: 4px 16px; font-size: 12px; justify-content: center; text-align: center; }
  .pass-page .site-foot .copy { flex-basis: 100%; justify-content: center; gap: 5px; }
  .pass-page .page { padding-block: 0 24px; }
  .pass-page .hero { margin-bottom: 22px; }
  .pass-page .brand-mark { padding-top: 26px; font-size: clamp(48px, 13vw, 64px); }
  .pass-page .cell { padding: 9px 12px 9px 14px; }
  .pass-page .dual { grid-template-columns: 1fr; border-radius: 24px; padding: 8px; gap: 4px; }
  .pass-page .vsep { width: auto; height: 1px; margin: 0 12px; }
  .pass-page .cell { border-radius: 16px; }
  /* Run and the settings gear share the pill's last row: the gear is pinned to the
     pill's bottom-right corner and the Run button leaves room for it. */
  .pass-page .run { margin: 4px 52px 0 0; justify-content: center; padding: 12px 20px; }
  .pass-page .irow { flex-wrap: wrap; position: relative; }
  .pass-page .irow .dual { flex-basis: 100%; }
  .pass-page .irow .gear { position: absolute; right: 8px; bottom: 8px; box-shadow: none; border-color: var(--rule); }
  .pass-page .cs-pop { position: fixed; left: 8px !important; right: 8px; width: auto; max-width: none; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
  .pass-page .cs-dd { max-height: 100%; min-height: 0; }
  .pass-page .cs-scroll { max-height: none; }
  .pass-page .cs-preview { max-height: 45%; }
  .pass-page .cs-preview .all { max-height: none; }
  .pass-page .builder { grid-template-columns: 1fr; }
  .pass-page .start-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pass-page *, .pass-page *::before, .pass-page *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
