:root {
  --canvas:#fff; --surface:#f5f5f7; --ink:#1d1d1f; --muted:#65656b;
  --subtle:#606068; --accent:#0066cc; --wash:#e8f2ff; --line:#e8e8ed; --paper:#f5f5f7;
  --material:rgba(255,255,255,.88); --ease:cubic-bezier(.23,1,.32,1);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,'PingFang TC','Microsoft JhengHei',sans-serif;
  color:var(--ink); background:var(--canvas); font-size:17px; line-height:1.5;
  font-optical-sizing:auto; -webkit-font-smoothing:antialiased; color-scheme:light;
}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,a{color:var(--ink)}button{cursor:pointer;border:0}button,select,.btn{min-height:44px;border-radius:12px;padding:10px 16px;font-size:15px;font-weight:500;background:var(--surface)}button:active,.btn:active{background:var(--wash)}button:disabled{opacity:.5;cursor:default}a{text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2{font-weight:650;line-height:1.15;letter-spacing:-.025em}h2{font-size:26px}h3{font-size:17px;font-weight:600}.visually-hidden,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;z-index:50;background:white;padding:16px}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:white;gap:8px;border-radius:999px}.btn:active{background:#0054a8}.btn.ghost{background:var(--surface);color:var(--accent)}.text-button{background:none;padding:4px 8px;font-size:15px;color:var(--accent)}
/* Identity stays quiet; the library is the destination. */
.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:calc(12px + env(safe-area-inset-top)) max(40px,calc((100vw - 1120px)/2),env(safe-area-inset-right)) 12px max(40px,calc((100vw - 1120px)/2),env(safe-area-inset-left));background:var(--material);backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%)}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:17px;font-weight:600;letter-spacing:-.025em}.mark{width:40px;height:40px;border-radius:9px}.status{font-size:13px;line-height:1.45;max-width:300px;font-variant-numeric:tabular-nums;color:var(--subtle)}
.catalog{max-width:1200px;margin:auto;padding:46px 40px calc(80px + env(safe-area-inset-bottom))}.catalog-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:36px}.catalog-heading h1{font-size:56px;line-height:1.15;white-space:nowrap}.catalog-heading h1 span{display:inline-block;margin-left:20px;font-size:32px;color:var(--muted);font-weight:400;letter-spacing:-.035em}.results-line{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px;color:var(--muted);flex-wrap:wrap}.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:36px}.search{flex:1;min-width:0;max-width:480px}.search input{width:100%;min-height:48px;border:0;border-radius:12px;background:var(--surface);padding:12px 16px;font-size:17px}.search input::placeholder{color:var(--subtle)}.catalog-controls{display:flex;gap:12px;align-items:center}.sort-control{display:flex;align-items:center;gap:2px;font-size:15px;white-space:nowrap}.sort-control>span{color:var(--muted)}.sort-control select{border:0;padding-right:4px;background:transparent;max-width:145px}.view-switch{display:flex;background:#efeff2;border-radius:12px;padding:3px}.view-switch button{min-height:44px;padding:8px 16px;background:transparent;border-radius:9px;color:var(--muted)}.view-switch [aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 1px 4px #00000014}
/* Covers live on the page, without a second card around the content. */
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 32px;align-items:start}.card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;background:transparent;border-radius:16px;padding:0;text-align:left;width:100%;height:100%;font-weight:400}.cover{flex-shrink:0;width:100%;aspect-ratio:4/3;border-radius:16px;background:var(--paper);display:flex;align-items:center;justify-content:center;overflow:hidden;transition:box-shadow 180ms var(--ease),transform 180ms var(--ease)}.cover img{width:100%;height:100%;object-fit:contain}.cover.missing{color:var(--subtle);font-size:15px}.cap{padding:20px 2px 0;overflow-wrap:anywhere}.card-district{font-size:13px;color:var(--subtle);display:block;margin-bottom:6px}.cap h2{font:600 21px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,'PingFang TC','Microsoft JhengHei',sans-serif;letter-spacing:-.02em}.sub{font-size:14px;color:var(--muted);margin-top:5px;line-height:1.4}.developer{font-size:15px;color:var(--muted);margin-top:14px}.card-date{font-size:13px;color:var(--subtle);margin-top:3px;font-variant-numeric:tabular-nums}.badge{display:inline-block;margin-top:8px;font-size:13px;color:#805520}.row-open{display:none}.grid.list{grid-template-columns:1fr;gap:0}.list .card{display:grid;grid-template-columns:144px 1fr auto;gap:28px;align-items:center;padding:24px 0;border-radius:0;border-bottom:1px solid var(--line)}.list .card:first-child{padding-top:0}.list .cover{border-radius:10px}.list .cap{padding:0}.list .developer{margin-top:8px}.list .row-open{display:block;font-size:15px;color:var(--accent)}.empty{grid-column:1/-1;padding:64px 20px;text-align:center}.empty p{color:var(--muted);margin:16px 0}.empty button{background:var(--accent);color:white}
/* Modal sheets share the native segmented controls and accent. */
dialog{border:0;color:var(--ink);background:var(--canvas);padding:0;max-height:100dvh}dialog::backdrop{background:rgba(20,24,32,.28)}.sheet-open{overflow:hidden}.filter-sheet{width:min(680px,calc(100% - 48px));max-height:85dvh;border-radius:28px;overflow:hidden;background:rgba(255,255,255,.96);box-shadow:0 24px 100px #11182730;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}.filter-sheet[open]{display:flex;flex-direction:column}.dialog-bar{display:flex;justify-content:space-between;align-items:center;padding:28px 28px 20px;flex-shrink:0}.dialog-bar button{color:var(--accent);background:transparent}.filter-content{overflow:auto;padding:8px 28px 32px;overscroll-behavior:contain}.filter-content section+section{margin-top:32px}.filter-content h3{margin-bottom:16px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{background:var(--surface);font-weight:400;border-radius:999px}.chip[aria-pressed=true]{background:var(--accent);color:white}.filter-footer{padding:20px 28px calc(20px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:16px;background:var(--canvas);flex-shrink:0}.filter-footer>button:first-child{background:transparent;color:var(--accent)}.drawer{width:100%;height:100dvh;max-width:none;margin:0;border-radius:0;background:var(--canvas);overflow:auto;overscroll-behavior:contain}.reader-top{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(10px + env(safe-area-inset-top)) max(32px,env(safe-area-inset-right)) 10px max(32px,env(safe-area-inset-left));background:var(--material);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);font-size:15px}.reader-top>span{color:var(--subtle)}.reader-top>span span{margin-left:8px}.reader-top button{background:transparent;color:var(--accent)}.sheethead{max-width:1120px;margin:auto;padding:40px 32px 28px}.sheethead h2{font-size:44px;line-height:1.15;letter-spacing:-.025em}.en{font-size:17px;color:var(--muted);margin-top:10px}.meta{margin-top:20px;font-size:15px;color:var(--muted)}.detail-dates,.sheet-asof{font-size:13px;color:var(--subtle);margin-top:8px}.tabs{display:flex;gap:4px;max-width:1056px;margin:0 auto 32px;padding:3px;background:#efeff2;border-radius:12px;width:max-content}.tabs button{background:transparent;min-width:96px;border-radius:9px;color:var(--muted)}.tabs button[aria-selected=true]{background:white;color:var(--ink);box-shadow:0 1px 4px #00000014}.info-pane{max-width:1056px;margin:0 auto 48px;padding:32px;background:var(--surface);border-radius:24px}.info-pane>h3{font-size:26px;margin-bottom:20px}.facts{margin:0}.fact{display:grid;grid-template-columns:130px 1fr;gap:24px;padding:16px 0}.fact dt{color:var(--muted);font-size:15px}.fact dd{margin:0;overflow-wrap:anywhere}.fact a,.info-pane a{color:var(--accent);text-decoration:underline}.note{color:var(--muted);font-size:15px;margin:20px 0}.pending{color:var(--subtle)}.tablewrap{overflow:auto}.gridtab{width:100%;border-collapse:collapse;text-align:left;font-size:15px}.gridtab th{font-weight:500;color:var(--muted);padding:16px}.gridtab td{padding:16px;vertical-align:top}.gridtab tr:nth-child(even){background:var(--canvas)}.stack-records{display:none;list-style:none;padding:0}.record{padding:20px;background:var(--canvas);border-radius:16px;margin-top:16px}.kv{display:grid;grid-template-columns:80px 1fr;gap:16px;padding:8px 0}.rk{color:var(--muted)}.rv{overflow-wrap:anywhere}
.reader{max-width:1120px;margin:auto;padding:0 32px calc(32px + env(safe-area-inset-bottom))}.reader-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.page-nav,.reader-actions{display:flex;gap:8px;align-items:center}.page-nav label{font-size:15px}.page-nav input{width:64px;min-height:44px;border:0;border-radius:10px;background:var(--surface);text-align:center;font-variant-numeric:tabular-nums;font-size:15px}.page-total{font-size:15px;color:var(--subtle)}.reader-actions select{border:0}.reader-status{font-size:15px;color:var(--subtle);margin:12px 0;min-height:22px}.paper-scroll{overflow:auto;max-height:78dvh;min-height:320px;background:#eeeef0;border-radius:20px;padding:20px;overscroll-behavior:contain;position:relative}.pdf-paper{position:relative;margin:0 auto;width:max-content;max-width:none;background:white;box-shadow:0 2px 12px #0000000d}.pdf-paper canvas{display:block}
/* PDF.js selection geometry retained verbatim below. */
.textLayer{--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor)*var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size));text-align:initial;letter-spacing:normal;word-spacing:normal;position:absolute;inset:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){position:absolute;white-space:pre;color:transparent;cursor:text;transform-origin:0 0}.textLayer>span:not(.markedContent),.textLayer .markedContent span:not(.markedContent){z-index:1;--font-height:0;--scale-x:1;--rotate:0deg;font-size:calc(var(--text-scale-factor)*var(--font-height));transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}.textLayer .markedContent{display:contents}.textLayer span::selection{background:rgba(0,102,204,.25)}
.reader-cover{width:100%;max-height:70dvh;object-fit:contain}.reader-error{padding:32px;text-align:center}.reader-error p{margin:16px 0}.reader-foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.reader-foot a,.reader-foot button{background:var(--surface);color:var(--accent)}
@media(hover:hover) and (pointer:fine){.card:hover .cover{box-shadow:0 8px 24px #00000012;transform:translateY(-2px)}button:not(.card):not(.btn):not([aria-pressed=true]):not([aria-selected=true]):hover{background:var(--wash)}}
.card:active{background:transparent}.card:active .cover{transform:scale(.99);box-shadow:none}
@media(max-width:1000px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-toolbar{gap:16px;flex-wrap:wrap}.search{max-width:none;min-width:280px}.catalog-controls{gap:8px}.info-pane{margin-left:32px;margin-right:32px}}
@media(max-width:600px){
 .topbar{padding:calc(12px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left));gap:12px}.brand{gap:8px;font-size:15px}.mark{width:36px;height:36px;border-radius:8px}.status{font-size:12px;width:137px;flex-shrink:0}.catalog{padding:28px 20px calc(48px + env(safe-area-inset-bottom))}.catalog-heading{display:block;margin-bottom:24px}.catalog-heading h1{font-size:clamp(30px,8.5vw,38px);white-space:normal;text-wrap:balance}.catalog-heading h1 span{font-size:25px;margin-left:14px}.results-line{min-height:32px;margin-top:8px;font-size:14px;justify-content:space-between}.catalog-toolbar{display:flex;gap:10px;margin-bottom:24px}.search{flex-basis:100%;min-width:0}.catalog-controls{width:100%;justify-content:space-between;gap:6px}.sort-control{font-size:14px}.sort-control>span{display:none}.sort-control select{font-size:14px;padding-left:0;max-width:128px}.view-switch button{font-size:14px;padding:8px 12px}#filterSummary{padding:10px 13px;font-size:14px}.grid{grid-template-columns:1fr;gap:36px}.cover{border-radius:16px}.cap{padding-top:18px}.cap h2{font-size:22px}.list .card{grid-template-columns:100px minmax(0,1fr);gap:18px;padding:20px 0}.list .row-open{display:none}.list .cap h2{font-size:18px}.list .card-district{margin-bottom:4px}.list .developer{font-size:13px}.filter-sheet{width:100%;max-width:none;max-height:90dvh;margin:auto 0 0;border-radius:28px 28px 0 0}.dialog-bar,.filter-content{padding-left:24px;padding-right:24px}.filter-footer{padding-left:24px;padding-right:24px}.reader-top{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.reader-top>span{display:none}.sheethead{padding:28px 20px 24px}.sheethead h2{font-size:32px;line-height:1.2}.tabs{gap:0;margin-bottom:24px}.tabs button{min-width:76px}.info-pane{margin:0 16px 32px;padding:24px 20px}.fact{grid-template-columns:88px 1fr;gap:16px}.wide{display:none}.stack-records{display:block}.reader{padding:0 16px calc(24px + env(safe-area-inset-bottom))}.reader-tools{gap:8px}.page-nav{gap:4px}.page-nav button{padding:8px 12px}.reader-actions{gap:4px}.paper-scroll{padding:8px;min-height:240px;border-radius:12px}.reader-foot{gap:8px}.reader-foot a,.reader-foot button{font-size:13px}.reader-status{font-size:13px}
}
@media(prefers-reduced-motion:no-preference){dialog[open]{opacity:1;transform:translateY(0);transition:opacity 180ms var(--ease),transform 180ms var(--ease)}@starting-style{.filter-sheet[open]{opacity:0;transform:translateY(12px)}}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.card:hover .cover,.card:active .cover{transform:none}}
@media(prefers-reduced-transparency:reduce){.topbar,.reader-top,.filter-sheet{background:var(--canvas);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-contrast:more){button,select,input,.card{outline:1px solid var(--ink)}.topbar,.reader-top,.filter-sheet{background:var(--canvas);backdrop-filter:none;-webkit-backdrop-filter:none}}

/* English labels retain comfortable targets on narrow phones. */
@media(max-width:600px){.catalog-controls{flex-wrap:wrap}.sort-control{flex:1}.tabs{width:calc(100% - 32px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.tabs button{min-width:0;padding:10px 5px;font-size:14px}.view-switch{margin-left:auto}}
/* Freshness is separate from catalog sync time and edition dates. */
.freshness{display:inline-flex;align-items:baseline;gap:7px;max-width:100%;margin-top:10px;padding:5px 10px;border-radius:12px;font-size:12px;line-height:1.5;font-weight:600;text-align:left}
.freshness-dot{display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:currentColor}
.freshness-green{color:#17643a;background:#e7f5eb}.freshness-yellow{color:#715500;background:#fff5c7}.freshness-orange{color:#943c0b;background:#ffeadb}.freshness-grey{color:#4b5058;background:#eceef0}
.freshness-detail{margin-top:12px}.freshness-detail p{font-size:13px;color:var(--muted);margin-top:8px;max-width:680px}.freshness-detail a{color:var(--accent);text-decoration:underline}
.price-links{padding-bottom:20px;border-bottom:1px solid var(--line)}.price-links p{font-size:15px;color:var(--muted)}.price-links .btn{margin-top:16px;white-space:normal}.price-links .note{margin-bottom:0}.gridtab a{overflow-wrap:anywhere}
@media(forced-colors:active){.freshness{border:1px solid CanvasText}.freshness-dot{forced-color-adjust:none}}

/* Keep the status on the title row, at the right edge, in both library views and detail. */
.title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}.title-row h2{flex:1;min-width:0;overflow-wrap:anywhere}.title-row .freshness{flex-shrink:0;white-space:nowrap;margin-top:2px}.sheethead .title-row .freshness{margin-top:8px}

/* Uniform price-list sections use the Details pane's label/value columns. */
.ledger-stamp, .list-date { color:var(--muted); font-size:15px; line-height:1.5; }
.ledger-stamp { margin:0 0 1.5rem; }
.price-list { padding:0; }
.price-list+.price-list { border-top:1px solid var(--line); }
.list-title { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.25rem 1rem; margin-bottom:.5rem; }
.list-title h3 { font-size:17px; line-height:1.5; font-weight:600; }
.list-facts { font-variant-numeric:tabular-nums; }
.list-facts .fact { padding:.5rem 0; }
.price-list-body>a, .price-sources>a { display:inline-flex; align-items:center; min-height:44px; font-size:15px; }
.price-sources { padding-top:.5rem; }
.ledger-loading, .ledger-notice { color:var(--muted); margin-bottom:1.5rem; font-size:15px; }
.ledger-notice button { margin-top:.5rem; }

/* Details-display contract: English is primary; supported Chinese is a quiet second line. */
.bilingual-display{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.bilingual-primary{color:inherit;overflow-wrap:anywhere}
.bilingual-secondary{color:var(--muted);font-size:.86em;line-height:1.4;overflow-wrap:anywhere}
.card-district .bilingual-primary{color:var(--subtle)}
.card-district .bilingual-secondary{color:var(--subtle);font-size:12px}

.price-list>summary { display:grid; grid-template-columns:minmax(0,1fr) auto 1rem; align-items:center; gap:.75rem; min-height:44px; padding:.85rem 0; list-style:none; cursor:pointer; }
.price-list>summary::-webkit-details-marker { display:none; }
.price-list>summary::after { content:'+'; color:var(--muted); }
.price-list[open]>summary::after { content:'−'; }
.price-list>summary .list-date { font-size:15px; font-variant-numeric:tabular-nums; }
.list-number { font-size:17px; }
.price-list>summary:focus-visible { outline:3px solid var(--accent); outline-offset:4px; border-radius:8px; }
.price-list>summary:active { color:var(--accent); background:var(--wash); }
.price-list-body { padding:.5rem 0 1.25rem; }

@media(max-width:360px) { .price-list>summary { gap:.5rem; } }
