/* 撞名嗎. Paper, ink, and one seal red. Token names and values match brand/ds/project/tokens.json.
   Red means a clash: the mark, a mark that looks like yours, and errors. Things you press are ink. */
:root {
  --paper: #fbf8f2; --card: #ffffff; --sunken: #f6f2ea; --line: #e6dfd3; --line-strong: #8f8a82;
  --ink: #1c1b1a; --ink-soft: #3c3935; --mute: #6b665f; --on-ink: #fbf8f2;
  --seal: #c8371e; --seal-strong: #a92c16; --seal-soft: #fbe9e4; --on-seal: #ffffff;
  --risk-high: var(--seal-strong); --risk-high-soft: var(--seal-soft);
  --risk-medium: #8a5208; --risk-medium-soft: #fcf0d8;
  --risk-low: #1b6a63; --risk-low-soft: #e0f1ee;
  --risk-unknown: #5a6470; --risk-unknown-soft: #eceff2;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-14: 56px;
  --radius-sm: 10px; --radius-md: 14px; --radius-pill: 999px;
  --font-sans: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/30px var(--font-sans); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 6.5vw, 48px); line-height: 1.3; }
h2 { font-size: 23px; line-height: 30px; margin-top: 56px; margin-bottom: 12px; }
h3, .h3 { font-size: 17px; line-height: 24px; font-weight: 700; margin: 0; }
h4 { margin: 0; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 9; }
.cap { color: var(--mute); font-size: 14px; line-height: 24px; }
/* widths inside the page: prose and forms read best narrow, documents a little wider */
.text { max-width: 760px; }
.narrow { max-width: 760px; margin-inline: auto; }
.doc { max-width: 800px; margin-inline: auto; }
.slim { max-width: 560px; margin-inline: auto; }
/* two parts side by side when there is room, stacked when there is not */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > * { flex: 1 1 360px; min-width: 0; }
.split > .lead-col { flex: 1 1 420px; }
.split.sections { gap: 0 48px; }
.split.sections > :first-child { flex: 1 1 460px; }
.split.sections > :last-child { flex: 1 1 420px; }
.split p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; line-height: 31px; color: var(--ink-soft); }
.rule { border: 0; border-top: 1px solid var(--line); margin: var(--space-12) 0 20px; }

/* header, footer */
.hdr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.lock { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 900; font-size: 20px; line-height: 1; }
.lock img { display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; line-height: 26px; }
.nav a { text-decoration: none; color: var(--mute); padding: 9px 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.ftr { padding-bottom: var(--space-12); }
.disc { background: var(--risk-unknown-soft); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; line-height: 24px; color: var(--ink-soft); margin-bottom: 12px; }
.sample { background: var(--risk-medium-soft); color: #6d4206; }

/* hero and the check form */
.hero { padding-top: 48px; }
.hero .lead { margin: 16px 0 0; max-width: 34em; }
.hero.two { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-bottom: 8px; }
.hero.two > div { flex: 1 1 420px; min-width: 0; }
.hero.two > .check { flex: 1 1 440px; min-width: 0; margin-top: 0; }
.hero.two .lead { max-width: 30em; }
.check { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; margin-top: 32px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 32px -18px rgba(60,40,20,.25); }
label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
label .hint { font-weight: 400; color: var(--mute); }
input[type=text], input[type=email], textarea, select { display: block; width: 100%; margin-top: 6px; padding: 12px 16px; font: inherit; color: inherit; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--line); }
textarea { min-height: 92px; resize: vertical; }
/* voice input: the buttons stay hidden unless the browser can recognise speech (static/app.js) */
.field { margin-bottom: 16px; }
.field .lbl { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px 12px; flex-wrap: nowrap; min-height: 44px; margin-bottom: 6px; }
.field .lbl label { margin: 0; flex: 1 1 auto; min-width: 0; }
.field .lbl .hint { white-space: nowrap; }
.field .lbl + input, .field .lbl + textarea { margin-top: 0; }
.mic { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; }
.mic[hidden], .vstatus[hidden] { display: none; }
.mic:hover { border-color: var(--ink); }
.mic.on, .mic.on:hover { background: var(--ink); color: var(--on-ink); }
.field.listening input, .field.listening textarea { border-color: var(--ink); box-shadow: 0 0 0 3px var(--line); }
.vstatus { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 15px; line-height: 26px; }
.vstatus .t { margin-left: auto; color: var(--mute); font-variant-numeric: tabular-nums; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.wave i { width: 3px; height: 8px; border-radius: 2px; background: var(--ink); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 50% { height: 20px; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; height: 14px; } }
.vnote { margin: 8px 0 0; background: var(--risk-medium-soft); color: #6d4206; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; line-height: 24px; }
.field .err { margin: 8px 0 0; }
.name-input { font-size: 22px !important; font-weight: 700; }
.btn { display: inline-block; border: 0; cursor: pointer; background: var(--ink); color: var(--on-ink); font: inherit; font-weight: 700; padding: 13px 26px; border-radius: var(--radius-pill); text-decoration: none; }
.btn:hover { background: var(--ink-soft); color: var(--on-ink); }
.btn.wide { width: 100%; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--sunken); color: var(--ink); }
.err { background: var(--seal-soft); color: var(--seal-strong); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }
.ok { background: var(--risk-low-soft); color: var(--risk-low); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }

/* generic blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 12px; }
.grid { display: grid; gap: 12px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid > .card { margin-bottom: 0; }
/* label on the left, figure on the right, one line under each */
.rows { margin: 6px 0 0; font-size: 15px; line-height: 26px; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rows dt { min-width: 0; } .rows dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows + .cap { margin: 10px 0 0; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 14px; margin-bottom: 10px; }
.step p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 26px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; line-height: 30px; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* what filing yourself saves: the thing on the left, the saving large on the right */
.saving { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.saving:nth-last-of-type(1) { border-bottom: 0; }
.saving > div { flex: 1 1 320px; min-width: 0; }
.saving b { display: block; }
.saving span { display: block; font-size: 15px; line-height: 26px; color: var(--ink-soft); }
.saving strong { font-size: 20px; line-height: 28px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.savings { padding-top: 8px; padding-bottom: 12px; }
/* something to copy, with its button */
.copy.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 8px 8px 8px 16px; min-height: 60px; }
.copy.row code { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.copy-note { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.copy-note .cap { flex: 1 1 240px; }
[data-copy][hidden] { display: none; }

/* verdict */
.verdict { border-radius: var(--radius-md); padding: var(--space-6); margin-top: 24px; }
.verdict .tag { font-size: 24px; line-height: 32px; margin-bottom: 6px; }
.verdict .tag strong { font-weight: 900; }
.verdict p { margin: 0; }
.lv-high { background: var(--risk-high-soft); } .lv-high .tag, .txt-high { color: var(--risk-high); }
.lv-medium { background: var(--risk-medium-soft); } .lv-medium .tag, .txt-medium { color: var(--risk-medium); }
.lv-low { background: var(--risk-low-soft); } .lv-low .tag, .txt-low { color: var(--risk-low); }
.lv-unknown { background: var(--risk-unknown-soft); } .lv-unknown .tag { color: var(--risk-unknown); }
/* the top of a case page: the name is the h1, the line under it says what was asked */
.head { margin-top: 10px; }
.head h1 { font-size: 30px; line-height: 38px; }
.head p { color: var(--mute); margin: 0 0 12px; }
.back { font-size: 14px; line-height: 24px; margin-bottom: 12px; }
.back a { color: var(--mute); }
.cards { list-style: none; padding: 0; margin: 0; }

/* under the verdict: what the free check did not look at. Grey chips: nothing here is a clash, it is just not assessed yet. */
.open-qs { margin-top: 12px; padding-bottom: 24px; }
.open-qs ul { list-style: none; padding: 0; margin: 4px 0 0; }
.open-qs li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.open-qs li:last-child { border-bottom: 0; }
.open-qs li > div { min-width: 0; }
.open-qs li b { display: block; }
.open-qs li div span { display: block; font-size: 15px; line-height: 26px; color: var(--ink-soft); }
.open-qs .chip { flex: none; margin-top: 5px; }
.open-qs .go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.open-qs .go .cap { flex: 1 1 240px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* the report's three answers at a glance */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 12px 0 0; }
.facts .card { margin: 0; }
.facts dt { color: var(--mute); font-size: 14px; line-height: 24px; }
.facts dd { margin: 0; font-size: 24px; line-height: 32px; font-weight: 900; }
/* the change-of-name card */
.rename { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
.rename header h1 { font-size: 23px; line-height: 30px; }
.rename header p { margin: 4px 0 0; font-size: 15px; line-height: 26px; color: var(--mute); }
.rename label { margin: 0; }
.rename .lbl { font-size: 15px; line-height: 26px; font-weight: 700; margin: 0; }
.rename ul { margin: 4px 0 0; font-size: 15px; line-height: 26px; color: var(--ink-soft); }
.rename li { margin-bottom: 4px; }

/* prior marks */
.tally { color: var(--ink-soft); }
.logo-note { margin-top: 12px; } .logo-note p { margin: 8px 0 0; }
.hit { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.hit .nm { font-size: 18px; line-height: 30px; }
.hit .meta { grid-column: 1 / -1; margin: 0; color: var(--mute); font-size: 14px; line-height: 24px; }
.hit .why { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 26px; }
.scope { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 15px; line-height: 26px; }
.scope .k { color: var(--mute); font-size: 13px; line-height: 18px; font-weight: 700; margin-bottom: 4px; }
.scope .sc { margin-bottom: 8px; }
.scope .sc > b { margin-right: 8px; }
.scope p { margin: 4px 0 0; color: var(--ink-soft); }
.scope details { border: 0; padding: 0; margin-top: 4px; }
.scope summary { font-weight: 400; color: var(--ink-soft); }
.scope .other > summary { color: var(--mute); }
.chip { display: inline-block; border-radius: var(--radius-pill); padding: 2px 11px; font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; background: var(--risk-unknown-soft); color: var(--risk-unknown); }
.chip.high { background: var(--risk-high-soft); color: var(--risk-high); } .chip.medium { background: var(--risk-medium-soft); color: var(--risk-medium); } .chip.low { background: var(--risk-low-soft); color: var(--risk-low); }

/* result page: marks and classes on the left, fees and the pack on the right; one column when there is no room for both */
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 24px; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 320px; min-width: 0; scroll-margin-top: 16px; }
.col-main > .verdict { margin-top: 0; }

/* classes and fees */
.cls .no { display: block; color: var(--mute); font-weight: 900; font-size: 14px; line-height: 30px; }
.cls p { margin: 6px 0 0; }
.cls .items { color: var(--mute); font-size: 15px; line-height: 26px; margin: 6px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 26px; }
td, th { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 16px; }
tr.sum td { font-weight: 900; border-bottom: 0; }
th { color: var(--mute); font-weight: 400; width: 8.5em; padding-right: 14px; }
.fees th { color: inherit; width: auto; }
.api th { width: 6em; }
.api tr:last-child th, .api tr:last-child td { border-bottom: 0; }
.fees tr.sum th { font-weight: 900; border-bottom: 0; }
.fees + .cap { margin: 10px 0 0; }

/* unlock */
.price { font-size: 27px; line-height: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; font-weight: 400; color: var(--mute); }
.buy .price { margin: 8px 0; }
.buy ul { margin-bottom: 0; }
.buy .btn, .buy form, .buy .acts { margin-top: 12px; }
.buy ul { font-size: 15px; line-height: 26px; color: var(--ink-soft); }
.buy form { margin-top: 12px; }
.buy input[type=email] { margin-bottom: 10px; }

/* waiting */
.wait { text-align: center; padding: 56px 0 48px; }
.spin { width: 44px; height: 44px; margin: 0 auto 24px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* the pack: its contents on the left, the document on the right */
.pack-cols { display: flex; flex-wrap: wrap; gap: 0 48px; align-items: flex-start; }
.toc { flex: 1 1 200px; min-width: 0; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 8px; }
.toc a { display: block; padding: 9px 0; color: var(--ink-soft); text-decoration: none; font-size: 15px; line-height: 26px; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.pack-body { flex: 999 1 560px; min-width: 0; max-width: 800px; }
.pack-body h2 { scroll-margin-top: 16px; }
.fields { margin: 0 0 12px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; line-height: 26px; }
.fields > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.fields > div:last-child { border-bottom: 0; }
.fields dt { flex: 0 0 7em; color: var(--mute); }
.fields dd { flex: 1 1 240px; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.mark-desc { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.mark-desc figure { flex: 0 0 200px; margin: 0; }
.mark-desc figure img { display: block; width: 200px; height: 200px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.mark-desc figcaption { margin-top: 8px; }
.mark-desc > div { flex: 1 1 320px; min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { margin: 0; }
.ticks label { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; margin: 0; font-weight: 400; font-size: 17px; line-height: 30px; cursor: pointer; }
.ticks input { width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--ink); flex: none; }
.actions .btn.small { padding-top: 7px; padding-bottom: 7px; }

/* report and pack */
.kv { display: grid; grid-template-columns: 5.2em 1fr; gap: 6px 12px; font-size: 15px; line-height: 26px; margin: 10px 0 0; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; }
.pre { white-space: pre-wrap; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.code { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 12px; overflow-x: auto; font: 14px/24px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.copy { background: var(--sunken); border-radius: var(--radius-sm); padding: 12px 16px; }
.logo-prev { max-width: 220px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; margin-bottom: 10px; background: var(--card); }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 17px; height: 17px; border: 1.5px solid var(--ink); border-radius: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 16px; font-weight: 400; }
.radios label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
/* the 商標圖樣 field: a dashed box until a file is chosen, then the image with ways to swap or drop it */
.upload { margin-bottom: 16px; }
.upload > label { margin-bottom: 0; }
.upload [hidden] { display: none !important; }
.upload .zone { margin-top: 6px; background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.upload.bad .zone { border-color: var(--seal-strong); }
.upload.over .zone, .upload.over .done { border-style: solid; border-color: var(--ink); background: var(--sunken); }
.upload .done { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px; }
.upload .done img { display: block; width: 112px; height: 112px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.upload .info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 26px; }
.upload .info b { overflow-wrap: anywhere; }
.upload .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.upload .err { margin: 8px 0 0; }
.upload > .cap { margin: 8px 0 0; }
.upload .omit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; font-weight: 400; }
.upload input.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.btn.small { font-size: 15px; line-height: 26px; padding: 7px 20px; min-height: 44px; }

/* goods per class on the pack form: one tick takes a whole class out, and its names stay so it can come back */
.goods { margin-bottom: 16px; }
.goods-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; font-weight: 700; font-size: 15px; }
.goods .omit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.goods textarea { margin-top: 0; }
.goods:has(.omit input:checked) textarea { background: var(--sunken); color: var(--mute); text-decoration: line-through; border-color: var(--line); }
.goods:has(.omit input:checked) .goods-h > span { color: var(--mute); text-decoration: line-through; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; }
input[type=radio], input[type=checkbox] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 8px 0 24px; }
legend { font-weight: 700; font-size: 15px; padding: 0; }

@media print {
  body { background: #fff; font-size: 12pt; }
  .hdr .nav, .ftr, .actions, .noprint { display: none !important; }
  .card { border-color: #bbb; break-inside: avoid; }
  h2 { margin-top: 24px; }
}

/* goods names with their place in TIPO's picker */
.refs { list-style: none; margin: 8px 0 0; padding: 0 }
.refs li { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line) }
.refs li:first-child { border-top: 0 }
.refs .nm { font-weight: 600 }
.refs .path { color: var(--muted); font-size: .85rem }
.refs .off .nm { color: var(--muted); text-decoration: line-through }

/* 跟著做: one screen per step */
.steps { list-style: none; margin: 24px 0 0; padding: 0 }
.steps li { margin: 0 0 40px; padding-top: 24px; border-top: 1px solid var(--line) }
.steps h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 0 0 8px }
.steps h2 .no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem }
.steps img { display: block; width: 100%; height: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px }
.steps pre.copy { margin: 0; white-space: pre-wrap }

.fields .fnote { flex: 0 0 100%; margin: 0 0 0 calc(7em + 16px); line-height: 1.6 }
@media (max-width: 560px) { .fields .fnote { margin-left: 0 } }

/* 跟著做: tap a screen to see it full size */
.steps .zoom, .walk-demo .zoom { position: relative; display: block; cursor: zoom-in }
.steps .zoom-hint, .walk-demo .zoom-hint { position: absolute; right: 10px; top: 22px; background: rgba(20,20,30,.78); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 999px }
.zoomer { position: fixed; inset: 0; z-index: 1000; background: rgba(12,12,18,.94); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y }
.zoomer img { display: block; width: 1280px; max-width: none; height: auto; margin: 0 auto; user-select: none; -webkit-user-select: none }
.zoomer button { position: fixed; top: 12px; right: 12px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #14141e; font-size: 24px; line-height: 1; cursor: pointer }

.steps .asset { display: flex; align-items: center; gap: 16px; margin: 12px 0 }
.steps .asset img { width: 88px; height: 88px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: contain }
.steps .asset .cap { margin: 6px 0 0 }

/* 有簡報？從 PDF 帶入 */
.deck { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px }
.deck input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none }
.deck [hidden] { display: none !important }
.deck-note { margin: 8px 0 0 }
.linkish { background: none; border: 0; padding: 0 0 0 6px; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer }

/* 首頁: what 跟著做 looks like */
.walk-demo { align-items: center; margin-top: 40px }
.walk-demo h2 { margin-top: 0 }
.walk-demo figure { margin: 0; padding: 10px }
.walk-demo img { display: block; width: 100%; height: auto; border-radius: 8px }
.walk-demo figcaption { margin: 8px 4px 2px }
/* alternate sides: the walkthrough screenshot on the left, so it doesn't repeat the text-left layout of the next section;
   on phones the columns stack in reading order (text, then picture) */
.walk-demo { gap: 32px 56px }
@media (min-width: 820px) { .walk-demo > figure { order: -1 } }

/* 有簡報？從 PDF 帶入: a quiet text link under the box, not a second big button */
.deck { margin-top: 8px }
.deck-pick { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.deck-pick:disabled { opacity: .5; cursor: progress }
.deck-pick svg { flex: none }

/* 類似組群 line on each prior mark: does it meet your goods */
.hit .grp { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 26px; color: var(--ink-soft); }
.hit .grp.on { color: var(--risk-high); font-weight: 700; }
.tally .reach { display: block; margin-top: 4px; color: var(--mute); font-size: 14px; }
/* a button that cannot be pressed yet */
.btn.soon, .btn.soon:hover { background: var(--sunken); color: var(--mute); border: 1.5px solid var(--line); cursor: default; }
