/* A cyanotype sheet on cold cotton paper (light) or on the darkroom table (dark). One accent: red pencil. */
@font-face { font-family: "Routed Gothic"; src: url(routed-gothic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Print Head"; src: url(fonts/head-latin.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Print Head ZH"; src: url(fonts/head-zh.woff2) format("woff2"); font-weight: 300; font-display: swap; }
:root { --paper: #f3f5f3; --ink: #061a38; --ink2: #4a5f7c; --hair: rgba(6,26,56,.2); --hair2: rgba(6,26,56,.09); --red: #c9281e; --blue: #2c78b8; --sheet: #fbfcfb; --f: "Routed Gothic", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; --b: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; --h: "Print Head", "Print Head ZH", "Songti SC", "Noto Serif SC", "Source Serif 4", Georgia, serif; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0a0e14; --ink: #e8edee; --ink2: #93a4b5; --hair: rgba(232,237,238,.24); --hair2: rgba(232,237,238,.1); --red: #ff6a5c; --blue: #6fb6e6; --sheet: #10161e; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #0a0e14; --ink: #e8edee; --ink2: #93a4b5; --hair: rgba(232,237,238,.24); --hair2: rgba(232,237,238,.1); --red: #ff6a5c; --blue: #6fb6e6; --sheet: #10161e; color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--b); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; padding: 0 28px 4px; flex: none; font-size: 14px; }
.top a { color: var(--ink2); text-decoration: none; white-space: nowrap; padding: 10px 0; min-height: 40px; display: inline-flex; align-items: center; } .top a:hover { color: var(--ink); }
.top .right { display: flex; gap: 20px; } .top .right button { color: var(--ink2); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; } .top .right button:hover { color: var(--ink); }
#index { display: flex; align-items: center; gap: 14px; font-size: 14px; } .dots { display: flex; } .dots button { width: 30px; min-height: 44px; display: grid; place-items: center; } .dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px var(--ink2); } .dots .done i { background: var(--ink2); } .dots [aria-current] i { background: var(--red); box-shadow: none; width: 11px; height: 11px; } .dots button:hover i { box-shadow: inset 0 0 0 1.4px var(--ink); } .dots .sub { width: 20px; } .dots .sub i { width: 6px; height: 6px; } .dots .sub[aria-current] i { width: 9px; height: 9px; } .dots .open i { background: var(--red); box-shadow: none; } .where { color: var(--ink2); font-family: var(--f); white-space: nowrap; } .where em { font-style: normal; font-family: var(--b); color: var(--ink); margin-left: 10px; }

.sheet { flex: none; display: grid; width: 100%; max-width: 1840px; margin: 0 auto; padding: 8px 32px 18px; grid-template: "head print" auto "body print" 1fr "strip2 strip" auto / minmax(250px, 296px) minmax(0, 1fr); column-gap: 36px; align-content: center; --ph: calc(100dvh - 60px - 8px - 18px - 56px - 40px); }
.head { grid-area: head; padding-top: 14px; }
h1 { font: 300 46px/1.12 var(--h); letter-spacing: -.012em; text-wrap: balance; }
html[lang^="zh"] h1 { font-size: 40px; line-height: 1.25; letter-spacing: 0; }
#say { margin-top: 18px; color: var(--ink2); font-size: 16.5px; line-height: 1.55; text-wrap: pretty; max-width: 34em; } #say.after { color: var(--ink); }
.print { grid-area: print; position: relative; align-self: start; margin-top: 40px; justify-self: end; width: min(100%, calc(var(--ph) * 1.45833)); aspect-ratio: 11.2 / 7.68; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.print.grabbing { cursor: grabbing; } .print.tap { cursor: pointer; } .print.drawing { cursor: crosshair; touch-action: none; }
.print canvas, #pencil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#photo { position: absolute; left: 0; top: 0; pointer-events: none; max-width: none; transform-origin: 0 0; opacity: .82; }
.tracing { overflow: hidden; } .tracing .tag { color: #061a38; text-shadow: 0 0 4px #fff, 0 0 8px #fff; } .tracing #gl { opacity: .12; }
#pencil { overflow: visible; } #pencil path { fill: none; stroke: #f0483c; stroke-linecap: round; stroke-linejoin: round; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; color: #fff; font: 15px/1.2 var(--f); white-space: nowrap; text-align: center; will-change: transform; transition: opacity .2s; display: grid; justify-items: center; gap: 2px; }
.tag b em { font-style: normal; display: flex; gap: 6px; align-items: baseline; } .tag b em i { font-style: normal; min-width: 20px; text-align: right; opacity: .85; } .tag b { font-weight: 400; display: grid; justify-items: start; gap: 1px; align-items: baseline; font-size: 13px; font-variant-numeric: tabular-nums; color: #dfeaf2; } .tag.weak > span { box-shadow: 0 2px 0 -0.2px #ff5f52; } .tag.dim b { display: none; } .tag.hush { opacity: .16; } .tag.call > span { box-shadow: 0 2px 0 #ff5f52; }
.tag.small { font-size: 11px; }
svg.b { height: .82em; width: auto; display: inline-block; overflow: visible; } svg.b rect { fill: currentColor; opacity: .26; } svg.b rect.on { opacity: 1; }
.mark { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; } .mark svg { display: block; }
#router2, #router2 svg { width: 46px; height: 46px; } #router { width: 46px; height: 46px; } #router svg { width: 46px; height: 46px; position: relative; transition: transform .18s; } .grabbing.r #router svg { transform: scale(1.12); }
#phone { width: 28px; height: 44px; } #phone svg { width: 28px; height: 44px; filter: drop-shadow(0 1px 3px rgba(4,18,44,.6)); } #phone span { position: absolute; left: 36px; top: 13px; color: #fff; font: 14px/1.2 var(--f); white-space: nowrap; font-variant-numeric: tabular-nums; background: rgba(4,18,44,.78); padding: 1px 6px 2px; margin-top: -2px; } #phone span:empty { display: none; } #phone.flip span { left: auto; right: 36px; }
#bars rect { opacity: .2; } .s1 rect:nth-child(-n+1), .s2 rect:nth-child(-n+2), .s3 rect:nth-child(-n+3), .s4 rect:nth-child(-n+4) { opacity: 1 !important; }
#cue { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
#hint { position: absolute; left: 34px; top: -10px; font: 17px/1.2 var(--f); font-weight: 400; color: #fff; white-space: nowrap; text-shadow: 0 0 3px #04122c, 0 0 6px #04122c, 0 0 10px #04122c; transition: opacity .3s; } .flip #hint { left: auto; right: 34px; }
#pulse { position: absolute; left: 0; top: 0; width: 0; height: 0; } #pulse::before, #pulse::after { content: ""; position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border: 2px solid #ff5f52; border-radius: 50%; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { #pulse::before { animation: ring 2.4s ease-out infinite; } #pulse::after { animation: ring 2.4s 1.2s ease-out infinite; } } @media (prefers-reduced-motion: reduce) { #pulse::before { opacity: .9; transform: scale(.8); } }
@keyframes ring { from { transform: scale(.3); opacity: .95; } to { transform: scale(1.05); opacity: 0; } }
.quiet #hint, .quiet #pulse { opacity: 0; display: none; }
.thing { position: absolute; left: 0; top: 0; pointer-events: none; width: 2px; height: 2px; } .thing:focus-visible { outline: none; } .thing:focus-visible::after { content: ""; position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; outline: 2px solid #ff5f52; }
#tick { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; } #tick path { fill: none; stroke: #f0483c; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; } #tick.go { animation: tk 2.1s ease-out forwards; } #tick.go path { animation: tp .55s ease-in-out both; } @keyframes tk { 0%, 72% { opacity: .96; } 100% { opacity: 0; } } @keyframes tp { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } } @media (prefers-reduced-motion: reduce) { #tick.go path { animation: none; } }
#note { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); background: rgba(4,18,44,.9); color: #f3f5f3; font-size: 14.5px; padding: 6px 14px; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; max-width: 94%; } #note.on { opacity: 1; }
.goal { font-size: 16px; line-height: 1.45; color: var(--ink); border-left: 2px solid var(--red); padding-left: 12px; margin: 0 0 16px !important; }
.bar { height: 5px; background: var(--hair2); } .bar i { display: block; height: 100%; width: 2%; background: var(--ink); transition: width .25s; }
.three { border-left: 2px solid var(--red); padding-left: 14px; margin-bottom: 18px; } .three b { font-weight: 500; font-size: 15px; color: var(--ink2); } .three ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 17.5px; line-height: 1.45; }
.seg.wide small { display: block; font: 13px var(--b); opacity: .75; }
#unzoom { position: absolute; right: 22px; top: 18px; color: #fff; font: 14px var(--f); min-height: 44px; padding: 0 8px; text-shadow: 0 0 4px #04122c, 0 0 8px #04122c; }

.body { grid-area: body; padding-top: 26px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
#picker { grid-area: print; justify-self: end; align-self: start; width: min(100%, calc(var(--ph) * 1.45833)); height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink2); z-index: 1; } #picker .row { gap: 4px 18px; flex-wrap: nowrap; min-width: 0; } #picker button { min-height: 40px; white-space: nowrap; } #picker button:hover { color: var(--ink); } #picker #surprise svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: -3px; margin-right: 6px; } #picker button:disabled { opacity: .4; } #picker .arrow { font-size: 24px; line-height: 1; padding: 0 8px 4px; } #picker .name { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; } #picker .name span { overflow: hidden; text-overflow: ellipsis; } #picker .name canvas { width: 40px; height: 27px; } #picker .name i { font-style: normal; font-family: var(--f); color: var(--ink2); font-size: 14px; }
.ask5 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; color: var(--ink); }
.steps { display: flex; align-items: center; gap: 2px; margin-bottom: 18px; } .steps button { min-width: 34px; min-height: 40px; font-family: var(--f); font-size: 17px; color: var(--ink2); position: relative; } .steps [aria-current] { color: var(--ink); } .steps [aria-current]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 2px; background: var(--red); } .steps .done::before { content: ""; position: absolute; left: 50%; margin-left: -2px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); } .steps span { margin-left: 10px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.mat.two5 { gap: 9px; } .mat.two5 > div { display: block; cursor: default; } .mat.two5 > div[role] { cursor: pointer; } .mat.two5 .pair { display: block; } .mat.two5 .solo { display: block !important; } .mat.two5 .pair > div { display: grid; grid-template-columns: 58px 1fr 62px; align-items: center; gap: 8px; line-height: 1.35; } .mat.two5 i { font: 13px var(--f); color: var(--ink2); } .mat.two5 u { grid-column: auto; } .mat.two5 b { text-align: right; } .mat.two5 .f24 u { background-image: linear-gradient(var(--blue), var(--blue)); }
#walk { display: block; width: 100%; height: 138px; } .k5, .k24 { display: inline-flex; gap: 8px; align-items: center; } .k5::before, .k24::before { content: ""; width: 14px; height: 2.5px; background: var(--ink); } .k24::before { background: var(--blue); }
.seg.four { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; } .seg.four button { padding: 0 4px; font-size: 14px; min-height: 46px; box-shadow: inset 0 0 0 .5px var(--hair); white-space: nowrap; } .seg.four [aria-pressed="true"] { background: var(--ink); color: var(--paper); } .seg.four [aria-pressed="true"]::after { display: none; }
.situ { font-size: 17px; line-height: 1.45; margin: 0 0 14px !important; } .verdict { font-size: 15.5px; line-height: 1.5; margin: 14px 0 !important; color: var(--ink2); } .verdict b { font-weight: 500; color: var(--red); } .verdict.ok b { color: var(--ink); } #nextq { width: 100%; margin-top: 16px; } .take { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; } .take li { font-size: 15.5px; line-height: 1.5; padding-left: 16px; position: relative; } .take li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1.5px; background: var(--red); }
#extra .chips { margin-top: 12px; } .bv { display: block; font-style: normal; font-family: var(--f); color: var(--ink); font-size: 12.5px; margin-top: 3px; } .seg.wide button:disabled { cursor: default; } .fine:empty { display: none; }
.cat { width: min(1180px, 95vw); max-height: 94dvh; overflow-y: auto; padding: 30px min(40px, 5vw) 40px; } .cat h2 { font: 300 34px/1.2 var(--h); } .cat #hdClose { align-self: flex-end; margin: -10px 0 -30px; } #homesG { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 20px; margin-top: 8px; } #homesG button { text-align: left; display: flex; flex-direction: column; gap: 3px; } #homesG canvas { width: 100%; aspect-ratio: 11.2/7.68; margin-bottom: 6px; } #homesG .nm { font-size: 15px; color: var(--ink); } #homesG small { font-size: 12.5px; line-height: 1.35; color: var(--ink2); } #homesG .rec { font-family: var(--f); } #homesG [aria-pressed="true"] canvas { outline: 2px solid var(--red); outline-offset: 3px; } #homesG button:hover canvas { outline: 1px solid var(--ink2); outline-offset: 3px; } .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 7px; vertical-align: middle; }
#read { border-top: 1px solid var(--hair); padding-top: 14px; } #bandrow:empty, #read:empty, #extra:empty, #more:empty, .acts:empty { display: none; }
#read small { display: block; font-size: 13.5px; color: var(--ink2); line-height: 1.4; } .pips { display: flex; gap: 5px; margin-bottom: 8px; } .pips i { width: 26px; height: 9px; box-shadow: inset 0 0 0 1.3px var(--ink2); transition: background .3s; } .pips i.on { background: var(--ink); box-shadow: none; } #read .big small { display: inline; margin-left: 10px; font-family: var(--b); } #read .big { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 24px/1.35 var(--f); } #read .big svg.b { height: .86em; margin-right: 9px; } #read .big em { font-style: normal; white-space: nowrap; } #read .sub { display: flex; justify-content: space-between; gap: 12px; color: var(--ink2); font-size: 14px; } #read .sub b { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; } #read .low { color: var(--red); } #read .prog { margin-top: 4px; }
.acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.solid { background: var(--ink); color: var(--paper); padding: 0 20px; font-size: 16px; min-height: 50px; text-align: center; } .solid:hover { background: var(--red); color: #fff; } :root[data-theme="dark"] .solid:hover { color: #0a0e14; }
.line { box-shadow: inset 0 0 0 1px var(--hair); padding: 0 18px; min-height: 46px; font-size: 15px; } .line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.text { color: var(--ink2); min-height: 44px; font-size: 15px; text-align: left; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 5px; } .text:hover { color: var(--ink); text-decoration-color: currentColor; }
.row { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .two figure { margin: 0; } .two canvas { display: block; width: 100%; } .two figcaption { font-size: 13px; line-height: 1.35; color: var(--ink2); margin-top: 7px; } .two figcaption b { display: block; font-weight: 400; color: var(--ink); }
.mat { display: grid; gap: 10px; } .mat div { display: grid; grid-template-columns: 1fr auto; font-size: 14.5px; gap: 3px 10px; color: var(--ink2); } .mat div.on { color: var(--ink); } .mat u { grid-column: 1 / -1; height: 7px; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 100%, var(--hair2); transition: background-size .6s; text-decoration: none; } .mat b { font-weight: 400; font-family: var(--f); } .mat small { font-size: 13px; color: var(--ink2); }
#trace { display: block; width: 100%; height: 86px; } .tl { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink2); gap: 10px; } .tl b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; } .seg button { min-height: 44px; padding: 0 14px; font-family: var(--f); font-size: 16px; color: var(--ink2); position: relative; } .seg [aria-pressed="true"] { color: var(--ink); } .seg [aria-pressed="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--red); }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; } .seg.wide button { min-height: 56px; font-size: 20px; box-shadow: inset 0 0 0 1px var(--hair); } .seg.wide [aria-pressed="true"] { background: var(--ink); color: var(--paper); } .seg.wide [aria-pressed="true"]::after { display: none; }
.homes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; border-top: 1px solid var(--hair); padding-top: 18px; } .homes button { text-align: left; font-size: 13px; color: var(--ink2); line-height: 1.4; } .homes canvas { display: block; width: 100%; aspect-ratio: 11.2/7.68; margin-bottom: 6px; } .homes button:hover { color: var(--ink); } .homes [aria-pressed="true"] { color: var(--ink); } .homes [aria-pressed="true"] canvas { outline: 2px solid var(--red); outline-offset: 2px; } .homes i { font-style: normal; color: var(--red); float: right; font-family: var(--f); }
.strip { grid-area: strip; justify-self: end; width: min(100%, calc(var(--ph) * 1.45833)); display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 52px; font-size: 14px; color: var(--ink2); padding: 0 12px; flex-wrap: wrap; } .strip .row { gap: 4px 20px; } .strip button:not([aria-pressed]) { min-height: 44px; } .strip button:hover { color: var(--ink); } .strip .cap { font-size: 14px; margin-right: 2px; }

#tools { display: flex; flex-direction: column; gap: 16px; } .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); } .tabs button { background: var(--paper); min-height: 62px; font-size: 13px; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--ink2); } .tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; } .tabs [aria-pressed="true"] { background: var(--ink); color: var(--paper); } .tabs button:hover:not([aria-pressed="true"]) { color: var(--ink); } .tabs .void { background: var(--paper); }
#tools .hint { color: var(--ink2); font-size: 14.5px; line-height: 1.45; min-height: 2.9em; } .chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips button { min-height: 44px; padding: 0 13px; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink2); } .chips [aria-pressed="true"] { background: var(--ink); color: var(--paper); } .chips .del { color: var(--red); } #tools label { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink2); } input[type=range] { flex: 1; accent-color: var(--red); min-height: 44px; }
.editing #router, .editing #phone { opacity: 0; } .editing .tag b { display: none; } .editing #labels { opacity: .95; }

dialog { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 94dvh; color: var(--ink); } dialog::backdrop { background: rgba(4,12,28,.72); } dialog[open] { animation: up .3s ease-out; } @keyframes up { from { opacity: 0; translate: 0 10px; } }
.sheetbox { background: var(--sheet); padding: 24px; display: flex; flex-direction: column; gap: 16px; width: min(900px, 94vw); } .sheetbox img { display: block; max-width: 100%; max-height: 66dvh; margin: 0 auto; object-fit: contain; } .sheetbox p { color: var(--ink2); font-size: 15px; } .sheetbox .row { justify-content: flex-start; }
.sheetbox.read { width: min(660px, 94vw); padding: 34px min(44px, 6vw) 44px; overflow-y: auto; max-height: 94dvh; } .read h2 { font: 300 34px/1.2 var(--h); } .read h3 { font-size: 16px; margin: 24px 0 6px; font-weight: 500; } .read p { font-size: 16px; line-height: 1.65; color: var(--ink2); } .read #abClose { align-self: flex-end; margin: -12px 0 -24px; } .read a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--hair); }
.nogl > * { display: none; } .nogl { background: url(cover.jpg) center / cover; } .noglb .body, .noglb #index { display: none; } .noglb .strip button:not(#how) { display: none; }
.fine { font-size: 14.5px; color: var(--ink2); margin-top: 12px !important; } .tracebox { position: relative; } .tracebox small { position: absolute; right: 0; font-size: 12px; color: var(--ink2); background: var(--paper); padding: 0 3px; } .tracebox .hi { top: -4px; } .tracebox .lo { bottom: -2px; } #read .wait { color: var(--ink2); font-family: var(--b); font-size: 17px; }
.editing #gl { filter: brightness(.62); }

@media (max-width: 1320px) { .sheet { grid-template-columns: minmax(230px, 262px) minmax(0, 1fr); column-gap: 30px; } }
@media (min-width: 1700px) { .sheet { grid-template-columns: minmax(250px, 372px) minmax(0, 1fr); column-gap: 56px; } h1 { font-size: 56px; } html[lang^="zh"] h1 { font-size: 50px; } #say { font-size: 18px; } .tag { font-size: 17px; } .tag b { font-size: 15px; } }
@media (max-width: 1180px) { .sheet { padding: 4px 24px 12px; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); column-gap: 24px; } h1, html[lang^="zh"] h1 { font-size: 34px; } }
@media (max-height: 560px) { .top { height: 44px; } .sheet { --ph: calc(100dvh - 44px - 60px - 40px); padding-top: 0; } h1, html[lang^="zh"] h1 { font-size: 26px; } #say { margin-top: 8px; font-size: 14px; } .body { padding-top: 10px; gap: 12px; } .tag { font-size: 11px; } .tag b { font-size: 10px; } #router, #router svg, #router2, #router2 svg { width: 32px; height: 32px; } #phone, #phone svg { width: 20px; height: 32px; } #phone span { left: 26px; top: 9px; font-size: 12px; } #phone.flip span { right: 26px; } #hint { font-size: 14px; } }
@media (orientation: portrait) and (max-width: 900px) {
  .top { height: 46px; padding: 0 max(16px, env(safe-area-inset-left)); gap: 10px; } .top .right { gap: 14px; }
  #index { gap: 6px; } .dots button { width: 15px; } .dots .sub { width: 12px; } .where em { display: none; }
  #home span { display: none; }
  .sheet { display: flex; flex-direction: column; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); flex: none; }
  .head { padding: 4px 0 10px; min-height: 116px; display: flex; flex-direction: column; justify-content: flex-end; } h1, html[lang^="zh"] h1 { font-size: 27px; line-height: 1.18; } #say { margin-top: 5px; font-size: 14.5px; line-height: 1.42; }
  .print { align-self: center; aspect-ratio: 7.68 / 11.2; width: clamp(min(100%, 300px), calc((100svh - 358px) / 1.4583), 100%); }
  .body { padding-top: 4px; gap: 9px; } #picker { grid-area: print; justify-self: end; align-self: start; width: min(100%, calc(var(--ph) * 1.45833)); height: 40px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink2); z-index: 1; } #picker .row { gap: 4px 18px; flex-wrap: nowrap; min-width: 0; } #picker button { min-height: 40px; white-space: nowrap; } #picker button:hover { color: var(--ink); } #picker #surprise svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: -3px; margin-right: 6px; } #picker button:disabled { opacity: .4; } #picker .arrow { font-size: 24px; line-height: 1; padding: 0 8px 4px; } #picker .name { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; } #picker .name span { overflow: hidden; text-overflow: ellipsis; } #picker .name canvas { width: 40px; height: 27px; } #picker .name i { font-style: normal; font-family: var(--f); color: var(--ink2); font-size: 14px; }
.ask5 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; color: var(--ink); }
.steps { display: flex; align-items: center; gap: 2px; margin-bottom: 18px; } .steps button { min-width: 34px; min-height: 40px; font-family: var(--f); font-size: 17px; color: var(--ink2); position: relative; } .steps [aria-current] { color: var(--ink); } .steps [aria-current]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 2px; background: var(--red); } .steps .done::before { content: ""; position: absolute; left: 50%; margin-left: -2px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); } .steps span { margin-left: 10px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.mat.two5 { gap: 9px; } .mat.two5 > div { display: block; cursor: default; } .mat.two5 > div[role] { cursor: pointer; } .mat.two5 .pair { display: block; } .mat.two5 .solo { display: block !important; } .mat.two5 .pair > div { display: grid; grid-template-columns: 58px 1fr 62px; align-items: center; gap: 8px; line-height: 1.35; } .mat.two5 i { font: 13px var(--f); color: var(--ink2); } .mat.two5 u { grid-column: auto; } .mat.two5 b { text-align: right; } .mat.two5 .f24 u { background-image: linear-gradient(var(--blue), var(--blue)); }
#walk { display: block; width: 100%; height: 138px; } .k5, .k24 { display: inline-flex; gap: 8px; align-items: center; } .k5::before, .k24::before { content: ""; width: 14px; height: 2.5px; background: var(--ink); } .k24::before { background: var(--blue); }
.seg.four { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; } .seg.four button { padding: 0 4px; font-size: 14px; min-height: 46px; box-shadow: inset 0 0 0 .5px var(--hair); white-space: nowrap; } .seg.four [aria-pressed="true"] { background: var(--ink); color: var(--paper); } .seg.four [aria-pressed="true"]::after { display: none; }
.situ { font-size: 17px; line-height: 1.45; margin: 0 0 14px !important; } .verdict { font-size: 15.5px; line-height: 1.5; margin: 14px 0 !important; color: var(--ink2); } .verdict b { font-weight: 500; color: var(--red); } .verdict.ok b { color: var(--ink); } #nextq { width: 100%; margin-top: 16px; } .take { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; } .take li { font-size: 15.5px; line-height: 1.5; padding-left: 16px; position: relative; } .take li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1.5px; background: var(--red); }
#extra .chips { margin-top: 12px; } .bv { display: block; font-style: normal; font-family: var(--f); color: var(--ink); font-size: 12.5px; margin-top: 3px; } .seg.wide button:disabled { cursor: default; } .fine:empty { display: none; }
.cat { width: min(1180px, 95vw); max-height: 94dvh; overflow-y: auto; padding: 30px min(40px, 5vw) 40px; } .cat h2 { font: 300 34px/1.2 var(--h); } .cat #hdClose { align-self: flex-end; margin: -10px 0 -30px; } #homesG { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 20px; margin-top: 8px; } #homesG button { text-align: left; display: flex; flex-direction: column; gap: 3px; } #homesG canvas { width: 100%; aspect-ratio: 11.2/7.68; margin-bottom: 6px; } #homesG .nm { font-size: 15px; color: var(--ink); } #homesG small { font-size: 12.5px; line-height: 1.35; color: var(--ink2); } #homesG .rec { font-family: var(--f); } #homesG [aria-pressed="true"] canvas { outline: 2px solid var(--red); outline-offset: 3px; } #homesG button:hover canvas { outline: 1px solid var(--ink2); outline-offset: 3px; } .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 7px; vertical-align: middle; }
#read { border-top: 0; padding-top: 0; } #read .big { font-size: 21px; }
  #picker { width: 100%; padding: 0; height: 38px; margin-bottom: 2px; font-size: 13.5px; flex: none; } .flat .print { aspect-ratio: 11.2 / 7.68; width: 100%; } #bandrow .row { gap: 0 6px; flex-wrap: nowrap; justify-content: space-between; } #bandrow .seg button { padding: 0 11px; } #bandrow .seg button:first-child { padding-left: 0; } #bandrow .seg [aria-pressed="true"]::after { left: 11px; right: 11px; } #bandrow .seg button:first-child::after { left: 0 !important; } #bandrow .ask5 { min-height: 44px; font-size: 14.5px; white-space: nowrap; } #read { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; } #read .big, #read .sub { grid-column: 1 / -1; } #read .pips { margin: 0; align-self: center; } .pips i { width: 20px; } #read .sub.prog { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; } #picker { gap: 2px; } #picker .row { gap: 0; } #picker .row:first-child { flex: 1 1 0; min-width: 0; } #picker .row:last-child { flex: none; } #picker .name { flex: 0 1 auto; gap: 8px; } #picker .arrow { flex: none; } #picker .row:first-child .arrow:first-child { text-align: left; min-width: 30px; } #picker .arrow { min-width: 40px; padding: 0 0 4px; } #picker #surprise { min-width: 40px; font-size: 0; } #picker #surprise svg { width: 20px; height: 20px; } #picker .row { gap: 2px 8px; } #picker .name canvas { width: 34px; height: 23px; }  #picker .name i { display: none; } #picker:empty { display: none; } .print { margin-top: 0; } .steps { margin-bottom: 8px; } .mat.two5 { grid-template-columns: 1fr; gap: 6px; } .mat.two5 small { grid-column: auto; } .mat.two5 > div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: center; } .mat.two5 .pair { display: block; } .mat.two5 .solo { display: block !important; } .mat.two5 .pair > div { grid-template-columns: 52px 1fr 54px; } .mat.two5 .solo { grid-template-columns: 1fr !important; } #walk { height: 118px; } #homesG { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .strip { width: 100%; padding: 10px 0 0; margin-top: 14px; border-top: 1px solid var(--hair); justify-content: flex-start; } .strip .row { gap: 0 18px; }
  .tag { font-size: 12.5px; gap: 1px; } .tag b { font-size: 11px; gap: 4px; } .tag.small { font-size: 9.5px; }
  #router, #router svg, #router2, #router2 svg { width: 42px; height: 42px; } #phone, #phone svg { width: 25px; height: 40px; } #phone span { left: 31px; font-size: 13px; top: 12px; } #phone.flip span { right: 31px; } #hint { font-size: 16px; }
  .two { gap: 12px; } .two figure { display: grid; grid-template-columns: 84px 1fr; gap: 10px; } .two canvas { width: 84px; } .two figcaption { margin: 0; } #cue.low #hint { left: 0; top: 18px; transform: translateX(-50%); } .tabs { grid-template-columns: repeat(7, 1fr); } .tabs button { min-height: 56px; font-size: 11.5px; } .tabs .void { display: none; }
  .editing .head { min-height: 0; } .editing #say { display: none; } .editing .print { width: clamp(min(100%, 280px), calc((100svh - 372px) / 1.4583), 100%); } #tools { gap: 11px; } #tools .hint { min-height: 0; }
  .mat { grid-template-columns: repeat(3, 1fr); gap: 4px 14px; } .mat small { grid-column: 1 / -1; } .mat div { grid-template-columns: 1fr; gap: 1px; } #cmp { grid-template-columns: 1fr 1fr; margin-top: 12px !important; } #trace { height: 56px; } #extra .tl { margin-top: -2px; }
  .sheetbox { padding: 16px; } .sheetbox img { max-height: 58dvh; }
}
