/* L1 "gallery" (Steven 2026-11-05): the LIGHT values below are an achromatic grey page, white surfaces and ink; the dark blocks are unchanged. Spec: kakura-handoff/notes/light-system/TOKENS.md.
   KAKURA 藏酷 design tokens, step M1 of docs/design/design-system-2026-10.md (decided 2026-10-15, palette approved by Steven).
   The colour source of the app: warm Ink & Paper surfaces, ink as the primary, vermilion as a marker only, gain green and loss crimson.
   Light values on :root, dark under [data-theme='dark'] and under the system preference (the app's default is dark: an absent or invalid theme cookie renders data-theme="dark", 2026-10-17; 'system' is an explicit choice).
   Rules that bind every value here (tests/design-lint.test.ts parses this file and fails on a break):
   - text pairs in the spec table (1.3) are >= 4.5:1 and UI pairs (control borders, dashes, markers) >= 3:1, in light, dark and system;
   - --vi-marker (vermilion) is never text and never a fill behind a number; a loss is --vi-loss and always carries a sign and a triangle;
   - the system block carries exactly the dark values.
   M1 is colour only. Type, space, radius, elevation and breakpoint tokens of the proposal arrive with M2-M7; until then they stay in vi-tokens.css.
   MIRROR: vi-tokens.css still holds the legacy palette names (--vi-paper ... --vi-shadow) with the SAME values, because
   tests/owner-hd-art-panel.test.tsx reads them from that file; design-lint fails when the two files differ. Delete the mirror at M7. */
:root {
  /* Surfaces and text */
  --vi-paper: #eef1f5;       /* page background */
  --vi-panel: #f9fafc;       /* card, sheet, dialog, binder leaf */
  --vi-raised: #e3e8ef;      /* inactive tab, chip, table header, facts box */
  --vi-ink: #1e2836;         /* text, primary fill */
  --vi-muted: #5e6978;       /* secondary text, >= 4.5:1 on all three surfaces */
  --vi-line: #d9dee6;        /* hairlines: dividers, leaf and tab edges (decorative, never the only cue) */
  --vi-line-strong: #737d8b; /* input, select, chip and checkbox borders (3.7:1 on paper) */
  --vi-overlay: #1e283666;   /* dialog backdrop */
  --vi-shadow: 0 .5rem 1.5rem #1e283616, 0 .125rem .375rem #1e28360c; /* geometry unchanged since VI v1; only the tint moved to the paper ink */
  /* Roles */
  --vi-accent: var(--vi-ink);      /* primary fill, links, selected state: ink, as the landing (D2) */
  --vi-on-accent: #ffffff;         /* text on a primary fill */
  --vi-marker: #c8402b;            /* vermilion: active-tab bar, focus ring, unread dot, caret; never text */
  --vi-marker-text: #b83a26;       /* the one allowed text use: the landing kicker */
  --vi-focus: var(--vi-marker);    /* always drawn at outline-offset 3px so the ring sits on the surface, not on an ink button */
  --vi-gain: #1f6a3f;
  --vi-loss: #a0303a;              /* crimson, off the vermilion hue; always with a sign and a triangle */
  --vi-danger: #a0303a;            /* K6: errors, delete, reject. Never swaps under data-updown (--vi-loss does) */
  --vi-ok: #1f6a3f;                /* K6: success, confirm, done. Never swaps under data-updown (--vi-gain does) */
  --vi-warning: #7a5214;
  --vi-series-value: var(--vi-ink);
  --vi-series-cost: var(--vi-line-strong);
  /* R0 (docs/design/redesign-2026-10/vi.md): art well, chart fill and grid, motion */
  --vi-art-well: #e8ecf1;          /* behind card art, a step deeper than the paper (decorative, never text ground) */
  --vi-chart-fill: color-mix(in srgb, var(--vi-ink) 6%, transparent);   /* area under the value line */
  --vi-chart-grid: color-mix(in srgb, var(--vi-line) 70%, transparent); /* the three horizontal grid lines */
  /* F1: one motion scale (--kd-dur-1..4); the older names below are aliases with the same values */
  --kd-dur-1: 120ms;               /* hover, press */
  --kd-dur-2: 160ms;               /* state changes: chip select, toggle, tab marker */
  --kd-dur-3: 240ms;               /* sheets and dialogs */
  --kd-dur-4: 420ms;               /* travel: a cap or card moving across a row */
  --vi-dur-fast: var(--kd-dur-2);  /* alias: 160ms */
  --vi-dur-sheet: var(--kd-dur-3); /* alias: 240ms */
  /* kit-controls: three shared motion steps and the one disabled opacity (RECHECK N12). Lanes import these, none mints its own. */
  --kd-m-press: 90ms;              /* every press sink */
  --kd-m-settle: 300ms;            /* undo slide, sub-view, close, settle */
  --kd-m-long: 560ms;              /* fills, sleeves, bursts */
  --kd-disabled-opacity: .55;      /* every disabled control */
  --kd-m-b4b8-band: 760ms;         /* B4: the light band crossing the bar on completion */
  --kd-ease-fill: cubic-bezier(.25, .9, .3, 1);   /* B4: the 收集進度 fill */
  --vi-ease: cubic-bezier(.2, .7, .2, 1);
  --kd-ease-out: cubic-bezier(.2, .8, .2, 1);
  --kd-spring: cubic-bezier(.34, 1.56, .64, 1);   /* fallback; the linear() spring below replaces it where supported */
  /* F1: one layer scale; values equal the raw numbers they replace, so no stacking changes */
  --kd-z-base: 1;                  /* a raised child inside its own component */
  --kd-z-sticky: 20;               /* sticky bars and headers */
  --kd-z-tabbar: 70;               /* the phone tab bar */
  --kd-z-tip: 80;                  /* ⓘ bodies; floating tips */
  --kd-z-sheet: 85;                /* sheets and drawers (no consumer yet) */
  --kd-z-toast: 90;                /* toasts: above everything else */
  /* Binder (colours only; used from M6) */
  --kd-leaf: var(--vi-panel);
  --kd-leaf-edge: var(--vi-line);
  --kd-tab-bg: var(--vi-raised);
  --kd-sleeve: #1e283638;          /* ink at 22% */
  --kd-sheen: linear-gradient(115deg, #ffffff99 0, #ffffff00 36%);
  --kd-dash: #737d8b;              /* empty pocket; 3.4:1 on the leaf; drawn on the leaf only, never on or inside a sleeve */
  /* 總覽 chart series (were dark-only: AUDIT item 6). All >= 4:1 on panel. */
  --ov-c1: #2f6ea6; --ov-c2: #8a5a12; --ov-c3: #1f6a3f; --ov-c4: #5b4a9c; --ov-c5: #5e6978; --ov-cu: #737d8b;
  /* 總覽 spotlight stage (redesign-home.css reads these; light = white vitrine, dark = the black display case: today's literals, so dark does not move).
     Every value is a literal: a var() inside a custom property resolves where it is declared (here, :root), not on the stage. The centre card's tinted shadow (light only)
     is assembled on the stage from --rh-art-shadow + --pb-c1 (redesign-home.css); --rh-art-lift is a light-only layer. */
  --rh-case: #f9fafc; --rh-case-line: #d9dee6; --rh-paper: #f9fafc; --rh-panel: #eef1f5; --rh-raised: #e3e8ef;
  --rh-ink: #1e2836; --rh-muted: #5e6978; --rh-line: #d9dee6; --rh-line-strong: #737d8b;
  --rh-accent: #1e2836; --rh-on-accent: #ffffff; --rh-accent-hover: #2c3a4d; --rh-cta-hover-filter: none;
  --rh-gain: #1f6a3f; --rh-loss: #a0303a; --rh-warning: #7a5214; --rh-marker: #c8402b;
  --rh-art-shadow: rgba(30, 40, 54, .5); --rh-art-lift: 0 2px 4px rgba(30, 40, 54, .12); --rh-art-geom: 0 28px 56px -18px;
  --rh-side-shadow: 0 1px 2px rgba(30, 40, 54, .14), 0 18px 32px -14px rgba(30, 40, 54, .28);
  --rh-skel-shadow: 0 1px 2px rgba(30, 40, 54, .14), 0 18px 32px -14px rgba(30, 40, 54, .28);
  --rh-dot: rgba(30, 40, 54, .22); --rh-dot-hover: rgba(30, 40, 54, .45); --rh-dot-active: #1e2836;
  --rh-arrow-bg: #eef1f5; --rh-arrow-bg-hover: #1e2836; --rh-arrow-ink: #1e2836; --rh-arrow-ink-hover: #ffffff;
  --rh-palette-alpha: 0; --rh-glow-alpha: 0; --rh-palette-mix: 60%; --rh-glow-filter: blur(34px) saturate(1.05) brightness(.95); --rh-veil: none;
  --rh-case-shadow: 0 1px 2px rgba(30, 40, 54, .04);
}
:root[data-theme='dark'] {
  --vi-paper: #10171f; --vi-panel: #17202a; --vi-raised: #202b37;
  --vi-ink: #f2f3f5; --vi-muted: #aeb4bc; --vi-line: #2f3b48; --vi-line-strong: #6b7a8c;
  --vi-overlay: #030812aa;   /* dark dialogs and sheets also carry a 1px --vi-line-strong edge (panel on backdrop is only 1.2:1) */
  --vi-shadow: 0 .75rem 2rem #0005, 0 .125rem .375rem #0003;
  --vi-marker: #ef8a72; --vi-marker-text: #ef8a72;
  --vi-gain: #8fcfa6; --vi-loss: #f08ca0; --vi-warning: #e3c387; --vi-danger: #f08ca0; --vi-ok: #8fcfa6;
  --kd-sleeve: #f2f3f538; --kd-sheen: linear-gradient(115deg, #ffffff1f 0, #ffffff00 36%); --kd-dash: #7d8794;
  --vi-art-well: #0b1118;
  --vi-on-accent: var(--vi-paper); --vi-chart-grid: color-mix(in srgb, var(--vi-line) 60%, transparent);
  --rh-case: #0b0f16; --rh-case-line: #0b0f16; --rh-paper: #0c121c; --rh-panel: #141a24; --rh-raised: #1d2533;
  --rh-ink: #f1f4f8; --rh-muted: #b3bdca; --rh-line: #3a4659; --rh-line-strong: #6b7a8c;
  --rh-accent: #a9d0ee; --rh-on-accent: #0c121c; --rh-accent-hover: #a9d0ee; --rh-cta-hover-filter: brightness(1.08);
  --rh-gain: #9ed0b2; --rh-loss: #f0b4a2; --rh-warning: #e3c387; --rh-marker: #ef8a72;
  --rh-art-shadow: rgba(0, 0, 0, .65); --rh-art-geom: 0 22px 40px -14px;
  --rh-side-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 40px -14px rgba(0, 0, 0, .65);
  --rh-skel-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 40px -14px rgba(0, 0, 0, .55);
  --rh-dot: rgba(255, 255, 255, .38); --rh-dot-hover: rgba(255, 255, 255, .62); --rh-dot-active: rgba(255, 255, 255, .38);
  --rh-arrow-bg: rgba(12, 18, 28, .3); --rh-arrow-bg-hover: rgba(12, 18, 28, .6); --rh-arrow-ink: color-mix(in srgb, #f1f4f8 55%, transparent); --rh-arrow-ink-hover: #f1f4f8;
  --rh-palette-alpha: .2; --rh-glow-alpha: .46;
  --rh-veil: linear-gradient(180deg, transparent 55%, rgba(6, 8, 12, .55)); --rh-case-shadow: none;
  /* 2024 surface literals of globals.css (live in dark, no later override): globals.css reads var(--gd-<hex>, <light token>), so dark keeps the exact literal and light reads the token. */
  --gd-020713cc: #020713cc; --gd-071116bc: #071116bc; --gd-0c1628: #0c1628; --gd-0c1729: #0c1729; --gd-101d31: #101d31; --gd-101d31f5: #101d31f5; --gd-101e32: #101e32; --gd-111820: #111820; --gd-121f34: #121f34; --gd-15233a: #15233a; --gd-16202b: #16202b; --gd-19252f: #19252f; --gd-1b2531: #1b2531; --gd-1d241f99: #1d241f99; --gd-232b34: #232b34; --gd-243652: #243652; --gd-252b37: #252b37; --gd-26313e: #26313e; --gd-26323f: #26323f; --gd-2a3645: #2a3645;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) {
    --vi-paper: #10171f; --vi-panel: #17202a; --vi-raised: #202b37;
    --vi-ink: #f2f3f5; --vi-muted: #aeb4bc; --vi-line: #2f3b48; --vi-line-strong: #6b7a8c;
    --vi-overlay: #030812aa;
    --vi-shadow: 0 .75rem 2rem #0005, 0 .125rem .375rem #0003;
    --vi-marker: #ef8a72; --vi-marker-text: #ef8a72;
    --vi-gain: #8fcfa6; --vi-loss: #f08ca0; --vi-warning: #e3c387; --vi-danger: #f08ca0; --vi-ok: #8fcfa6;
    --kd-sleeve: #f2f3f538; --kd-sheen: linear-gradient(115deg, #ffffff1f 0, #ffffff00 36%); --kd-dash: #7d8794;
    --vi-art-well: #0b1118;
    --vi-on-accent: var(--vi-paper); --vi-chart-grid: color-mix(in srgb, var(--vi-line) 60%, transparent);
    --rh-case: #0b0f16; --rh-case-line: #0b0f16; --rh-paper: #0c121c; --rh-panel: #141a24; --rh-raised: #1d2533;
    --rh-ink: #f1f4f8; --rh-muted: #b3bdca; --rh-line: #3a4659; --rh-line-strong: #6b7a8c;
    --rh-accent: #a9d0ee; --rh-on-accent: #0c121c; --rh-accent-hover: #a9d0ee; --rh-cta-hover-filter: brightness(1.08);
    --rh-gain: #9ed0b2; --rh-loss: #f0b4a2; --rh-warning: #e3c387; --rh-marker: #ef8a72;
    --rh-art-shadow: rgba(0, 0, 0, .65); --rh-art-geom: 0 22px 40px -14px;
    --rh-side-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 40px -14px rgba(0, 0, 0, .65);
    --rh-skel-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 40px -14px rgba(0, 0, 0, .55);
    --rh-dot: rgba(255, 255, 255, .38); --rh-dot-hover: rgba(255, 255, 255, .62); --rh-dot-active: rgba(255, 255, 255, .38);
    --rh-arrow-bg: rgba(12, 18, 28, .3); --rh-arrow-bg-hover: rgba(12, 18, 28, .6); --rh-arrow-ink: color-mix(in srgb, #f1f4f8 55%, transparent); --rh-arrow-ink-hover: #f1f4f8;
    --rh-palette-alpha: .2; --rh-glow-alpha: .46;
    --rh-veil: linear-gradient(180deg, transparent 55%, rgba(6, 8, 12, .55)); --rh-case-shadow: none;
    /* 2024 surface literals of globals.css (live in dark, no later override): globals.css reads var(--gd-<hex>, <light token>), so dark keeps the exact literal and light reads the token. */
    --gd-020713cc: #020713cc; --gd-071116bc: #071116bc; --gd-0c1628: #0c1628; --gd-0c1729: #0c1729; --gd-101d31: #101d31; --gd-101d31f5: #101d31f5; --gd-101e32: #101e32; --gd-111820: #111820; --gd-121f34: #121f34; --gd-15233a: #15233a; --gd-16202b: #16202b; --gd-19252f: #19252f; --gd-1b2531: #1b2531; --gd-1d241f99: #1d241f99; --gd-232b34: #232b34; --gd-243652: #243652; --gd-252b37: #252b37; --gd-26313e: #26313e; --gd-26323f: #26323f; --gd-2a3645: #2a3645;
  }
}
/* 漲跌顏色 台股 mode (the setting row is batch R2; nothing sets the attribute yet): red up, green down. The two colours swap; the sign and the triangle stay.
   Spelled out per theme context so the swap beats the theme block it follows at equal or higher specificity: light = :root[data-updown], explicit dark and the system
   block = one attribute more. Contrast pairs are unchanged because the same two values are used. */
:root[data-updown='tw'] { --vi-gain: #a0303a; --vi-loss: #1f6a3f; }
:root[data-theme='dark'][data-updown='tw'] { --vi-gain: #f08ca0; --vi-loss: #8fcfa6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark'])[data-updown='tw'] { --vi-gain: #f08ca0; --vi-loss: #8fcfa6; }
}
/* Reduced motion: every duration 0 (R0 motion tokens). */
@media (prefers-reduced-motion: reduce) {
  :root { --vi-dur-fast: 0ms; --vi-dur-sheet: 0ms; --kd-dur-1: 0ms; --kd-dur-2: 0ms; --kd-dur-3: 0ms; --kd-dur-4: 0ms; --kd-m-press: 0ms; --kd-m-settle: 0ms; --kd-m-long: 0ms; --kd-m-b4b8-band: 0ms; --kd-dur-fast: 0ms; --kd-dur-base: 0ms; --kd-dur-sheet: 0ms; }
}
/* F1: the spring (copied from notes/micro-toggles/mock.html); engines without linear() keep the cubic fallback above. */
@supports (transition-timing-function: linear(0, 1)) {
  :root { --kd-spring: linear(0, .137, .425, .725, .957, 1.094, 1.145, 1.137, 1.099, 1.053, 1.015, .991, .98, .979, .983, .99, .996, 1, 1.003, 1.003, 1.003, 1.002, 1.001, 1, 1); }
}

/* The five names that were used but never defined (their fallbacks were the failing pairs 1-5 of the spec 1.4). Same selector list as the
   legacy aliases in vi-tokens.css so every theme resolves them at the same specificity. */
:root, :root[data-theme='light'], :root[data-theme='dark'], :root[data-theme='system'] {
  --loss: var(--vi-loss);
  --vi-bg: var(--vi-paper);
  --vi-meta: var(--vi-type-meta); /* a SIZE (ux-design.css reads it as a font-size); the proposal's colour alias would have made that font-size invalid */
  --kd-font-display: var(--vi-font);
}

*{box-sizing:border-box}body{margin:0;background:var(--gd-0c1628,var(--vi-paper));color:#edf1f7;font-family:Inter,-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;font-size:15px;line-height:1.65}main{max-width:1440px;margin:auto;padding:44px 5vw}header,.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:24px}header small{color:#c4a767;letter-spacing:.2em}h1{font-size:42px;letter-spacing:.08em;margin:8px 0}h2{font-size:22px;margin:0 0 18px}h2 span,h2 small{font-size:16px}p{color:#aebcd0;margin:8px 0 18px}nav{display:flex;gap:10px;border-bottom:1px solid #324058;padding:22px 0;margin-bottom:30px}button,select,input,textarea{font:inherit;border:1px solid #43516b;border-radius:var(--kd-radius-ui);padding:11px 14px;color:#eef3fc;background:var(--gd-15233a,var(--vi-raised))}button{cursor:pointer}button:hover{border-color:#d1b67c}button.active,button[type=submit]{background:#c5a970;color:#101a2a;border-color:#c5a970}button:disabled{opacity:.45;cursor:not-allowed}a{color:#d6bd87}nav a{margin-left:auto;padding:11px}small{display:block;font-size:12px;color:#a6b7ce}section,article,footer{background:var(--gd-121f34,var(--vi-panel));border:1px solid #2b3a52;padding:25px;margin-bottom:24px}.metrics{display:grid;grid-template-columns:1.2fr 1.2fr .8fr;gap:20px}.metrics h2{font-size:30px;color:#e1c58e;margin:14px 0}.metrics p{font-size:12px;margin-bottom:0}aside{background:var(--gd-252b37,var(--vi-raised));border-left:3px solid #c5a970;border-radius:var(--kd-radius-ui);padding:16px 20px;margin-bottom:24px;color:#d8dfeb}.two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.rank{display:flex;width:100%;gap:15px;align-items:center;text-align:left;border:0;border-bottom:1px solid #2b3a52;border-radius:0;background:none;padding:16px 0}.rank b{color:#c5a970}.rank span{flex:1;font-size:13px}.rank strong{font-size:14px;white-space:nowrap}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:16px 12px;border-bottom:1px solid #2b3a52}th{font-size:12px;color:#b3c0d3}td{font-size:13px}td:first-child{max-width:390px}.collector-app tbody tr:hover{background:var(--vi-raised)}.textbutton{padding:0;border:0;background:none;text-align:left;font-size:13px}.tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.tools>input{flex:1}.fields,label{display:flex;flex-direction:column;gap:7px}label{font-size:13px;margin-bottom:13px}.fields{gap:8px}input,select{min-width:0;width:100%}.confirm{flex-direction:row;align-items:center;margin:25px 0}.confirm input{width:20px;height:20px;flex-shrink:0}.photo{max-width:100%;max-height:520px;object-fit:contain;background:var(--gd-0c1628,var(--vi-art-well));border-radius:var(--kd-radius-ui)}textarea{height:130px;width:100%}pre{white-space:pre-wrap;word-break:break-word;font-size:12px;color:#aebcd0}details{padding:15px 0;border-bottom:1px solid #2b3a52}.muted{color:#94a7c2}.trend{display:flex;gap:22px;overflow:auto}.trend>div{min-width:140px;flex:1}.trend strong{display:block}.bar{background:#bfa36b;height:7px;border-radius:var(--kd-radius-ui);margin:14px 0}footer{margin-top:30px}footer h2{font-size:18px}footer p{font-size:13px}.upload{padding:24px;border:1px dashed #8b7958;border-radius:var(--kd-radius-ui)}button:focus-visible,a:focus-visible,input:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}@media(max-width:760px){main{padding:25px 16px}h1{font-size:30px}header{align-items:flex-start}header label{max-width:110px}.metrics,.two{grid-template-columns:1fr}.metrics{gap:0}.metrics article{margin-bottom:12px}section,article,footer{padding:18px}nav{gap:6px}nav button,nav a{padding:10px;font-size:13px}.rank strong{font-size:12px}.sectionhead{align-items:flex-start;gap:10px}.sectionhead button{font-size:12px}h2{font-size:19px}.tools>*{max-width:100%}}
.gain{color:#69d6a0}.loss{color:var(--vi-loss)}
main{padding-top:22px}header{gap:16px}header small{letter-spacing:.1em}header h1{font-size:28px;margin:2px 0}header label{margin:0;gap:3px}header select{padding:7px 10px}nav{padding:12px 0;margin-bottom:16px}nav button,nav a{padding:8px 12px}.chart-empty{min-height:150px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border:1px dashed #43516b;border-radius:var(--kd-radius-ui);padding:15px}.chart-empty p{font-size:13px;margin:8px 0}.snapshot-table{font-size:13px;padding:10px 0 0;border:0}summary{cursor:pointer}
@media(max-width:760px){main{padding:16px 14px}header h1{font-size:24px}header small{font-size:11px}header label{font-size:12px}nav{padding:10px 0;margin-bottom:12px;gap:5px}nav button,nav a{padding:7px 9px;font-size:13px}}
/* Collection gallery: card art is the focus; account tools remain explicit. */
.primary,button.primary{background:#d0b278;color:#0c1628;border-color:#d0b278;font-weight:650}nav a{margin-left:0}.financial-strip{display:grid;grid-template-columns:.7fr 1.3fr 1.3fr auto;align-items:center;gap:22px;padding:18px 0 22px;border-bottom:1px solid #293951;margin-bottom:30px}.financial-strip strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums}.financial-strip strong span{font-size:14px;color:#9eafc5}.financial-strip button{font-size:12px;background:transparent;padding:8px 10px}.eyebrow{font-size:10px;color:#c5ac78;letter-spacing:.2em}.collection-browser h2{font-size:27px;margin:5px 0}.collection-browser .sectionhead p{font-size:13px;margin:5px 0 22px}.filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:9px}.filters input,.filters select{font-size:13px;padding:10px 12px;background:var(--gd-101e32,var(--vi-panel))}.art-button{display:block;width:100%;padding:0;border:0;border-radius:0;background:none}.card-visual{position:relative;aspect-ratio: .76;display:flex;align-items:center;justify-content:center;padding:16px 18px 25px;background:radial-gradient(ellipse at 50% 30%,var(--gd-243652,var(--vi-raised)),var(--gd-0c1729,var(--vi-panel)));overflow:hidden}.card-visual img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 9px #0008)}.image-kind{position:absolute;bottom:5px;left:0;right:0;text-align:center;font-size:9px;color:#92a2b9;letter-spacing:.03em}.card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:43px;font-size:12px;font-weight:550;line-height:1.5;padding:0;text-align:left;border:0;border-radius:0;background:none;margin:10px 0 6px;width:100%}.cert{font-size:10px;color:#869ab5;font-variant-numeric:tabular-nums}.empty-state{text-align:center;padding:50px 20px}.mini-art{width:55px;flex-shrink:0;padding:0;border:0}.mini-art .card-visual{padding:3px}.mini-art .image-kind,.mini-art .art-placeholder{display:none}.card-dialog{position:fixed;border:1px solid #40516b;background:var(--gd-101d31,var(--vi-panel));color:#edf1f7;width:min(1000px,calc(100% - 32px));max-height:90dvh;padding:0;box-shadow:0 30px 100px #0009}.card-dialog::backdrop{background:var(--gd-020713cc,var(--vi-overlay));backdrop-filter:blur(5px)}.detail-header{position:sticky;top:0;background:var(--gd-101d31f5,var(--vi-panel));z-index:2;display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #30415a}.detail-header button{padding:6px 12px;font-size:12px}.art-credit{font-size:11px;margin:12px 0;line-height:1.6}.art-credit a{display:block}@keyframes shimmer{to{background-position:-200% 0}}
@media(max-width:1150px){.financial-strip{gap:15px}.financial-strip strong{font-size:19px}.filters{grid-template-columns:repeat(4,1fr)}.filters input{grid-column:1/-1}}@media(max-width:760px){nav{flex-wrap:wrap}nav a{font-size:11px;padding:7px 3px}.financial-strip{grid-template-columns:1fr 1fr;gap:12px;padding:8px 0 20px;margin-bottom:22px}.financial-strip>div:first-child{grid-column:1/-1;display:flex;align-items:center;gap:12px}.financial-strip>div:first-child strong{font-size:20px}.financial-strip strong{font-size:18px}.financial-strip small{font-size:10px}.financial-strip>button{grid-column:1/-1;padding:7px}.collection-browser h2{font-size:23px}.collection-browser .sectionhead p{font-size:12px}.filters{grid-template-columns:1fr 1fr;gap:7px}.filters select{font-size:12px;padding:8px}.card-visual{padding:11px 12px 23px}.card-title{font-size:11px;height:38px}.image-kind{font-size:8px}.card-dialog{width:calc(100% - 16px);max-height:95dvh;border-radius:var(--kd-radius-ui)}.detail-header{padding:12px 16px}}
/* Compact portfolio workspace. */
body{background:var(--gd-111820,var(--vi-paper));color:#e7eaf0}main{max-width:1440px}header h1{font-size:24px;letter-spacing:.015em}header small{color:#a7b3c2;letter-spacing:.13em}nav{border-color:#303b49}button,select,input,textarea{background:var(--gd-1b2531,var(--vi-raised));border-color:#3c495a;}.primary,button.primary,button.active,button[type=submit]{background:#cbb88f;border-color:#cbb88f}section,article,footer{background:var(--gd-16202b,var(--vi-panel));border-color:#303b49}.card-visual{background:radial-gradient(ellipse at 50% 30%,var(--gd-2a3645,var(--vi-raised)),var(--gd-16202b,var(--vi-panel)))}.financial-strip{border-color:#303b49;margin-bottom:23px}.financial-strip strong{font-size:21px}.collection-browser h2{font-size:23px;letter-spacing:0;margin:2px 0}.collection-browser .eyebrow{display:none}.collection-browser .sectionhead p{margin:5px 0 16px}.card-pnl{font-size:10px;margin-top:5px;font-variant-numeric:tabular-nums}.analysis-controls{display:flex;gap:8px}.analysis-controls select{width:auto;font-size:12px;padding:8px 10px}.analysis-controls button{font-size:12px;padding:7px 10px}.analytics-columns h2,.attention-panel h2{font-size:18px;margin:0}.allocation-row{display:grid;grid-template-columns:72px 1fr 105px;gap:14px;align-items:center;text-align:left;width:100%;padding:13px 0;border:0;border-bottom:1px solid #2d3947;background:transparent;border-radius:0}.allocation-row>span{font-size:12px}.allocation-row small{font-size:10px}.allocation-row>div{height:5px;background:var(--gd-26323f,var(--vi-raised));border-radius:var(--kd-radius-ui);overflow:hidden}.allocation-row i{display:block;height:100%;min-width:1px}.allocation-row strong{text-align:right;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}.allocation-row.selected{background:var(--gd-26313e,var(--vi-raised))}.microcopy{font-size:11px;margin-top:12px}.ranking-panel select{width:auto;max-width:170px;font-size:11px;padding:7px}.focus-row{display:flex;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #2d3947}.focus-row .mini-art{width:46px}.focus-name{font-size:11px;line-height:1.45;padding:0;border:0;background:transparent;text-align:left;flex:1;min-width:0}.focus-name small{font-size:10px;margin-top:6px}.focus-row>div{min-width:100px;text-align:right}.focus-row strong{display:block;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}.focus-row>div>button{min-width:var(--vi-target);padding:3px 8px;font-size:10px;background:transparent;margin-top:6px}.attention-panel{background:transparent;border:0;border-top:1px solid #344150;border-radius:0;padding:22px 0 0}.attention-panel .sectionhead{margin-bottom:12px}.attention-row{display:flex;align-items:center;gap:16px;justify-content:space-between;text-align:left;width:100%;padding:12px 0;font-size:12px;border:0;border-bottom:1px solid #2d3947;background:transparent}.attention-row>span:last-child{font-size:11px;white-space:nowrap;color:#c8b78f}.attention-row small{font-size:10px}.scope-note{font-size:12px;padding:12px;border-left:2px solid #bba57d;background:var(--gd-232b34,var(--vi-raised))}.card-dialog,.detail-header{background:var(--gd-16202b,var(--vi-panel))}
@media(max-width:760px){.financial-strip strong{font-size:18px}.analysis-controls{margin-top:12px}.analysis-controls select{flex:1;min-width:0}.allocation-row{grid-template-columns:70px 1fr 105px}.attention-panel .sectionhead{align-items:baseline}.attention-panel .sectionhead>small{font-size:10px;text-align:right}.attention-row{align-items:flex-start}.attention-row>span:last-child{white-space:normal;min-width:70px;text-align:right}.purchase-line,.card-pnl{font-size:9px}.financial-strip strong{letter-spacing:-.3px}}
.psa-cost-editor{border-top:1px solid #3c495a;padding-top:18px;margin-top:22px}.psa-cost-editor h3{font-size:17px}.psa-cost-editor p{font-size:12px}.psa-cost-editor fieldset{border:1px solid #3c495a;margin:16px 0;padding:16px;border-radius:var(--kd-radius-ui)}.psa-cost-editor legend{font-size:13px;color:#cbb88f}.oripa-analysis{padding:20px 0;border:0;border-top:1px solid #344150;border-radius:0;background:transparent}.oripa-analysis h2{font-size:18px;margin:0}.oripa-analysis p{font-size:12px}.batch-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:18px 0}.batch-summary strong{display:block;font-size:20px;font-variant-numeric:tabular-nums}.allocation-row{grid-template-columns:100px 1fr 105px}@media(max-width:760px){.batch-summary{grid-template-columns:1fr 1fr;gap:14px}.batch-summary>div:last-child{grid-column:1/-1}.batch-summary strong{font-size:18px}.allocation-row{grid-template-columns:95px 1fr 95px;gap:8px}}
/* Keep each workspace mounted so editing never resets its filters. */
[hidden]{display:none!important}
.card-batch-context,.quote-comparison{padding:18px;background:var(--gd-19252f,var(--vi-panel));border:1px solid #465463;border-radius:var(--kd-radius-ui);margin:16px 0}.card-batch-context .batch-summary{grid-template-columns:1fr}.card-batch-context p,.quote-comparison p{font-size:13px;line-height:1.7}.quote-comparison h4{margin:8px 0}.quote-comparison a{display:inline-block;font-size:12px;margin:4px}.favorite{color:#d1b277;padding:5px 10px}.attention-row .textbutton{white-space:normal;text-align:left;flex:1}.attention-row small{display:block}.card-batch-context strong{overflow-wrap:anywhere}@media(max-width:600px){nav{flex-wrap:wrap}.quote-comparison .two{grid-template-columns:1fr}.attention-row{gap:8px}}
/* Collector edition — warm paper, ink, vermilion, artwork-led composition. */
:root{--paper:#f4f1e9;--ink:#252924;--muted:#6e7269;--line:#d6d7cc;--accent:#a3442c;--panel:#faf9f4}body{background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;font-size:16px;line-height:1.7}main.collector-app{max-width:1600px;padding:24px 4.5vw 70px}header small{color:var(--muted);font-size:10px;letter-spacing:.22em}header h1{font-family:Georgia,"Noto Serif TC",serif;font-weight:400;font-size:26px;letter-spacing:.04em;margin:3px 0}header label{font-size:11px}.collector-app>nav{border-bottom:1px solid var(--line);gap:24px;padding:12px 0;margin-bottom:0;position:sticky;top:0;z-index:15;background:var(--paper)}nav button,nav a{background:none;border:0;border-radius:0;padding:10px 0;color:var(--ink)}nav button.active{background:none;color:var(--accent);box-shadow:0 2px var(--accent)}nav a{margin-left:0;font-size:12px}button,select,input,textarea{background:transparent;color:var(--ink);border-color:var(--vi-line-strong);font-size:14px}button:hover{border-color:var(--accent);color:var(--accent)}button.primary,button[type=submit]{background:var(--accent);color:white;border-color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}button:disabled{opacity:.4}p,small,.muted{color:var(--muted)}a{color:var(--accent)}section,article,footer{background:var(--panel);border-color:var(--line);border-radius:var(--kd-radius-ui);box-shadow:none}aside{background:#eae5d8;color:var(--ink);border-color:var(--accent)}pre{color:var(--muted)}h2{font-family:Georgia,"Noto Serif TC",serif;letter-spacing:-.025em;font-weight:500}h3{font-weight:600}.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--accent)}.gain{color:#287151}.loss{color:var(--vi-loss)}.collection-browser{padding-top:35px}.collection-browser h2{font-size:38px;margin:4px 0 5px}.collection-browser .sectionhead p{margin:0;font-size:14px}.financial-strip{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:24px 0;margin-bottom:0}.financial-strip strong{color:var(--ink);font-family:Georgia,serif;font-size:27px;font-weight:400}.financial-strip button{color:var(--accent);border:0}.filters{background:none;border:0;padding:18px 0;gap:10px}.filters input{background:#fffef9}.advanced-filters{font-size:13px}.card-visual{background:#e8e9df;border-radius:0;aspect-ratio: .83;padding:18px 22px;position:relative}.card-visual img{object-fit:contain;width:100%;height:100%;max-height:none;filter:drop-shadow(0 7px 7px #25292424)}.image-kind{color:#5d6356;background:#f4f1e9e8;border:0;border-radius:0;font-size:9px;bottom:7px;left:7px}.card-title{color:var(--ink);font-size:14px;line-height:1.55;font-weight:600;min-height:44px;margin:9px 0 6px;-webkit-line-clamp:2}.card-pnl{font-size:10px}.cert{color:var(--muted);font-family:monospace;font-size:11px}.binder .purchase-line,.binder .card-pnl{display:none}.binder .card-title{font-size:12px}.binder .card-visual{padding:10px}th,td{border-color:var(--line);color:var(--ink)}th{color:var(--muted)}.textbutton{color:var(--ink)}.card-dialog{width:min(1280px,96vw);max-width:1280px;background:var(--paper);color:var(--ink);border:0;border-radius:var(--kd-radius-ui);padding:0;max-height:94vh}.card-dialog::backdrop{background:var(--gd-1d241f99,var(--vi-overlay));backdrop-filter:blur(5px)}.detail-header{background:var(--paper);border-bottom:1px solid var(--line);padding:16px 24px;position:sticky;top:0;z-index:4}.art-credit{color:var(--muted);font-size:10px}.quote-comparison,.card-batch-context,.sale-panel,.activity-timeline{background:transparent;border:0;border-top:1px solid var(--line);padding:25px 0;border-radius:0}.quote-comparison h3,.sale-panel h3,.activity-timeline h3{font-size:19px;margin:6px 0}.quote-comparison article{background:#eaece2;color:var(--ink);border-color:var(--line)}.quote-comparison strong{color:var(--ink)}details,dl dt,dl dd{border-color:var(--line)}.activity-timeline ol{list-style:none;padding:0}.activity-timeline li{display:grid;grid-template-columns:90px 1fr;gap:20px;border-left:1px solid var(--line);padding:0 0 22px 18px;position:relative}.activity-timeline li:before{content:'';width:7px;height:7px;border-radius:var(--kd-radius-round);background:var(--accent);position:absolute;left:-4px;top:9px}.activity-timeline time{font-size:11px;color:var(--muted)}.activity-timeline b{font-size:13px}.activity-timeline p{font-size:12px;margin:3px 0 0}.sale-panel fieldset,.bulk-tools fieldset{border:0;padding:0;min-width:0}.bulk-list{max-height:230px;overflow:auto;margin:15px 0}.bulk-list label{display:flex;flex-direction:row;align-items:center;border-bottom:1px solid var(--line);padding:8px;gap:14px}.bulk-list input{width:18px;flex-shrink:0}.bulk-list span{font-size:12px}.pnl-summary,.price-performance,.allocation,.ranking-panel{background:var(--panel);border-color:var(--line);color:var(--ink)}.focus-name{color:var(--ink)}.allocation-row{color:var(--ink);border-color:var(--line)}.allocation-row.selected{background:#e9ecdf}.scope-note,.batch-sound{background:#e9ecdf;color:var(--ink)}.batch-summary>div{background:#e9ecdf;border-color:var(--line)}.batch-summary strong,.batch-money{color:var(--ink)}.empty-state{background:none;color:var(--ink)}.empty-state h3{color:var(--ink)}.sale-panel summary{font-size:13px}.sale-panel p{font-size:13px}@media(max-width:700px){main.collector-app{padding:16px 18px 40px}header h1{font-size:18px}header small{font-size:8px}.collector-app>nav{gap:16px;overflow:auto;white-space:nowrap;padding:8px 0}nav button{font-size:12px;flex-shrink:0}nav a{display:none}.binder .card-title{font-size:10px;min-height:32px}.binder .cert{font-size:8px}.binder .card-visual{padding:8px 4px}.binder .image-kind{font-size:7px}.card-visual{padding:14px 10px}.card-title{font-size:12px;min-height:36px}.financial-strip{gap:15px}.financial-strip strong{font-size:21px}.collection-browser h2{font-size:30px}.collection-browser{padding-top:25px}.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:span 2}.card-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0}.detail-header{padding:12px 20px}.activity-timeline li{grid-template-columns:80px 1fr;gap:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.detail-navigation{display:flex;gap:7px;margin-left:auto}.detail-navigation button{padding:5px 12px}.concentration-results{max-height:300px;overflow:auto;margin-top:15px}.concentration-results button,.transaction-row{display:block;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;font-size:12px}.batch-gaps{font-size:13px;color:var(--accent);padding-left:20px}.batch-gaps button{padding:3px 8px}.bulk-tools>summary{font-weight:600}.sale-panel button:disabled{pointer-events:none}
.filters input,.filters select,.analysis-controls select,.resultbar select,.ranking-panel select{background:var(--panel);color:var(--ink);border-color:var(--vi-line-strong)}.collection-browser .sectionhead{margin-bottom:5px}.collection-browser{padding-top:25px}.collection-browser .sectionhead h2{font-size:32px}
.first-point-label strong,.pnl-summary span,.pnl-summary p,.price-performance small,.batch-group summary small{color:var(--muted)}
.attention-panel{background:var(--panel);border-color:var(--line)}.attention-row{border-color:var(--line)}.attention-panel select{background:var(--panel);color:var(--ink)}.theme-control select{max-width:125px}.theme-control{white-space:nowrap}html{color-scheme:light}html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] :is(body){background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(body){background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.collector-hero,.financial-strip,.collection-browser,.pnl-summary,.price-performance,.allocation,.ranking-panel,.attention-panel,.sale-panel,.activity-timeline){color:var(--ink)}
html[data-theme=dark] :is(.hero-art,.card-visual,.collection-card .art-button,.detail-content .card-visual.large,.archive-note,.value-chart,.batch-summary>div,.scope-note,.batch-sound,.quote-columns>div,.quote-grid>div,.quote-source,.quote-comparison article){background:#253031;color:var(--ink)}
html[data-theme=dark] :is(.card-visual img){filter:drop-shadow(0 7px 7px #0005)}
html[data-theme=dark] :is(.image-kind){background:#1c2526ed;color:#cad2ca}
html[data-theme=dark] :is(button.primary,button[type=submit],nav .nav-add){background:var(--vi-accent);border-color:var(--vi-accent);color:var(--vi-on-accent)}
html[data-theme=dark] :is(button.active){color:var(--accent)}
html[data-theme=dark] :is(button:hover){color:var(--accent)}
html[data-theme=dark] :is(.filters input,.filters select,.analysis-controls select,.resultbar select,.ranking-panel select,.attention-panel select,input,select,textarea){background:var(--vi-panel);color:var(--ink);border-color:var(--vi-line-strong)}
html[data-theme=dark] :is(aside){background:var(--vi-raised);color:var(--ink)}
html[data-theme=dark] :is(.allocation-row.selected,.quality-pill,.quality-tabs button){background:#2c3737;color:var(--ink)}
html[data-theme=dark] :is(.gain,.detail-values strong.gain){color:var(--vi-gain)}
html[data-theme=dark] :is(.loss,.detail-values strong.loss){color:var(--vi-loss)}
html[data-theme=dark] :is(.favorite){color:var(--vi-ink)}
html[data-theme=dark] :is(.upload,.photo){background:#202b2c}
html[data-theme=dark] :is(.detail-header,.card-dialog){background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.card-dialog::backdrop){background:#050b0dd9}
@media(prefers-color-scheme:dark){html[data-theme=system]{color-scheme:dark}
html[data-theme=system] :is(body){background:var(--paper);color:var(--ink)}
html[data-theme=system] :is(body){background:var(--paper);color:var(--ink)}
html[data-theme=system] :is(.collector-hero,.financial-strip,.collection-browser,.pnl-summary,.price-performance,.allocation,.ranking-panel,.attention-panel,.sale-panel,.activity-timeline){color:var(--ink)}
html[data-theme=system] :is(.hero-art,.card-visual,.collection-card .art-button,.detail-content .card-visual.large,.archive-note,.value-chart,.batch-summary>div,.scope-note,.batch-sound,.quote-columns>div,.quote-grid>div,.quote-source,.quote-comparison article){background:#253031;color:var(--ink)}
html[data-theme=system] :is(.card-visual img){filter:drop-shadow(0 7px 7px #0005)}
html[data-theme=system] :is(.image-kind){background:#1c2526ed;color:#cad2ca}
html[data-theme=system] :is(button.primary,button[type=submit],nav .nav-add){background:var(--vi-accent);border-color:var(--vi-accent);color:var(--vi-on-accent)}
html[data-theme=system] :is(button.active){color:var(--accent)}
html[data-theme=system] :is(button:hover){color:var(--accent)}
html[data-theme=system] :is(.filters input,.filters select,.analysis-controls select,.resultbar select,.ranking-panel select,.attention-panel select,input,select,textarea){background:var(--vi-panel);color:var(--ink);border-color:var(--vi-line-strong)}
html[data-theme=system] :is(aside){background:var(--vi-raised);color:var(--ink)}
html[data-theme=system] :is(.allocation-row.selected,.quality-pill,.quality-tabs button){background:#2c3737;color:var(--ink)}
html[data-theme=system] :is(.gain,.detail-values strong.gain){color:var(--vi-gain)}
html[data-theme=system] :is(.loss,.detail-values strong.loss){color:var(--vi-loss)}
html[data-theme=system] :is(.favorite){color:var(--vi-ink)}
html[data-theme=system] :is(.upload,.photo){background:#202b2c}
html[data-theme=system] :is(.detail-header,.card-dialog){background:var(--paper);color:var(--ink)}
html[data-theme=system] :is(.card-dialog::backdrop){background:#050b0dd9}
}
@media(max-width:700px){.collector-app>header>div:first-child{flex:1}}.catalog-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}.catalog-ranking table{min-width:620px}.wish-row{display:flex;align-items:center;gap:15px}.wish-row>div{flex:1;min-width:0}.wish-row h4{margin:0}.wish-row p{margin:5px 0;font-size:13px}.wish-row strong{font-size:14px}.wish-modal{position:fixed;inset:0;background:var(--gd-071116bc,var(--vi-overlay));z-index:20;display:flex;justify-content:center;align-items:center;padding:18px}.wish-modal form{background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:24px;max-width:540px;width:100%;max-height:95dvh;overflow:auto;border-radius:var(--kd-radius-ui)}.wish-modal textarea{height:65px}.counterpart-note{font-size:11px;line-height:1.5}.counterpart-note p{font-size:11px}.counterpart-note button{font-size:11px;margin-top:10px}.filters{grid-template-columns:2fr repeat(5,1fr)}
@media(max-width:1000px){.filters{grid-template-columns:repeat(3,1fr)}.filters input{grid-column:1/-1}}
@media(max-width:600px){.encyclopedia>.sectionhead{display:block}.wish-row{flex-wrap:wrap}.wish-row>div{flex-basis:100%}.filters{grid-template-columns:1fr 1fr}.catalog-meta{gap:6px 14px}}

.card-visual,.catalog-image{aspect-ratio:63/88;padding:12px;background:var(--panel);width:100%}.card-visual img,.catalog-image img{object-fit:contain;width:100%;height:100%;filter:none}.card-visual.large{max-height:560px}.image-kind{font-size:9px}.card-dialog .evidence-photos img{max-height:520px}@media(max-width:700px){.detail-navigation small{display:none}}

.wish-modal{inset:auto;background:transparent;border:0;margin:auto;max-width:580px;width:calc(100% - 20px);max-height:96dvh;padding:0}.wish-modal:not([open]){display:none}.wish-modal::backdrop{background:var(--gd-071116bc,var(--vi-overlay))}.wish-modal form{max-height:94dvh}

.series-product-image{display:flex;width:100%;height:145px;flex-direction:column;align-items:center;justify-content:center;background:var(--paper);gap:8px;padding:12px;border:1px solid var(--line);box-sizing:border-box}.series-product-image img{width:100%;height:110px;object-fit:contain}.series-product-image small{font-size:10px;color:var(--muted)}.series-product-image>span{font-size:32px;color:var(--muted)}.series-release{display:block;font-size:13px;line-height:1.5}.series-release small{display:block;color:var(--muted);font-size:11px}.series-evidence{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;font-size:12px}.series-evidence>small:last-child{flex-basis:100%}

/* Collection workspace: readable type, cool surfaces, aligned controls. */
:root{--paper:#edf2f8;--panel:#f8fbff;--ink:#13243c;--muted:#536780;--line:#ccd8e8;--accent:#27629a}
main.collector-app{max-width:1680px;padding:28px 4.5vw 70px;font-size:16px}.collector-app h2{font-family:inherit;letter-spacing:-.025em}.collector-app>nav{gap:28px;padding:15px 0;background:var(--paper)}.collector-app>nav :is(button,a){font-size:16px;font-weight:500;white-space:nowrap}.collector-app button.primary,.collector-app button[type=submit]{background:var(--accent);border-color:var(--accent);color:var(--paper)}.collection-card :is(.purchase-line,.series-label,.cert,.card-pnl){font-size:13px;line-height:1.7}.card-visual{border:1px solid var(--line);border-radius:var(--kd-radius-ui);padding:12px}.card-visual img{filter:none!important}.image-kind{font-size:11px;background:var(--panel)!important;color:var(--muted)!important}.collector-app :is(.card-visual,.collection-card .art-button,.detail-content .card-visual.large,.archive-note,.value-chart,.batch-summary>div,.scope-note,.batch-sound,.quote-columns>div,.quote-grid>div,.quote-source,.quote-comparison article){background:var(--panel)!important;color:var(--ink)}.collector-app :is(input,select,textarea){background:var(--panel)!important;color:var(--ink)!important;border-color:var(--vi-line-strong)!important}.artwork-queue{max-height:520px;overflow:auto;margin-top:20px}.artwork-queue details{border-top:1px solid var(--line);padding:12px 0}.artwork-queue summary{font-size:14px}.artwork-queue code{display:block;overflow-wrap:anywhere;font-size:11px;margin:10px 0}.artwork-maintenance p{max-width:75em}
@media(max-width:700px){main.collector-app{padding:20px 18px 50px}.collector-app>nav{gap:0;justify-content:space-between;flex-wrap:wrap;position:static;padding:12px 0;row-gap:10px}.collector-app>nav>a{margin-left:auto;font-size:14px;padding:9px}.card-visual{padding:6px}.collection-card :is(.purchase-line,.series-label,.cert,.card-pnl){font-size:12px}.image-kind{font-size:9px}.artwork-queue summary{overflow-wrap:anywhere}}

html[data-theme] .collector-app button.primary,html[data-theme] .collector-app button[type=submit]{background:var(--accent);border-color:var(--accent);color:var(--paper)}
/* Equal gallery metadata tracks keep every row divider aligned, including wrapped series names. */
.ledger-amount,.quote-comparison .quote-amount{display:block;font-size:clamp(22px,2vw,28px);font-weight:650;line-height:1.3;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.quote-comparison .two>div{min-width:0;border-top:1px solid var(--line);padding-top:16px}.quote-comparison .two h4{margin:0 0 12px}.quote-comparison .two p,.quote-comparison .estimate-reference{font-size:14px;color:var(--muted)}
.card-history{border-top:1px solid var(--line);padding:24px 0}.card-history label{max-width:360px}.card-history p{overflow-wrap:anywhere;font-size:14px}.history-empty,.history-limit{padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:var(--kd-radius-ui)}
@media(max-width:600px){.quote-comparison .two{grid-template-columns:1fr}.ledger-amount,.quote-comparison .quote-amount{font-size:24px}}

.tile-cost small{display:block;color:var(--muted);font-size:12px;line-height:1.55}.tile-cost .ledger-amount{font-size:22px;margin:5px 0}.purchase-context{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:13px;line-height:1.7}.fx-rates{display:flex;flex-wrap:wrap;gap:12px 24px;font-variant-numeric:tabular-nums}.overview-layout{display:flex;flex-direction:column;gap:28px}.overview-layout>section,.overview-layout>.analytics-columns{margin:0}@media(max-width:600px){.overview-layout{gap:22px}.fx-rates{display:grid;grid-template-columns:1fr 1fr;font-size:13px}}.collector-app>nav{margin:0;padding:6px 0;gap:12px;min-height:56px}.collector-app>nav button,.collector-app>nav a{min-height:44px}.collection-browser>.sectionhead{margin:10px 0 16px}.collection-browser .sectionhead p{margin:6px 0}.collection-search input{width:100%;min-height:44px;margin:0}.filter-disclosure{margin:8px 0}.filter-disclosure>summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:600}.filter-disclosure .filters{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0}.filter-disclosure select,.filter-disclosure button{min-height:44px}.advanced-filters{margin:0}.advanced-filters summary{min-height:44px;padding:12px 0}.detail-header button,.detail-navigation button{min-width:44px;min-height:44px}.detail-header,.detail-navigation{gap:8px}
@media(max-width:760px){.collector-app>nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:10px;overflow-x:auto;white-space:nowrap;padding:4px 0}.filter-disclosure .filters{grid-template-columns:1fr 1fr}.detail-header{flex-wrap:wrap}.detail-navigation{margin-left:auto}}.collection-browser .filter-disclosure,.collection-browser .advanced-filters{padding:0;margin:0;border:0}.collection-browser .filter-disclosure>summary,.collection-browser .advanced-filters>summary{line-height:20px;padding:12px 0}.detail-header button:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}
.collector-app>.mobile-app-nav{display:none}.mobile-app-nav button:focus-visible{outline: 2px solid var(--vi-marker);outline-offset:-3px}
@media(max-width:760px){html{scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom))}.collector-app{padding:env(safe-area-inset-top,0px) 16px calc(100px + env(safe-area-inset-bottom));min-height:100dvh}.collector-app>nav:not(.mobile-app-nav){display:none}.collector-app>.mobile-app-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:var(--kd-z-tabbar);bottom:0;left:0;right:0;width:100%;margin:0;border:0;border-top:1px solid var(--line);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:var(--panel);box-shadow:0 -5px 25px #0002;gap:3px;overflow:visible;min-height:66px}.collector-app>.mobile-app-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:50px;min-width:0;padding:4px 0;border:0;border-radius:var(--kd-radius-ui);background:transparent;color:var(--muted);font-size:11px;line-height:1.15}.collector-app>.mobile-app-nav button[aria-current=page]{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--ink)}.collector-app input,.collector-app select,.collector-app textarea{font-size:16px}.collector-app form .two,.collector-app form .fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.collector-app form input,.collector-app form select{min-height:48px}.collector-app form label{margin:0}.collector-app form .sectionhead{align-items:start;gap:12px}.collector-app form .sectionhead button{min-height:44px;flex:none}.collector-app form .upload{padding:16px;min-height:70px}.collector-app form textarea{min-height:100px}.collector-app form button[type=submit]{min-height:50px;width:100%;margin-top:12px}.card-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}.card-dialog .detail-header{position:sticky;top:0;z-index:2;background:var(--panel);padding:calc(8px + env(safe-area-inset-top)) 12px 8px}.card-dialog input,.card-dialog select{font-size:16px;min-height:44px}.collection-browser .sectionhead h2{font-size:25px}.collection-browser .sectionhead p{font-size:14px}.card-dialog .detail-header>small{flex-basis:100%;font-size:12px}.card-dialog .detail-navigation{margin-left:0}.card-dialog .detail-header>button:last-child{margin-left:auto}}
@media(max-width:760px){.collector-app{--vi-tabbar-h:calc(66px + env(safe-area-inset-bottom))}.collector-app>.mobile-app-nav{top:auto;height:var(--vi-tabbar-h);min-height:66px;box-sizing:border-box;align-items:stretch}.collector-app>.mobile-app-nav button{height:50px}.collector-app>.mobile-app-nav button span{font-size:11px}}
@media(max-width:760px){main.collector-app{padding:max(8px,env(safe-area-inset-top)) 16px calc(100px + env(safe-area-inset-bottom))}.financial-strip strong{font-size:20px;white-space:nowrap}}@media(max-width:760px){.collector-app>div>.financial-strip{display:none}.collection-browser>.sectionhead{margin:6px 0 12px}.collection-browser>.sectionhead .eyebrow,.collection-browser>.sectionhead p{display:none}.collection-browser>.filter-disclosure,.collection-browser>.advanced-filters{display:inline-block;width:50%;vertical-align:top}.collection-browser>.filter-disclosure[open],.collection-browser>.advanced-filters[open]{display:block;width:100%}.collection-browser .advanced-filters summary{font-size:12px}.card-dialog .art-credit{padding:0;margin:0}.card-dialog .art-credit summary{padding:10px 0;min-height:44px;font-size:12px}}
/* Each Home metric owns a full mobile row. Flex avoids legacy grid-column spans creating implicit tracks. */.chrome-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--line);flex:none;background:var(--panel)}.chrome-panel-heading h2{font-size:18px;line-height:1.4;margin:0}.chrome-panel-close{width:44px;height:44px;min-width:44px;padding:10px;display:grid;place-items:center}.chrome-panel-body{padding:16px;overflow:auto;overscroll-behavior:contain;min-height:0}.chrome-panel-body>a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:760px){.chrome-panel-body{padding-bottom:max(16px,env(safe-area-inset-bottom))}}.cost-context{display:block;color:var(--accent);font-size:12px;line-height:20px}
@media(max-width:760px){.collector-app>.mobile-app-nav button{font-size:12px}}.overview-layout{gap:20px}
@media(max-width:760px){.overview-layout{gap:16px}}
/* Shared card metadata follows its content, not obsolete reserved row heights. */

/* Align equivalent metadata using only the actual tallest content in each visual row. */
@supports(grid-template-rows:subgrid){
.card-grid,.recent-grid{grid-auto-rows:auto;row-gap:12px;align-items:stretch}
}
.brand-wordmark>span{display:block;width:100%;height:100%;background:var(--ink);mask:url('/brand/kakura-wordmark.svg') left center/contain no-repeat;-webkit-mask:url('/brand/kakura-wordmark.svg') left center/contain no-repeat}
.brand-k{display:inline-block;width:20px;height:24px;background:currentColor;mask:url('/brand/kakura-mark-small.svg') center/contain no-repeat;-webkit-mask:url('/brand/kakura-mark-small.svg') center/contain no-repeat}
@media(max-width:760px){.brand-wordmark>span{mask-image:url('/brand/kakura-wordmark.svg');-webkit-mask-image:url('/brand/kakura-wordmark.svg')}}
/* Honest portfolio reconciliation and date-led encyclopedia. */
.provisional-summary{display:grid;grid-template-columns:1fr auto;gap:10px 24px;margin:16px 0 24px;padding:22px;border:1px solid var(--line);border-radius:var(--kd-radius-ui);background:var(--panel)}
.provisional-summary h2{font-size:19px;margin:5px 0}.provisional-summary>strong{font-size:28px;align-self:center}.provisional-summary p,.provisional-summary>small{grid-column:1/-1;margin:0;color:var(--muted)}
.artwork-provenance code,.artwork-queue code{overflow-wrap:anywhere}.artwork-provenance p{font-size:13px;color:var(--muted)}

@media(max-width:760px){.provisional-summary{grid-template-columns:1fr;padding:16px}.provisional-summary>strong{font-size:26px}}

/* Behavioral home-link contract: preserve with VI token changes. */
.brand-home{display:block;min-height:44px;text-decoration:none;color:inherit;cursor:pointer;border-radius:var(--kd-radius-ui)}.brand-home:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}

.management-navigation nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0;margin:0 0 16px;border:0}

/* The 關於 link on the about page is a link to the public /about page, not a button. */
.about-brand-link{box-sizing:border-box;border:1px solid var(--line);border-radius:var(--kd-radius-ui);background:transparent;color:var(--ink);font:inherit;text-decoration:none}
.about-brand-link{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;color:var(--accent)}
.collector-app :is(.brand-footer a,.about-brand-link):hover{border-color:var(--accent);color:var(--accent)}

/* Self-hosted OFL variable fonts; unicode subsets are disjoint. See public/fonts/kardora/NOTICE.txt. */
@font-face { font-family: 'Kardora Space'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/kardora/space-grotesk-variable.woff2') format('woff2'); unicode-range: U+D,U+20-7E,U+A0-180,U+18F,U+192,U+1A0-1A1,U+1AF-1B0,U+1C4-1DC,U+1E6-1E7,U+1EA-1EB,U+1FA-21B,U+22A-22D,U+230-233,U+237,U+243,U+251,U+259,U+2B9-2BC,U+2BE-2BF,U+2C6-2CC,U+2D8-2DD,U+300-304,U+306-30C,U+30F,U+311-312,U+31B,U+323-324,U+326-328,U+32E,U+331,U+335-338,U+394,U+3A9,U+3C0,U+E3F,U+1E08-1E09,U+1E0C-1E0F,U+1E14-1E17,U+1E1C-1E1D,U+1E20-1E21,U+1E24-1E25,U+1E2A-1E2B,U+1E2E-1E2F,U+1E36-1E3B,U+1E42-1E49,U+1E4C-1E53,U+1E5A-1E69,U+1E6C-1E6F,U+1E78-1E7B,U+1E80-1E85,U+1E8E-1E8F,U+1E92-1E93,U+1E97,U+1E9E,U+1EA0-1EF9,U+2007-200B,U+2010,U+2012-2015,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2032-2033,U+2039-203A,U+2044,U+2052,U+2070-2071,U+2074-2079,U+207D-2089,U+208D-208E,U+2094,U+20A1,U+20A3-20A4,U+20A6-20A7,U+20A9,U+20AB-20AD,U+20B1-20B2,U+20B5,U+20B9-20BA,U+20BC-20BD,U+20BF,U+2113,U+2116,U+2120,U+2122,U+2126,U+212E,U+2153-2154,U+215B-215E,U+2190-2199,U+2202,U+2205-2206,U+220F,U+2211-2212,U+2215,U+2219-221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+25CA,U+27E8-27E9,U+E132-E133,U+FB00-FB04; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/kardora/noto-sans-tc-00000.woff2') format('woff2'); unicode-range: U+20-7E,U+A0-103,U+110-113,U+11A-11B,U+128-12B,U+143-144,U+147-148,U+14C-14F,U+152-153,U+168-16D,U+192,U+1A0-1A1,U+1AF-1B0,U+1CD-1DC,U+1F8-1F9,U+251,U+261,U+2BB,U+2C7,U+2C9-2CB,U+2D9,U+2EA-2EB,U+300-301,U+304,U+307,U+30C,U+391-3A1,U+3A3-3A9,U+3B1-3C9; }

/* KAKURA VI v1 — load after globals.css. Presentation only; no financial semantics. */
@font-face {
  font-family: 'Kardora Latin Fallback';
  src: local('Arial');
  size-adjust: 93.72%;
  ascent-override: 105%;
  descent-override: 31.16%;
  line-gap-override: 0%;
}
/* Metric-matched fallback for the TC web font (docs/design/design-system-2026-10.md 2.1), the CJK twin of the Latin face above: until the Noto Sans TC UI subset arrives
   (font-display: swap) zh text is drawn with the system CJK face, resized and re-spaced so a line has the same box as with Noto Sans TC and the swap moves nothing.
   Measured in headless Chrome 155 (macOS) in the DOM, 40 UI strings of Han characters (app/ui-en.json keys): Noto Sans TC advances exactly 1.000 em at every size, ascent 1.160,
   descent 0.288. PingFang TC advances 1.021 em at 12px, 1.020 at 13-16px, 1.019 at 20px, 1.013 at 24px, 1.009 at 32px (it is optically sized: canvas measureText at 1000px gives
   1.004, which is NOT what the UI draws), ascent 1.06, descent 0.34. size-adjust = 1 / 1.02 = 98% (exact at 13-16px, the body sizes). The overrides are the TARGET metrics divided by
   size-adjust (the percentages are applied before size-adjust, as in the Latin face): 1.160 / .98 = 118.37%, .288 / .98 = 29.39%; they are absolute, so they hold on whatever font local() resolves.
   Microsoft JhengHei and Noto Sans CJK TC advance 1 em (not measurable on this machine), so their faces use size-adjust 100% and 116% / 28.8%.
   local('PingFang TC') alone does NOT resolve in Chrome (local() matches a full or PostScript name, not a family), hence the Regular / Medium / Semibold names.
   Both sets declare identical weight ranges: a face whose fonts are not installed is skipped (checked in both orders), so each platform uses only its own. */
@font-face { font-family: 'Kardora TC Fallback'; font-weight: 100 400; src: local('PingFangTC-Regular'), local('PingFang TC Regular'); size-adjust: 98%; ascent-override: 118.37%; descent-override: 29.39%; line-gap-override: 0%; }
@font-face { font-family: 'Kardora TC Fallback'; font-weight: 500; src: local('PingFangTC-Medium'), local('PingFang TC Medium'); size-adjust: 98%; ascent-override: 118.37%; descent-override: 29.39%; line-gap-override: 0%; }
@font-face { font-family: 'Kardora TC Fallback'; font-weight: 600 900; src: local('PingFangTC-Semibold'), local('PingFang TC Semibold'); size-adjust: 98%; ascent-override: 118.37%; descent-override: 29.39%; line-gap-override: 0%; }
@font-face { font-family: 'Kardora TC Fallback'; font-weight: 100 400; src: local('Microsoft JhengHei'), local('MicrosoftJhengHei'), local('Noto Sans CJK TC Regular'), local('NotoSansCJKtc-Regular'); size-adjust: 100%; ascent-override: 116%; descent-override: 28.8%; line-gap-override: 0%; }
@font-face { font-family: 'Kardora TC Fallback'; font-weight: 500; src: local('Microsoft JhengHei'), local('MicrosoftJhengHei'), local('Noto Sans CJK TC Medium'), local('NotoSansCJKtc-Medium'); size-adjust: 100%; ascent-override: 116%; descent-override: 28.8%; line-gap-override: 0%; }
@font-face { font-family: 'Kardora TC Fallback'; font-weight: 600 900; src: local('Microsoft JhengHei Bold'), local('MicrosoftJhengHei-Bold'), local('Noto Sans CJK TC Bold'), local('NotoSansCJKtc-Bold'); size-adjust: 100%; ascent-override: 116%; descent-override: 28.8%; line-gap-override: 0%; }
:root {
  --vi-font: 'Kardora Space', 'Kardora Latin Fallback', 'Kardora TC', 'Kardora TC Fallback', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --vi-space-1: .25rem; --vi-space-2: .5rem; --vi-space-3: .75rem; --vi-space-4: 1rem;
  --vi-space-5: 1.25rem; --vi-space-6: 1.5rem; --vi-space-8: 2rem; --vi-space-12: 3rem;
  --vi-type-caption: .75rem; --vi-type-meta: .8125rem; --vi-type-control: .9375rem;
  --vi-type-body: 1rem; --vi-type-section: 1.25rem; --vi-type-title: 2rem;
  --vi-line-body: 1.65; --vi-line-ui: 1.5; --vi-line-title: 1.25;
  --vi-weight-body: 400; --vi-weight-label: 500; --vi-weight-strong: 600;
  --vi-type-sm: .8125rem;
  --vi-type-xs: .75rem; --vi-type-md: .9375rem; --vi-type-base: 1rem; --vi-type-lg: 1.25rem; --vi-type-2xl: 2rem; /* R3b: the next steps (the 清單, header tabs and sheets use them instead of the legacy caption / control / body / title aliases) */
  --vi-border: 1px; --vi-target: 44px; --vi-control-target: var(--vi-target); --vi-icon: 1.125rem;
  /* THE button size/spacing token set (q3 glob-047; enforced by tests/q3-button-tokens.test.tsx). Defined here ONCE; chrome and shared components read it, no page sheet re-assigns it.
     h = the 44px target (min block size of a button, and the side of an icon-only box); w = min inline size; pad-x = inline padding of a .kd-btn; gap = icon-to-label gap;
     pad-x-tab / -tab-tight = the desktop header tab inset (px on purpose: the header is a fixed 56px and must not grow with root font size); icon = the glyph size inside an icon button. */
  --kd-btn-h: var(--vi-target); --kd-btn-w: var(--vi-target); --kd-btn-pad-x: var(--vi-space-4); --kd-btn-gap: var(--vi-space-2);
  --kd-btn-pad-x-tab: 16px; --kd-btn-pad-x-tab-tight: 12px; --kd-btn-icon: 20px;
  /* Palette: MIRROR of app/design/tokens.css (the source, loaded first). The values below are identical; tests/design-lint.test.ts fails if they differ.
     They stay here only because tests/owner-hd-art-panel.test.tsx reads the legacy palette names from this file; delete with that test's update at M7. */
  --vi-paper: #eef1f5; --vi-panel: #f9fafc; --vi-raised: #e3e8ef;
  --vi-ink: #1e2836; --vi-muted: #5e6978; --vi-line: #d9dee6; --vi-line-strong: #737d8b; --vi-accent: var(--vi-ink);
  --vi-gain: #1f6a3f; --vi-loss: #a0303a; --vi-warning: #7a5214;
  --vi-shadow: 0 .5rem 1.5rem #1e283616, 0 .125rem .375rem #1e28360c;
  --vi-overlay: #1e283666; --vi-series-value: var(--vi-ink); --vi-series-cost: var(--vi-line-strong);
}
:root[data-theme='dark'] {
  --vi-paper: #10171f; --vi-panel: #17202a; --vi-raised: #202b37;
  --vi-ink: #f2f3f5; --vi-muted: #aeb4bc; --vi-line: #2f3b48; --vi-line-strong: #6b7a8c;
  --vi-gain: #8fcfa6; --vi-loss: #f08ca0; --vi-warning: #e3c387;
  --vi-shadow: 0 .75rem 2rem #0005, 0 .125rem .375rem #0003;
  --vi-overlay: #030812aa;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) {
    --vi-paper: #10171f; --vi-panel: #17202a; --vi-raised: #202b37;
    --vi-ink: #f2f3f5; --vi-muted: #aeb4bc; --vi-line: #2f3b48; --vi-line-strong: #6b7a8c;
    --vi-gain: #8fcfa6; --vi-loss: #f08ca0; --vi-warning: #e3c387;
    --vi-shadow: 0 .75rem 2rem #0005, 0 .125rem .375rem #0003;
    --vi-overlay: #030812aa;
  }
}
/* Preserve existing variable contract, including explicit light/dark selectors. */
:root, :root[data-theme='light'], :root[data-theme='dark'], :root[data-theme='system'] {
  --paper: var(--vi-paper); --panel: var(--vi-panel); --ink: var(--vi-ink);
  --muted: var(--vi-muted); --line: var(--vi-line); --accent: var(--vi-accent);
  --gold: var(--vi-accent);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, .collector-app { font-family: var(--vi-font); font-size: var(--vi-type-body); line-height: var(--vi-line-body); font-synthesis: none; font-optical-sizing: auto; }
.collector-app :is(h1,h2,h3,h4,button,input,select,textarea),
.collector-app :is(.overview-metrics,.editorial-ledger,.financial-strip,.snapshot-inspect,.card-bottom,.detail-values,.quote-source) strong {
  font-family: var(--vi-font);
}
.collector-app :is(h2,h3,h4) { font-weight: var(--vi-weight-strong); letter-spacing: 0; line-height: var(--vi-line-title); }
.collector-app h3.cd-fold-t { letter-spacing: -.015em; }   /* a fold row title shares a 360 px summary with a shrinking meta span: untracking it would take 1 px from the meta text */
.collector-app h2 { font-size: var(--vi-type-section); }
.collector-app :is(.analysis-heading,.collection-browser>.sectionhead) h2 { font-size: var(--vi-type-title); }
.collector-app :is(p,small,.muted) { color: var(--muted); }
.collector-app p { line-height: var(--vi-line-body); }
.collector-app :is(input,select,textarea,button) { font-family: var(--vi-font); font-size: var(--vi-type-control); line-height: var(--vi-line-ui); border-radius: var(--kd-radius-ui); }
.collector-app button { border-color: var(--line); }
.collector-app :is(input,select,textarea) { background: var(--panel); color: var(--ink); border-color: var(--vi-line-strong); }
.collector-app :is(button,input,select) { min-height: var(--vi-control-target); }
.collector-app button { font-weight: var(--vi-weight-label); }
.collector-app button:disabled { opacity: .55; }
.collector-app :is(button.primary,button[type='submit'],.nav-add) { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.collector-app :is(button,a,input,select,textarea,summary):focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app :is(button,a):hover { color: var(--accent); }
.collector-app :is(button.primary,button[type='submit'],.nav-add):hover { color: var(--paper); filter: brightness(1.06); }
.collector-app :is(.chrome-panel-close,.detail-navigation button)>svg { flex-shrink: 0; stroke-width: 1.75; }
.collector-app :is(.detail-navigation button)>svg { width: var(--vi-icon); height: var(--vi-icon); }
/* The integrator owns the Home action; style any semantic button/link wrapper without replacing it. */
.collector-app .brand-lockup :is(a,button), .collector-app .brand-home { display: inline-flex; align-items: center; min-block-size: var(--vi-control-target); padding: .375rem 0; background: transparent; border: 0; border-radius: var(--kd-radius-ui); color: var(--ink); }
.collector-app .brand-lockup :is(a,button):focus-visible, .collector-app .brand-home:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app :is(.chrome-panel,.card-dialog,.sale-form,.value-chart,.quote-source) { border-radius: var(--kd-radius-ui); border-color: var(--line); }
.collector-app .chrome-panel-body { line-height: var(--vi-line-body); }
.collector-app .chrome-panel-heading h2 { font-size: 1.125rem; }
.collector-app .card-dialog::backdrop { background: var(--vi-overlay); }
/* Tabular figures; do not alter signs, data, P/L labels or currency order. */
.collector-app :is(.ledger-amount,.original-cost,.overview-metrics strong,.editorial-ledger strong,.snapshot-inspect strong,.detail-values strong,.card-bottom strong,.financial-strip strong,.pnl-summary>strong,.provisional-difference>strong,.card-pnl,.identity-cert,.chart-scale,.fx-rates) {
  font-family: var(--vi-font); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.015em;
}
.collector-app :is(.tile-cost .ledger-amount,.card-bottom>strong) { font-size: 1.375rem; font-weight: 600; line-height: 1.4; }
.collector-app :is(.original-cost,.purchase-context,.purchase-source,.series-label,.card-pnl) { font-size: var(--vi-type-meta); line-height: var(--vi-line-ui); }
.collector-app :is(.card-title,.detail-content h2,.focus-name) { overflow-wrap: anywhere; word-break: normal; }
.collector-app .collection-card :is(.tile-cost,.purchase-context,.purchase-source,.series-label,.card-pnl,.card-badges) { min-height: 0; height: auto; }
.collector-app .gain, .collector-app .detail-values strong.gain { color: var(--vi-gain); }
.collector-app .loss, .collector-app .detail-values strong.loss { color: var(--vi-loss); }
/* Keep indivisible financial strings available at high text enlargement, not clipped or split into digits. */
.collector-app :is(.ledger-amount,.overview-metrics strong,.editorial-ledger strong,.snapshot-inspect strong,.card-bottom>strong,.detail-values strong,.pnl-summary>strong,.provisional-difference>strong) {
  display: block; max-inline-size: 100%; min-inline-size: 0; white-space: nowrap; overflow-wrap: normal; word-break: normal;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.collector-app :is(.original-cost,.purchase-source,.series-label,.quote-comparison p) { overflow-wrap: anywhere; }
.collector-app :is(.tile-cost,.detail-values>div,.editorial-ledger>div,.snapshot-inspect>span) { min-inline-size: 0; }
.collector-app .image-kind { background: var(--panel); color: var(--muted); font-size: var(--vi-type-xs); letter-spacing: 0; }
@media(max-width:760px) {
  .collector-app :is(.analysis-heading,.collection-browser>.sectionhead) h2 { font-size: 1.75rem; }
  .collector-app .mobile-app-nav button { font-size: .75rem; min-height: 3rem; padding: .375rem .125rem; }
}
@media(prefers-reduced-motion:reduce) {
  .collector-app *, .collector-app *::before, .collector-app *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; animation-duration: .01ms!important; }
}

/* KAKURA VI v2 tokens and building blocks (ported from docs/design/vi-v2/tokens.css; derivation in docs/design/vi-v2/analysis.md).
   Load after vi-tokens.css. Reads --vi-* only; adds --kd-* names and .kd-* classes. Presentation only: no financial semantics, no data. */


:root {
  /* ---- 1. Angles (measured on the mark; analysis.md section 2) ----
     The three slabs share one long-edge angle of 32 deg off horizontal (31.0 to 36.8 measured, median 32).
     tan(32 deg) = 0.625 = 5/8, so the slope is exactly 5 units across per 8 up: usable as a pixel ratio.
     The wordmark A flanks lean 31.7 deg off vertical, the same angle turned 90 deg, so the A peak is 64 deg. */
  --kd-slant: 32deg;
  --kd-slope: 0.625;            /* tan(32deg): rise per unit of run on a slab edge */
  --kd-slant-steep: 45deg;      /* the K leg; reserved for one accent per screen at most */
  --kd-peak: 64deg;             /* apex angle of the A peak (2 x 32) */
  --kd-peak-ratio: 1.25;        /* triangle base / height = 2 x tan(32deg) */

  /* ---- 2. Radii (outer corner r is about 3.8% of the mark width; 38 of 955) ----
     Concave corners facing a channel are larger (about 1.5x). Cut ends (diagonal slab ends) stay sharp. */
  --kd-radius-ui: 6px;          /* the one rounded-rect radius: inputs, buttons, chips, badges, popovers, panels, dialogs */
  --kd-radius-round: 50%;       /* genuine circles only: avatars, dots, radio dots, spinners, icon-only round buttons */
  --kd-radius-card: 4.8% / 3.5%;/* real card corner (3 mm on a 63 x 88 mm card); used to clip art, never to frame it */

  /* ---- 3. Channel (the even negative gap between slabs; 30 to 39 px of 955, mean 3.6%) ---- */
  --kd-gap: 4px;                /* default channel: dividers, segmented bars, shard stacks */
  --kd-gap-md: 6px;
  --kd-gap-lg: 8px;
  --kd-rule: 4px;               /* thickness of a channel divider */

  /* ---- 4. Shard chip (the slab turned on its side: horizontal edges, 32 deg ends) ---- */
  --kd-chip-h: 26px;
  --kd-chip-run: 16px;          /* chip-h x slope; total lean across the chip height */
  --kd-chip-pad: 18px;          /* inline padding that keeps text clear of the lean (run / 2 + 10) */

  /* ---- 5. Brand tones: the mark has three pieces, so the system has three tones, all from existing colours ---- */
  --kd-tone-1: var(--vi-accent);
  --kd-tone-2: color-mix(in srgb, var(--vi-accent) 58%, var(--vi-paper));
  --kd-tone-3: color-mix(in srgb, var(--vi-accent) 30%, var(--vi-paper));
  --kd-shard-fill: var(--vi-ink);            /* top grade: solid ink shard; AA by construction (ink on paper) */
  --kd-shard-on-fill: var(--vi-paper);
  --kd-shard-soft: var(--vi-raised);         /* secondary shard: raised surface, ink text */
  --kd-shard-line: var(--vi-line);

  /* ---- 6. Patterns (32 deg hairlines; tile 32 x 20 so the line runs exactly corner to corner, slope 20/32 = 0.625) ----
     Used as a mask so the colour follows the theme. Keep alpha at or below 0.07. */
  --kd-hatch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='20' viewBox='0 0 32 20'%3E%3Cpath d='M-2 22 34-2M-2 2 34-22M-2 42 34 18' stroke='%23000' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  --kd-hatch-tile: 32px 20px;
  --kd-hatch-ink: var(--vi-ink);
  --kd-hatch-alpha: 0.055;
  --kd-hatch-alpha-strong: 0.12;             /* chart area fill only */

  /* ---- 7. Motion ---- */
  --kd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --kd-dur-fast: var(--kd-dur-1);     /* alias: 120ms (scale in design/tokens.css) */
  --kd-dur-base: 220ms;               /* legacy value, between scale steps 2 and 3; kept so nothing moves */
  --kd-dur-sheet: var(--kd-dur-3);    /* alias: 240ms; sheets and dialogs */
  --kd-dur-assemble: 560ms;     /* the K assembling; hard ceiling 600ms */
  --kd-stagger: 70ms;
}

/* ---------- Shard chip ---------- */
.kd-shard {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--kd-chip-h); padding: 0 var(--kd-chip-pad);
  font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--vi-ink);
}
.kd-shard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--kd-radius-ui);
  background: var(--kd-shard-soft); box-shadow: inset 0 0 0 1px var(--kd-shard-line);
  transform: skewX(calc(var(--kd-slant) * -1));
}
.kd-shard.is-solid { color: var(--kd-shard-on-fill); }
.kd-shard.is-solid::before { background: var(--kd-shard-fill); box-shadow: none; }
.kd-shard.is-line::before { background: transparent; }
.kd-shard.is-ghost { color: var(--vi-muted); font-weight: 500; }
.kd-shard.is-ghost::before { background: transparent; box-shadow: none; }

/* ---------- Stack (three offset shards; empty and loading states only, never a frame around art) ---------- */
.kd-stack { position: relative; display: block; aspect-ratio: 1 / 1; width: var(--kd-stack-size, 96px); color: var(--vi-accent); }
.kd-stack > i {
  position: absolute; bottom: 8%; width: 24%; border-radius: var(--kd-radius-ui);
  background: var(--kd-tone-1); transform: skewY(calc(var(--kd-slant) * -1));
}
.kd-stack > i:nth-child(1) { left: 12%; height: 46%; background: var(--kd-tone-3); }
.kd-stack > i:nth-child(2) { left: 38%; height: 62%; background: var(--kd-tone-2); }
.kd-stack > i:nth-child(3) { left: 64%; height: 46%; background: var(--kd-tone-1); }

/* ---------- Channel divider (two segments split by the slanted gap) ---------- */
.kd-channel { display: flex; height: var(--kd-rule); gap: var(--kd-gap-md); color: var(--vi-line); margin-block: var(--vi-space-6, 1.5rem); }
.kd-channel::before, .kd-channel::after { content: ""; background: currentColor; }
.kd-channel::before { flex: 1; clip-path: polygon(0 0, 100% 0, calc(100% - var(--kd-rule) * var(--kd-slope)) 100%, 0 100%); border-radius: 0; }
.kd-channel::after { flex: 0 0 var(--kd-tail, 22%); clip-path: polygon(calc(var(--kd-rule) * var(--kd-slope)) 0, 100% 0, 100% 100%, 0 100%); opacity: 0.55; }

/* ---------- Gain / loss triangle (the A peak: 64 deg apex, flat base, sharp tip) ---------- */
.kd-tri {
  display: inline-block; width: 0.8em; height: 0.64em; background: currentColor; margin-inline-end: 0.3em;
  vertical-align: -0.02em; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.kd-tri.is-down { transform: scaleY(-1); vertical-align: 0.04em; }

/* ---------- Slanted bar (progress and allocation; end cut at 32 deg) ---------- */
.kd-bar { display: flex; gap: var(--kd-gap); height: 12px; }
.kd-bar > i { display: block; min-width: 6px; border-radius: var(--kd-radius-ui); transform-origin: left; clip-path: polygon(0 0, 100% 0, calc(100% - 12px * var(--kd-slope)) 100%, 0 100%); }
.kd-bar > i:last-child { clip-path: none; }

/* ---------- Texture (32 deg hairlines at very low contrast; add to any positioned container) ---------- */

/* ---------- Icons (Lucide-compatible sizing: 24 grid, 1.75 stroke, round joins) ---------- */

/* ---------- The K mark (inline SVG; colour follows the surrounding text colour) ---------- */
.kd-k { display: block; height: auto; color: inherit; }
.kd-k path { fill: currentColor; }

/* ---------- Brand motion: the three slabs assemble into the K ---------- */
@keyframes kd-assemble {
  from { opacity: 0; transform: translate(var(--kd-from-x), var(--kd-from-y)); }
  to { opacity: 1; transform: none; }
}
.kd-k-anim .k-left, .kd-k-anim .k-stem, .kd-k-anim .k-arm {
  animation: kd-assemble var(--kd-dur-assemble) var(--kd-ease) both;
}
/* each slab slides in along the 32 deg axis (dx : dy = 1 : 0.625), from different distances */
.kd-k-anim .k-left { --kd-from-x: -120px; --kd-from-y: 75px; animation-delay: 0ms; }
.kd-k-anim .k-stem { --kd-from-x: -80px; --kd-from-y: 50px; animation-delay: var(--kd-stagger); }
.kd-k-anim .k-arm { --kd-from-x: -160px; --kd-from-y: 100px; animation-delay: calc(var(--kd-stagger) * 2); }
/* every piece ends at 560ms: later pieces start later and run shorter */
.kd-k-anim .k-stem { animation-duration: calc(var(--kd-dur-assemble) - var(--kd-stagger)); }
.kd-k-anim .k-arm { animation-duration: calc(var(--kd-dur-assemble) - var(--kd-stagger) * 2); }

/* ---------- Loading skeleton (shard shimmer travels along the slab angle) ---------- */
@keyframes kd-sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.kd-skel {
  background: linear-gradient(calc(90deg - var(--kd-slant)), transparent 35%, color-mix(in srgb, var(--vi-ink) 9%, transparent) 50%, transparent 65%) 160% 0 / 250% 100% no-repeat, var(--vi-raised);
  animation: kd-sweep 1600ms linear infinite; border-radius: var(--kd-radius-ui);
}

@media (prefers-reduced-motion: reduce) {
  :root { --kd-dur-fast: 0ms; --kd-dur-base: 0ms; --kd-dur-sheet: 0ms; --kd-dur-assemble: 0ms; }
}

@media (prefers-reduced-motion: reduce) {
  .kd-k-anim .k-left, .kd-k-anim .k-stem, .kd-k-anim .k-arm { animation: none; }
  .kd-skel { animation: none; }
}

/* ======================================================================
   THEME-DEPENDENT SEAL / ART VALUES
   The mockup keyed dark on a page class. The app themes with :root[data-theme] (+ prefers-color-scheme for "system"),
   so every dark-only value is a custom property switched here, once, instead of a second selector per rule.
   ====================================================================== */
:root {
  --kd-psa10-glow: 0 0 0 0 transparent;                 /* no glow: seals are flat (R0). Kept because tests/brand-render.test.tsx pins the name. */
  --kd-tag-bg: #f4f8fd;                                 /* TAG seal: one flat clear-glass white, same in light and dark */
  --kd-tag-prism: #8ea8e8;                              /* TAG seal edge and stripe hue: one flat cool blue (was a prism gradient) */
  --kd-gold-accent: var(--kd-gold-deep);
  --kd-top-glow: color-mix(in srgb, var(--kd-gold-deep) 55%, transparent);
  --kd-top-ring: color-mix(in srgb, var(--kd-gold-deep) 16%, transparent);
  --kd-top-edge-line: color-mix(in srgb, var(--kd-gold-deep) 30%, transparent);
  --kd-art-shadow: rgba(24, 35, 48, 0.42);
  --kd-art-shadow-soft: rgba(24, 35, 48, 0.22);
  --kd-sheen-blend: soft-light;
}
:root[data-theme='dark'] {
  --kd-gold-accent: var(--kd-gold);
  --kd-top-glow: color-mix(in srgb, var(--kd-gold) 60%, transparent);
  --kd-top-ring: color-mix(in srgb, var(--kd-gold) 18%, transparent);
  --kd-top-edge-line: color-mix(in srgb, var(--kd-gold) 26%, transparent);
  --kd-art-shadow: rgba(0, 0, 0, 0.6);
  --kd-art-shadow-soft: rgba(0, 0, 0, 0.35);
  --kd-sheen-blend: screen;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) {
    --kd-gold-accent: var(--kd-gold);
    --kd-top-glow: color-mix(in srgb, var(--kd-gold) 60%, transparent);
    --kd-top-ring: color-mix(in srgb, var(--kd-gold) 18%, transparent);
    --kd-top-edge-line: color-mix(in srgb, var(--kd-gold) 26%, transparent);
    --kd-art-shadow: rgba(0, 0, 0, 0.6);
    --kd-art-shadow-soft: rgba(0, 0, 0, 0.35);
    --kd-sheen-blend: screen;
  }
}

/* Visually hidden text (direction words for the peak arrow, etc.) */
.kd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ======================================================================
   GRADE SEAL: KAKURA's own badge for a graded card, built on the shard (32 deg lean, ui radius).
   It names the grader in plain letters and never copies a grader's logo or label artwork.
   R0 (docs/design/redesign-2026-10/vi.md): FLAT. Every variant is one solid fill plus an optional 1px inset edge and a flat stripe: no gradient,
   no sheen or sweep, no prism, no glow, no drop shadow. Seals are physical-label colours, identical in light and dark.
   Each grader keeps one signature cue:  PSA = red stripe on a dark plate (PSA 10: wider stripe, gold numeral) | BGS = black / gold / silver | CGC = teal / blue | TAG = white with a cool edge.
   Text on every seal fill is above 4.5:1 (tests/vi-r0.test.ts computes the pairs).
   Placement is the page's job: under the art, hugging its bottom-left corner; never over the art.
   ====================================================================== */
:root {
  --kd-gold: #e6c36a; --kd-gold-deep: #b88a2c; --kd-gold-ink: #1d1608;
  --kd-silver: #cfd5de; --kd-silver-deep: #aab2bf; --kd-silver-ink: #10151c;
  --kd-psa-red: #cf3a2f;
  --kd-seal-ink-dark: #161a22;
  --kd-seal-bg-sgc: #1a2f2e; --kd-seal-bg-ace: #2b2a43; --kd-seal-bg-ars: #362c26; /* = color-mix(in srgb, stripe 16%, --kd-seal-ink-dark) */
}
.kd-seal {
  --h: 30px; --w: calc(var(--h) * 2 + 24px); --bar: 7px; --seal-ink: #fff; --seal-num: #fff;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; margin-block: 0;
  box-sizing: border-box; width: var(--w); height: var(--h); padding: 0 0 0 var(--bar);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1; white-space: nowrap; color: var(--seal-ink);
}
/* Square plate (Steven 11-20 「其實就是 d but no 票根的樣子」): a plain rectangle, square corners, thin outline, one width per size (68 / 76 / 84 / 116),
   a flat colour bar on the left edge as thick as the old slanted slash, grader left and grade right with the old gap. No skew, clip, mask or radius anywhere on it. */
.kd-seal::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 0; transform: none; pointer-events: none;
  background: var(--seal-bg); box-shadow: inset 0 0 0 1px var(--seal-edge, transparent);
}
.kd-seal .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bar); z-index: -1; border-radius: 0; background: var(--seal-stripe, transparent); transform: none; }
.kd-seal .by { opacity: 1; }
.kd-seal .n { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: proportional-nums lining-nums; color: var(--seal-num); }
.kd-seal .d { font-weight: 600; letter-spacing: 0.1em; color: var(--seal-d, var(--seal-ink)); }
/* TAG score (Steven 11-20 「keep it」): printed after the grade at the old size; a TAG plate with a score grows past the fixed width only as far as the score needs. */
.kd-seal.has-detail { width: auto; min-width: var(--w); padding-inline-end: 10px; gap: 6px; }
.kd-seal.is-xs { --h: 22px; --bar: 5px; gap: 4px; }
.kd-seal.is-xs .n { font-size: 0.9375rem; }
.kd-seal.is-sm { --h: 26px; --bar: 6px; gap: 5px; }
.kd-seal.is-sm .n { font-size: 1.0625rem; }
.kd-seal.is-md { --h: 30px; --bar: 7px; }
.kd-seal.is-lg { --h: 46px; --bar: 9px; gap: 8px; font-size: 0.8125rem; } .kd-seal.is-lg .n { font-size: 1.875rem; }

.kd-seal.is-psa9 { --seal-bg: #1d2430; --seal-edge: rgba(255, 255, 255, 0.1); --seal-stripe: var(--kd-psa-red); }
/* PSA 10 is the prize: same dark plate, a wider red bar and a gold numeral. PSA 9 and below: the standard bar, white numeral. */
.kd-seal.is-psa10 { --seal-bg: #151a23; --seal-edge: rgba(255, 214, 140, 0.4); --seal-num: var(--kd-gold); --seal-stripe: #d8352a; --bar: 11px; }
.kd-seal.is-psa10.is-xs { --bar: 8px; } .kd-seal.is-psa10.is-sm { --bar: 9px; } .kd-seal.is-psa10.is-lg { --bar: 14px; }
.kd-seal.is-psa10 .n { font-weight: 800; font-size: 1.375rem; }
.kd-seal.is-psa10.is-xs .n { font-size: 1.0625rem; } .kd-seal.is-psa10.is-sm .n { font-size: 1.1875rem; } .kd-seal.is-psa10.is-lg .n { font-size: 2.125rem; }
/* BGS 10 black label = a black plate, Pristine = a gold plate; neither prints a second word (the aria-label keeps it). */
.kd-seal.is-bgs-bl { --seal-bg: #07080b; --seal-edge: var(--kd-gold-deep); --seal-ink: var(--kd-gold); --seal-num: var(--kd-gold); --seal-stripe: var(--kd-gold-deep); }
.kd-seal.is-bgs-pri { --seal-bg: #d1a444; --seal-ink: var(--kd-gold-ink); --seal-num: var(--kd-gold-ink); --seal-edge: rgba(29, 22, 8, 0.25); --seal-stripe: var(--kd-gold-ink); }
.kd-seal.is-bgs-95 { --seal-bg: #b9c1cd; --seal-ink: var(--kd-silver-ink); --seal-num: var(--kd-silver-ink); --seal-edge: rgba(16, 21, 28, 0.2); --seal-stripe: var(--kd-silver-ink); }
.kd-seal.is-cgc-pri { --seal-bg: #0b6770; --seal-edge: rgba(184, 240, 230, 0.4); --seal-stripe: #4ee0c4; }
.kd-seal.is-cgc10 { --seal-bg: #23468f; --seal-edge: rgba(255, 255, 255, 0.16); --seal-stripe: #7fa8f0; }
/* TAG slabs are clear, so the TAG plate is white with a cool 1px edge and a cool bar (one flat hue, --kd-tag-prism), as thick as every other grader's. */
.kd-seal.is-tag { --seal-ink: var(--kd-seal-ink-dark); --seal-num: #0c1017; --seal-d: #2f3745; --seal-bg: var(--kd-tag-bg); --seal-edge: var(--kd-tag-prism); --seal-stripe: var(--kd-tag-prism); }
.kd-seal.is-sgc { --seal-stripe: #2f9e6b; --seal-bg: var(--kd-seal-bg-sgc); --seal-edge: color-mix(in srgb, var(--seal-stripe) 35%, transparent); }
.kd-seal.is-ace { --seal-stripe: #9a7cf0; --seal-bg: var(--kd-seal-bg-ace); --seal-edge: color-mix(in srgb, var(--seal-stripe) 35%, transparent); }
.kd-seal.is-ars { --seal-stripe: #e08a3c; --seal-bg: var(--kd-seal-bg-ars); --seal-edge: color-mix(in srgb, var(--seal-stripe) 35%, transparent); }
.kd-seal.is-raw { --seal-ink: var(--vi-muted); --seal-num: var(--vi-muted); --seal-bg: transparent; --seal-edge: var(--vi-muted); --bar: 0px; padding-inline: 8px; }
.kd-seal.is-unknown { width: auto; min-width: var(--w); }
.kd-seal .n.is-text { font-size: 0.875rem; letter-spacing: 0.1em; }
/* Nothing on a seal moves any more. This block is kept only because tests/brand-render.test.tsx pins both selectors inside the reduced-motion rule. */
@media (prefers-reduced-motion: reduce) {
  .kd-seal.is-bgs-bl::after, .kd-seal.is-tag::before { animation: none; transition: none; }
}

/* ---------- Gold chips (top-tier stat) ---------- */
.kd-toptier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-inline-start: 8px; }
.kd-shard.is-gold { color: var(--vi-ink); }
.kd-shard.is-gold::before { background: color-mix(in srgb, var(--kd-gold) 16%, var(--vi-raised)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kd-gold-deep) 65%, transparent); }
.kd-shard.is-gold b { font-weight: 700; }

/* ---------- Detail grade row (under the art) ---------- */
.kd-gradepanel { margin-top: var(--vi-space-4); padding: var(--vi-space-4); border-radius: var(--kd-radius-ui); border: 1px solid var(--vi-line); text-align: left;
  background: color-mix(in srgb, var(--vi-panel) 90%, transparent); display: grid; gap: var(--vi-space-3); position: relative; }
.kd-gradepanel .gp-head { display: flex; align-items: center; gap: var(--vi-space-4); flex-wrap: wrap; padding-inline-start: 14px; }
.kd-gradepanel .gp-desig strong { display: block; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; color: var(--vi-ink); }
.kd-gradepanel .gp-desig strong span { color: var(--vi-muted); font-weight: 500; letter-spacing: 0; }
.kd-gradepanel .gp-desig small { display: block; color: var(--vi-muted); font-size: 0.8125rem; line-height: 1.5; }
.kd-gradepanel .gp-sub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--kd-gap-lg); margin: 0; padding-inline: 8px; }
.kd-gradepanel .gp-sub > div { position: relative; isolation: isolate; text-align: center; padding: 6px 2px 7px; }
.kd-gradepanel .gp-sub > div::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--kd-radius-ui); background: var(--vi-raised); box-shadow: inset 0 0 0 1px var(--vi-line); transform: skewX(calc(var(--kd-slant) * -1)); }
.kd-gradepanel .gp-sub dt { font-size: 0.75rem; color: var(--vi-muted); line-height: 1.4; }
.kd-gradepanel .gp-sub dd { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--vi-ink); font-variant-numeric: proportional-nums lining-nums; }
.kd-gradepanel .gp-sub.is-score { grid-template-columns: 1fr; }
.kd-gradepanel .gp-sub.is-score dd small { font-size: 0.8125rem; color: var(--vi-muted); font-weight: 500; }
.kd-gradepanel .gp-cert { display: flex; align-items: center; justify-content: space-between; gap: var(--vi-space-3); flex-wrap: nowrap; font-size: 0.8125rem; color: var(--vi-muted); padding-inline: 4px; }
.kd-gradepanel .gp-cert b { color: var(--vi-ink); font-weight: 600; letter-spacing: 0.02em; }
.kd-gradepanel .gp-cert > span, .kd-gradepanel .gp-verify { white-space: nowrap; }
.kd-gradepanel .kd-seal.is-lg { --h: 40px; } .kd-gradepanel .kd-seal.is-lg .n { font-size: 1.625rem; }
@media (min-width: 900px) { .kd-gradepanel .kd-seal.is-lg { --h: 46px; } .kd-gradepanel .kd-seal.is-lg .n { font-size: 1.875rem; } }
@media (max-width: 520px) {
  .kd-gradepanel .gp-cert { flex-direction: column; align-items: flex-start; gap: 0; }
}
/* Top-tier: a very faint gold edge on the page chrome, never on the art itself. */
.kd-gradepanel.is-top { border-color: color-mix(in srgb, var(--kd-gold-deep) 55%, var(--vi-line)); box-shadow: 0 0 0 1px var(--kd-top-ring), 0 0 30px -12px var(--kd-top-glow); }
/* Filter chip marker for the top-grade filter: a small gold shard. */
.kd-top-mark { display: inline-block; width: 8px; height: 8px; margin-inline-start: 8px; background: var(--kd-gold-accent); transform: skewX(calc(var(--kd-slant) * -1)); border-radius: var(--kd-radius-ui); vertical-align: 1px; }

/* ======================================================================
   ART FRAME (owner direction: no slab frame, no label strip).
   Art at true card proportion, clipped by the card's own corner radius, soft depth shadow, hover-only sheen.
   ArtFrame renders the app's CardVisual with variant="clean"; the plain CardVisual keeps its previous look until a page opts in.
   !important is deliberate: the older .card-visual rules (globals.css, mobile-app.css, per-theme overrides) are ID-weight selectors with padding, panel fill and a dark drop-shadow filter.
   ====================================================================== */
.kd-art { display: block; position: relative; min-width: 0; --mx: 30%; --my: 20%; }
.kd-art .card-visual.is-clean {
  position: relative; width: 100%; height: auto !important; max-width: none; padding: 0 !important; overflow: hidden; aspect-ratio: 600 / 825 !important;
  background: var(--vi-raised) !important; border-radius: var(--kd-radius-card) !important;
  box-shadow: 0 1px 2px var(--kd-art-shadow-soft), 0 12px 24px -10px var(--kd-art-shadow), 0 4px 10px -4px var(--kd-art-shadow-soft);
  transition: transform var(--kd-dur-base) var(--kd-ease), box-shadow var(--kd-dur-base) var(--kd-ease);
}
.kd-art .card-visual.is-clean.has-ph { background: transparent !important; }
.kd-art .card-visual.is-clean > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none !important; border-radius: 0; }
.kd-art .card-visual.is-clean[data-art='photo'] > img { object-fit: contain; }
.kd-art .card-visual.is-clean .art-skeleton { inset: 0; border-radius: 0; }
.kd-art .card-visual.is-clean .art-card-ph { border-radius: inherit; border-color: transparent; background: var(--vi-raised); }
.kd-art .card-visual.is-clean .kd-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: var(--kd-sheen-blend); transition: opacity var(--kd-dur-base);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(115deg, transparent 22%, rgba(120, 190, 255, 0.38) 38%, rgba(255, 150, 220, 0.34) 48%, rgba(255, 235, 150, 0.34) 57%, rgba(120, 255, 200, 0.3) 66%, transparent 80%); }
.kd-art:focus-within { outline: 2px solid var(--vi-marker); outline-offset: 3px; border-radius: var(--kd-radius-ui); }
@media (hover: hover) {
  .kd-art:hover .card-visual.is-clean { transform: translateY(-4px); box-shadow: 0 1px 2px var(--kd-art-shadow-soft), 0 22px 34px -12px var(--kd-art-shadow), 0 6px 14px -6px var(--kd-art-shadow-soft); }
  .kd-art:hover .kd-sheen { opacity: 0.38; }
}
@media (prefers-reduced-motion: reduce) {
  .kd-art .card-visual.is-clean { transition: none; }
  .kd-art:hover .card-visual.is-clean { transform: none; }
  .kd-art .kd-sheen, .kd-art:hover .kd-sheen { display: none; }
}

/* ======================================================================
   CERT CHIP (private cert numbers). Same 32 degree shard and height as the seal it sits beside, but quiet:
   raised surface, thin line, a 3px stripe in the grader's family colour. Hidden by default: "CERT ••••" plus an eye.
   Specificity is raised on purpose where the global button rules would otherwise add borders and padding.
   ====================================================================== */
.kd-gradepanel .gp-head { gap: var(--vi-space-2) var(--vi-space-4); }
.kd-gradepanel .gp-id { display: flex; align-items: center; gap: var(--vi-space-2); flex-wrap: wrap; min-width: 0; }
.kd-cert {
  --h: 40px; --cert-tone: var(--vi-muted); --cert-stripe: var(--cert-tone);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; flex: none; height: var(--h);
  padding: 0 calc(var(--h) * 0.3125 - 2px) 0 calc(var(--h) * 0.3125 + 8px);
  font-size: 0.8125rem; line-height: 1; white-space: nowrap; color: var(--vi-ink);
}
.kd-cert::before, .kd-cert::after { content: ""; position: absolute; top: 0; bottom: 0; border-radius: var(--kd-radius-ui); transform: skewX(calc(var(--kd-slant) * -1)); pointer-events: none; }
.kd-cert::before { inset: 0; z-index: -2; background: color-mix(in srgb, var(--vi-raised) 86%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cert-tone) 34%, var(--vi-line)); }
.kd-cert::after { left: 0; width: 4px; z-index: -1; border-radius: 0; background: var(--cert-stripe); opacity: 0.8; }
.kd-cert[data-tone='psa'] { --cert-tone: var(--kd-psa-red); }
.kd-cert[data-tone='bgs'] { --cert-tone: var(--kd-gold-deep); }
.kd-cert[data-tone='cgc'] { --cert-tone: #17a595; }
.kd-cert[data-tone='tag'] { --cert-tone: var(--kd-tag-prism); --cert-stripe: linear-gradient(180deg, #9fd0ff, #cfb0ff 50%, #ffb9d9); }
.kd-cert .lab { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; color: var(--vi-muted); }
.kd-cert .num { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; color: var(--vi-ink); font-variant-numeric: tabular-nums lining-nums; }
.kd-cert .num.mask { letter-spacing: 0.22em; color: var(--vi-muted); }
.kd-cert-mask { letter-spacing: 0.18em; color: var(--vi-muted); }
.kd-cert-field { position: relative; display: block; min-width: 0; }
.kd-cert-field > input { width: 100%; padding-inline-end: 44px; }
html body .kd-cert-field > button.kd-cert-eye {
  position: absolute; inset-block: 0; inset-inline-end: 0; display: inline-grid; place-items: center; width: var(--kd-btn-w); min-height: var(--kd-btn-h); padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--vi-muted); cursor: pointer;
}
html body .kd-cert-field > button.kd-cert-eye:hover { color: var(--vi-ink); }
.kd-gradepanel .kd-cert { --h: 40px; }
@media (min-width: 900px) { .kd-gradepanel .kd-cert { --h: 46px; } }
@media (max-width: 520px) { .kd-gradepanel .kd-cert .num { font-size: 0.875rem; letter-spacing: 0.02em; } }

/* The shared component layer (docs/design/design-system-2026-10.md section 5, file layout 7.1). Token-only: no colour literal, no `html body`,
   no !important. Loaded after the token and base sheets; the floor rules below use :where() so any classed feature rule still wins. */

/* ---- M2 control floor (section 3 density, 5.8 inputs) ---- */
/* A disclosure summary is a control: 44 px tall, its single line centred. Feature rules that size their own summary override this. */
:where(.collector-app) summary { box-sizing: border-box; min-block-size: var(--vi-target); padding-block: max(0px, calc((var(--vi-target) - 1lh) / 2)); }
/* Native check boxes and radios take the ink accent (the selected colour of every control); their UA border stays >= 3:1 on paper. */
:where(.collector-app) :is(input[type='checkbox'], input[type='radio']) { accent-color: var(--vi-accent); }

/* ---- M3 amounts (5.15 <Amount>, 5.3 price cell, 5.4 delta) ---- */
:root { --kd-amount-slot: 0px; --kd-slot-value: 14.5ch; --kd-slot-signed: 15.5ch; --kd-slot-pct: 9ch; --kd-slot-hist: 14ch; --kd-slot-head: 9.67ch; --kd-slot-delta: 10.99ch; }   /* CONSTANT reserved widths per role (never derived from a value, so hidden markup gives no digit count away): value = TWD 9,999,999.00, signed = with the sign, pct = +1,234.5%; head = the card-detail headline (widest of TWD 999,999 / JPY 999,999 / USD 9,999.99 in the headline font, pinned by tests/amount-slot.test.tsx), delta = the 行情 Δ amount (the same figures with a sign) */
/* One box for an amount whatever it shows (digits, the mask, the missing words): it never wraps inside (no "TWD" / "1,234" split) and uses tabular
   figures. A context may reserve a slot with --kd-amount-slot so the mask and the digits take the same width (review LS-1). */
.kd-amount { display: inline-block; min-inline-size: var(--kd-amount-slot); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.kd-count { display: inline-block; min-inline-size: calc(var(--kd-count-d, 0) * 1ch + var(--kd-count-x, 0) * .55ch); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }   /* found-f2 <Count>: the widest text of the count (digits at 1ch, the rest at .55ch) */
/* Price line: one fixed line; an inline chip cannot grow it, a long value is clipped rather than wrapped (5.3 no-shift rule). */
.kd-price { display: block; block-size: 1.4lh; white-space: nowrap; overflow: hidden; }
/* Delta line: sign, amount and % on one fixed line (5.4). */
.kd-delta { white-space: nowrap; }

/* ---- M3 note (5.10): one style for every error, warning, info and success message; replaces .ai-err/.ai-warn, .aiimp-err/-note/-warn, .pa-error/
   .pa-warn, .ea-error/.ea-warn, .mb-err/.mb-warn, .field-error, .acq-note.acq-blocked and .fixing-banner (their class names stay as hooks). A 3 px start
   border in the tone colour on the raised fill; the text stays ink. Error = --vi-loss, 5.7:1 on raised light / 6.1 dark (review pair 14 was 2.99). */
.collector-app .kd-note { --kd-note-tone: var(--vi-ink); box-sizing: border-box; margin: var(--vi-space-2) 0; padding: var(--vi-space-2) var(--vi-space-3); border: 0; border-inline-start: 3px solid var(--kd-note-tone); border-radius: var(--kd-radius-ui); background: var(--vi-raised); color: var(--vi-ink); font-size: var(--vi-type-sm); line-height: 1.5; }
.collector-app .kd-note[data-tone='success'] { --kd-note-tone: var(--vi-ok); }
.collector-app .kd-note[data-tone='warning'] { --kd-note-tone: var(--vi-warning); }
.collector-app .kd-note[data-tone='error'] { --kd-note-tone: var(--vi-danger); }

/* ---- M3 reserved rows (5.8, 5.10 no-shift rules; review LS-3, LS-14) ---- */
/* A field's error row exists before the error does: one single-line note box (the .kd-note padding included), empty until it is filled. */
.collector-app .kd-hint-row { box-sizing: border-box; min-block-size: calc(1lh + 2 * var(--vi-space-2)); margin: var(--vi-space-2) 0; }
/* The status line under the photo and under the AI button (progress, result, failure) swaps inside one reserved block instead of mounting. */
.collector-app .kd-status-slot { min-block-size: 3rem; }
/* The page never gains or loses its scrollbar width when a sheet locks the scroll or the content grows past one screen (5.12). */
html { scrollbar-gutter: stable; }

/* ---- <AmountEye/> (app/design/amount-eye.tsx): ONE eye per area, in the area's header row at the top-right (E1 v2). 44x44 hit area around a 20 px icon, a 20 px footprint that
   ends flush with the content edge (margin-inline-end -12px) and never changes the row height; Eye and EyeOff are the same box in both states. ---- */
html body .collector-app button.kd-amount-eye { display: inline-grid; place-items: center; flex: none; align-self: center; inline-size: var(--kd-btn-h); block-size: var(--kd-btn-h); margin: -12px -12px -12px 0; padding: 0; border: 0; border-radius: var(--kd-radius-round); background: transparent; box-shadow: none; color: var(--vi-muted); line-height: 0; cursor: pointer; }
.collector-app button.kd-amount-eye:is(:hover, :focus-visible) { color: var(--vi-ink); }
.collector-app button.kd-amount-eye:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: -4px; }
.collector-app button.kd-amount-eye:disabled { opacity: var(--kd-disabled-opacity); }
/* ---- Icons (vi.md): every lucide-react icon is drawn at stroke 1.75 (it emits class "lucide" plus a stroke-width attribute, which any author rule overrides). :where() keeps specificity 0. ---- */
:where(svg.lucide) { stroke-width: 1.75; }

/* ---- Button (R1: the header's ＋ 新增卡片): one shape, flat. Primary = ink fill, paper text. `.collector-app .kd-btn` beats the legacy `.collector-app button` rules (0,1,1). ---- */
.collector-app .kd-btn { --kd-btn-fg: var(--vi-ink); --kd-btn-bg: transparent; --kd-btn-bd: transparent; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--kd-btn-gap); min-block-size: var(--kd-btn-h); min-inline-size: var(--kd-btn-w); position: relative; isolation: isolate; padding: 0 var(--kd-btn-pad-x); border: 1px solid transparent; background: transparent; color: var(--kd-btn-fg); font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--vi-dur-fast) var(--vi-ease), color var(--vi-dur-fast) var(--vi-ease); }
/* R2 (Steven 2026-11-03, design-system section 9): every action button is the VI skewed shape. The fill and the outline are painted on a ::before skewed by --kd-slant; the button box stays a rectangle, so text, focus ring and hit area do not move. The ＋ in the header (.header-add) and the detail action bar (.cd-act) carry their own skewed pseudo-element. */
.collector-app .kd-btn:not(.header-add, .cd-act)::before { content: ""; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; border: 1px solid var(--kd-btn-bd); border-radius: var(--kd-radius-ui); background: var(--kd-btn-bg); transform: skewX(calc(var(--kd-slant) * -1)); pointer-events: none; transition: background-color var(--vi-dur-fast) var(--vi-ease); }
.collector-app .kd-btn--primary { --kd-btn-fg: var(--vi-on-accent); --kd-btn-bg: var(--vi-accent); --kd-btn-bd: var(--vi-accent); }
.collector-app .kd-btn--primary:hover { --kd-btn-bg: color-mix(in srgb, var(--vi-accent) 86%, var(--vi-paper)); --kd-btn-fg: var(--vi-on-accent); }
.collector-app .kd-btn:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .kd-btn:disabled { opacity: var(--kd-disabled-opacity); cursor: default; }

/* ---- Button variants the card detail's action row and sale form consume (R6) ---- */
.collector-app .kd-btn--secondary { --kd-btn-bd: var(--vi-line-strong); }
.collector-app .kd-btn--secondary:hover { --kd-btn-bg: var(--vi-raised); --kd-btn-fg: var(--vi-ink); }
.collector-app .kd-btn--ghost:hover { --kd-btn-fg: var(--vi-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---- Toast (design-system 5.11): fixed, bottom centre, one line + one action; never in flow. ---- */
.collector-app .kd-toast { position: fixed; z-index: var(--kd-z-toast); inset-inline: 0; inline-size: max-content; max-inline-size: calc(100vw - 2rem); margin-inline: auto; bottom: calc(var(--vi-space-4) + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; display: flex; align-items: center; gap: var(--vi-space-2); min-block-size: 56px; padding: 0 var(--vi-space-4); border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: var(--vi-panel); color: var(--vi-ink); font-size: .875rem; box-shadow: 0 8px 24px var(--kd-art-shadow); }
.collector-app .kd-toast button { flex: none; white-space: nowrap; min-block-size: var(--kd-btn-h); padding-inline: var(--vi-space-2); font-weight: 600; color: var(--vi-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- K4 undo clock (app/design/undo.tsx): a 20px ring that drains over the site's own window; reduced motion shows whole seconds instead. Reserved box, so it never moves the text. ---- */
.collector-app .kd-undo__clock { position: relative; flex: none; display: inline-grid; place-items: center; inline-size: 20px; block-size: 20px; margin-inline-start: var(--vi-space-1); }
.collector-app .kd-undo__clock svg { grid-area: 1 / 1; transform: rotate(-90deg); }
.collector-app .kd-undo__track { stroke: var(--vi-line); stroke-width: 2; }
.collector-app .kd-undo__arc { stroke: var(--vi-ink); stroke-width: 2; stroke-linecap: butt; }
.collector-app .kd-undo__secs::before { content: attr(data-secs); }
.collector-app .kd-undo__secs { display: none; grid-area: 1 / 1; font-size: var(--vi-type-xs); line-height: 1; font-variant-numeric: tabular-nums; color: var(--vi-muted); }
@media (prefers-reduced-motion: reduce) { .collector-app .kd-undo__clock svg { display: none; } .collector-app .kd-undo__secs { display: block; } }

/* ======== Site VI kit L1 (notes/site-vi/kit/KIT.md K1, K2, K4, K6): token-only; classes exist for consumers, legacy rules keep their markup ======== */

/* ---- K1 chip: one 32 deg parallelogram painted on ::before (the box stays a rectangle). Data 24px, filter 32px visual in a 44px hit. Weights: solid / line (default) / ghost. The grade seal (.kd-seal) keeps its own plate colours. ---- */
.collector-app .kd-chip { --kd-chip-h: 24px; --kd-chip-fg: var(--vi-ink); --kd-chip-bg: transparent; --kd-chip-edge: var(--vi-line-strong); position: relative; isolation: isolate; box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--vi-space-1); block-size: var(--kd-chip-h); padding: 0 calc(var(--kd-chip-h) * 0.3125 + 6px); border: 0; background: none; color: var(--kd-chip-fg); font-family: inherit; font-size: var(--vi-type-xs); font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; }
.collector-app .kd-chip::before { content: ""; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; border-radius: var(--kd-radius-ui); background: var(--kd-chip-bg); box-shadow: inset 0 0 0 1px var(--kd-chip-edge); transform: skewX(calc(var(--kd-slant) * -1)); pointer-events: none; transition: background-color var(--kd-dur-fast) var(--kd-ease); }
.collector-app .kd-chip--solid { --kd-chip-fg: var(--vi-on-accent); --kd-chip-bg: var(--vi-ink); --kd-chip-edge: transparent; }
.collector-app .kd-chip--ghost { --kd-chip-fg: var(--vi-muted); --kd-chip-edge: transparent; font-weight: 500; }
.collector-app .kd-chip--state { --kd-chip-edge: var(--vi-marker); }
.collector-app .kd-chip--gold { --kd-chip-bg: color-mix(in srgb, var(--kd-gold) 16%, var(--vi-raised)); --kd-chip-edge: color-mix(in srgb, var(--kd-gold-deep) 65%, transparent); }
.collector-app .kd-chip--gain { --kd-chip-fg: var(--vi-gain); --kd-chip-edge: transparent; }
.collector-app .kd-chip--loss { --kd-chip-fg: var(--vi-loss); --kd-chip-edge: transparent; }
.collector-app .kd-chip.is-mark { inline-size: var(--kd-chip-h); padding: 0; --kd-chip-bg: var(--vi-marker); --kd-chip-edge: transparent; }
/* filter size: 32px painted inside a 44px hit (padding-block, not margin) */
.collector-app .kd-chip--filter { --kd-chip-h: 32px; --kd-chip-bg: var(--vi-raised); box-sizing: content-box; block-size: var(--kd-chip-h); padding: calc((var(--vi-target) - var(--kd-chip-h)) / 2) calc(var(--kd-chip-h) * 0.3125 + 8px); font-size: var(--vi-type-sm); cursor: pointer; }
.collector-app .kd-chip--filter::before { inset-block: calc((var(--vi-target) - var(--kd-chip-h)) / 2); }
.collector-app .kd-chip--filter[aria-pressed='true'], .collector-app .kd-chip--filter[aria-selected='true'], .collector-app .kd-chip--filter.is-on { --kd-chip-fg: var(--vi-on-accent); --kd-chip-bg: var(--vi-ink); --kd-chip-edge: transparent; }
.collector-app .kd-chip .kd-chip-count { color: var(--vi-muted); font-weight: 500; }
.collector-app .kd-chip--solid .kd-chip-count, .collector-app .kd-chip--filter.is-on .kd-chip-count, .collector-app .kd-chip--filter[aria-pressed='true'] .kd-chip-count { color: inherit; opacity: .7; }
.collector-app .kd-chip:disabled, .collector-app .kd-chip.is-disabled { opacity: var(--kd-disabled-opacity); cursor: default; }
.collector-app .kd-chip:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }

/* ---- K2 button variants: dense 36px visual / 44px hit, danger = secondary edge + loss text (never a red fill), icon diamond ---- */
.collector-app .kd-btn--dense { font-size: var(--vi-type-sm); padding-inline: var(--vi-space-3); }
.collector-app .kd-btn--dense::before { inset-block: calc((var(--kd-btn-h) - 36px) / 2); }
.collector-app .kd-btn--danger { --kd-btn-fg: var(--vi-danger); --kd-btn-bd: var(--vi-line-strong); }
.collector-app .kd-btn--danger:hover { --kd-btn-bg: var(--vi-raised); --kd-btn-fg: var(--vi-danger); }
.collector-app .kd-btn--diamond { padding: 0; }
.collector-app .kd-btn--diamond:not(.header-add, .cd-act)::before { inset: 8px; border: 0; background: var(--kd-tone-3); transform: rotate(45deg); }
.collector-app .kd-btn--diamond.kd-btn--primary:not(.header-add, .cd-act)::before { background: var(--vi-accent); }
.collector-app .kd-btn--diamond svg { inline-size: 18px; block-size: 18px; }

/* ---- K4 section header + ONE meta row + slanted rule ---- */
.collector-app .kd-sec-h { display: flex; align-items: baseline; gap: var(--vi-space-2); min-block-size: var(--vi-target); margin: 0; font-size: var(--vi-type-lg); font-weight: 700; line-height: 1.25; }
.collector-app .kd-sec-h .kd-sec-act { margin-inline-start: auto; }
.collector-app .kd-meta { block-size: 20px; margin: 0; overflow: hidden; color: var(--vi-muted); font-size: var(--vi-type-sm); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
/* the only page-section divider: one hairline with the 32 deg cut and a short faded tail (the .kd-channel geometry at 1px) */
.collector-app .kd-rule { position: relative; block-size: 1px; margin-block: var(--vi-space-4); border: 0; background: none; }
.collector-app .kd-rule::before, .collector-app .kd-rule::after { content: ""; position: absolute; inset-block: 0; background: var(--vi-line); }
.collector-app .kd-rule::before { inset-inline: 0 34px; clip-path: polygon(0 0, 100% 0, calc(100% - 1px) 100%, 0 100%); }
.collector-app .kd-rule::after { inset-inline-end: 0; inline-size: 26px; opacity: .55; }

/* ---- K6 skeleton: destination's own boxes in --vi-raised; ONE 32 deg sheen over the whole block, none under reduced motion ---- */
.collector-app .kd-skel { position: relative; overflow: hidden; isolation: isolate; }
.collector-app .kd-skel :is(.kd-skel-bar, .kd-skel-art) { background: var(--vi-raised); }
.collector-app .kd-skel .kd-skel-art { border-radius: var(--kd-radius-card); }
.collector-app .kd-skel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(calc(90deg - var(--kd-slant)), transparent 35%, color-mix(in srgb, var(--vi-ink) 6%, transparent) 50%, transparent 65%); animation: kd-skel-sheen 1.4s linear infinite; }
@keyframes kd-skel-sheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .collector-app .kd-skel::after { animation: none; } }

/* ---- K5 empty-state plates (app/design/plate.tsx) + the state block: one drawing, a 20/700 title, one 13px sentence, at most two buttons ---- */
.kd-plate { display: block; inline-size: 132px; block-size: 132px; max-inline-size: 100%; }
.kd-plate .kd-plate-face { fill: var(--vi-panel); }
.kd-plate .kd-plate-frame { fill: none; stroke: var(--vi-line); stroke-width: .5; }
.kd-plate .kd-plate-hatch { stroke: var(--vi-line); stroke-width: .35; }
.kd-plate .kd-plate-k { fill: var(--vi-ink); opacity: .07; }
.kd-plate .kd-plate-mark { fill: var(--vi-marker); }
.kd-plate .kd-plate-chip { fill: none; stroke: var(--vi-line); stroke-width: .4; }
.kd-plate .kd-plate-dash { stroke: var(--vi-line-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.kd-plate .kd-plate-cross { stroke: var(--vi-marker); stroke-width: 1; }
.kd-state { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; padding: 24px 16px; }
.kd-state > :is(h2, h3) { margin: 0; font-size: var(--vi-type-lg); font-weight: 700; color: var(--vi-ink); }
.kd-state > p { margin: 0; max-inline-size: 36em; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.kd-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.kd-plate.is-sm { inline-size: 72px; block-size: 72px; }
.kd-state:has(> .kd-plate.is-sm) { padding-block: 8px; gap: 4px; }

/* ---- found-f3: the one segmented control (app/design/seg.tsx). A raised track, a cap that travels under the pressed item (K3), 44px items, one pressed look. ---- */
.kd-seg { position: relative; display: inline-flex; flex: none; align-items: stretch; box-sizing: border-box; max-inline-size: 100%; min-inline-size: 0; padding: 0; border: 0; border-radius: var(--kd-radius-ui); background: var(--vi-raised); box-shadow: inset 0 0 0 1px var(--vi-line); overflow-x: auto; scrollbar-width: none; }
.kd-seg__cap, .collector-app .kd-toggle__track, .collector-app .kd-toggle__key, .collector-app .kd-toggle__glow { border-radius: var(--kd-radius-ui); }
.kd-seg__cap { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--kd-seg-w, 0px); transform: translateX(var(--kd-seg-x, 0px)); transform-origin: 0 0; background: var(--vi-accent); opacity: 0; pointer-events: none; transition: none; /* the cap moves only by the FLIP animation in seg.tsx; without this, the global reduced-motion rule (transition-duration .01ms !important in vi-tokens.css) turns the default `transition: all` into a real 0.01ms transition of transform and width on every placement */ }
.kd-seg[data-cap='on'] .kd-seg__cap { opacity: 1; }
.collector-app .kd-seg .kd-seg__i { position: relative; z-index: 1; display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; min-block-size: var(--kd-btn-h); min-inline-size: var(--kd-btn-w); margin: 0; padding: 0 12px; border: 0; border-radius: var(--kd-radius-ui); background: none; box-shadow: none; color: var(--vi-muted); font: inherit; font-size: var(--vi-type-base); font-weight: 600; white-space: nowrap; cursor: pointer; transition: color var(--kd-dur-2) var(--kd-ease-out); }
.collector-app .kd-seg .kd-seg__i[data-on] { color: var(--vi-on-accent); cursor: default; }
.collector-app .kd-seg:not([data-cap='on']) .kd-seg__i[data-on] { background: var(--vi-accent); }
@media (hover: hover) { .collector-app .kd-seg .kd-seg__i:not([data-on]):not(:disabled):hover { color: var(--vi-ink); } }
.collector-app .kd-seg .kd-seg__i:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .kd-seg .kd-seg__i:disabled { opacity: var(--kd-disabled-opacity); cursor: default; }
.kd-seg .num { font-variant-numeric: tabular-nums lining-nums; }

/* ---- K6 toggle key (app/design/toggle.tsx). Motion tokens only; no transition: all; reduced motion zeroes every token. 44px hit area around a 28px track. */
.collector-app .kd-toggle { display: inline-flex; align-items: center; gap: var(--vi-space-2); box-sizing: border-box; min-block-size: var(--kd-btn-h); padding: 0; border: 0; background: none; color: var(--vi-ink); font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.collector-app .kd-toggle__track { position: relative; flex: none; inline-size: 52px; block-size: 28px; background: var(--vi-raised); box-shadow: inset 0 0 0 1px var(--vi-line-strong); transition: background-color var(--kd-dur-2) var(--kd-ease-out); }
.collector-app .kd-toggle__key { position: absolute; inset-block: 3px; inset-inline-start: 3px; inline-size: 24px; display: grid; place-items: center; background: var(--vi-ink); color: var(--vi-paper); transform: translateX(0); transition: transform var(--kd-dur-3) var(--kd-spring); }
.collector-app .kd-toggle[aria-checked='true'] .kd-toggle__track { background: color-mix(in srgb, var(--vi-ink) 14%, var(--vi-raised)); }
.collector-app .kd-toggle[aria-checked='true'] .kd-toggle__key { transform: translateX(22px); }
.collector-app .kd-toggle__ic { grid-area: 1 / 1; transition: opacity var(--kd-dur-2) var(--kd-ease-out); }
.collector-app .kd-toggle__ic--shut, .collector-app .kd-toggle[aria-checked='true'] .kd-toggle__ic--open { opacity: 0; }
.collector-app .kd-toggle[aria-checked='true'] .kd-toggle__ic--shut { opacity: 1; }
.collector-app .kd-toggle__word { font-size: var(--vi-type-base); padding-inline-end: var(--vi-space-2); }   /* the word keeps the kit gap from the focus ring and from whatever follows */
@media (hover: hover) { .collector-app .kd-toggle:not(:disabled):hover .kd-toggle__track { box-shadow: inset 0 0 0 1px var(--vi-ink); } }
.collector-app .kd-toggle:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .kd-toggle:active:not(:disabled) .kd-toggle__key { transform: translateX(0) scale(.94); transition-duration: var(--kd-m-press); }
.collector-app .kd-toggle[aria-checked='true']:active:not(:disabled) .kd-toggle__key { transform: translateX(22px) scale(.94); }
.collector-app .kd-toggle:disabled { opacity: var(--kd-disabled-opacity); cursor: default; }
/* micro-theme-key: the dot-matrix sun / moon key (notes/micro-theme-key/mock.html). on = moon, off = sun. Transform and opacity only; colours are kit tokens. */
.collector-app .kd-toggle[data-kind='theme'] .kd-toggle__track { inline-size: 64px; block-size: 32px; }
.collector-app .kd-toggle[data-kind='theme'] .kd-toggle__key { inline-size: 28px; }
.collector-app .kd-toggle[data-kind='theme'][aria-checked='true'] .kd-toggle__key { transform: translateX(30px); }
/* press: keep the resting translateX and sink 1.5px (mock); no scale, so the key never jumps sideways */
.collector-app .kd-toggle[data-kind='theme']:active:not(:disabled) .kd-toggle__key { transform: translate(0, 1.5px); transition-duration: var(--kd-m-press); }
.collector-app .kd-toggle[data-kind='theme'][aria-checked='true']:active:not(:disabled) .kd-toggle__key { transform: translate(30px, 1.5px); }
.collector-app .kd-toggle__glow { position: absolute; inset: 2px auto; inline-size: 30px; background: var(--vi-marker); filter: blur(7px); opacity: .55; transform: translateX(0) scale(1.15); transition: transform var(--kd-dur-3) var(--kd-spring), opacity var(--kd-dur-2) var(--kd-ease-out); }
.collector-app .kd-toggle[aria-checked='true'] .kd-toggle__glow { transform: translateX(30px) scale(1.15); opacity: .4; }
.collector-app .kd-toggle__dots { inline-size: 22px; block-size: 22px; overflow: visible; fill: currentColor; }
.collector-app .kd-toggle__dot { transform-box: fill-box; transform-origin: center; transform: translate(var(--sx), var(--sy)); transition: transform var(--kd-dur-4) var(--kd-ease-out) var(--dl); }
.collector-app .kd-toggle[aria-checked='true'] .kd-toggle__dot { transform: translate(var(--mx), var(--my)); }
.collector-app .kd-toggle.is-moving .kd-toggle__glow { animation: kd-theme-flare var(--kd-dur-4) ease both; }
@keyframes kd-theme-flare { 0% { opacity: .55; } 30% { opacity: 1; } 100% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .collector-app .kd-toggle[data-kind='theme'] .kd-toggle__key, .collector-app .kd-toggle__glow, .collector-app .kd-toggle__dot { transition: none; }
  .collector-app .kd-toggle.is-moving .kd-toggle__glow { animation: none; }
}
/* 外觀 row: the theme key and the 跟隨系統 switch sit side by side */
.collector-app .theme-control__keys { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vi-space-2) var(--vi-space-4); }
/* the two-position key is a Seg: only its width is set here */
.collector-app .kd-seg.kd-updown { max-inline-size: 100%; }
/* K6: the 外觀 row keeps its label above the three-option key, like every other settings row; the key never stretches on desktop */
.collector-app .theme-control { display: grid; gap: 6px; margin: 0; text-align: left; }
.collector-app .theme-control > .kd-seg { justify-self: start; max-inline-size: 100%; }
/* the label is a span now (a radiogroup must not sit inside a <label>): it takes the settings-row label face, like 顯示幣別 / 介面語言 / 估值方式 */
.collector-app .theme-control > span { font-size: var(--vi-type-sm); font-weight: 400; line-height: 1.65; color: inherit; }

/* App-wide touch basics (kit-basics, 2026-11-12): press feedback, tap highlight, touch-action, field floor, wrapping, selection, caret, empty line.
   One sheet so a page lane inherits these and writes none of its own. Loaded after components.css. No !important, no colour literal.
   Specificity is kept low (:where) on anything a feature rule already styles, so a page rule still wins; the field floor needs to out-rank the page rules it exists to fix. */

:root { --kd-empty-h: 0px; }

/* Tap highlight: inherited, so one declaration on the root. */
:root { -webkit-tap-highlight-color: transparent; }

/* Controls answer a tap without waiting for a double-tap check. */
:where(.collector-app) :is(button, a, summary, select, label, [role='button'], [role='tab'], [role='radio'], [role='switch'], [role='menuitem']) { touch-action: manipulation; }

/* ---- Press: one family list. `scale` is an individual property, so it composes with any transform a feature already sets.
   --kd-basics-sink is 1 under reduced motion, so only the fill answers there. ---- */
:root { --kd-basics-sink: .985; }
@media (prefers-reduced-motion: reduce) { :root { --kd-basics-sink: 1; } }
.collector-app :is(button, summary, [role='button'], [role='tab'], [role='radio'], [role='switch'], [role='menuitem'], .kd-btn, .kd-chip, .kd-seg__i, a.rh-tile, a.ea-tile, a.seal-tile, a.catalog-set-tile):not(:disabled, [aria-disabled='true']):active {
  scale: var(--kd-basics-sink); filter: brightness(.93); transition: scale var(--kd-m-press) var(--kd-ease-out), filter var(--kd-m-press) var(--kd-ease-out);
}

/* ---- Fields never zoom the page on a phone: the one global 16 px rule sits in the existing phone block of app/mobile-app.css (html:root:root :is(input,select,textarea)) (a second width query would raise the design-lint ceiling). ---- */

/* ---- Wrapping: no orphan word in a heading or a clamped name; ⓘ bodies avoid a one-word last line. balance never adds a line. ---- */
:where(.collector-app) :is(h1, h2, h3, h4, .card-title, .focus-name, .ph-name, .rh-name, .rh-spot-name-t, .seal-name, .r3-name, .vi-row-title, .st-fname, .st-mname, .us-text b, .folio-card-cap b) { text-wrap: balance; }
:where(.collector-app) :is([role='tooltip'], .kd-tip, .info-body, .why-body, details > p) { text-wrap: pretty; }

/* ---- Selection, caret, native controls: from tokens, both themes (the tokens swap under data-theme). ---- */
.collector-app ::selection { background: color-mix(in srgb, var(--vi-marker) 28%, transparent); color: var(--vi-ink); }
.collector-app { caret-color: var(--vi-marker); accent-color: var(--vi-accent); }

/* ---- Focus ring alias (viewers pick this up instead of their own colour). ---- */
:root { --kd-focus-ring: 2px solid var(--vi-marker); }

/* ---- Empty line: one style for a bare "nothing here" line. Copy stays the block's; min-block-size is the block's reserve (set --kd-empty-h). ---- */
.collector-app .kd-empty { margin: 0; padding-block-start: 8px; min-block-size: var(--kd-empty-h); font-size: var(--vi-type-sm); line-height: var(--vi-line-body); color: var(--vi-muted); text-wrap: pretty; }

/* Site VI L5: the chart kit (KIT.md K8). Token-only; consumers keep their legacy class names as hooks, these rules restyle the shared parts. */

/* range row: filter chips, 44px row, wraps cleanly on a phone */
.collector-app .kd-chart-ranges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vi-space-1); min-block-size: var(--vi-target); }
.collector-app .kd-chart-ranges .kd-chip { flex: none; }
.collector-app .kd-chart-ranges .kd-chip small { margin-inline-start: var(--vi-space-1); font-size: var(--vi-type-xs); font-weight: 500; color: inherit; opacity: .7; }

/* 最高 / 最低: one meta row */
.collector-app .kd-chart-meta { font-variant-numeric: tabular-nums; }
.collector-app .kd-chart-ext > span:first-child { color: var(--vi-muted); }
.collector-app .kd-chart-ext .kd-amount { color: var(--vi-ink); font-weight: 600; }

/* the area: the 32 degree hatch at the strong alpha, never a flat tint; clipped to the series polygon */
.collector-app .kd-chart-hatch { position: absolute; inset: 0; pointer-events: none; background: var(--vi-ink); opacity: var(--kd-hatch-alpha-strong); -webkit-mask: var(--kd-hatch-mask) 0 0 / var(--kd-hatch-tile); mask: var(--kd-hatch-mask) 0 0 / var(--kd-hatch-tile); }

/* the readout: ONE solid chip over the plot (the shared tooltip of every chart), slanted like the kit chip; amounts keep the constant slot so hidden mode does not change its width */
.collector-app :is(.ova-tip, .tc-tip, .st-tip, .cd-in-tip) .kd-amount { min-inline-size: 8ch; }
.collector-app :is(.ova-guide, .st-guide, .cd-in-guide, .ov-summary .tc-guide) { border-inline-start: 1px solid var(--vi-marker); }

/* card detail: the hatch sits under the focus line inside the 160px plot (the svg's own height) */
.collector-app .cd-ch-plot .kd-chart-hatch.cd-ch-hatch { inset: 0 0 auto 0; block-size: 160px; }
.collector-app .cd-chart-wrap .kd-chart-hatch.cd-ch-hatch { inset: 0; }
.collector-app .cd-ch-range { margin-block-start: var(--vi-space-3); }
/* the card-detail range row: one equal-width row (a label over its %), five chips fit at 360 px */
.collector-app :is(.cd-ch-range, .cd-chart-chips) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.collector-app :is(.cd-ch-range, .cd-chart-chips) .kd-chip { --kd-chip-h: 40px; flex-direction: column; justify-content: center; gap: 0; padding-inline: 2px; line-height: 1.1; font-size: var(--vi-type-sm); }
.collector-app :is(.cd-ch-range, .cd-chart-chips) .kd-chip small { margin: 0; font-size: var(--vi-type-xs); }

/* card detail 價格來源 (phone only, PriceCells stackedEmpty): when no source holds a price the cells are a stacked list (label ↗ | value | date) in EXACTLY the height the loaded boxes have on a phone: 88px for the row of three, 184px for the 2 x 2 grid of four. The desktop keeps its boxes. */
.collector-app .cd-cells[data-list][data-list] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 0; block-size: 184px; border-block-start: 1px solid var(--vi-line); }
.collector-app .cd-cells[data-list][data-only] { grid-template-rows: minmax(0, 1fr); block-size: 88px; }
.collector-app .cd-cells[data-list] .cd-cell { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--vi-space-3); block-size: auto; padding: 0; border: 0; border-block-end: 1px solid var(--vi-line); }
.collector-app .cd-cells[data-list] .cd-cell-v { font-size: var(--vi-type-sm); font-weight: 500; line-height: 1.2; }
.collector-app .cd-cells[data-list] .cd-cell :is(.cd-cell-k, .cd-cell-link, .cd-cell-d) { line-height: 1.2; }

/* 每月花費 readout: one reserved chip row above the columns, never shifts the plot */
.collector-app .an-page .st-readout { margin: var(--vi-space-2) 0 0; block-size: 24px; }
.collector-app .an-page .st-col.is-sel { background: var(--vi-raised); outline: none; }
.collector-app .an-page .st-col:focus-visible { outline: 2px solid var(--vi-marker); }

/* narrow 總覽: the 最高 / 最低 row drops under the chips (never a clipped number) */
@container (max-width: 719px) { .collector-app .ova-ranges { flex-wrap: wrap; } .collector-app .ova-ranges .kd-chart-meta { order: 3; flex: 1 0 100%; text-align: start; } .collector-app .ova-ranges .ova-analysis { margin-inline-start: auto; } }

/* the card-detail chart while its series loads: the loaded chart's height (legend row, change row, plot, axis, ends, one chip row, two extremes rows), measured in tests/site-vi-l5-load.test.tsx */
.collector-app .cd-ch.cd-ch-skel { min-block-size: 448px; }
/* phone: the legend row (chips + the 金額 / % switch) reserves two lines, so 1, 2 or 3 sources are the same height and the skeleton above equals the loaded chart */
.collector-app .cd-ch-legend.is-phone { min-block-size: 90px; align-content: flex-start; }
.collector-app .cd-ch.cd-ch-skel.is-phone { min-block-size: 494px; }

/* kit-money K1 counter wheels + K5 hidden-amount sweep (app/design/counter.tsx). Motion values: F1 tokens (--kd-dur-*, --kd-spring, --kd-ease-out) plus the two per-moment tokens below.
   Only transform and opacity animate. A rolling node keeps its width: wheels are inline-blocks one digit wide (tabular figures), unchanged characters stay plain text. */
:root {
  --kd-m-roll-stagger: 30ms;       /* wheel-to-wheel delay, units digit first (the mock's 12-60 ms stagger) */
  --kd-m-reduced-fade: 160ms;      /* REDUCED_FADE_MS (app/design/motion.ts): never zeroed, it is the reduced-motion fallback itself */
}
@media (prefers-reduced-motion: reduce) { :root { --kd-m-roll-stagger: 0ms; } }

.kd-roll { white-space: nowrap; }
.kd-roll__sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kd-roll__w { display: inline-block; position: relative; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; }
.kd-roll__o { position: absolute; inset-block-start: 0; inset-inline-start: 0; animation: kd-roll-out var(--kd-dur-4) var(--kd-spring) both; animation-delay: calc(var(--kd-roll-i, 0) * var(--kd-m-roll-stagger)); will-change: transform, opacity; }
.kd-roll__n { display: inline-block; animation: kd-roll-in var(--kd-dur-4) var(--kd-spring) both; animation-delay: calc(var(--kd-roll-i, 0) * var(--kd-m-roll-stagger)); will-change: transform, opacity; }
@keyframes kd-roll-in { from { transform: translateY(85%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kd-roll-out { from { transform: none; opacity: 1; } to { transform: translateY(-85%); opacity: 0; } }

/* K5: one light crossing; the band is played with WAAPI (delay = left edge / viewport width x --kd-dur-2), so the markup carries no inline style */
.kd-amount[data-sweep] { position: relative; overflow: clip; }
.kd-sweep { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--vi-accent) 70%, transparent) 50%, transparent 80%); will-change: transform, opacity; }

/* reduced motion: @keyframes are not stopped by the global transition rule, so each moment names its own fallback: an opacity fade of --kd-m-reduced-fade, nothing travels */
@media (prefers-reduced-motion: reduce) {
  .kd-roll--fade { animation: kd-roll-fade var(--kd-m-reduced-fade) linear both; }
  .kd-sweep { background: color-mix(in srgb, var(--vi-accent) 35%, transparent); }
}
@keyframes kd-roll-fade { from { opacity: 0; } to { opacity: 1; } }

/* kit-money K2: the shared chart overlay's own parts (read-tint, detent ring). Class prefix kd-ov-; the guide / dot / tip keep each chart's own prefix and CSS. */
.kd-ov-tint { position: absolute; inset: 0; pointer-events: none; transform-origin: 0 50%; background: color-mix(in srgb, var(--vi-ink) 5%, transparent); transition: transform var(--kd-dur-1) var(--kd-ease-out); }
.kd-ov-ring { position: absolute; inline-size: 14px; block-size: 14px; margin: -7px 0 0 -7px; border: 1px solid var(--vi-ink); clip-path: circle(50%); pointer-events: none; opacity: 0; animation: kd-ov-ring var(--kd-dur-2) var(--kd-ease-out) both; }
@keyframes kd-ov-ring { from { transform: scale(.6); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kd-ov-ring { animation: none; } .kd-ov-tint { transition: none; } }

/* Import after vi-tokens.css. All selectors belong to the optional presentation frame. */
.collector-app .vi-overview { display: grid; gap: 2rem; padding-block: 2rem; min-width: 0; }
.collector-app .vi-overview h3 { font-size: 1.25rem; margin: 0 0 1rem; }
.collector-app .vi-overview-support { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.collector-app .vi-overview-coverage { border-inline-start: 2px solid var(--vi-warning); padding: .25rem 0 .25rem 1rem; margin-top: -.75rem; }
.collector-app .vi-overview-coverage p { margin: 0; color: var(--ink); font-size: .875rem; }
.collector-app .vi-overview-coverage>small { display: block; margin-top: .5rem; font-size: .8125rem; }
.collector-app .vi-overview-accounting { border-top: 1px solid var(--line); }
.collector-app .vi-overview-accounting>summary { min-height: 3rem; padding-block: .75rem; cursor: pointer; font-size: .9375rem; }
.collector-app .vi-overview-accounting>div { padding-block: 1rem; min-width: 0; }

@media(max-width:600px) {
 .collector-app .vi-overview { gap: 1.5rem; padding-block: 1.5rem; }
 .collector-app .vi-overview-support { grid-template-columns: minmax(0,1fr); gap: 1rem; }
}
.collector-app .vi-overview { background: transparent; border: 0; border-radius: 0; padding-inline: 0; margin: 0; }

/* Approved mobile slice. Desktop layout and source data remain shared. */
.mobile-filter-trigger,.mobile-detail-back{display:none}
@media(max-width:760px){
 .collector-app{padding-inline:max(16px,env(safe-area-inset-left));padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 /* flex:none + explicit line box: the label never shrinks vertically (overflow:hidden is only for horizontal ellipsis) */
 .collector-app>.mobile-app-nav button{padding-block:4px;gap:4px} /* 4+22 icon+4+16 label+4 = 50px button: nothing clipped */
 .collector-app>.mobile-app-nav button span{flex:none;font-size:12px;line-height:16px;min-height:16px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:2px}
 .collection-browser>.sectionhead h2,.encyclopedia>.sectionhead h2{font-size:24px;margin:4px 0 14px}
 .encyclopedia>.sectionhead p,.encyclopedia>.sectionhead .eyebrow{display:none}
 .collection-browser>.filter-disclosure{display:none}
 .mobile-filter-trigger{display:inline-flex;align-items:center;min-height:var(--kd-btn-h);margin:0 8px 8px 0}
 .collection-browser>.advanced-filters{width:auto;font-size:12px}
 .collection-browser .collection-card .tile-cost :is(strong,span){font-size:13px;white-space:normal;overflow-wrap:anywhere}
 .collection-browser .collection-card :is(.purchase-context,.purchase-source,.series-label,.card-actions,.card-pnl){display:none}
 .card-dialog{padding:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;overscroll-behavior:contain}
 body:has(.card-dialog[open]) .mobile-app-nav{visibility:hidden}
 .card-dialog .detail-header{display:flex;flex-wrap:wrap;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;gap:8px}
 .card-dialog .detail-header>small{display:none}
 .card-dialog .detail-header>button:last-child{order:-1;margin:0 auto 0 0;min-height:var(--kd-btn-h)}
 .desktop-detail-close{display:none}.mobile-detail-back{display:inline}
 .card-dialog .detail-navigation>small{display:none}.card-dialog .detail-navigation button{min-width:var(--kd-btn-w);min-height:var(--kd-btn-h)}
 .collector-app input,.collector-app textarea,.collector-app select{scroll-margin-bottom:100px}
 html:root:root:root:root :is(input,select,textarea){font-size:16px} /* kit-basics: the one global field floor; out-ranks page rules such as textarea.pw-paste and .ov-filters .analysis-controls select */
 .mobile-filter-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:80dvh;padding:0;border:1px solid var(--line);border-radius:var(--kd-radius-ui) var(--kd-radius-ui) 0 0;background:var(--panel);color:var(--ink);overflow:hidden}
 .mobile-filter-sheet[open]{display:flex;flex-direction:column}
 .mobile-filter-sheet::backdrop{background:#0009}
 .mobile-filter-sheet header,.mobile-filter-sheet footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;flex:none}
 .mobile-filter-sheet h2{font-size:20px;margin:0}.mobile-filter-sheet button{min-height:var(--kd-btn-h)}
 .mobile-filter-body{overflow:auto;overscroll-behavior:contain;padding:0 20px;min-height:0}
 .mobile-filter-sheet .filters{display:grid;grid-template-columns:1fr;gap:12px}
 .mobile-filter-sheet .filters select{font-size:16px;min-height:48px;width:100%;background:var(--panel);color:var(--ink)}
 .mobile-filter-sheet .filters>button{display:none}
 .mobile-filter-sheet footer{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.mobile-filter-sheet footer{justify-content:center}
}
/* Root font growth (accessibility text sizes) naturally switches to one column. */

@media(max-width:760px){.collection-browser{container-type:inline-size}}


/* PWA standalone (home-screen launch): status bar is opaque (apple-mobile-web-app-status-bar-style=black), so the
   header needs no extra top inset; keep the page backdrop on-brand and stop rubber-banding revealing a white page.
   Bottom tab bar and detail sheets already pad env(safe-area-inset-bottom) above; viewport-fit=cover is set in layout. */
@media (display-mode: standalone) {
  html { background: var(--vi-paper, var(--paper)); overscroll-behavior-y: none; }
}

/* ---------- the ＋ sheet (header ＋, phone and desktop) and the profile's settings sheet: one dialog shell (docs/design/mobile-scanner.md section 2). Tokens only.
   Phone: a bottom sheet. Desktop: a centred dialog. 拍照辨識 is the PRIMARY row: filled, 92px, 28px icon; the other rows are quiet 56px outlines. ---------- */
.mobile-add-sheet{margin:auto 0 0;inset:auto 0 0;width:100%;max-width:none;max-height:92dvh;overflow:auto;padding:0;border:0;border-top:1px solid var(--vi-line);border-radius:var(--kd-radius-ui) var(--kd-radius-ui) 0 0;background:var(--vi-panel);color:var(--vi-ink);box-shadow:var(--vi-shadow);overscroll-behavior:none}
.mobile-add-sheet::backdrop{background:var(--vi-overlay)}
.mobile-add-body{padding:10px 16px calc(16px + env(safe-area-inset-bottom))}
.mobile-add-grab{width:40px;height:4px;margin:0 auto 12px;border-radius:var(--kd-radius-ui);background:var(--vi-line);touch-action:none;box-sizing:content-box;padding:12px 40px;background-clip:content-box}
.mobile-add-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.mobile-add-head h2{margin:0;font-size:var(--vi-type-section)}
.mobile-add-x{width:var(--kd-btn-w);height:var(--kd-btn-h);display:grid;place-items:center;border-radius:var(--kd-radius-ui);background:var(--vi-raised);color:var(--vi-ink);border:0}
.mobile-add-row{display:flex;align-items:center;gap:14px;width:100%;min-height:56px;margin-bottom:8px;padding:8px 14px;text-align:left;border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui);background:var(--vi-paper);color:var(--vi-ink)}
.mobile-add-row.is-primary{min-height:92px;padding:14px 16px;border-color:var(--vi-accent);background:var(--vi-accent);color:var(--vi-on-accent)}
.mobile-add-row.is-primary b{font-size:var(--vi-type-section)}
.mobile-add-row.is-primary small{color:inherit;opacity:.85}
.mobile-add-row b{display:block;font-size:var(--vi-type-body)}
.mobile-add-row small{display:block;font-size:var(--vi-type-caption);color:var(--vi-muted)}
.mobile-add-ic{width:40px;height:40px;display:grid;place-items:center;flex:none}
.mobile-add-row:focus-visible,.mobile-add-x:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}
@media(min-width:761px){
 .mobile-add-sheet{inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-height:min(720px,88dvh);border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui)}
 .mobile-add-grab{display:none}
 .mobile-add-body{padding:20px 20px 20px}
}

/* Shared metric alignment: natural row height, never fixed blank slots. */


.detail-values>div,.batch-summary>div{display:flex;flex-direction:column;justify-content:center;text-align:center;align-items:center;min-width:0}
.detail-values>div>* ,.batch-summary>div>*{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.detail-values>div,.batch-summary>div{gap:6px}

/* Dedicated index presentation. No effect on series detail, card lists or desktop navigation. */

.collector-app button.catalog-set-tile { display:grid; grid-template-columns:6.5rem minmax(0,1fr); gap:16px; min-width:0; width:100%; padding:16px; margin:0; border:1px solid var(--line); border-radius:var(--kd-radius-ui); background:var(--panel); color:var(--ink); text-align:left; align-items:center; }
.collector-app .catalog-set-tile:hover { border-color:var(--accent); color:var(--ink); }
.collector-app .catalog-set-tile:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
@media(max-width:760px){
 .collector-app button.catalog-set-tile { grid-template-columns:5.75rem minmax(0,1fr); gap:14px; padding:12px; }
}
@media(max-width:360px){.collector-app button.catalog-set-tile{grid-template-columns:4.75rem minmax(0,1fr);gap:12px}}
@supports(grid-template-rows:subgrid){
 @media(min-width:761px){
  .collector-app button.catalog-set-tile{grid-row:span 6;grid-template-rows:subgrid;row-gap:6px;align-items:stretch}
 }
}

.missing-data{font-family:'Space Grotesk','Noto Sans TC',sans-serif;color:var(--ink)}
.missing-data button{font:inherit;min-height:44px;white-space:normal;cursor:pointer}
.missing-data button:focus-visible,.missing-data li[tabindex="-1"]:focus{outline: 2px solid var(--vi-marker);outline-offset: 3px} /* the programmatically focused row (opened from the bell) shows its ring: the :focus exception for tabindex -1 targets */
.missing-data.bell{position:relative}.missing-data b{font-variant-numeric:tabular-nums}
.missing-data ul{list-style:none;margin:0;padding:0}.missing-data li{overflow-wrap:anywhere}
.missing-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:70;width:min(390px,calc(100vw - 32px));max-height:70dvh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--kd-radius-ui);padding:16px;box-shadow:0 16px 48px #0005}
.missing-popover h2{font-size:var(--vi-type-lg)}.missing-popover li:not(.cr-row) button{display:grid;width:100%;text-align:left;gap:5px;padding:12px;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit}
.missing-data p,.missing-data small{color:var(--muted);line-height:1.6}.missing-data small{display:block}.missing-data h4{margin:12px 0 4px}.missing-data h4 span{font-weight:400}
.missing-data.management{padding:20px;border:1px solid var(--line);border-radius:var(--kd-radius-ui);background:var(--panel)}
.missing-data.management li{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid var(--line)}
.missing-data.management li>div{min-width:0}.missing-data.management li>button{flex-shrink:0}.missing-data [data-selected=true]{background:var(--paper)}
@media(max-width:600px){.missing-data.management li{align-items:stretch;flex-direction:column;gap:8px}.missing-data.management{padding:14px}.missing-popover{position:fixed;right:16px;top:76px}}

.missing-data.management>section{background:transparent;border:0;padding:0;margin:24px 0 0}.missing-data button{color:inherit;background:var(--panel);border:1px solid var(--line)}
.missing-data.bell>button{display:flex;align-items:center;justify-content:center;gap:6px}
.missing-data .missing-popover{position:fixed;inset:90px 20px auto auto;margin:0;color:var(--ink);max-height:75dvh;width:min(390px,calc(100vw - 32px));padding:16px}
.missing-popover::backdrop{background:#0005}.notification-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}.notification-heading h2{margin:0}
@media(max-width:760px){
 .collector-app .app-header{gap:8px}.collector-app .brand-wordmark{width:120px!important}
 .missing-data.bell>button{padding:8px;min-width:44px}.notification-label{display:none}
 .missing-data .missing-popover{inset:auto 0 0;margin:0;width:100%;max-height:80dvh;border-radius:var(--kd-radius-ui) var(--kd-radius-ui) 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
 .mobile-add{font-size:13px;padding:8px}.management-navigation nav{flex-wrap:wrap}
}
@media(max-width:760px){.missing-data .missing-popover{max-width:100%}}

/* ---- Identifiable rows + inline batch editing (2026-10-12) ---- */
.missing-data.management .mb-list{display:grid;gap:0}
.collector-app .missing-data.management .missing-group li.mb-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:stretch;justify-content:stretch;padding:14px 0 14px 10px;border-top:1px solid var(--vi-line,var(--line))}
.missing-data .mb-head{display:flex;align-items:center;gap:12px;min-width:0}
.missing-data .mb-check{flex:none;width:22px;height:22px;min-height:0;margin:0}
.missing-data .mb-thumb{flex:none;width:52px}.missing-data button.mb-thumb{min-height:0;padding:0;margin:0;border:0;background:none;border-radius:var(--kd-radius-card);cursor:pointer}
.missing-data .mb-thumb .kd-art .card-visual.is-clean{box-shadow:0 1px 2px var(--kd-art-shadow-soft),0 4px 8px -4px var(--kd-art-shadow)}
.missing-data .mb-thumb .kd-art .card-visual.is-clean :is(.art-card-ph>*,.image-kind,.art-skeleton){display:none}
.missing-data .mb-thumb .kd-art .card-visual.is-clean.has-ph{background:var(--vi-raised)!important}
.missing-data .mb-thumb .kd-art:hover .card-visual.is-clean{transform:none}
.missing-data .mb-id{display:grid;gap:2px;min-width:0;flex:1}
.missing-data .mb-id>strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
.missing-data .mb-sub{color:var(--muted);font-size:.8125rem;line-height:1.4;overflow-wrap:anywhere}
.missing-data .mb-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.8125rem;color:var(--muted)}
.missing-data .mb-cert{display:inline-flex;align-items:center;gap:2px;font-variant-numeric:tabular-nums}
.missing-data .mb-dirty{flex:none;align-self:flex-start;padding:2px 8px;border-radius:var(--kd-radius-ui);background:color-mix(in srgb,var(--vi-accent) 22%,transparent);color:var(--vi-ink,var(--ink));font-size:.75rem;font-weight:600}
.missing-data .mb-full{margin:0;font-size:.8125rem;overflow-wrap:anywhere}.missing-data .mb-full span{font-weight:600}
.missing-data .mb-note{font-size:.8125rem}
.collector-app .missing-data li.mb-row[data-error=true]{box-shadow:inset 3px 0 0 var(--vi-danger);padding-left:10px}
.collector-app .missing-data li.mb-row[data-dirty=true]:not([data-error=true]){box-shadow:inset 3px 0 0 var(--vi-accent);padding-left:10px}
.missing-data .mb-edit{display:grid;gap:8px;min-width:0}
.missing-data .mb-date{display:grid;gap:8px;min-width:0}
.missing-data .kd-seg.mb-seg{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;background:none;box-shadow:none}.missing-data .kd-seg.mb-seg .kd-seg__cap{display:none}
.collector-app .missing-data .kd-seg.mb-seg .kd-seg__i{flex:0 0 auto;min-inline-size:0;padding:0 12px;border:1px solid var(--vi-line);font-size:.875rem}.collector-app .missing-data .kd-seg.mb-seg .kd-seg__i[data-on]{background:var(--vi-accent);border-color:transparent}
.missing-data .mb-date input,.missing-data .mb-edit select,.missing-data .mb-edit input{min-height:44px;max-width:100%;font:inherit;box-sizing:border-box}
.missing-data .mb-date input{width:min(100%,16rem)}
.missing-data .mb-bgs{font-size:.8125rem}.missing-data .mb-bgs select{min-width:12rem}
.missing-data .mb-version{font-size:var(--vi-type-sm)}.missing-data .mb-choice{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.missing-data .mb-choice>span{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}.missing-data .mb-choice>button{min-height:44px}.missing-data .mb-version label{display:grid;gap:4px}.missing-data .mb-version select{min-width:12rem}
.missing-data .mb-cost{grid-template-columns:minmax(0,1fr) 7rem;gap:8px;align-items:end}.missing-data .mb-cost label{display:grid;gap:4px;font-size:.8125rem}
.missing-data button.mb-hint{min-height:44px;padding:4px 12px;border:1px dashed var(--vi-accent);background:transparent;color:var(--vi-accent);border-radius:var(--kd-radius-ui);font-size:.8125rem;text-align:left;justify-self:start;max-width:100%}
.missing-data .mb-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.missing-data .mb-actions button{padding:0 14px}
.missing-data button.mb-more{border-color:transparent;background:none;color:var(--muted);text-decoration:underline;font-size:.8125rem}
.missing-data .mb-bulk{display:grid;gap:10px;margin:0 0 8px}
.missing-data .mb-bulk-edit{display:grid;gap:8px;padding:12px;border:1px solid var(--vi-line,var(--line));border-radius:var(--kd-radius-ui);background:var(--paper)}
.missing-data button.mb-primary{background:var(--vi-accent);color:var(--vi-on-accent);border-color:transparent;font-weight:600}
.missing-data button.mb-primary:disabled{opacity:.5;cursor:not-allowed}
.missing-data .mb-bar{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px;padding:10px 12px;border:1px solid var(--vi-line,var(--line));border-radius:var(--kd-radius-ui);background:var(--panel);box-shadow:0 8px 28px #0006}
.missing-data .mb-bar-note{flex:1 1 12rem;font-size:.8125rem;color:var(--muted);overflow-wrap:anywhere}
@media(min-width:900px){.collector-app .missing-data.management .missing-group li.mb-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr);column-gap:24px;align-items:start}.collector-app .missing-data.management .missing-group li.mb-row>.mb-head{grid-column:1}.collector-app .missing-data.management .missing-group li.mb-row>:not(.mb-head){grid-column:2}.collector-app .missing-data.management .missing-group li.mb-row>.mb-full,.collector-app .missing-data.management .missing-group li.mb-row>.mb-note{grid-column:2}}
@media(max-width:760px){.missing-data .mb-bar{bottom:calc(74px + env(safe-area-inset-bottom))}}


.header-notifications{flex:none}
.header-notifications .notification-label{display:none}
.header-notifications .missing-data.bell>button{min-width:60px;min-height:44px;padding:8px 10px;gap:6px}
.fx-help{display:flex;flex:none}
.fx-help-trigger{width:44px;min-width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center}
/* 總覽: the ⓘ beside the value label. Plain icon, 44px hit box that overlaps its neighbours instead of growing the row. */
.collector-app .fx-help.is-inline{display:inline-flex;vertical-align:middle;margin-block:-14px}
.collector-app .fx-help.is-inline .fx-help-trigger{border:0;background:transparent;box-shadow:none;border-radius:var(--kd-radius-round);color:var(--vi-muted);cursor:pointer}
.collector-app .fx-help.is-inline .fx-help-trigger:is(:hover,[aria-expanded=true]){color:var(--vi-ink)}
.collector-app .fx-help.is-inline .fx-help-trigger:focus-visible{outline:2px solid var(--vi-marker);outline-offset:-4px}
.fx-help-popover{position:fixed;inset:auto;margin:0;width:400px;max-width:calc(100vw - 24px);box-sizing:border-box;overflow:auto;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:var(--kd-radius-ui);box-shadow:0 18px 60px #0005;padding:0}
.fx-help-popover p{font-size:14px;line-height:1.65;margin:0 0 14px}
.fx-help-popover .fx-rates{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin-bottom:16px;font-size:13px}
.fx-help-popover button:focus-visible{outline: 2px solid var(--vi-marker);outline-offset:-3px}
@media(max-width:760px){
 .header-notifications .missing-data.bell>button{min-width:54px;padding:8px}
 .fx-help-popover .chrome-panel-body{padding:14px}
}
.collector-app .ov .fx-help-popover .ov-info-body{position:static;width:auto;max-height:none;overflow:visible;z-index:auto;inset:auto;padding:0;background:none;border:0;box-shadow:none;font-size:inherit}
.fx-help-popover .fx-notes{margin:0 0 14px}

/* Scope neutral privacy feedback; do not recolor warnings or gain/loss values. */
html .collector-app aside.hidden-amounts-notice{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:var(--kd-radius-ui);padding:14px 16px;margin:14px 0;box-shadow:none}
.hidden-amounts-notice>b{font-size:14px;font-weight:600}
/* reserved note slot (HiddenAmountsSlot, C2-E1): one compact row's box (44 px button + 6+6 padding + 2 border + its 8+8 margin, contained by flow-root) exists in both states, the notice only while hidden */
.collector-app .ha-slot{display:flow-root;min-block-size:74px}
.hidden-amounts-notice>p{color:var(--muted);font-size:var(--vi-type-sm);line-height:1.6;margin:6px 0 10px}
.hidden-amounts-notice .privacy-control{display:flex;align-items:center;margin:0;padding:0}
.hidden-amounts-notice .privacy-control>span{display:none}
html .collector-app .hidden-amounts-notice .privacy-control button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:44px;min-height:44px;padding:8px 12px;background:transparent;color:var(--ink);border:1px solid var(--line);font-size:var(--vi-type-sm)}
html .collector-app .hidden-amounts-notice button:hover{background:var(--vi-raised);color:var(--ink)}
html .collector-app .hidden-amounts-notice button:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}
html .collector-app .amount-mask{color:var(--muted)}
.collector-app .management-navigation{padding:0;border:0;background:transparent;margin:0 0 20px}
.collector-app .manage-list{--ohd-ok:var(--vi-ok);--ohd-warn:var(--vi-warning)}
.collector-app .manage-list{margin:0;padding:0;border:0;background:transparent}
.collector-app .manage-list>h2{display:flex;align-items:baseline;gap:8px;margin:0 0 4px}
.collector-app .manage-list>h2 small{font-size:var(--vi-type-sm);font-weight:600;color:var(--vi-muted)}
.collector-app .manage-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 0 4px;padding:0 12px 0 0;border:0;background:none;color:var(--vi-ink);font-size:inherit;font-weight:600}
.collector-app small.num.is-zero{color:var(--vi-muted)}
.collector-app .manage-rows{margin:0;padding:0;list-style:none}
.collector-app .manage-image-row{display:flex;align-items:center;gap:12px;min-height:88px;padding:8px 0;border-top:1px solid var(--vi-line)}
.collector-app .manage-image-row[data-focus-target][tabindex="-1"]:focus{outline:2px solid var(--vi-marker);outline-offset:3px} /* only a row focused by code (opened from the bell, or reached with J / K) has data-focus-target + tabindex -1 and shows the ring; any other row is not focusable, so a click on it shows nothing */
.collector-app .manage-thumb{display:block;flex:none;width:44px;height:62px;overflow:hidden;border-radius:var(--kd-radius-ui);background:var(--vi-art-well)}
.collector-app .manage-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.collector-app .manage-thumb .kd-art .card-visual.is-clean :is(.art-card-ph>*,.image-kind,.art-skeleton){display:none}
.collector-app .manage-id{display:grid;flex:1;gap:2px;min-width:0}
.collector-app .manage-id>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collector-app .manage-sub{color:var(--vi-muted);font-size:var(--vi-type-sm)}
.collector-app .manage-row-actions{display:flex;flex:none;gap:8px}
.collector-app :is(.manage-row-actions,.manage-owner-bar,.manage-filters) button{min-width:44px;min-height:44px;padding:0 12px;border:1px solid var(--vi-line-strong);border-radius:var(--kd-radius-ui);background:transparent;color:var(--vi-ink);font-size:var(--vi-type-sm)}
.collector-app .manage-owner-header{min-height:104px}
.collector-app .manage-filters{display:flex;flex-wrap:wrap;gap:8px;min-height:44px;margin:0 0 8px} /* the chips WRAP (two rows on a phone): nothing is cut off or scrolls away, and the labels never change, so the block keeps its height when the filter changes */
.collector-app .manage-filters button{flex:none;min-width:44px;min-height:44px;padding:0 14px;border:1px solid var(--vi-line-strong);border-radius:var(--kd-radius-ui);background:transparent;color:var(--vi-ink);white-space:nowrap}
.collector-app .manage-filters button[aria-pressed=true]{background:var(--vi-accent);border-color:var(--vi-accent);color:var(--vi-on-accent)}
.collector-app .manage-owner-bar{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;height:44px;margin:0 0 8px;overflow-x:auto;scrollbar-width:none;font-size:var(--vi-type-sm);white-space:nowrap}
.collector-app .manage-owner-bar>*{flex:none}
.collector-app .manage-rows-body{min-height:calc(100svh - 120px)} /* the footer sits below a screen of list, so switching chips never moves it into view; the done block grows inside it */
.collector-app .manage-owner-slot{min-height:320px}
.collector-app .manage-list.is-admin .manage-image-row{min-height:78px;padding-block:8px}
.collector-app .manage-list.missing-data.management{padding:0;border:0;background:transparent}
.collector-app .oripa-direct-link{min-height:44px;margin:8px 0;padding:8px 0;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px}

/* Card detail (R6): price block, price chart, action row, the five stacked sections (價格走勢 · 購入 · 照片 · 紀錄 · 來源), the sources list, the one ⓘ popover
   (app/card-detail/*, CardDetail in collection-gallery.tsx).
   Loaded through an @import at the top of app/immersive-art-view.css (layout.tsx is owned by another change right now);
   moving it to `import './card-detail/card-detail.css'` in app/layout.tsx later changes nothing.
   Colours come from --vi-* / --kd-* (light + dark). Text floor 12px; touch targets 44px. Nothing here changes height with hidden amounts. */

/* ---------- art: honesty labels as small chips under the art, never over it ---------- */
.collector-app .rh-detail-art .card-visual .image-kind { display: none; }
.collector-app .cd-art-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; }
.collector-app .cd-art-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--kd-radius-ui); border: 1px solid var(--vi-line-strong); color: var(--vi-muted); font-size: .75rem; line-height: 1.5; background: var(--vi-panel); }

/* ---------- key facts below the value / cost / gain summary ---------- */
.collector-app .cd-facts { display: grid; gap: 12px; margin: 4px 0 0; }
.collector-app .cd-facts-list { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.collector-app .cd-facts-list > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }   /* R3: label and value share a line when they fit */
.collector-app .cd-facts-list dt { font-size: .75rem; line-height: 1.5; color: var(--vi-muted); }
.collector-app .cd-facts-list dd { margin: 0; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.collector-app .cd-facts .muted { color: var(--vi-muted); font-weight: 400; }
.collector-app .cd-facts:empty { display: none; }
.collector-app .cd-inline-note { margin: 0; font-size: .8125rem; color: var(--vi-muted); }

/* ---------- chart (vi.md): ink line / ink dots, three grid lines, axis labels 12 muted tabular; quotes are dots only, never joined ---------- */
.collector-app .cd-chart { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; background: none; }
.collector-app .cd-chart svg { display: block; width: 100%; height: 96px; overflow: visible; }
.collector-app .cd-chart-grid { fill: none; stroke: var(--vi-chart-grid); stroke-width: 1; }
.collector-app .cd-chart-line { fill: none; stroke: var(--vi-ink); stroke-width: 1.75; stroke-linejoin: round; }
.collector-app .cd-chart-dot { fill: none; stroke: var(--vi-ink); stroke-width: 5; stroke-linecap: round; }
.collector-app .cd-chart-end { fill: none; stroke: var(--vi-ink); stroke-width: 7; stroke-linecap: round; }
/* one line, masked or not: the middle label clips instead of wrapping, so hiding amounts never changes the row */
.collector-app .cd-chart-axis { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; font-size: .75rem; line-height: 1.5; color: var(--vi-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.collector-app .cd-chart-range { min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; }
.collector-app .cd-chart figcaption, .collector-app .cd-chart-note { margin: 0; font-size: .75rem; color: var(--vi-muted); }

/* ---------- action row: 編輯 · 分享 · 記錄出售 (ghost) ---------- */
.collector-app .cd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.collector-app .cd-actions > button { flex: 1 1 auto; min-width: 0; }
.collector-app .cd-actions > button:disabled { opacity: .55; }
.collector-app .cd-actions > .cd-sell { flex: 0 0 auto; margin-inline-start: auto; }   /* R3: 記錄出售 is a quiet ghost at the row's right end */

/* ---------- sections: one column, hairline between, never boxed ---------- */
.collector-app .cd-sec { display: grid; gap: 12px; align-content: start; min-width: 0; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--vi-line); }
.collector-app .cd-sec > * { margin-block: 0; min-width: 0; }
.collector-app .cd-sec > h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.collector-app .cd-sec h4 { margin: 0; font-size: .875rem; font-weight: 700; line-height: 1.4; }
.collector-app .cd-empty { margin: 0; color: var(--vi-muted); font-size: .875rem; }
/* the reused panels are <section>s / <details> the dialog styles as boxed cards; inside a section they read as plain rows */
html .collector-app .cd-sec :is(section, .quote-comparison, .card-history, .mg-card, .manual-value-editor, .sale-panel, .cd-psa-cost, .cd-details, .cd-purchase, .fxh-card, .art-credit, .cd-section, .evidence-photos, .activity-timeline),
html .collector-app.collector-app [data-panel="price"] :is(.quote-comparison, .mg-card) { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html .collector-app section.cd-sec { margin: 24px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--vi-line); border-radius: 0; background: none; box-shadow: none; }
html .collector-app .cd-sec details:not(.cd-i) { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--vi-line); border-radius: 0; background: none; box-shadow: none; }
.collector-app .cd-sec details:not(.cd-i) > summary { display: flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; color: var(--vi-muted); cursor: pointer; }
.collector-app .cd-sec dl { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .875rem; }
.collector-app .cd-sec dt { color: var(--vi-muted); }
.collector-app .cd-sec dd { margin: 0; overflow-wrap: anywhere; }
.collector-app .cd-sec dd small { display: block; color: var(--vi-muted); }
/* free text (app/card-detail/free-text.tsx): the SAME fixed box shown and hidden; hidden is one constant mask inside it */
.collector-app .cd-free { position: relative; display: block; block-size: 2lh; min-inline-size: 0; }
.collector-app .cd-free-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-block-size: 2lh; overflow: hidden; overflow-wrap: anywhere; }
/* the manual value and its clear button: one column, so the width of the typed note never moves the button (UI-3) */
.collector-app .cd-mv-row { display: grid; justify-items: start; gap: 8px; }
.collector-app .cd-mv-row > .manual-value { display: flex; flex-wrap: wrap; inline-size: 100%; }
/* the 「全文」 button floats in the box's bottom corner (specificity above the global .cd-i rules): it takes no room, so a long text and a masked one have the same box */
html .collector-app .cd-free > .cd-free-more { position: absolute; inset-inline-end: 0; inset-block-end: 0; padding-inline-start: 24px; background: linear-gradient(90deg, transparent, var(--vi-raised) 40%); }
html .collector-app .cd-free > .cd-free-more > summary { min-width: 44px; justify-content: center; font-size: var(--vi-type-sm); font-weight: 600; color: var(--vi-accent); }
.collector-app .cd-free-full { white-space: pre-wrap; overflow-wrap: anywhere; }
.collector-app .manual-value > .cd-free { flex-basis: 100%; }
.collector-app .cd-pre-box { position: relative; }
.collector-app .cd-sec .cd-pre { block-size: 12rem; max-height: none; overflow: auto; margin: 0; }
.collector-app .cd-pre-box > .cd-orig { position: absolute; inset-block-start: 4px; inset-inline-end: 8px; margin: 0; }
.collector-app .cd-sale-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; margin: 4px 0; }
.collector-app .cd-sec pre { max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.collector-app .cd-sec .evidence-photos img.photo { display: block; max-width: min(100%, 360px); height: auto; border-radius: var(--kd-radius-ui); }
.collector-app .cd-sec .cd-copy { min-height: 44px; }
.collector-app .cd-sec .cd-psa-cost p { margin: 4px 0; font-size: .875rem; }
.collector-app .cd-sec .cd-psa-cost small { display: block; color: var(--vi-muted); }
.collector-app .cd-sec { scroll-margin-top: 96px; }

/* the admin-only official-art lookup under a placeholder art keeps to one row here: its explanation sits behind the heading, so the name and the price stay on the first phone screen (TR-15) */
.collector-app .rh-detail .official-art { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; border: 0; background: none; }
.collector-app .rh-detail .official-art > p { margin: 0; }
.collector-app .rh-detail .official-art > p.muted { display: none; }
.collector-app .rh-detail .official-art > p:not(.muted) { display: flex; gap: 8px; align-items: center; }
.collector-app .rh-detail .official-art input { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.collector-app .rh-detail .official-art button { flex: none; min-height: 44px; }

/* ---------- price history rows (saved quotes) ---------- */
.collector-app .card-history { display: grid; gap: 8px; }
html .collector-app .cd-ph-bar .cd-history-pick { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; max-width: none; }
.collector-app .cd-ph-bar .cd-history-pick select { min-width: 0; }
.collector-app .cd-ph-bar .cd-history-pick { white-space: nowrap; }
.collector-app .cd-history-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .cd-history-pick select { min-height: 44px; }
.collector-app .cd-ph-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.collector-app .cd-ph-range { display: inline-flex; gap: 6px; }
.collector-app .cd-ph-range button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: none; color: var(--vi-muted); font: inherit; font-size: var(--vi-type-sm); font-weight: 600; cursor: pointer; }
.collector-app .cd-ph-range button[aria-pressed="true"] { border-color: var(--vi-ink); color: var(--vi-ink); }
.collector-app .cd-ph-chart { display: grid; gap: 6px; margin: 4px 0 8px; }
.collector-app .cd-ph-plot { position: relative; height: 176px; margin-inline-start: 52px; }
.collector-app .cd-ph-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.collector-app .cd-ph-grid { fill: none; stroke: var(--vi-chart-grid); stroke-width: 1; }
.collector-app .cd-ph-area { fill: var(--vi-ink); fill-opacity: .08; stroke: none; }
.collector-app .cd-ph-line { fill: none; stroke: var(--vi-ink); stroke-width: 1.75; stroke-linejoin: round; }
.collector-app .cd-ph-dot { fill: none; stroke: var(--vi-ink); stroke-width: 6; stroke-linecap: round; }
.collector-app .cd-ph-end { fill: none; stroke: var(--vi-ink); stroke-width: 9; stroke-linecap: round; }
.collector-app .cd-ph-ring { fill: none; stroke: var(--vi-ink); stroke-width: 9; stroke-linecap: round; }
.collector-app .cd-ph-hole { fill: none; stroke: var(--vi-paper); stroke-width: 5; stroke-linecap: round; }
.collector-app .cd-ph-y span { position: absolute; inset-inline-start: -52px; width: 46px; transform: translateY(-50%); font-size: var(--vi-type-xs); line-height: 1; text-align: end; color: var(--vi-muted); font-variant-numeric: tabular-nums; }
.collector-app .cd-ph-tip { position: absolute; transform: translate(-100%, -170%); padding-inline: 4px; font-size: var(--vi-type-xs); font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--vi-ink); font-variant-numeric: tabular-nums; }
.collector-app .cd-ph-x { display: flex; justify-content: space-between; margin-inline-start: 52px; font-size: var(--vi-type-xs); line-height: 1.5; color: var(--vi-muted); font-variant-numeric: tabular-nums; }
.collector-app .cd-ph-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: var(--vi-type-xs); color: var(--vi-muted); }
.collector-app .cd-ph-key { display: inline-flex; align-items: center; gap: 4px; color: var(--vi-ink); font-weight: 600; }
.collector-app .cd-q-mark { display: inline-block; flex: none; width: 8px; height: 8px; border: 1.5px solid var(--vi-ink); border-radius: var(--kd-radius-round); }
.collector-app .cd-q-mark.is-sale { background: var(--vi-ink); }
.collector-app .cd-ph-stat { display: grid; gap: 4px; margin: 4px 0 8px; padding: 20px 24px; border: 1px solid var(--vi-line); }
.collector-app .cd-ph-stat p { margin: 0; }
.collector-app .cd-ph-stat-k, .collector-app .cd-ph-stat-n, .collector-app .cd-ph-stat-f { font-size: var(--vi-type-xs); color: var(--vi-muted); }
.collector-app .cd-ph-stat-v { font-size: calc(var(--vi-type-2xl) * .75); font-weight: 700; letter-spacing: -.01em; }
.collector-app .cd-ph-stat-m { font-size: var(--vi-type-md); font-weight: 600; }
.collector-app .cd-hist-rows { --kd-amount-slot: var(--kd-slot-hist); display: grid; margin: 0; padding: 0; list-style: none; }
.collector-app .cd-hist-rows > li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 56px; padding-block: 6px; border-top: 1px solid var(--vi-line); }
.collector-app .cd-h-date { font-size: .875rem; font-variant-numeric: tabular-nums; }
.collector-app .cd-q-mid { display: grid; min-width: 0; }
.collector-app .cd-q-kind { display: inline-flex; align-items: center; gap: 6px; font-size: var(--vi-type-md); font-weight: 600; }
.collector-app .cd-q-mid small { font-size: var(--vi-type-xs); color: var(--vi-muted); }
.collector-app .cd-q-mid small .cd-h-orig, .collector-app .cd-q-mid small .cd-h-src { display: block; }   /* original price and source each on their own line: masked and shown wrap the same, so hiding amounts never changes the row height */
.collector-app .cd-q-mid .cd-h-src { min-height: 0; font-size: var(--vi-type-xs); font-weight: 400; color: var(--vi-muted); text-decoration: underline; text-underline-offset: 2px; }
.collector-app .cd-hist-rows > li > .kd-amount { justify-self: end; font-size: var(--vi-type-md); font-weight: 700; text-align: end; }
.collector-app .cd-q-mid .kd-amount { min-inline-size: 0; font: inherit; }
.collector-app .cd-h-src, .collector-app .cd-src-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--vi-ink); font-size: var(--vi-type-sm); font-weight: 600; text-decoration: none; }
.collector-app .cd-h-src { justify-self: end; }
.collector-app .cd-h-src:hover, .collector-app .cd-src-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 來源: one row per source, named by its host ---------- */
.collector-app.collector-app .cd-src-c-src .cd-src-link { margin: 0; }   /* a global link rule adds 4px: the masked host span has none, so hiding amounts shortened the row */
.collector-app .cd-src-c-src { display: flex; align-items: center; }   /* link and masked host are both flex items: no line-box strut, so shown and hidden rows are the same height */
.collector-app .cd-src-host { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--vi-type-sm); font-weight: 600; }
.collector-app .cd-src-meta { margin: 0; font-size: .75rem; color: var(--vi-muted); }
/* the owner PSA-adopt panel (app/owner-psa-adopt/panel.tsx) still prints its PSA first price in this class */
.collector-app .cd-src-amount { margin: 0; font-size: var(--vi-type-base); }
.collector-app .cd-src-amount strong { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.collector-app .cd-src-amount small { margin: 0; font-size: var(--vi-type-xs); color: var(--vi-muted); }
.collector-app .cd-src-meta strong { font-weight: 600; color: var(--vi-ink); }
/* price rule 2026-10-19: 「顯示中」 marks the row whose value the card shows (inline, inside the fixed-height head); the PSA median line is one fixed line whose sales sit in a floating ⓘ */
.collector-app .cd-src-shown { display: inline-block; font-size: var(--vi-type-sm); font-weight: 600; line-height: 1.5; color: var(--vi-ink); white-space: nowrap; }
.collector-app .cd-src-basis { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 4px; min-height: var(--vi-target); }
.collector-app .cd-src-sales { margin: 0; padding: 8px 12px; list-style: none; font-size: var(--vi-type-sm); }
.collector-app .cd-src-sales li { padding-block: 2px; }
.collector-app .cd-adopt { display: grid; gap: 2px; padding-block: 8px 12px; border-top: 1px solid var(--vi-line); }
.collector-app .cd-adopt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: var(--vi-target); }
.collector-app .cd-adopt-note { font-size: var(--vi-type-sm); color: var(--vi-muted); }

/* ---------- hidden amounts: the SAME box, inert, under one inline notice (manual-value editor, sale form) ---------- */
.collector-app .cd-veil-host { position: relative; min-block-size: 5.5rem; }
.collector-app .cd-veil-host > h3, .collector-app .cd-veil-host > h4 { margin: 0 0 4px; font-size: .875rem; font-weight: 700; }
.collector-app .cd-veil { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: var(--vi-space-3); background: color-mix(in srgb, var(--vi-paper) 90%, transparent); border-radius: var(--kd-radius-ui); }
.collector-app .cd-veil aside.hidden-amounts-notice { margin: 0; }
.collector-app .cd-form-err { min-block-size: 1.5em; margin: 0; font-size: var(--vi-type-sm); color: var(--vi-danger); }
.collector-app .cd-sale-fields { display: grid; gap: 12px; }
.collector-app .cd-sale-fields label { display: grid; gap: 4px; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .cd-f-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.collector-app .cd-sale-fields :is(input, select) { min-height: 44px; }
.collector-app .cd-sale-preview { min-block-size: 3em; margin: 8px 0 0; font-size: var(--vi-type-sm); color: var(--vi-ink); }
.collector-app .cd-sale-fx { display: block; margin-bottom: 8px; color: var(--vi-muted); }
.collector-app .sale-panel .tools { display: flex; flex-wrap: wrap; gap: 8px; }
.collector-app .rh-detail.is-narrow .sale-panel .tools { justify-content: center; }   /* R1: the phone button group is centred by its visual box */
.collector-app .cd-sale-lead { margin: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }

/* ---------- the one ⓘ: 「價格怎麼來的？」 ---------- */
html .collector-app .cd-price-info > .info-tip-body { width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 560px); }
.collector-app .cd-pi h4 { margin: 0 0 8px; font-size: .875rem; font-weight: 700; color: var(--vi-ink); }
.collector-app .cd-pi-sec { margin: 0 0 12px; }
.collector-app .cd-pi h5 { margin: 0 0 4px; font-size: .75rem; font-weight: 700; color: var(--vi-muted); }
.collector-app .cd-pi p { margin: 0 0 6px; }
.collector-app .cd-pi dl { display: grid; gap: 4px; margin: 0; }
.collector-app .cd-pi dt { font-weight: 700; color: var(--vi-ink); }
.collector-app .cd-pi dd { margin: 0; }
.collector-app .cd-pi details { margin: 0; padding: 0; border: 0; }
.collector-app .cd-pi details > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; color: var(--vi-ink); }


/* ---------- 2026-10-13 (Steven's detail review): header amounts toggle, compact hidden-amount rows, ⓘ disclosures ---------- */
html .collector-app .card-dialog .detail-header .cd-amounts-toggle { display: inline-flex; align-items: center; gap: 6px; flex: none; width: auto; white-space: nowrap; min-height: 44px; padding: 8px 12px; }
html .collector-app .card-dialog .detail-header .cd-amounts-toggle svg { flex: none; }
@media (max-width: 520px) { html .collector-app .card-dialog .detail-header .cd-amounts-toggle .cd-amounts-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } html .collector-app .card-dialog .detail-header .cd-amounts-toggle { padding: 8px 10px; } 
  .collector-app .cd-src-table thead { display: none; }
  .collector-app .cd-src-table, .collector-app .cd-src-table tbody, .collector-app .cd-src-sub, .collector-app .cd-src-sub td { display: block; }
  .collector-app .cd-src-table tbody > tr:first-child { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding-block: 0; }
  .collector-app .cd-src-table tbody > tr:first-child > * { padding: 0; }
  .collector-app .cd-src-c-src { grid-area: 1 / 1; }
  .collector-app .cd-src-c-date { grid-area: 1 / 2; justify-self: start; }
  .collector-app .cd-src-c-on { grid-area: 1 / 3; }
  .collector-app .cd-src-c-conv { grid-area: 1 / 4; }
  .collector-app .cd-src-c-nat { display: none; }   /* 2026-10-29 mock: a phone row is source · date · converted amount on ONE line; the original-currency amount is on desktop */
}
/* masked placeholder: one inline row 「金額已隱藏 · [顯示金額] ⓘ」 */
html .collector-app aside.hidden-amounts-notice.is-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 12px; margin: 8px 0; }
html .collector-app aside.hidden-amounts-notice.is-inline > b { font-size: .875rem; white-space: nowrap; }
html .collector-app aside.hidden-amounts-notice.is-inline > span { color: var(--vi-muted); }
html .collector-app aside.hidden-amounts-notice.is-inline .ha-show { display: inline-flex; align-items: center; gap: 6px; flex: none; width: auto; min-width: 0; white-space: nowrap; min-height: var(--vi-target); padding: 4px 10px; writing-mode: horizontal-tb; }
/* the small ⓘ disclosure used on this page (summary = the ⓘ, body below the row) */
.collector-app .cd-i { display: inline-block; position: relative; }
.collector-app .cd-i > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--vi-target); min-height: var(--vi-target); cursor: pointer; color: var(--vi-muted); border-radius: var(--kd-radius-round); }
.collector-app .cd-i > summary::-webkit-details-marker { display: none; }
.collector-app .cd-i > summary:hover, .collector-app .cd-i[open] > summary { color: var(--vi-ink); }
/* 照片 tab: image source as one line + ⓘ */
.collector-app .art-credit .cd-credit-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: .875rem; }
.collector-app .art-credit .cd-credit-line a { overflow-wrap: anywhere; }
.collector-app .art-credit .artwork-provenance p { margin: 4px 0; }

/* UI-13 (375 / 320): the plate, its cert box and the BGS / TAG sub-grade row never exceed the column (the below-400 px rules are at the end of this file). */
.collector-app .rh-detail .kd-gradepanel, .collector-app .rh-detail .kd-gradepanel :is(.gp-head, .gp-id, .gp-desig, .gp-sub, .gp-sub > div) { min-width: 0; max-width: 100%; }
/* ---------- cert pill: fixed cert slot (13 characters: the longest real cert shape is a 13-digit CGC number), 官方查驗 inline beside the grade name; hidden = revealed size ---------- */
/* Width budget at 1440 (left column 400px, row 356px): seal 124 + chip ~146 + GEM MT 63 + gaps. The chip is one line, 「CERT」 then a number slot
   sized for 13 characters (≈ 0.62em each), so the masked and the revealed chip are the same width; */
.collector-app .rh-detail .kd-gradepanel .gp-head { gap: 8px 10px; padding-inline-start: 8px; flex-wrap: wrap; }
.collector-app .rh-detail .kd-gradepanel .gp-id { flex-wrap: nowrap; gap: 6px; min-width: 0; }
.collector-app .rh-detail .kd-gradepanel .kd-cert { display: inline-flex; align-items: center; column-gap: 8px; padding: 0 10px 0 18px; white-space: nowrap; }   /* R3: ONE line, 「CERT 70000002」, label muted */
.collector-app .rh-detail .kd-gradepanel .kd-cert .lab { line-height: 1; }
.collector-app .rh-detail .kd-gradepanel .kd-cert .num { display: block; width: calc(13 * .62em + .3em); font-size: var(--vi-type-sm); letter-spacing: .02em; line-height: 1; white-space: nowrap; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.collector-app .rh-detail .kd-gradepanel .kd-cert .num.mask { letter-spacing: .22em; }
.collector-app .rh-detail .kd-gradepanel .gp-desig { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-width: 0; }   /* R3: grade word and 官方查驗 ↗ on one line when they fit */
/* the app's global `details { padding: 15px 0; border-bottom }` must not reach these one-line ⓘ rows */
html .collector-app :is(.cd-i, .xa-info, .ea-i) { display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* 44 px hit box on a 32 px footprint (M2): the negative margin keeps the line box and the row height of main. */
html .collector-app :is(.cd-i, .xa-info, .ea-i) > summary { padding: 0; margin: -6px; border: 0; min-height: var(--vi-target); min-width: var(--vi-target); }
html .collector-app .art-credit { padding-block: 8px; }
html .collector-app .art-credit .cd-credit-line > span, html .collector-app .art-credit .cd-credit-line > span > a { display: inline; margin: 0; padding: 0; }
/* ⓘ popover (app/info-tip.tsx): the ⓘ stays visible and toggles; the body floats under it, so opening moves nothing (R3). Fixed, placed by
   InfoTip from the ⓘ's rect and clamped to the viewport: a fixed box never adds to the page's scroll width (no sideways scroll on a phone). */
html .collector-app :is(.cd-i, .xa-info, .ea-i) { position: relative; vertical-align: middle; }
html .collector-app :is(.cd-i, .xa-info, .ea-i)[open] > summary { color: var(--vi-ink); }
html .collector-app :is(.cd-i, .xa-info, .ea-i) > .info-tip-body { position: fixed; z-index: 80; top: 0; left: 0; box-sizing: border-box; width: max-content; max-width: min(340px, calc(100vw - 32px));
  overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 10px 12px; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: var(--vi-raised); color: var(--vi-muted);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35); font-size: .8125rem; line-height: 1.6; text-align: left; white-space: normal; }
html .collector-app :is(.cd-i, .xa-info, .ea-i) > .info-tip-body > :first-child { margin-top: 0; }
html .collector-app :is(.cd-i, .xa-info, .ea-i) > .info-tip-body > :last-child { margin-bottom: 0; }
html .collector-app :is(.cd-i, .xa-info, .ea-i) > .info-tip-body :is(p, dd, strong) { color: var(--vi-ink); }
/* Shared catalog note (app/catalog-art/client.tsx): one fixed line in every state, so the content below never moves. The chip truncates;
   the ⓘ popover is not clipped (the paragraph itself does not hide overflow). */
.collector-app .catalog-art-note { flex-wrap: nowrap; align-items: center; height: 32px; }
.collector-app .catalog-art-note .cd-art-chip { display: block; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* 「原文」: a stored English note shown as written in zh mode (card-detail/source-notes.tsx). */
.collector-app .cd-orig { display: inline-block; margin: 0 6px 2px 0; padding: 0 6px; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); font-size: .75rem; font-weight: 600; line-height: 1.5; color: var(--vi-muted); }
/* Cert-bearing source address while certs are hidden (brand/CertChip CertSafeLink); an edit field holding a cert (CertGate). */
.collector-app .kd-source-host { color: var(--vi-muted); font-size: .75rem; white-space: nowrap; }
html .collector-app .kd-cert-gate { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 44px; padding: 8px 12px; color: var(--vi-muted); font-size: .875rem; }
/* ⓘ beside a price-kind label or a ≈ mark: same shared InfoTip, compact so it never stretches a chip or a text line. */
.collector-app .cd-kind-tip { padding: 0; border: 0; vertical-align: middle; }
.collector-app .cd-kind-tip > summary { min-width: var(--vi-target); min-height: var(--vi-target); margin: -10px -8px; }
.collector-app .approx-mark { cursor: help; }

/* prose that carries amounts (batch, trade, sale, timeline, FX cost): one constant slot per amount, shown and hidden alike (app/card-detail/amount-slot.tsx) */
.collector-app .cd-prose .kd-amount { --kd-amount-slot: 13ch; }

/* One phone block (below 400 px): the action row and the section lists tighten; UI-13: the plate's cert box wraps to its own line under the seal, the skew
   overhang padding goes (the pseudo-box leans 12 px past its own edge, so the box keeps a 12 px margin) and the sub-grade row loses its side padding. */
.collector-app .cd-specs { display: grid; gap: 12px; margin-top: 8px; padding: 0; border: 0; background: none; }   /* ONE block: under the art from 900px up (is-art), after the name on a phone (is-main); which one is decided in JS (useWideDetail) */
.collector-app .cd-specs .kd-gradepanel { margin: 0; }
.collector-app .cd-specs dl { display: grid; margin: 0; }
.collector-app .cd-specs dl > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; gap: 8px; min-height: 36px; padding-block: 6px; border-top: 1px solid var(--vi-line); }
.collector-app .cd-specs dt { font-size: var(--vi-type-xs); color: var(--vi-muted); }
.collector-app .cd-specs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: var(--vi-type-sm); font-weight: 600; }
.collector-app .cd-specs dd small { display: block; font-weight: 400; color: var(--vi-muted); font-size: var(--vi-type-xs); }
.collector-app .cd-specs dd .kd-amount { font-size: inherit; min-inline-size: var(--kd-slot-value); text-align: start; }   /* constant reserved width: the same shown and hidden */
@media (max-width: 400px) {
  .collector-app .cd-actions > button { padding-inline: 10px; }
  .collector-app .cd-sec dl { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); }
  .collector-app .rh-detail .kd-gradepanel .gp-head { padding-inline-start: 0; }
  .collector-app .rh-detail .kd-gradepanel .gp-name-plain { display: none; }   /* phone: the plain grade word (GEM MT) would wrap onto its own line under the seal; the seal already says PSA 10 */
  .collector-app .rh-detail .kd-gradepanel .gp-id { flex-wrap: wrap; row-gap: 6px; }
  .collector-app .rh-detail .kd-gradepanel .kd-cert { margin-inline: 0 12px; max-width: calc(100% - 12px); }
  .collector-app .rh-detail .kd-gradepanel .gp-sub { padding-inline: 0; gap: var(--vi-space-1); }
}


/* Narrow override on the existing CardDetail dialog, independent of app navigation styles. */
dialog.card-dialog.immersive-art-host {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  overflow: hidden; background: #101218; color: #f6f7fb;
}
.immersive-art-view { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.immersive-art-view button { min-height: 44px; padding: 8px 12px; border: 1px solid #808999;
  border-radius: var(--kd-radius-ui); color: #f6f7fb; background: #252b36; font: inherit; cursor: pointer; }
.immersive-art-view button[aria-pressed=true] { border-color: #fff; background: #3d495f; }
.immersive-art-view :focus-visible { outline: 3px solid #a6d7ff; outline-offset: 3px; }
.immersive-art-view [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  dialog.immersive-art-host, .immersive-art-view, .immersive-art-view * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.card-dialog .detail-standard-content[hidden] { display: none !important; }
.card-dialog .detail-art-trigger { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
html .collector-app dialog.card-dialog.immersive-art-host { background:#101218; color:#f6f7fb; }
html .collector-app .immersive-art-view button { background:#252b36; color:#f6f7fb; border-color:#808999; }
html .collector-app .immersive-art-view :is(header,footer,section) { background:transparent; border:0; margin:0; }
html .collector-app .immersive-art-view :is(h2,p,summary) { color:#f6f7fb; }
html .collector-app .immersive-art-view { margin:0; padding:0; border:0; background:transparent; }

/* KAKURA UX/a11y pass. Loaded LAST (see layout.tsx). Presentation only: no money, privacy or data semantics.
   Type scale: one page-title token (--vi-page-title), one section token (--vi-section-title), 12px floor.
   Buttons: primary = filled accent (button.primary / .nav-add), secondary = outlined (default button),
   ghost = text-weight outline-on-hover (.btn-ghost, header Sign out, account links). */
:root {
  --vi-page-title: 2rem;
  --vi-section-title: 1.25rem;
  --vi-floor: .75rem;
}
@media (max-width: 760px) { :root { --vi-page-title: 1.75rem; } }

/* ---- 2. Type: one page-title token, tabular numerals ---- */
.collector-app { font-variant-numeric: tabular-nums lining-nums; }
html body .collector-app :is(.hero-copy h2, .analysis-heading h2, .collection-browser > .sectionhead h2, .encyclopedia > .sectionhead h2, .marketplace-placeholder h2) {
  font-size: var(--vi-page-title); font-weight: var(--vi-weight-strong); line-height: var(--vi-line-title); letter-spacing: -.02em;
}

/* ---- 2. 12px floor for every text role that was authored below it ---- */
html body .collector-app :is(
  .eyebrow, .image-kind, .art-placeholder small, .art-placeholder strong, .card-badges > span, .card-badges small, .cert, .card-bottom button,
  .art-credit, .financial-strip small, .purchase-line, .card-pnl, .allocation-row small, .microcopy, .focus-name small,
  .focus-row > div > button, .attention-row > span:last-child, .attention-row small, .attention-panel .sectionhead > small,
  .batch-group summary small, .batch-prizes small, .hero-caption span, .shelf-caption, .archive-note > span, .card-bottom strong small,
  .detail-values small, .activity-timeline time, .editorial-ledger small, .home-section-title button, .view-toggle button,
  .header-preferences label, .catalog-card-grid a, .series-label, .counterpart-note, .counterpart-note p, .counterpart-note button,
  .catalog-owned button, .catalog-owned small, .series-product-image small, .series-release small, .artwork-queue code,
  .era-sidebar small, .catalog-results .set-card > div, .catalog-date-group > h3 small, .chart-scale, .analysis-range button,
  .analysis-range small, .resultbar, .resultbar > select, .ranking-panel select, .brand-lockup > small, .brand-lockup > .brand-subtag,
  .catalog-set-art .series-product-image > small, .mobile-app-nav button span, .management-count, code, .cert
) { font-size: var(--vi-floor); }
/* roles that read as body-ish metadata keep a slightly larger size */
html body .collector-app :is(.card-badges > span, .card-pnl, .purchase-line, .microcopy, .counterpart-note, .catalog-owned button, .catalog-card-grid a) { font-size: .8125rem; }
html body .collector-app .focus-name { font-size: .875rem; line-height: 1.45; }

/* ---- 3. Masked amounts keep the amount's own size/weight/line-height; wide, evenly spaced glyphs ---- */
html body .collector-app .amount-mask { letter-spacing: .16em; white-space: nowrap; font-variant-numeric: tabular-nums; }
html body .collector-app :is(strong, td, .ledger-amount) { line-height: inherit; }

/* ---- 4. Controls ---- */
html body :is(button, input, select, textarea) { font-family: var(--vi-font); }
html body .collector-app .missing-data { font-family: var(--vi-font); }
html body .collector-app input[type='file'] { padding: .375rem; min-height: var(--vi-control-target); max-width: 100%; color: var(--muted); }
html body .collector-app input[type='file']::file-selector-button {
  font: inherit; font-weight: var(--vi-weight-label); min-height: 2rem; margin-inline-end: .75rem; padding: .25rem .875rem; cursor: pointer;
  border: 1px solid var(--vi-line-strong); border-radius: var(--kd-radius-ui); background: var(--vi-raised); color: var(--ink);
}
html body .collector-app input[type='file']::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
/* ghost button: header Sign out, account links */
html body .collector-app :is(.desktop-app-nav > a, .btn-ghost) {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--vi-control-target); padding: .5rem 1rem; margin-left: 0;
  border: 1px solid transparent; border-radius: var(--kd-radius-ui); background: transparent; color: var(--ink);
  font-size: var(--vi-type-control); font-weight: var(--vi-weight-label); text-decoration: none; white-space: nowrap;
}
html body .collector-app :is(.desktop-app-nav > a, .btn-ghost):hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 761px) {
  html body .collector-app .collection-table table :is(th, td).metric-cell { text-align: right; white-space: nowrap; overflow-wrap: normal; width: auto; padding-inline: 1rem; }
  html body .collector-app .collection-table table td.metric-cell > :is(small, .ledger-amount) { text-align: right; margin-inline: auto 0; }
}
html body .collector-app :is(td, th).num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- 5. Contrast: muted text and placeholders ---- */
html body .collector-app ::placeholder { color: var(--muted); opacity: 1; }
html body .collector-app :is(.analysis-range > span, .analysis-range small, .resultbar, .art-credit, .era-sidebar small, .shelf-caption, .image-kind) { color: var(--muted); }
html body .collector-app :is(.hero-copy small, .collector-hero small, .metrics small, .stat small, .overview-metrics small) { color: var(--muted); }
html body .collector-app :is(.art-placeholder strong, .art-placeholder small, .art-placeholder span, .financial-strip strong span) { color: var(--muted); }
html body .collector-app button.favorite { color: var(--ink); }
html body .collector-app button.favorite[aria-pressed='true'] { color: var(--vi-warning); }

/* ---- 6. Closed FX popover: never a focus stop ---- */
.fx-help-popover:not(:popover-open), .fx-help-popover:not(:popover-open) * { display: none !important; }
 /* 12px dot + 2x2px border + 2x9px = 26px hit area */
.inline-count { margin-inline-start: .3em; font-variant-numeric: tabular-nums; }

/* ---- 8. Preferences toast (does not push layout) ---- */
html body aside.pref-toast {
  position: fixed; z-index: 90; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem); left: 50%; transform: translateX(-50%); margin: 0;
  display: flex; align-items: center; gap: .75rem; width: max-content; max-width: min(34rem, calc(100vw - 1.5rem)); padding: .5rem .5rem .5rem 1rem;
  background: var(--vi-panel, var(--panel)); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--vi-warning); border-radius: var(--kd-radius-ui); box-shadow: var(--vi-shadow);
  font-size: .875rem; line-height: 1.5;
}
html body aside.pref-toast > span { flex: 1; min-width: 0; }
html body aside.pref-toast button { min-height: var(--vi-control-target); padding: .25rem .75rem; flex: none; }
html body aside.pref-toast .pref-toast-close { min-width: var(--vi-control-target); padding: 0; font-size: 1.25rem; line-height: 1; background: transparent; border-color: transparent; color: var(--ink); }
@media (max-width: 760px) { html body aside.pref-toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem); } }
.field-error { flex-basis: 100%; }
.collector-app button.catalog-set-tile { grid-template-columns: 5rem minmax(0, 1fr); gap: 12px; padding: 12px; }
@media (max-width: 760px) {
  .collector-app button.catalog-set-tile { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; padding: 10px 12px; }
  .collector-app .catalog-filters:not([data-open='true']) + .resultbar > :is(label, button) { display: none; }
}

/* ---- coordinator batch A: collection chrome classes ---- */
.collector-app .filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 .75rem; }
.collector-app .filter-chip { display: inline-flex; align-items: center; gap: .375rem; min-height: var(--vi-target); padding: .25rem .75rem; border: 1px solid var(--vi-line-strong); border-radius: var(--kd-radius-ui); background: var(--vi-raised); color: var(--ink); font-size: .8125rem; font-weight: var(--vi-weight-label); }
.collector-app .filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.collector-app .filter-chip-clear { background: transparent; color: var(--accent); }
.collector-app .filter-field { display: grid; gap: .25rem; margin: 0; min-width: 0; }
.collector-app .filter-field > span { font-size: var(--vi-floor); font-weight: var(--vi-weight-label); color: var(--muted); letter-spacing: .02em; }
.collector-app .filter-field > select { width: 100%; min-width: 0; }
.collector-app .result-count { font-size: 1rem; font-weight: var(--vi-weight-strong); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.collector-app .missing-group { margin: 1.25rem 0 0; }
.collector-app .missing-group > h4 { display: flex; align-items: baseline; gap: .5rem; font-size: 1rem; margin: 0 0 .25rem; }
.collector-app .missing-group > ul { display: grid; gap: .5rem; margin-top: .5rem; }
.collector-app .missing-data.management .missing-group li { display: block; padding: 0; border: 0; background: transparent; }

/* inline styles on .edit-actions stay for mobile; desktop returns to normal flow */
html body .collector-app .edit-actions { display: flex; gap: .75rem; position: sticky; bottom: 0; z-index: 20; background: var(--panel); border-top: 1px solid var(--line); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px)); margin: 1rem 0 0; box-shadow: 0 -.5rem 1rem -.75rem #0006; }
html body .collector-app .edit-actions > button { flex: 1 1 0; min-height: 3rem; }
@media (min-width: 761px) {
  html body .collector-app .edit-actions { position: static !important; border-top: 0 !important; background: transparent !important; padding: 0 !important; margin: 1rem 0 0 !important; box-shadow: none; }
  html body .collector-app .edit-actions > button { flex: 0 0 auto; }
  .collector-app.collector-app .edit-actions > .kd-btn { flex: 0 0 auto; min-width: 8rem; }   /* R7: no full-width buttons on desktop (wins over the later flex-grow rule by specificity) */
}

/* ---- coordinator batch: dashboard classes ---- */
.collector-app .vi-show-amounts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .25rem 0; }
.collector-app .vi-show-amounts > small { font-size: var(--vi-floor); color: var(--muted); }
.collector-app .vi-show-amounts .privacy-control { margin: 0; padding: 0; }
.collector-app .home-summary-notes { display: grid; gap: .5rem; margin-top: 1rem; }
.collector-app .home-summary-notes > p { margin: 0; font-size: .8125rem; line-height: 1.55; }
.collector-app .home-summary-notes > button { justify-self: start; margin-top: .5rem; }
.collector-app .vi-overview-reconcile { display: block; margin-top: .25rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.collector-app .vi-source-note { display: block; margin-top: .25rem; color: var(--muted); font-size: var(--vi-floor); line-height: 1.5; }
.collector-app .vi-how { display: grid; gap: .5rem; max-width: 68ch; }
.collector-app .vi-how > p { margin: 0; font-size: .875rem; line-height: 1.6; }
.collector-app .vi-row-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }


/* ======================================================================
   Re-audit 5, batch A (layout). CSS only; numbers refer to report-5.md.
   ====================================================================== */

/* 1. Sticky edit actions: buttons never squeeze below a readable width; helper text takes its own line */
html body .collector-app .edit-actions { flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 1.25rem; }   /* R1: centred by the visual box; the skew overhang of two neighbours needs the room */
html body .collector-app .edit-actions > button { flex: 1 1 7rem; min-width: 5.5rem; margin: 0; white-space: nowrap; }
/* R1 / R7 (consistency-2, D3): the footer group is centred by its skewed visual box and never stretches full width on desktop */
@media (max-width: 760px) {
  html body .collector-app .edit-actions > small { flex: 1 0 100%; order: 3; margin: 0; font-size: var(--vi-floor); line-height: 1.5; }
}

/* 2. Home KPI strip: one fluid size, stacked below 1100px so a signed P/L is never clipped */



/* 4. Manage list: below 1180px each row becomes a card (the table needs ~1010px plus gutters) */
@media (min-width: 761px) and (max-width: 1179px) {
  html body .collector-app .collection-table table td.metric-cell > :is(small, .ledger-amount) { text-align: left; margin-inline: 0; }
}

/* 5. Overview KPI trio: three equal columns, one alignment (start), one size; label baselines line up */

@media (min-width: 1000px) {
  html body .collector-app .vi-overview-support { display: contents; }
}

/* 5/10. Valuation-basis control: label sits left of its select (row) on pages, above it (column, full width) in settings panels */
html body .collector-app .valuation-policy-control { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .25rem .75rem; text-align: left; }
html body .collector-app .valuation-policy-control > select { flex: 0 1 18rem; width: auto; min-width: 12rem; max-width: 100%; }
html body .collector-app .chrome-panel .valuation-policy-control { flex-direction: column; align-items: stretch; gap: .375rem; }
html body .collector-app .chrome-panel .valuation-policy-control > select { flex: none; width: 100%; max-width: none; }

/* 10. Display settings panel and mobile 我的 sheet: every select the same width, labels left-aligned */
html body .collector-app .chrome-panel label { text-align: left; align-items: stretch; }
html body .collector-app .chrome-panel select,
html body .collector-app .chrome-panel .theme-control select { width: 100%; max-width: none; }

/* 9. Mobile tiles: card rows share subgrid tracks so optional lines (Oripa cost context) push every neighbour equally */
@media (max-width: 760px) {
  html body .collector-app .collection-browser .card-grid { row-gap: 0; }
  .hidden-amounts-notice>p{margin-bottom:8px}   /* was in privacy-management.css's phone block (that block's other rules moved to the lazy app/manage/inbox/inbox.css; one width query fewer, design-lint ceiling) */
}

/* 12. Mobile filter sheet: keep the last field clear of the footer */
html body .collector-app .mobile-filter-body { padding-bottom: 1.5rem; scroll-padding-bottom: 1.5rem; }

/* 14. Card detail value box on phones: a real box with inner padding, labels top-aligned */

/* 15. Daily price check: left edge flush with the sub-tab bar */
html body .collector-app .price-check { margin-inline: 0; }

/* P3. 12px floor for roles authored at 8-11px outside the shared list above */
html body .collector-app :is(.missing-popover small, .missing-popover h2 small, .missing-popover li button small, .missing-data small, .management-navigation small, .local-management-nav small, .batch-group small, .batch-summary small, .oripa-allocation-note small) { font-size: var(--vi-floor); line-height: 1.5; }
/* Header currency label is visually hidden at 1100px and below; keep it at the floor size and hide it by colour/line-height instead of font-size:0 */
/* ===== Re-audit 5, batches D and E (naming, bell panel, a11y, catalog, polish). Owned by the D/E dispatch; append-only. ===== */

/* E1. Bell panel: scrolls inside itself, never taller than the viewport, right edge on the page gutter (desktop) */
html body .collector-app .missing-data .missing-popover { overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 1rem; padding-bottom: 1.25rem; }
@media (min-width: 761px) {
  html body .collector-app .missing-data .missing-popover { inset: 90px max(4.5vw, calc((100vw - 1680px) / 2 + 4.5vw)) auto auto; width: min(420px, calc(100vw - 2 * max(4.5vw, calc((100vw - 1680px) / 2 + 4.5vw)))); max-height: min(800px, 75dvh, calc(100dvh - 90px - 16px)); }   /* N1: 420px popover, scrolls inside beyond 800px */
}
@media (max-width: 760px) {
  html body .collector-app .missing-data .missing-popover { max-height: min(80dvh, calc(100dvh - 24px)); }
}
/* Weekly digest in the bell is one compact row that opens Home */
html body .collector-app .missing-popover .digest-bell { padding: 0; margin: 8px 0 12px; }
html body .collector-app .digest-bell-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; width: 100%; min-height: 2.75rem; padding: .5rem .75rem; text-align: left; border-radius: var(--kd-radius-ui); }
html body .collector-app .digest-bell-link small { grid-column: 1; }
html body .collector-app .digest-bell-link > span { grid-column: 2; grid-row: 1 / span 2; font-size: 1.25rem; }

/* E2. List-row checkboxes: the whole label is a 44px target, not just the 18px box */
html body .collector-app .bulk-list label { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .5rem .25rem; cursor: pointer; }
html body .collector-app .bulk-list input[type="checkbox"] { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; }
@media (pointer: coarse), (max-width: 760px) {
  html body .collector-app .encyclopedia :is(.series-evidence a, .set-intro a, a[target="_blank"]) { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: .5rem; }
}
html body .collector-app .catalog-noimage-note { margin: .5rem 0; font-size: var(--vi-meta, .8125rem); color: var(--muted); }

/* E5. Polish: Marketplace stub; Overview empty chart; fullscreen status line */

/* ===== PLAIN-LANGUAGE PASS (owner feedback 2026-10-12): secondary text sits behind one-line "ⓘ" disclosures ===== */
.collector-app details.home-how{margin:4px 0;font-size:13px;line-height:1.6}
.collector-app details.home-how>summary{display:flex;align-items:center;min-height:var(--vi-target);cursor:pointer;color:var(--muted,inherit)}
.collector-app details.home-how[open]{padding:0 0 8px}
.collector-app details.home-how p,.collector-app details.home-how span{margin:6px 0;font-size:13px;line-height:1.6}
.collector-app .plain-flag{font-size:12px;font-weight:400;color:var(--muted,inherit)}
.collector-app .plain-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.collector-app .vi-overview-how{margin-top:.25rem}
.collector-app .vi-overview-how .vi-overview-reconcile{margin:6px 0}
.collector-app details.fxh-credit{font-size:12px;margin:4px 0}
.collector-app details.fxh-credit>summary{display:flex;align-items:center;min-height:32px;cursor:pointer;color:var(--muted,inherit)}
.collector-app .pc-hint:has(details){display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
.collector-app .missing-group details.missing-hint{margin:0 0 4px}

/* Phones: the three Home figures read as label-left / number-right rows instead of three tall stacked blocks. */
@media(max-width:760px){
 html body .collector-app .home-summary{gap:6px}
 html body .collector-app .home-summary>div{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "note value";align-items:center;column-gap:12px;row-gap:2px;padding:8px 0;margin:0}
 html body .collector-app .home-summary>div>small:first-child{grid-area:label}
 html body .collector-app .home-summary>div>strong{grid-area:value;text-align:right;font-size:1.25rem;margin:0}
 html body .collector-app .home-summary>div>small:last-child{grid-area:note;margin:0}
}
@media(max-width:760px){html body .collector-app .home-summary>div>small{line-height:1.4;margin:0;display:block}}
@media(max-width:760px){
 html body .collector-app .vi-overview-support{gap:6px}
}
@media(max-width:760px){
 html body .collector-app .fxh-summary>div{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "note value";align-items:center;column-gap:12px;row-gap:0;padding:4px 0}
 html body .collector-app .fxh-summary>div>small:first-child{grid-area:label}
 html body .collector-app .fxh-summary>div>strong{grid-area:value;text-align:right;font-size:1.125rem}
 html body .collector-app .fxh-summary>div>small:nth-child(3){grid-area:note}
}
/* Daily price check: the reason chip sits beside the card name instead of on a row of its own. */


/* ---- PSA cost editor, compact (2026-10-12): one-line summary, details behind a disclosure ---- */
.collector-app .psa-cost-compact .psa-cost-summary { font-size: .875rem; margin: .5rem 0; font-variant-numeric: tabular-nums; }
.collector-app .psa-cost-compact .psa-cost-summary small { display: inline; color: var(--muted); font-size: inherit; }
.collector-app .psa-cost-compact .psa-cost-details { margin: .5rem 0; }
.collector-app .psa-cost-compact .psa-cost-details > summary { cursor: pointer; font-size: .875rem; min-height: var(--vi-control-target, 44px); display: list-item; list-style: disclosure-closed inside; line-height: var(--vi-control-target, 44px); }
.collector-app .psa-cost-compact .psa-cost-details[open] > summary { list-style-type: disclosure-open; }
.collector-app .psa-cost-compact .psa-cost-why { margin-top: .5rem; }
.collector-app .psa-cost-compact .psa-cost-why > summary { cursor: pointer; font-size: .8125rem; color: var(--muted); }
.collector-app .psa-cost-compact .psa-cost-why aside, .collector-app .psa-cost-compact .psa-cost-why p { font-size: .75rem; color: var(--muted); }
.collector-app .psa-cost-compact .psa-basis { font-size: .75rem; color: var(--muted); }
.collector-app .psa-cost-compact .psa-basis input { font-size: .8125rem; }
.collector-app .psa-cost-compact legend small { display: inline; font-size: inherit; color: var(--muted); }

/* Artwork loading, placeholder and owner-photo states (re-audit 5, batch B). Tile footprint is unchanged: .card-visual keeps its card aspect ratio. */
.card-visual .art-skeleton{position:absolute;inset:3px;border-radius:var(--kd-radius-ui);background:linear-gradient(110deg,color-mix(in srgb,var(--muted,#6e7269) 14%,transparent) 30%,color-mix(in srgb,var(--muted,#6e7269) 26%,transparent) 48%,color-mix(in srgb,var(--muted,#6e7269) 14%,transparent) 66%);background-size:220% 100%;pointer-events:none}
@media (prefers-reduced-motion:no-preference){
 .card-visual .art-skeleton{animation:art-shimmer 1.4s linear infinite}
 .card-visual .art-img{transition:opacity .28s ease}
}
@keyframes art-shimmer{from{background-position:120% 0}to{background-position:-120% 0}}
.card-visual .art-img{opacity:0}
.card-visual .art-img.is-loaded{opacity:1}

/* Designed placeholder: same box as a card face, facts instead of a dashed void. */
.card-visual.has-ph{padding:6px}
.art-card-ph{box-sizing:border-box;width:100%;height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding:10px;text-align:left;border-radius:var(--kd-radius-ui);color:var(--ink,#252924);overflow:hidden}
.art-card-ph>*{max-width:100%;min-width:0}
.art-card-ph .ph-set{font-size:12px;line-height:1.3;color:var(--muted,#6e7269);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.art-card-ph .ph-name{font-size:13px;line-height:1.3;font-weight:650;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere}
.art-card-ph .ph-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;order:-1}
.art-card-ph .ph-reason{margin-top:auto;line-height:1.3;color:var(--muted,#6e7269)}
.card-visual.large .art-card-ph{padding:20px;gap:10px}
.card-visual.large .art-card-ph .ph-name{font-size:20px;-webkit-line-clamp:3;line-clamp:3}
.card-visual.large .art-card-ph .ph-set{font-size:14px}

/* Tile wrapper that holds the open button and the owner-only upload button (a button cannot nest inside a button). */
.art-button-ph{position:relative}
.art-button-ph .art-open{display:block;width:100%;padding:0;margin:0;border:0;border-radius:0;background:none;color:inherit;text-align:inherit;cursor:pointer}

/* Owner's own slab photo used as fallback art. Always labelled; never styled like an official image. */
.card-visual[data-art=photo] img{object-fit:contain}
.card-visual .photo-kind{outline:1px dashed var(--accent,#a3442c)}

/* Compact rows show the diamond mark only, as before. */
.mini-art .art-card-ph{display:none}
.mini-art .card-visual:has(.art-card-ph)::after{content:'◇';color:#c5a970}

/* Catalog link-out for image-less cards: a link only (no fetch, no stored image). Gets its own grid row in the compact no-image layout. */
.catalog-official-link{display:inline-block;font-size:12px;line-height:1.4;padding:6px 0;text-decoration:underline;text-underline-offset:2px}
@media (pointer:coarse){.catalog-official-link{min-height:44px;display:inline-flex;align-items:center}}

/* New-card image finder: proposal list inside the add/edit form. Hotlinked preview only. */
.artwork-finder{border:1px solid var(--line,#d6d7cc);border-radius:var(--kd-radius-ui);padding:14px;margin:16px 0}
.artwork-finder h3{margin:0 0 6px;font-size:15px}
.artwork-finder .af-candidate{display:flex;gap:12px;align-items:flex-start;margin:10px 0}
.artwork-finder .af-candidate img{width:96px;aspect-ratio:63/88;object-fit:contain;background:var(--panel,#fff);border-radius:var(--kd-radius-ui);flex:none}
.artwork-finder .af-candidate>div{display:flex;flex-direction:column;gap:6px;align-items:flex-start;min-width:0}
.artwork-finder button{min-height:40px}
@media (pointer:coarse){.artwork-finder button{min-height:44px}}
.artwork-finder .af-saved{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.artwork-finder .af-picked{display:inline-flex;flex-wrap:wrap;align-items:center;gap:10px}
.art-card-ph .ph-reason[data-catalog]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* VI missing-art tile (Steven OK 11-08): hairline frame, slanted chips, faint K mark (existing brand mask) clipped by the frame, hairlines in the lower band. Tokens only; no DOM added. */
.art-card-ph{position:relative;isolation:isolate;background-image:repeating-linear-gradient(-75deg,transparent 0 13px,var(--vi-line) 13px 14px);background-size:100% 34%;background-position:0 100%;background-repeat:no-repeat}
.art-card-ph::before,.art-card-ph::after{content:'';position:absolute;inset:8px;z-index:-1;border-radius:var(--kd-radius-ui)}
.art-card-ph::before{border:1px solid var(--vi-line)}
.art-card-ph::after{background:var(--vi-ink);opacity:.07;mask:url('/brand/kakura-mark-small.svg') no-repeat 100% 100%/68% auto}
.art-card-ph .ph-chips>*{font-style:normal;max-inline-size:100%}
.art-card-ph .ph-grade{--kd-chip-fg:var(--vi-paper);--kd-chip-bg:var(--vi-marker);--kd-chip-edge:var(--vi-marker);font-weight:700}
.art-card-ph .ph-reason{font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.card-visual.large .art-card-ph .ph-reason{font-size:13px}


/* Camera gate (app/camera-gate.ts): a desktop context = a fine pointer and no coarse pointer. There the live scanner / take-photo entry points
   (.camera-only) are hidden and their upload twin (.camera-less) is shown in the same box. CSS only: no JS toggling, so no layout shift. Put these
   classes on spans / icons inside the entry-point button, never on an element whose own rule sets display. */
.camera-less{display:none}
@media (any-pointer: fine) and (not (any-pointer: coarse)){
 .camera-only{display:none!important}
 .camera-less{display:inline}
 .pa-capture-row{grid-template-columns:1fr}
}
.collector-app section.pa-root{max-width:720px;margin:0 auto;padding:0 0 calc(24px + env(safe-area-inset-bottom));border:0;background:transparent;box-shadow:none}
.pa-root .sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pa-root .sectionhead h2{margin:0}
.collector-app .pa-root :is(button,select,input:not([type=checkbox]):not([type=file]),textarea){min-height:44px}
.pa-root textarea{width:100%;resize:vertical;padding:10px 12px}
.pa-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;list-style:none;padding:0;margin:14px 0}
.pa-steps li{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 8px;border:1px solid var(--line);border-radius:var(--kd-radius-ui);color:var(--muted);font-size:14px;font-weight:550}
.pa-steps li span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:var(--kd-radius-round);border:1px solid currentColor;font-size:13px}
.pa-steps li.on{color:var(--ink);border-color:var(--accent);box-shadow:inset 0 -3px 0 var(--accent)}
.pa-steps li.on span{background:var(--accent);border-color:var(--accent);color:var(--paper)}
.pa-steps li.done{color:var(--ink)}
.pa-panel{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:var(--kd-radius-ui);background:var(--panel)}
.pa-panel h2{font-size:1.125rem;margin:0}
.pa-panel p{margin:0}
.pa-capture-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pa-capture{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:12px;border:1px solid var(--line);border-radius:var(--kd-radius-ui);font-weight:600;cursor:pointer;text-align:center}
.pa-capture.primary{background:var(--accent);border-color:var(--accent);color:var(--paper)}
.pa-capture:focus-within{outline: 2px solid var(--vi-marker);outline-offset: 3px}
.pa-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
.pa-photo{width:100%;max-height:52vh;object-fit:contain;background:var(--vi-raised,#0001);border-radius:var(--kd-radius-ui)}
.pa-thumb{width:100%;max-height:150px;object-fit:contain;background:var(--vi-raised,#0001);border-radius:var(--kd-radius-ui)}
.pa-progress{display:grid;gap:6px}
.pa-progress progress{width:100%;height:12px}
.pa-ok{color:var(--vi-ok,#236344)}

.pa-raw summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.pa-raw textarea{min-height:120px;font-family:ui-monospace,monospace;font-size:13px}
.pa-actions{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:0;z-index:5;background:var(--panel);border-top:1px solid var(--line);padding:12px 0 calc(12px + env(safe-area-inset-bottom));margin-top:4px}
.pa-actions:empty{display:none}
.pa-actions button{flex:1 1 140px}
.pa-actions .kd-btn--primary{flex:2 1 200px}
.pa-actions{justify-content:center;gap:16px}   /* R1: centred by the visual box */
.pa-fields{display:grid;gap:14px}
.pa-field{display:grid;gap:6px;min-width:0;padding-bottom:10px;border-bottom:1px dashed var(--line)}
.pa-field>label{display:grid;gap:6px;font-weight:550}
.pa-field :is(input,select,textarea){width:100%;font-weight:400}
.pa-two{display:grid;grid-template-columns:2fr 1fr;gap:10px}
.pa-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 8px}
.pa-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:var(--kd-radius-ui);font-size:12px;font-weight:600;border:1px solid currentColor}
.pa-badge.pa-label{color:var(--vi-ok,#236344)}
.pa-badge.pa-check{color:var(--vi-warning,#77531b);background:color-mix(in srgb,var(--vi-warning,#77531b) 10%,transparent)}
.pa-badge.pa-manual{color:var(--accent)}
.pa-label-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:30px}
.pa-chip-slot{display:inline-flex;align-items:center;justify-content:flex-start;min-width:64px;min-height:28px}
.pa-chip{display:inline-flex;align-items:center;min-height:26px;padding:1px 9px;border-radius:var(--kd-radius-ui);font-size:12px;font-weight:600;border:1px solid currentColor;background:none;font-family:inherit;line-height:1.2}
.pa-chip-label{color:var(--vi-ok,#236344)}
.pa-chip-check{color:var(--vi-warning,#77531b);background:color-mix(in srgb,var(--vi-warning,#77531b) 10%,transparent);cursor:pointer}
.pa-suggest-row{display:flex;flex-wrap:wrap;gap:6px;min-height:32px;align-items:center}
.pa-suggest-btn{display:inline-flex;align-items:center;min-height:28px;padding:1px 10px;border-radius:var(--kd-radius-ui);font-size:12px;font-weight:500;border:1px dashed var(--line);background:none;color:var(--accent);cursor:pointer;font-family:inherit}
.pa-suggest-btn .pa-mono{font-weight:600}
.pa-evidence{color:var(--muted);overflow-wrap:anywhere}
.pa-evidence q{font-family:ui-monospace,monospace;font-size:12px}
.pa-none{color:var(--vi-muted)}
.pa-mono{font-family:ui-monospace,monospace;overflow-wrap:anywhere}
.pa-alts{display:flex;flex-wrap:wrap;gap:8px}
.pa-alts button{min-height:44px}
.pa-verify{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--accent);text-decoration:underline}
.pa-warn{display:flex;gap:10px;align-items:flex-start}

.pa-warn svg{flex:none;margin-top:2px}
.pa-dup-row{display:block;font-weight:600;overflow-wrap:anywhere}
.pa-suggest{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.pa-suggest h3{margin:0;font-size:1rem}
.pa-suggest ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pa-suggest li{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:12px;border:1px solid var(--line);border-radius:var(--kd-radius-ui)}
.pa-suggest li>div{min-width:0}
.pa-suggest li p{margin:2px 0;overflow-wrap:anywhere}
.pa-suggest li button{flex:none;min-width:96px;min-height:44px}
.pa-suggest-body:not([data-empty]){min-height:calc(3*140px + 2*10px)}
@media (max-width:600px){.pa-suggest-body:not([data-empty]){min-height:calc(3*200px + 2*10px)}}   /* room for three rows: 1-3 results never move what is below (CLS 0); the empty state stays compact (no blank box on every add with no match) */
.pa-suggest .pa-applied{display:inline-flex;align-items:center;min-height:44px}
.pa-reasons{display:flex;flex-wrap:wrap;gap:4px 10px;color:var(--vi-muted)}
.pa-conflict{color:var(--vi-danger)}
.pa-applied{flex:none;color:var(--vi-ok,#236344);font-weight:600}
.pa-issues{margin:0;padding-left:20px;color:var(--vi-danger)}
.pa-summary{display:grid;gap:10px}
.pa-summary dl{display:grid;gap:8px;margin:0}
.pa-summary dl>div{display:grid;grid-template-columns:minmax(96px,34%) 1fr;gap:8px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.pa-summary dt{color:var(--vi-muted)}
.pa-summary dd{margin:0;overflow-wrap:anywhere;font-weight:550}
.pa-summary em{color:var(--vi-danger);font-style:normal}
.pa-summary .pa-optional-empty{color:var(--muted);font-weight:400}
.pa-manual{text-align:center;margin:12px 0 0}
.pa-linkish{background:transparent;border:0;color:var(--muted);text-decoration:underline;min-height:44px;padding:0 12px}
@media(min-width:761px){.cf-fuzzy{grid-template-columns:auto minmax(0,1fr)}.pa-fields{grid-template-columns:1fr 1fr}.pa-fields>.pa-field:last-child:nth-child(odd),.pa-field:has(textarea){grid-column:1/-1}.pa-actions{position:static}.pa-actions button,.pa-actions .kd-btn--primary{flex:0 0 auto;min-width:8rem}}   /* R7: no full-width buttons on desktop */
/* Add/edit forms (manual + photo flow): required group first, "更多資料" collapsed, orange "自動帶入，請確認" tags (card-form/*) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.req-mark{color:var(--accent);font-weight:700;margin-left:3px}
.autofill-tag{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:28px;margin:2px 0 0;padding:2px 10px;border:1px solid #e09a4f;border-radius:var(--kd-radius-ui);background:#fff1e0;color:#8a4300;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
.autofill-tag:hover{background:#ffe2c2;color:#8a4300;border-color:#c97a2c}
html[data-theme=dark] .autofill-tag{background:var(--vi-raised);color:var(--vi-warning);border-color:var(--vi-line-strong)}
.cf-required,.cf-place{border:1px solid var(--line);border-radius:var(--kd-radius-ui);padding:14px;margin:0 0 16px;min-width:0;display:grid;gap:12px}
.cf-required>legend,.cf-place>legend{font-weight:700;padding:0 6px}
.cf-required>legend small{display:inline;font-weight:400;margin-left:6px}
.cf-field{display:grid;gap:4px;min-width:0}
.cf-field>label,.cf-required>label,.cf-place label{margin-bottom:0}
.cf-label{font-size:13px}
.cf-date{display:grid;gap:6px;align-content:start}
.cf-fuzzy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.cf-ident{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr);gap:8px}
.cf-ident>label{margin:0;min-width:0}
.cf-ident-hint{min-height:1.5em;line-height:1.5}
@media(max-width:760px){.cf-ident{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cf-ident-set{grid-column:1/-1;order:3}.cf-ident-hint{min-height:3em}}
.cf-check{flex-direction:row;align-items:center;gap:8px;min-height:44px;margin:0}
.cf-check input{width:22px;height:22px;flex:none}
.cf-photo{display:grid;gap:8px}
.cf-photo .cf-upload{margin:0;display:inline-flex;justify-self:start;position:relative}
.collector-app .cf-upload__btn{white-space:normal}   /* the input (.pa-file) sits over the button at opacity 0 */
.collector-app .cf-upload:focus-within .cf-upload__btn{outline:2px solid var(--vi-marker);outline-offset:3px}
.cf-note,.cf-more{padding:10px 0}
.cf-note>summary,.cf-more>summary{cursor:pointer;display:list-item;padding:10px 0}
.cf-more>summary{font-weight:700}
.cf-more[open]{display:grid;gap:12px}
.cf-cost{gap:10px}
/* the quiet sold-units line: one element from first paint, on its own line, so opening the form moves nothing */
.cf-sold-note{display:block;color:var(--vi-muted);font-size:var(--vi-type-xs)}
.card-form :is(input,select,textarea){max-width:100%}
.pa-auto-hint{margin:8px 0}
.cf-chip{justify-self:start;width:max-content;min-height:36px;padding:4px 12px;border-radius:var(--kd-radius-ui);font-size:13px}
@media(max-width:760px){.cf-fuzzy{grid-template-columns:minmax(0,1fr)}.cf-required,.cf-place{padding:10px}.card-form .two.cf-cost{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}
/* PSA cert-page picture slot (app/psa-cert/image-slot.tsx): one fixed size for loading / found / none, so an answer never moves the form */
.cert-img{display:grid;place-items:center;width:96px;height:134px;margin-top:8px;overflow:hidden;background:var(--vi-raised);color:var(--vi-muted)}
.cert-img img{width:100%;height:100%;object-fit:contain}
/* c8 calm validation + C11 date precision (app/card-form/validate.tsx, purchase-fields.tsx). Motion: opacity only, F1 tokens; the global reduced-motion rule does not stop @keyframes, so this file stops its own. */
.card-form .cf-required{gap:12px}
.cf-msg-slot{display:block;block-size:16px;min-width:0;overflow:hidden}
.cf-required>.cf-msg-slot{margin-block:-4px}   /* the message's own reserved row: 16 px in BOTH states (a field's message room is never created by the error), a direct child of the fieldset is pulled 4 px into the 12 px gap; every row keeps >= 4 px clear of the field above and the element below (tests/card-form-validate-chrome) */
:is(.card-form,.pa-panel) :is(label:has(+.cf-msg-slot),.cf-cost>label){margin-bottom:0}
:is(.card-form,.pa-panel) .cf-msg-slot .cf-msg{display:block;font-size:var(--vi-type-xs);line-height:16px;font-weight:400;color:var(--vi-danger);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.collector-app :is(.card-form,.pa-panel) :is(input,select,textarea)[aria-invalid='true']{border-color:var(--vi-danger);box-shadow:inset 0 0 0 1px var(--vi-danger);transition:border-color var(--kd-dur-2) var(--kd-ease-out)}
/* the glide lands clear of the sticky header (its height + 12 px) */
.card-form{--cf-head:56px}
.card-form :is(input,select,textarea){scroll-margin-top:calc(var(--cf-head) + 12px)}
/* C11: the precision choice is the kit Seg; the input under it sits in a box of one height, so the swap moves nothing */
.cf-fuzzy{align-items:start}
.cf-fuzzy-cell{display:grid;gap:6px;min-width:0;align-content:start}
.cf-fuzzy>.kd-seg{justify-self:start}
.cf-datebox{display:grid;block-size:50px;min-width:0}
.cf-datebox>input{box-sizing:border-box;block-size:100%;min-block-size:0;margin:0}
.cf-fuzzy .cf-datebox{animation:cf-fade var(--kd-dur-2) var(--kd-ease-out) both}
@keyframes cf-fade{from{opacity:0}to{opacity:1}}
/* the save button keeps the wider of its two words, so 處理中… never changes its width */
.cf-swap{display:inline-grid;justify-items:center}
.cf-swap>span{grid-area:1/1}
.cf-swap>span:last-child,.cf-swap[data-busy]>span:first-child{visibility:hidden}
.cf-swap[data-busy]>span:last-child{visibility:visible}
@media(prefers-reduced-motion:reduce){.cf-fuzzy .cf-datebox{animation:none}}

/* Extended art in the card detail (app/extended-art/*): the entry under the card image (✨ 擴圖 badge, ✨ 產生擴圖 + 3-tile style picker,
   candidate strip), the 照片 tab's 「進階：自己上傳圖片」 disclosure, and the shared full-screen viewer. Mobile-first; text floor 12px. */

/* ---------- entry under the card image ---------- */
.collector-app .xa-entry { display: grid; gap: 8px; margin: 8px 0 0; text-align: left; }
.collector-app .xa-entry:empty { display: none; }
.collector-app .xa-entry p { margin: 0; }
.collector-app .xa-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.collector-app .xa-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--kd-radius-ui); border: 1px solid color-mix(in srgb, var(--kd-gold, #d6b25e) 60%, var(--vi-line)); color: var(--vi-ink); font-size: .8125rem; font-weight: 600; }
html .collector-app .xa-entry .xa-view { width: auto; min-height: 36px; padding: 4px 10px; font-size: .875rem; white-space: nowrap; }
.collector-app .xa-muted { color: var(--vi-muted); font-weight: 400; }
/* One row, never stacked (owner rule, 2026-10-13): [✨ 查看擴圖] [✨ 產生擴圖 ⓘ] … [候選 · n ▾]. The generate block's own row joins this row
   (display: contents); its hints, picker, progress and messages take full-width lines below it (order 2). Empty for most visitors: hidden. */
.collector-app .xa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 44px; }
.collector-app .xa-entry:not(:has(> .xa-row > *, > .xa-strip)) { display: none; }
.collector-app .xa-row > .ea-generate { display: contents; }
.collector-app .xa-row > .ea-generate > .ea-generate-row { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; flex-wrap: nowrap; }
.collector-app .xa-row > .ea-generate > :not(.ea-generate-row) { flex: 1 0 100%; order: 2; }
html .collector-app .xa-entry .xa-cands-toggle { order: 1; margin-inline-start: auto; width: auto; min-height: 36px; padding: 4px 10px; font-size: .8125rem; white-space: nowrap; }
html .collector-app .xa-entry .xa-cands-toggle:first-child { margin-inline-start: 0; }

/* generator: 「✨ 產生擴圖 ⓘ」 (約 US$0.05 · 今日 3/10 is behind the ⓘ) */
.collector-app .ea-generate { display: grid; gap: 8px; }
.collector-app .ea-generate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; }
html .collector-app .ea-generate .ea-generate-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 44px; padding: 8px 14px; white-space: nowrap; font-weight: 600; }
.collector-app .ea-generate.is-loading .ea-generate-btn { display: inline-block; width: 128px; height: 44px; }
.collector-app .ea-meta { color: var(--vi-muted); font-size: .8125rem; white-space: nowrap; }
.collector-app .ea-hint { display: block; color: var(--vi-muted); font-size: .8125rem; margin: 0; }
.collector-app .ea-progress { display: flex; align-items: center; gap: 8px; font-size: .875rem; margin: 0; }
.collector-app .ea-ok { color: var(--vi-ink); font-size: .8125rem; margin: 0; }

/* picker: three selectable tiles in one row (one column on phones), one fact line + ⓘ, consent line, actions */
.collector-app .ea-confirm { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: var(--vi-raised, transparent); }
.collector-app .ea-confirm h4 { margin: 0; font-size: .9375rem; }
.collector-app .ea-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.collector-app .ea-tile { position: relative; display: grid; align-content: start; gap: 2px; min-width: 0; min-height: 64px; padding: 8px 10px; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); cursor: pointer; text-align: left; }
.collector-app .ea-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.collector-app .ea-tile .ea-tile-name { font-size: .875rem; font-weight: 600; color: var(--vi-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collector-app .ea-tile .ea-tile-name b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 2px; border-radius: var(--kd-radius-ui); background: var(--vi-line); font-size: .75rem; }
.collector-app .ea-tile small { color: var(--vi-muted); font-size: .75rem; line-height: 1.4; }
.collector-app .ea-tile.is-on { border-color: var(--vi-accent); box-shadow: inset 0 0 0 1px var(--vi-accent); background: color-mix(in srgb, var(--vi-accent) 10%, transparent); }
.collector-app .ea-tile.is-on .ea-tile-name b { background: var(--vi-accent); color: var(--vi-bg, #0b0d12); }
.collector-app .ea-tile:has(input:focus-visible) { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .ea-factline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: .8125rem; color: var(--vi-muted); }
.collector-app .ea-i { display: inline-block; }
.collector-app .ea-i > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--vi-target); min-height: var(--vi-target); cursor: pointer; }
.collector-app .ea-i > summary::-webkit-details-marker { display: none; }
.collector-app .ea-i dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 10px; margin: 4px 0; }
.collector-app .ea-i dt { color: var(--vi-muted); }
.collector-app .ea-i dd { margin: 0; color: var(--vi-ink); }
.collector-app .ea-i p { margin: 4px 0; }
.collector-app .ea-hintline { display: block; }
.collector-app .ea-consent { margin: 0; padding: 6px 10px; border-left: 3px solid var(--kd-gold, #d6b25e); font-size: .8125rem; color: var(--vi-ink); }
.collector-app .ea-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html .collector-app .ea-actions button { width: auto; min-height: 44px; }
@media (max-width: 560px) { .collector-app .ea-presets { grid-template-columns: 1fr; } .collector-app .ea-tile { min-height: 0; } }

/* candidate strip: one compact row per candidate (thumbnail → full-size preview), status + one primary action + 刪除, details behind ⓘ */
.collector-app .xa-cands { display: grid; gap: 6px; }
.collector-app .xa-cands-head { font-size: .8125rem; font-weight: 600; color: var(--vi-ink); }
.collector-app .xa-cand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.collector-app .xa-cand { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); }
.collector-app .xa-cand.xa-approved { border-color: color-mix(in srgb, var(--kd-gold, #d6b25e) 70%, var(--vi-line)); }
.collector-app .xa-cand.xa-rejected { opacity: .75; }
html .collector-app .xa-cand .xa-thumb { display: block; width: 56px; min-width: 0; min-height: 0; height: auto; padding: 0; border: 0; border-radius: var(--kd-radius-ui); background: var(--vi-raised, transparent); cursor: zoom-in; overflow: hidden; }
.collector-app .xa-cand .xa-thumb img { display: block; width: 56px; height: auto; max-height: 96px; object-fit: contain; }
.collector-app .xa-cand-main { display: grid; gap: 4px; min-width: 0; }
.collector-app .xa-cand-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .8125rem; }
.collector-app .xa-status { font-weight: 650; }
.collector-app .xa-status-approved { color: var(--kd-gold, #d6b25e); }
.collector-app .xa-info { display: inline-block; }
.collector-app .xa-info > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--vi-target); min-height: var(--vi-target); cursor: pointer; color: var(--vi-muted); }
.collector-app .xa-info > summary::-webkit-details-marker { display: none; }
.collector-app .xa-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; margin: 2px 0 4px; font-size: .75rem; }
.collector-app .xa-facts dt { color: var(--vi-muted); }
.collector-app .xa-facts dd { margin: 0; overflow-wrap: anywhere; }
.collector-app .xa-warn { font-size: .75rem; color: var(--vi-danger); }
.collector-app .xa-cand-actions, .collector-app .xa-confirm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.collector-app .xa-confirm-line > span { flex-basis: 100%; font-size: .8125rem; line-height: 1.5; }
html .collector-app .xa-cand :is(.xa-cand-actions, .xa-confirm-line) button { width: auto; min-height: 36px; padding: 4px 12px; font-size: .8125rem; white-space: nowrap; }
html .collector-app .xa-danger { color: var(--vi-danger); border-color: currentColor; }

/* ---------- 照片 tab: 「進階：自己上傳圖片」 ---------- */
.card-dialog .extended-art-review { padding: 4px 0; }
.card-dialog .extended-art-review > summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--vi-muted); font-size: .875rem; }
.extended-art-review .ea-note { margin: 4px 0 8px; color: var(--vi-muted); font-size: .8125rem; }
.extended-art-review .ea-upload { display: grid; gap: 10px; }
.extended-art-review .ea-upload label { display: grid; gap: 4px; font-size: .875rem; }
.extended-art-review .ea-upload input:not([type=file]), .extended-art-review .ea-upload select { width: 100%; padding: 6px 10px; }
.extended-art-review .ea-upload textarea { width: 100%; resize: vertical; padding: 8px 10px; }
.extended-art-review button, .extended-art-review select, .extended-art-review input { min-height: 44px; }

/* ---------- the shared full-screen viewer (app/extended-art/viewer.tsx): image whole (contain) over a blurred fill of itself ---------- */
dialog.xa-viewer-dialog { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #0b0d12; color: #f6f7fb; overflow: hidden; }
dialog.xa-viewer-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.xa-viewer { position: relative; height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0b0d12; color: #f6f7fb; }
dialog.card-dialog.immersive-art-host .immersive-art-view, .rh-viewer .xa-viewer { height: 100%; }
.xa-viewer-bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.xa-viewer-bar h2 { margin: 0; flex: 1 1 12rem; min-width: 0; font-size: 1rem; color: #f6f7fb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xa-seg { padding: 3px; box-shadow: inset 0 0 0 1px #808999; background: transparent; --vi-accent: white; --vi-on-accent: black; --vi-muted: silver; --vi-ink: white; }   /* the viewer is always light-on-dark: the cap is white under dark text (named colours: the raw-colour ratchet) */
html body .xa-viewer button { width: auto; min-height: 40px; padding: 6px 14px; border: 1px solid #808999; color: #f6f7fb; background: #252b36; font: inherit; font-size: .875rem; cursor: pointer; white-space: nowrap; }
.xa-viewer .kd-seg.xa-seg .kd-seg__i { border: 0; background: transparent; min-block-size: 36px; min-inline-size: 0; padding: 4px 10px; font-size: .875rem; }
.xa-viewer .kd-seg.xa-seg .kd-seg__cap { inset-block: 3px; }
.xa-viewer .kd-seg.xa-seg .kd-seg__i[data-on] { color: black; font-weight: 650; }
html body .xa-viewer button.primary { background: #f6f7fb; color: #0b0d12; border-color: #f6f7fb; }
html body .xa-viewer button:disabled { opacity: .5; cursor: default; }
.xa-viewer :focus-visible { outline: 3px solid #a6d7ff; outline-offset: 2px; }
.xa-viewer-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.xa-viewer-fill { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(32px) brightness(.45) saturate(1.1); transform: scale(1.05); pointer-events: none; }
.xa-viewer-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 0; padding: 8px; box-sizing: border-box; object-fit: contain; }
.xa-viewer-info { position: relative; z-index: 2; padding: 6px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); max-height: 30dvh; overflow: auto; font-size: .8125rem; color: #d9dce4; overflow-wrap: anywhere; }
.xa-viewer-info p { margin: 2px 0; color: #d9dce4; min-height: 1.4em; }
.xa-viewer-info summary { cursor: pointer; min-height: 28px; color: #d9dce4; }
html .collector-app .xa-viewer :is(header, footer, section, h2, p) { background: transparent; border: 0; }
@media (prefers-reduced-motion: reduce) { .xa-viewer, .xa-viewer * { animation: none !important; transition: none !important; } }
.immersive-art-view { display: block; height: 100%; }
.collector-app .xa-cand.xa-suspended { opacity: .85; border-style: dashed; }
.collector-app .xa-status-suspended { color: var(--vi-danger); }
/* Home spotlight with approved 擴圖: the shared viewer fills the whole viewport at every width (the dialog's grid centring would shrink it) */
html .collector-app dialog.rh-viewer[data-art=extended] { display: block; padding: 0; background: #0b0d12; }
html .collector-app dialog.rh-viewer[data-art=extended]:not([open]) { display: none; }
html .collector-app dialog.rh-viewer[data-art=extended] > .xa-viewer { width: 100%; height: 100%; }

/* Historical FX panel (overview) and card-detail cost block. Presentation only. */
.fxh-panel{margin-top:var(--vi-space-6,1.5rem);padding-top:var(--vi-space-4,1rem);border-top:1px solid var(--vi-line,#ccd5e0);display:grid;grid-template-columns:minmax(0,1fr);gap:var(--vi-space-3,.75rem);min-width:0;max-width:100%}
.fxh-panel>*{min-width:0}
.fxh-panel .tablewrap{overflow-x:auto;max-width:100%}
.fxh-panel h3,.fxh-panel h4,.fxh-card h4{margin:0}
.fxh-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--vi-space-2,.5rem)}
.fxh-toggle{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--vi-space-2,.5rem);font-size:var(--vi-type-meta,.8125rem)}
.fxh-toggle button,.fxh-action,.fxh-actions button{min-height:2.25rem;padding:0 .75rem;border:1px solid var(--vi-line,#ccd5e0);border-radius:var(--kd-radius-ui);background:var(--vi-panel,#fff);color:var(--vi-ink,#182330);font:inherit;cursor:pointer}
.fxh-toggle button[aria-pressed=true]{background:var(--vi-accent,#285c8c);color:var(--vi-panel,#fff);border-color:var(--vi-accent,#285c8c)}
.fxh-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--vi-space-3,.75rem)}
.fxh-summary>div{display:grid;gap:.125rem;min-width:0}
.fxh-summary strong{font-size:var(--vi-type-section,1.25rem);overflow-wrap:anywhere}
.fxh-note,.fxh-credit{margin:0;font-size:var(--vi-type-meta,.8125rem);color:var(--vi-muted,#546277);line-height:var(--vi-line-ui,1.5)}
.fxh-credit{display:block}
.fxh-dim{display:inline-flex;align-items:center;gap:.5rem;font-size:var(--vi-type-meta,.8125rem)}
.fxh-table{width:100%;border-collapse:collapse;font-size:var(--vi-type-meta,.8125rem)}
.fxh-table th,.fxh-table td{padding:.35rem .5rem;border-bottom:1px solid var(--vi-line,#ccd5e0);text-align:right;vertical-align:top}
.fxh-table th:first-child,.fxh-table td:first-child{text-align:left}
.fxh-table small,.fxh-line small{color:var(--vi-muted,#546277)}
.fxh-line{display:block;text-align:left}
.fxh-preview{display:grid;gap:var(--vi-space-3,.75rem)}
.fxh-actions{display:flex;flex-wrap:wrap;gap:var(--vi-space-2,.5rem)}
.fxh-missing{margin:.25rem 0 0;padding-left:1.25rem;font-size:var(--vi-type-meta,.8125rem)}
.fxh-card{display:grid;gap:.25rem;margin-top:var(--vi-space-3,.75rem);padding:var(--vi-space-3,.75rem);border:1px solid var(--vi-line,#ccd5e0);border-radius:var(--kd-radius-ui)}
.fxh-card-main,.fxh-card-line{margin:0;font-size:var(--vi-type-meta,.8125rem);overflow-wrap:anywhere}
@media(max-width:640px){.fxh-pending{min-block-size:2lh}/* the pending line wraps on phones when shown: reserve both lines so the amounts eye moves nothing */.fxh-summary{grid-template-columns:1fr}.fxh-table{font-size:var(--vi-type-caption,.75rem)}.fxh-toggle button,.fxh-action,.fxh-actions button{min-height:var(--vi-control-target,2.75rem)}}

/* Valuation basis badges and manual-value presentation. Colour is never the only cue: every badge carries a text label. */
.val-badge { display: inline-flex; align-items: center; padding: 0 .4rem; margin-inline-start: .25rem; border: 1px solid currentColor; border-radius: var(--kd-radius-ui); font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; opacity: .85; }
.val-badge.val-sale { color: var(--vi-ok, #1f7a4d); }
.val-badge.val-ask, .val-badge.val-estimate { color: var(--gold, #8a6a1f); }
.val-badge.val-manual { color: var(--muted, #6b6b6b); border-style: dashed; }
.manual-value { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .125rem .375rem; }
.manual-value > small { flex-basis: 100%; color: var(--muted, #6b6b6b); }
.val-note { display: block; color: var(--muted, #6b6b6b); }
.manual-value-editor { margin-block: .75rem; }
.manual-value-editor fieldset { border: 0; padding: 0; margin: 0; }
.valuation-policy-control { display: inline-flex; align-items: center; gap: .5rem; }

.digest{font-family:'Space Grotesk','Noto Sans TC',sans-serif;color:var(--ink,#e8eef6)}
.digest h3,.digest h4{margin:0}.digest h4{margin:14px 0 6px;font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--muted,#aab8cb)}.digest h4 small{display:inline;font-weight:400}
.digest-card{margin:20px 0;padding:18px 20px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:var(--panel,#151e2a)}
.digest-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.digest-head h3{font-size:20px}
.digest-dismiss,.digest-link{font:inherit;min-height:44px;padding:0 14px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:transparent;color:inherit;cursor:pointer}
.digest-link{margin-top:8px}
.digest button:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}
.digest-lead{margin:2px 0;font-size:22px;font-variant-numeric:tabular-nums}.digest-lead span{font-size:16px;margin-left:6px}
.digest-sub,.digest-note{margin:4px 0;font-size:13px;line-height:1.6;color:var(--muted,#aab8cb)}
/* The hidden-amounts note keeps one reserved line in both modes (design-system M3). */
.digest-mask-note{block-size:1lh;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.digest-sub-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.digest-sub em{font-style:normal;color:inherit;text-decoration:underline dotted}
.digest .digest-block{border:0;padding:0;margin:0;background:transparent;box-shadow:none;border-radius:0}
.digest small{display:inline;font-size:12px}
.digest-list{list-style:none;margin:0;padding:0}
.digest-list li{font-size:14px;line-height:1.45;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:9px 0;border-top:1px solid var(--line,#354357);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.digest-list li:first-child{border-top:0}
.digest-name small,.digest-list small,.digest-block small{color:var(--muted,#aab8cb)}
.digest-amt{grid-column:1;font-size:13px;color:var(--muted,#aab8cb)}.digest-list li>b{grid-column:2;grid-row:1 / span 2;align-self:center}
.digest-list li>small{grid-column:1}
.digest-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}.digest-chip{padding:4px 10px;border:1px solid var(--vi-line-strong);border-radius:var(--kd-radius-ui);font-size:13px}.digest-chip b{margin-left:4px}
.digest *{letter-spacing:0;text-transform:none}
.missing-popover .digest-bell{padding:0 0 12px;margin:12px 0;border:0;border-bottom:1px solid var(--line,#354357);border-radius:0;background:transparent;box-shadow:none}
.digest-bell h3{font-size:18px}
.missing-data.bell>button{position:relative}
.digest-dot{position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:var(--kd-radius-round);background:#e5484d;border:2px solid var(--panel,#151e2a);box-sizing:content-box}
@media(max-width:600px){.digest-card{margin:14px 0;padding:14px}.digest-lead{font-size:19px}}

/* First-load part of the price-check styles; the page rules are app/price-check/page.css (lazy). */
/* Post-save "queued for price" toast: fixed, so it never moves the page; above the mobile tab bar and the safe area. */
.save-queue-note{position:fixed;z-index:60;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);padding:8px 14px;border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui);background:var(--vi-panel);box-shadow:0 4px 16px rgba(0,0,0,.18);animation:save-queue-note-in .2s ease-out}
@keyframes save-queue-note-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.save-queue-note{animation:none}}
@media (min-width:900px){.save-queue-note{bottom:24px}}

/* The card detail's one quiet tracking line (app/valuation/ui.tsx): 「不追蹤 · 恢復追蹤」 / 「已恢復追蹤 · 復原」. */
.cd-track-line{margin:8px 0 0;font-size:var(--vi-type-sm);color:var(--vi-muted)}
.cd-track-line button{box-sizing:border-box;min-height:44px;padding:0 4px;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* The Home strip (home-row.tsx): one fixed-height 44px line, always rendered when something is held, so nothing around it moves. (The 今日 page rules went with the page, 2026-10-19.) */
.collector-app .daily-home-row{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:8px 0;padding:0 14px;box-sizing:border-box;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:transparent;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden}
.collector-app .daily-home-row>span{overflow:hidden;text-overflow:ellipsis}
.collector-app .daily-home-row .daily-home-go{margin-left:auto;flex:none}
.collector-app .daily-home-row:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}

/* AI features: screenshot capture (price check) and Oripa poster analysis. Mobile first; 44px touch targets; follows price-check.css tokens. */
.ai-shot-wrap{margin:0 0 4px}
.pc-form>*,.ai-shot-wrap,.ai-ready,.ai-shot,.ai-shot>*,.ai-result,.ai-poster-body,.ai-poster-body>*{min-width:0;max-width:100%}
.ai-shot,.ai-poster-body{display:grid;gap:10px}
.ai-badge small,.ai-line small,.ai-verdict small{display:inline}
.collector-app .ai-warn-slot{min-block-size:calc(2lh + 4 * var(--vi-space-2))}   /* hidden-amounts note: the box exists in both states (C2-E1), room for two lines (English wraps at phone width) */
.ai-hint{margin:4px 0;font-size:13px;line-height:1.6;color:var(--muted,#aab8cb)}
.ai-foot{margin-top:10px}
.ai-mock{color:#e5a14d}

.ai-ok{margin:6px 0;padding:8px 12px;border:1px solid #6fbf8b;border-radius:var(--kd-radius-ui);font-size:13px;line-height:1.5;background:rgba(111,191,139,.1)}

.ai-warn ul,.ai-warn-list{margin:4px 0 0;padding-left:18px}.ai-warn-list{list-style:disc;padding-left:28px}
.ai-btn{min-height:44px;padding:0 16px;border:1px solid #82b9df;border-radius:var(--kd-radius-ui);background:transparent;color:inherit;font:inherit;cursor:pointer}
.ai-btn.ai-ghost{border-color:var(--line,#354357)}
.ai-btn:disabled{opacity:.45;cursor:not-allowed}
.ai-actions{display:flex;flex-wrap:wrap;gap:8px}
.ai-disabled,.ai-consent{margin:8px 0;padding:12px 14px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:var(--panel,#151e2a);font-size:14px;line-height:1.6}
.ai-disabled p,.ai-consent ul{margin:4px 0 0;color:var(--muted,#aab8cb);font-size:13px}.ai-consent ul{padding-left:20px}
.ai-consent-line{margin:8px 0;font-size:16px;font-weight:600}
.ai-consent button{margin-top:8px;min-height:44px;padding:0 16px;border:1px solid #82b9df;background:transparent;color:inherit;font:inherit;cursor:pointer}
.ai-tablewrap{max-width:100%;overflow-x:auto}
.ai-table{width:100%;min-width:0;border-collapse:collapse;font-size:13px}
.ai-table th,.ai-table td{padding:6px 8px;border-bottom:1px solid var(--line,#354357);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.ai-compare{table-layout:fixed}.ai-compare th:nth-child(1){width:17%}.ai-compare th:nth-child(2){width:31%}.ai-compare th:nth-child(3){width:30%}.ai-compare th:nth-child(4){width:22%}
.ai-result-cell{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border-bottom:0}.ai-result-cell small{display:block}
.ai-compare input{width:100%;min-width:96px;min-height:40px;box-sizing:border-box;font:inherit;font-size:16px}
.ai-evidence{display:block;margin-top:2px;font-size:11px;color:var(--muted,#aab8cb)}
.ai-badge{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center;padding:2px 8px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);font-size:12px;font-weight:600;white-space:normal;max-width:100%}
.ai-badge[data-status=match]{border-color:#6fbf8b;color:#6fbf8b}.ai-badge[data-status=mismatch]{border-color:var(--vi-danger);color:var(--vi-danger)}.ai-badge small{font-weight:400;color:var(--muted,#aab8cb)}
.ai-compare tr[data-status=mismatch]{background:rgba(229,115,115,.08)}
.ai-summary{margin:4px 0;font-size:14px}
.ai-notes{margin:4px 0;padding-left:18px;font-size:12px;color:var(--muted,#aab8cb)}
.ai-hints,.ai-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.ai-poster label,.ai-save label{display:grid;gap:4px;font-size:13px;color:var(--muted,#aab8cb)}
.ai-poster input:not([type=checkbox]):not([type=file]),.ai-poster select{min-height:44px;font:inherit;font-size:16px;width:100%;box-sizing:border-box}
.ai-poster{margin-top:24px;padding-top:16px;border-top:1px solid var(--line,#354357);max-width:760px}
.ai-poster h2{margin:0 0 8px;font-size:20px}.ai-poster h3{margin:14px 0 6px;font-size:16px}.ai-poster h4{margin:10px 0 2px;font-size:13px}
.ai-prizes{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ai-prize{padding:10px 12px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:var(--panel,#151e2a);display:grid;gap:8px}
.ai-prize-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.ai-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:8px 0}
.ai-stats>div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:var(--panel,#151e2a);min-width:0}
.ai-stats strong{font-size:22px;overflow-wrap:anywhere}.ai-stats small{font-size:12px;color:var(--muted,#aab8cb)}
.ai-lines{list-style:none;margin:8px 0;padding:0;display:grid;gap:4px}
.ai-line{display:grid;gap:2px;padding:8px 10px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);font-size:13px;overflow-wrap:anywhere}
.ai-line[data-status=unpriced]{border-style:dashed;color:var(--muted,#aab8cb)}.ai-line small{color:var(--muted,#aab8cb)}
.ai-assume{margin:6px 0;font-size:13px}.ai-assume ul{margin:4px 0;padding-left:18px;line-height:1.6}
.ai-opinion{margin:10px 0;padding:12px 14px;border:1px solid #82b9df;border-radius:var(--kd-radius-ui);background:rgba(130,185,223,.08);font-size:14px;line-height:1.6}
.ai-opinion[data-stale="1"]{opacity:.6}.ai-opinion ul{margin:2px 0;padding-left:20px}
.ai-verdict{display:flex;align-items:baseline;gap:10px;margin:0 0 4px}.ai-verdict b{font-size:18px}.ai-verdict small{color:var(--muted,#aab8cb)}
.ai-disclaimer{margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line,#354357);font-size:13px;font-weight:600}
.ai-save{display:grid;gap:8px;margin-top:12px}
.ai-saved{margin-top:12px;font-size:13px}.ai-saved ul{list-style:none;margin:6px 0;padding:0;display:grid;gap:6px}.ai-saved li{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ai-usage{margin-top:8px;font-size:13px}.ai-usage summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.ai-poster button:focus-visible,.ai-shot button:focus-visible,.ai-poster input:focus-visible,.ai-poster select:focus-visible,.ai-compare input:focus-visible,.ai-usage summary:focus-visible{outline: 2px solid var(--vi-marker);outline-offset: 3px}
@media(max-width:600px){
 .ai-stats strong{font-size:20px}
 .ai-compare,.ai-compare tbody{display:block}.ai-compare thead{display:none}
 .ai-compare tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 0;border-bottom:1px solid var(--line,#354357)}
 .ai-compare th,.ai-compare td{padding:0;border:0;width:auto!important}
 .ai-compare th{grid-column:1;font-size:13px}
 .ai-compare td.ai-result-cell{grid-column:2;grid-row:1;flex-direction:row;align-items:center;gap:6px}
 .ai-compare td[data-label]{grid-column:1/-1}.ai-compare td[data-label]::before{content:attr(data-label)'：';font-size:11px;color:var(--muted,#aab8cb)}
 .ai-compare td[data-label]:nth-of-type(1) input{display:block;margin-top:2px}
 .ai-compare tr[data-status=mismatch]{background:rgba(229,115,115,.08)}
}
.ai-usage .ai-table th,.ai-usage .ai-table td{white-space:nowrap}

/* Approximate acquisition dates, earliest-date hints, bulk date mode and start-value cost basis. Presentation only. */
.acq-editor,.acq-start,.acq-bulk{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem;min-width:0;max-width:100%;margin:1rem 0;padding:.9rem 1rem;border:1px solid var(--vi-line,var(--line,#ccd5e0));border-radius:var(--kd-radius-ui)}
.acq-editor>*,.acq-start>*,.acq-bulk>*{min-width:0}
.acq-editor legend,.acq-start summary{font-weight:600}
.acq-editor h3,.acq-start h3,.acq-bulk h3{margin:0;font-size:1rem}
.acq-note{margin:0;font-size:.8125rem;line-height:1.5}
.acq-fields{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
.acq-fields label{display:grid;gap:.25rem;font-size:.8125rem;min-width:9rem}
.acq-fields input,.acq-fields select{min-height:2.5rem;max-width:100%}
.acq-hints,.acq-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.acq-hint{min-height:2.25rem;padding:0 .75rem;border-radius:var(--kd-radius-ui);border:1px dashed var(--accent,#285c8c);background:transparent;color:var(--accent,#285c8c);font-size:.8125rem;text-align:left;max-width:100%;overflow-wrap:anywhere}
.acq-chip{display:inline-block;width:fit-content;max-width:100%;margin:.25rem 0 0;overflow-wrap:anywhere;padding:0 .5rem;border-radius:var(--kd-radius-ui);border:1px dashed var(--accent,#285c8c);color:var(--accent,#285c8c);font-size:.75rem;line-height:1.6}
.acq-actions button{min-height:2.5rem;padding:0 1rem}
.acq-preview{display:grid;gap:.5rem}
.acq-preview table{width:100%;border-collapse:collapse;font-size:.8125rem}
.acq-preview th,.acq-preview td{padding:.35rem .5rem;border-bottom:1px solid var(--vi-line,var(--line,#ccd5e0));text-align:left;vertical-align:top;overflow-wrap:anywhere}
.acq-preview .tablewrap{overflow-x:auto;max-width:100%}
.acq-blocked:not(.kd-note){color:var(--vi-danger)}
.acq-label{font-weight:600}
.acq-start-note{margin:.5rem 0 0;font-size:.8125rem;line-height:1.5}
.acq-figure{display:grid;gap:.25rem;margin:1rem 0;padding:.75rem 1rem;border:1px dashed var(--vi-line,var(--line,#ccd5e0));border-radius:var(--kd-radius-ui)}
.acq-figure strong{font-size:1.15rem}
@media (max-width:760px){.acq-preview thead{display:none}.acq-preview table,.acq-preview tbody,.acq-preview tr,.acq-preview td{display:block;width:100%}.acq-preview tr{padding:.5rem 0;border-bottom:1px solid var(--vi-line,var(--line,#ccd5e0))}.acq-preview td{border:0;padding:.1rem 0;white-space:normal;overflow-wrap:anywhere}.acq-preview td[data-label]::before{content:attr(data-label)'：';color:var(--muted,#6e7269);font-size:.75rem}.acq-fields label{min-width:100%}.acq-actions button,.acq-hint{width:100%}}

/* AI import (Manage > 匯入／匯出). Mobile first; 44px touch targets; 16px inputs (no iOS zoom). Scoped under .aiimp so the global
   section/aside/table/button styles are overridden only here. */
.aiimp{padding:18px;min-width:0;max-width:100%}
.aiimp *{min-width:0}
.aiimp h2{margin:0 0 6px}.aiimp h3{margin:0 0 6px;font-size:17px}
.aiimp-hint{margin:4px 0;font-size:13px;line-height:1.6;color:var(--muted,#aab8cb)}



.aiimp button,.aiimp select,.aiimp input:not([type=checkbox]):not([type=radio]),.aiimp textarea{font-size:16px;min-height:44px;padding:8px 12px}
.aiimp textarea{width:100%;resize:vertical}
.aiimp button{}
.aiimp-link{background:none;border:0;padding:6px 0;min-height:44px;color:#d6bd87;text-decoration:underline;font-size:14px}
.aiimp-primary{font-weight:600}   /* fill and outline are the skewed .kd-btn--primary ::before (R2) */
.aiimp-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.aiimp-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.aiimp-pick{display:grid;grid-template-columns:1fr;gap:14px;margin-top:8px}
.aiimp-card{padding:14px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:rgba(255,255,255,.02);display:flex;flex-direction:column;gap:8px}
.aiimp-drop{display:flex;align-items:center;justify-content:center;text-align:center;min-height:96px;padding:12px;border:2px dashed #43516b;border-radius:var(--kd-radius-ui);cursor:pointer;line-height:1.6}
.aiimp-drop[data-drag=true]{border-color:#d1b67c;background:rgba(209,182,124,.08)}
.aiimp-drop input{max-width:100%;margin-top:8px}
.aiimp-bar{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:8px 0}
.aiimp-file{font-weight:600;overflow-wrap:anywhere}
.aiimp-badge{display:inline-block;padding:3px 10px;border:1px solid #e5a14d;border-radius:var(--kd-radius-ui);font-size:12px}
.aiimp-badge[data-verified=true]{border-color:#6fbf8b}
.aiimp-map{margin:12px 0;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);padding:8px 14px}
.aiimp-map summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600}
.aiimp-tablewrap{max-width:100%;overflow-x:auto}
.aiimp-table{width:100%;min-width:0;border-collapse:collapse;font-size:13px}
.aiimp-table th,.aiimp-table td{padding:8px;border-bottom:1px solid var(--line,#354357);text-align:left;vertical-align:top}
.aiimp-table code{display:inline-block;margin:0 4px 2px 0;padding:1px 6px;border-radius:var(--kd-radius-ui);background:rgba(255,255,255,.06);font-size:12px;overflow-wrap:anywhere}
.aiimp-maptable select{width:100%;min-width:140px}
.aiimp-conf{display:inline-block;padding:1px 8px;border-radius:var(--kd-radius-ui);border:1px solid var(--line,#354357);font-size:12px}
.aiimp-conf[data-conf=low]{border-color:#e5a14d;color:#e5a14d}.aiimp-conf[data-conf=high]{border-color:#6fbf8b}
.aiimp-defaults{margin:14px 0;padding:12px 14px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui)}
.aiimp-defaults legend{padding:0 6px;font-weight:600}
.aiimp-grid{display:grid;grid-template-columns:1fr;gap:10px}
.aiimp-grid label,.aiimp-srcmap label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.aiimp-srcmap{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line,#354357)}
.aiimp-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 8px}
.aiimp-chips button{min-height:44px;padding:6px 14px;font-size:14px}
.aiimp-chips button[aria-pressed=true]{border-color:#d1b67c;background:rgba(209,182,124,.15)}
.aiimp-ai{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.aiimp-ai small{flex-basis:100%}
.aiimp-review{margin:8px 0}
.aiimp-rows{table-layout:auto}
.aiimp-rows tr{border-left:3px solid transparent}
.aiimp-rows tr[data-status=ready]{border-left-color:#6fbf8b}
.aiimp-rows tr[data-status=needs-input]{border-left-color:#e5a14d}
.aiimp-rows tr[data-status=duplicate]{border-left-color:#9aa7ba;opacity:.85}
.aiimp-rows tr[data-status=invalid]{border-left-color:var(--vi-danger)}
.aiimp-status{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:var(--kd-radius-ui);border:1px solid var(--line,#354357);font-size:12px;white-space:nowrap}
.aiimp-status[data-status=ready]{border-color:#6fbf8b;color:#6fbf8b}.aiimp-status[data-status=needs-input]{border-color:#e5a14d;color:#e5a14d}
.aiimp-status[data-status=invalid]{border-color:var(--vi-danger);color:var(--vi-danger)}.aiimp-status[data-status=duplicate]{color:#9aa7ba}
.aiimp-n label{display:flex;align-items:center;gap:6px;min-height:44px}
.aiimp-n input[type=checkbox],.aiimp-check input[type=checkbox]{width:22px;height:22px;flex:none}
.aiimp-check{min-height:44px}
.aiimp-cell{display:flex;flex-direction:column;gap:2px;margin:0 0 6px;font-size:12px;line-height:1.5125;color:var(--muted,#aab8cb)}
.aiimp-cell input{width:100%;min-width:90px}
.aiimp-cell[data-bad] input{border-color:#e5a14d}
.aiimp-cell[data-wide] input{min-width:200px}
.aiimp-issues ul{margin:0;padding-left:16px;font-size:12px;line-height:1.5}
.aiimp-issues li[data-level=error],.aiimp-issues li[data-level=dup]{color:var(--vi-danger)}.aiimp-issues li[data-level=input]{color:#e5a14d}.aiimp-issues li[data-level=warn]{color:var(--muted,#aab8cb)}
.aiimp-hint-box{margin-top:8px;padding:8px;border:1px dashed #82b9df;border-radius:var(--kd-radius-ui);font-size:12px}
.aiimp-sugg{margin:6px 0 0;padding-left:16px;font-size:12px}.aiimp-sugg li{margin-bottom:6px}
.aiimp-pager{display:flex;gap:12px;align-items:center;justify-content:center;margin:10px 0}
.aiimp-confirm,.aiimp-receipt,.aiimp-alloc{border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui)}
.aiimp-confirm{margin-top:16px;padding:14px}
.aiimp-check{display:flex;gap:10px;align-items:flex-start;line-height:1.6;margin:10px 0;color:inherit;font-size:14px}
.aiimp-consent{padding:10px 12px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);font-size:13px;line-height:1.6}
.aiimp-consent ul{margin:6px 0;padding-left:18px}
.aiimp-receipt{margin:12px 0;padding:14px}
.aiimp-kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:8px 0;font-size:14px}.aiimp-kv dt{color:var(--muted,#aab8cb)}.aiimp-kv dd{margin:0}
.aiimp-alloc{margin:12px 0;padding:10px 14px}
.aiimp-alloc label{display:flex;gap:8px;align-items:center;min-height:44px}
.aiimp-alloc input[type=radio]{width:22px;height:22px}
.aiimp-done{margin-top:14px;padding:14px;border:1px solid #6fbf8b;border-radius:var(--kd-radius-ui);background:rgba(111,191,139,.06)}
.aiimp-newcards{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:6px}
.aiimp-newcards li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line,#354357)}
@media (min-width:900px){
 .aiimp{padding:24px}
 .aiimp-pick{grid-template-columns:1.2fr 1fr 1.2fr}
 .aiimp-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .aiimp-rows th:nth-child(1){width:110px}
}
/* phones: every row becomes a stacked card, so nothing needs sideways scrolling */
@media (max-width:760px){
 .aiimp-table,.aiimp-table thead,.aiimp-table tbody,.aiimp-table tr,.aiimp-table td{display:block;width:100%;min-width:0}
 .aiimp-table thead{position:absolute;left:-9999px}
 .aiimp-table tr{margin:0 0 14px;padding:8px 8px 8px 10px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui)}
 .aiimp-table td{border-bottom:0;padding:4px 0}
 .aiimp-table td.aiimp-n{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
 .aiimp-table td.aiimp-n::before{display:none}
 .aiimp-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:12px;line-height:1.5125;letter-spacing:.04em;color:var(--muted,#aab8cb)}
 .aiimp-cell[data-wide] input,.aiimp-cell input{min-width:0}
 .aiimp-kv{grid-template-columns:1fr}
 .aiimp-actions button,.aiimp-ai button,.aiimp-confirm button{flex:1 1 100%}
}
/* Undo a whole import batch (undo-view.tsx). Identity-only lists; same scoped look as the rest of the panel. */
.aiimp-undo{margin-top:22px;padding-top:14px;border-top:1px solid var(--line,#354357)}
.aiimp-undo h4{margin:12px 0 4px;font-size:15px}
.aiimp-undolist{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:6px}
.aiimp-undolist li{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui)}
.aiimp-undolist li[data-open=true]{border-color:#c5a970}
.aiimp-undo li[data-undo=keep]{opacity:.9}
.aiimp-undo .aiimp-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px}
.aiimp-undo .aiimp-check input[type=radio],.aiimp-undo .aiimp-check input[type=checkbox]{width:22px;height:22px;min-height:0;flex:none;margin:2px 0 0;padding:0}

/* KARDORA redesign 2026-10 — redesign-home (owned by its page agent)
   Home spotlight + rails, collection grid/list + filter bar, card detail. Art-first: clean art in the true card ratio, the grade seal OUTSIDE the art (bottom-left), no slab frame.
   Colours come from --vi-* / --kd-* so light and dark both work. Text floor 12px; touch targets 44px.
   Class names are new (rh-*), so none of the older tile/hero/ledger rules apply; legacy rules that do reach a shared class are overridden with a higher-specificity selector. */

/* ---------- shared bits ---------- */
.collector-app .rh-eyebrow { margin: 0; font-size: .75rem; font-weight: 600; color: var(--vi-accent); line-height: 1.5; }
.collector-app .rh-eyebrow [lang='en'] { letter-spacing: .12em; text-transform: uppercase; }   /* zh text is never tracked (design-recheck N): only the Latin part is */
.collector-app .rh-grades { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 4px; padding-inline-start: 9px; min-width: 0; min-height: 44px; }
.collector-app .rh-grades .kd-seal { margin: 0; }
.collector-app .rh-grades.is-lg { margin-top: 10px; padding-inline-start: 14px; }
.collector-app .rh-grades .favorite { margin-inline-start: auto; flex: none; width: 44px; min-height: 44px; height: 44px; padding: 0; border: 0; background: transparent; font-size: 1.25rem; line-height: 1; color: var(--vi-muted); display: inline-grid; place-items: center; cursor: pointer; }
.collector-app .rh-grades .favorite[aria-pressed='true'] { color: var(--vi-warning); }
.collector-app .rh-grades .favorite:hover { color: var(--vi-ink); }
.collector-app .rh-kind-line { margin: 10px 0 0; padding-inline-start: 9px; }
.collector-app .rh-pnl { font-variant-numeric: tabular-nums lining-nums; }
.collector-app .rh-pnl.is-gain { color: var(--vi-gain); }
.collector-app .rh-pnl.is-loss { color: var(--vi-loss); }
.collector-app .rh-pnl.is-gain::before { background: color-mix(in srgb, var(--vi-gain) 14%, var(--vi-panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vi-gain) 30%, transparent); }
.collector-app .rh-pnl.is-loss::before { background: color-mix(in srgb, var(--vi-loss) 14%, var(--vi-panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vi-loss) 30%, transparent); }
.collector-app .rh-value { font-variant-numeric: tabular-nums lining-nums; max-width: 100%; font-size: .875rem; }
.collector-app .rh-chips > .val-badge { margin: 0; }
.collector-app .rh-value .val-badge { margin-inline-start: 0; padding: 0 .35rem; font-size: .75rem; }
.collector-app .rh-value .manual-value { gap: 0 .375rem; }
.collector-app .kd-art .card-visual.is-clean .image-kind { position: absolute; left: 6px; right: 6px; bottom: 6px; width: auto; padding: 3px 6px; border-radius: var(--kd-radius-ui); background: color-mix(in srgb, var(--vi-panel) 92%, transparent); color: var(--vi-ink); font-size: .75rem; line-height: 1.3; text-align: center; letter-spacing: 0; z-index: 2; }
.collector-app .kd-art .card-visual.is-clean .art-card-ph { padding: 12px 10px 10px; gap: 6px; }
.collector-app .kd-art .card-visual.is-clean.has-ph .art-card-ph { background-color: var(--vi-raised); }

/* ---------- HOME ---------- */
.collector-app .rh-home { display: block; }
.collector-app .rh-home.rh-home-top { margin-bottom: 16px; } /* R3a: the spotlight + summary now open 總覽, above the overview grid */
.collector-app .rh-stage { position: relative; isolation: isolate; overflow: hidden; margin: 8px 0 16px; padding: 20px 16px 4px; border-radius: var(--kd-radius-ui); border: 1px solid var(--vi-line); background: linear-gradient(180deg, color-mix(in srgb, var(--vi-accent) 7%, var(--vi-panel)), var(--vi-panel)); touch-action: pan-y; }
.collector-app .rh-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--vi-ink); opacity: var(--kd-hatch-alpha); -webkit-mask: var(--kd-hatch-mask) 0 0 / var(--kd-hatch-tile); mask: var(--kd-hatch-mask) 0 0 / var(--kd-hatch-tile); }
.collector-app .rh-spot { display: grid; gap: 20px; justify-items: center; text-align: center; }
.collector-app .rh-spot-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; border-radius: var(--kd-radius-card); cursor: pointer; min-height: 0; }
.collector-app .rh-spot-info { display: grid; gap: 6px; justify-items: center; max-width: 34rem; min-width: 0; width: 100%; }
.collector-app .rh-spot-line { display: contents; }
.collector-app .rh-spot-id, .collector-app .rh-spot-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: inherit; min-width: 0; width: 100%; }
/* fixed-height info block: the name, set line and value row each occupy a fixed box, so changing the centre card can never move anything below the stage (full text lives in the title attribute). */
.collector-app .rh-spot-name { margin: 0; width: 100%; font-size: clamp(1.375rem, 5.6vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; height: 2.4em; display: grid; align-content: end; overflow: hidden; }   /* two reserved lines: a long name wraps (clamped at 2) instead of colliding with the figures; a short one sits on the bottom line, the slot never changes size */
.collector-app .rh-spot-name-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; min-width: 0; }
.collector-app .rh-spot-set { margin: 0; width: 100%; min-width: 0; color: var(--vi-muted); font-size: .9375rem; line-height: 1.5; height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: baseline; justify-content: var(--rh-spot-just, center); gap: .75em; }   /* 系列 line + the linked 百科 POP chip (O4): one fixed-height line; the series text ellipsizes, the chip never shrinks, so a late POP answer moves nothing */
.collector-app .rh-spot-set-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.collector-app .rh-spot-pop { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; opacity: .86; }
.collector-app .rh-spot-val { display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 6px 8px; margin-top: 4px; height: 2.1rem; overflow: hidden; align-content: flex-start; }   /* phone: price + pill + change on ONE line; a change that does not fit wraps out of the fixed-height row and is hidden whole (the facts box carries it), never cut mid-number */
.collector-app .rh-spot-val .val-badge { margin: 0; }
.collector-app .rh-big { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
/* A card with no price: same size as the value line (inherits .rh-big incl. the wide breakpoint), muted and lighter so it never reads as an amount. */
.collector-app .rh-big.rh-noprice { color: var(--vi-muted); font-weight: 400; letter-spacing: 0; }
.collector-app .rh-cta { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 32px; border: 0; background: none; color: var(--vi-on-accent); font-size: .9375rem; font-weight: 700; cursor: pointer; }
.collector-app .rh-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--kd-radius-ui); background: var(--vi-accent); transform: skewX(calc(var(--kd-slant) * -1)); transition: filter var(--kd-dur-fast); }
.collector-app .rh-cta:hover::before { filter: brightness(1.08); }
.collector-app .rh-stage[data-fan] .rh-cta:hover::before { filter: var(--rh-cta-hover-filter); background: var(--rh-accent-hover); }
.collector-app .rh-dots { display: flex; flex-wrap: nowrap; justify-content: center; }   /* ONE row always: the pool can be 12 cards, the markup only ever carries a window of dots (spotlight/pool.ts dotWindow) */
.collector-app .rh-dots button { width: var(--vi-target); height: var(--vi-target); padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.collector-app .rh-dots { --rh-ms: 6500ms; }   /* how long a card stays centred: the active dot's fill is the timer (animationend advances), so hover/focus pause = animation-play-state and the bar never disagrees with the carousel */
.collector-app .rh-dots button::before, .collector-app .rh-dots button::after { content: ""; grid-area: 1 / 1; width: 22px; height: 8px; border-radius: var(--kd-radius-ui); }
.collector-app .rh-dots button::before { background: var(--vi-line); transform: scaleX(.3637); transition: transform var(--kd-dur-base), background-color var(--kd-dur-base); }
.collector-app .rh-dots button::after { background: var(--vi-accent); transform: scaleX(0); transform-origin: left; }
.collector-app .rh-dots button[aria-current='true']::before { transform: none; }
.collector-app .rh-dots button[aria-current='true']::after { transform: none; }
.collector-app .rh-dots[data-play] button[aria-current='true']::after { animation: rh-dot-fill var(--rh-ms) linear forwards; }
.collector-app .rh-dots[data-play][data-paused] button[aria-current='true']::after { animation-play-state: paused; }
@keyframes rh-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.collector-app .rh-stage[data-fan] .rh-dots button::before { background: var(--rh-dot); }
.collector-app .rh-stage[data-fan] .rh-dots button[aria-current='true']::before { background: var(--rh-dot-active); }
.collector-app .rh-stage[data-fan] .rh-dots button:not([aria-current='true']):hover::before { background: var(--rh-dot-hover); }
@media (prefers-reduced-motion: reduce) { .collector-app .rh-dots button::before { transition: none; } }
.collector-app .rh-stage.is-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 16px; text-align: center; }
.collector-app .rh-stage.is-empty h2 { margin: 8px 0 0; }
.collector-app .rh-stage.is-empty p { margin: 0; color: var(--vi-muted); }
.collector-app .rh-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; width: 100%; }
.collector-app .rh-empty-actions > button { flex: 1 1 13rem; max-width: 20rem; min-height: 44px; }

/* showcase stage: a "display case" lit by the centre card's own art. Dark theme = the black case, light theme = a white vitrine on the grey page (L1, 2026-11-05).
   Both read the --rh-* stage tokens of app/design/tokens.css (light value on :root, dark under the dark and system-dark blocks), and one remap block gives every child its --vi-* names. */
.collector-app .rh-stage[data-fan] { --vi-paper: var(--rh-paper); --vi-panel: var(--rh-panel); --vi-raised: var(--rh-raised); --vi-ink: var(--rh-ink); --vi-muted: var(--rh-muted); --vi-line: var(--rh-line); --vi-accent: var(--rh-accent); --vi-on-accent: var(--rh-on-accent); --vi-gain: var(--rh-gain); --vi-loss: var(--rh-loss); --vi-warning: var(--rh-warning);
  --vi-line-strong: var(--rh-line-strong); --vi-marker: var(--rh-marker);
  /* The legacy aliases resolve at :root, so inside the stage they kept the page values: re-declared here they follow the stage tokens (M2). */
  --paper: var(--vi-paper); --panel: var(--vi-panel); --ink: var(--vi-ink); --muted: var(--vi-muted); --line: var(--vi-line); --accent: var(--vi-accent);
  --kd-art-shadow: var(--rh-art-shadow); color: var(--vi-ink); background: var(--rh-case); border-color: var(--rh-case-line); box-shadow: var(--rh-case-shadow); padding: 14px 0 18px; }
.collector-app .rh-stage[data-fan]::before { display: none; }
.collector-app .rh-stage[data-fan] .rh-eyebrow { position: absolute; top: 14px; left: 18px; z-index: 6; color: var(--vi-muted); pointer-events: none; }
/* ambient backdrop, three stacked layers: (1) a gradient from the centre card's dominant colours (--pb-c1..4, registered above as <color>
   so a change eases colour to colour), (2) the centre art blurred + saturated, scaled past the edges, at 50% through its container, (3) a vignette.
   A switch fades the new art layer in over the old one (opacity 0 → 1 while the old stays at 1; the old is dropped afterwards), so the art group
   never thins out and never stacks past 50%: no dark dip, no bright spike. Everything absolute + contained: a switch moves nothing. */
.collector-app .rh-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; border-radius: inherit; }
.collector-app .rh-backdrop-palette { position: absolute; inset: 0; opacity: var(--rh-palette-alpha);
  background: radial-gradient(ellipse 60% 75% at 20% 30%, var(--pb-c1), transparent 72%), radial-gradient(ellipse 55% 70% at 82% 38%, var(--pb-c2), transparent 72%),
    radial-gradient(ellipse 80% 55% at 50% 100%, var(--pb-c4), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--pb-c3) var(--rh-palette-mix), var(--rh-case)), var(--rh-case)); }
.collector-app .rh-backdrop-arts { position: absolute; inset: 0; opacity: var(--rh-glow-alpha); --glow: ellipse 58% 42% at 50% 30%; -webkit-mask: radial-gradient(var(--glow), black, transparent); mask: radial-gradient(var(--glow), black, transparent); } /* R3 glow: a soft light behind the card, not a wall of colour */
.collector-app .rh-backdrop-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: var(--rh-glow-filter); transform: scale(1.04); }
.collector-app .rh-backdrop-art.is-on { opacity: 1; }
.collector-app .rh-backdrop-art.is-out { opacity: 0; }
.collector-app .rh-backdrop-veil { position: absolute; inset: 0; background: var(--rh-veil); }
@media (prefers-reduced-motion: no-preference) { .collector-app .rh-backdrop { transition: --pb-c1 .5s ease, --pb-c2 .5s ease, --pb-c3 .5s ease, --pb-c4 .5s ease; } .collector-app .rh-backdrop-art { will-change: opacity; transition: opacity .5s ease; } }

/* the fan: every card is absolutely placed at the centre and moved only by transform (no layout on change). Position comes from data-a (distance) and data-dir (side). */
/* size: the centre card is 85% of the viewport on a phone, ~19% of it on a desktop (also capped by viewport height so the stage stays on one screen); side cards sit at multiples of the card width, so every size overlaps the same way. */
.collector-app .rh-stage[data-fan] { --fan-w: min(85vw, 340px); --x1: calc(var(--fan-w) * .27); --x2: calc(var(--fan-w) * .36); --x3: calc(var(--fan-w) * .4); }
.collector-app .rh-fan { position: relative; height: calc(var(--fan-w) * 1.375 + 58px); margin-top: 22px; perspective: calc(var(--fan-w) * 6.6); perspective-origin: 50% 40%; }
.collector-app .rh-fan-item { --dir: 0; --x: 0px; --s: 1; --r: 0deg; position: absolute; top: 0; left: 50%; width: var(--fan-w); margin-left: calc(var(--fan-w) / -2); z-index: 5; transform-origin: 50% 42%;
  transform: translate3d(calc(var(--dir) * var(--x)), 0, 0) rotateY(calc(var(--dir) * var(--r) * -1)) scale(var(--s)); }
.collector-app .rh-fan-item[data-dir='-1'] { --dir: -1; }
.collector-app .rh-fan-item[data-dir='1'] { --dir: 1; }
.collector-app .rh-fan-item[data-a='1'] { --x: var(--x1); --s: .8; --r: 30deg; z-index: 4; opacity: .62; filter: brightness(.72); }
.collector-app .rh-fan-item[data-a='2'] { --x: var(--x2); --s: .66; --r: 38deg; z-index: 3; opacity: .42; filter: brightness(.62); }
.collector-app .rh-fan-item[data-a='3'] { --x: var(--x3); --s: .56; --r: 42deg; z-index: 2; opacity: .28; filter: brightness(.55); }
.collector-app .rh-fan-item[data-a='4'] { --x: var(--x3); --s: .56; --r: 42deg; z-index: 1; opacity: 0; pointer-events: none; }   /* a pool longer than the fan (up to 12): the cards beyond the shown window wait here, invisible, and fan in as the carousel moves */
.collector-app .rh-fan-item:not(.is-centre) .rh-grades { opacity: .7; }
.collector-app .rh-fan-item .rh-grades.is-lg { justify-content: center; padding-inline-start: 0; margin-top: 12px; }
.collector-app .rh-fan-pick { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; border-radius: var(--kd-radius-card); cursor: pointer; min-height: 0; }
.collector-app .rh-fan-pick .kd-art .card-visual.is-clean :is(.image-kind, .kd-sheen) { display: none; }
.collector-app .rh-fan-item .kd-art:hover .card-visual.is-clean { transform: none; }
.collector-app .rh-fan-item .kd-art .card-visual.is-clean { box-shadow: var(--rh-side-shadow); }
.collector-app .rh-fan-item.is-top .kd-art .card-visual.is-clean { box-shadow: 0 0 0 1px var(--kd-top-edge-line, rgba(212, 175, 55, .55)), var(--rh-art-geom) var(--kd-art-shadow); }
/* light only: the centre card's own first colour (--pb-c1, which exists on the stage, not on :root) is mixed into its drop shadow, plus a lift layer. Dark keeps the plain black shadow with no colour-mix (it moved pixels). */
:root[data-theme='light'] .collector-app .rh-stage[data-fan] { --kd-art-shadow: color-mix(in srgb, var(--pb-c1, var(--vi-ink)) 45%, var(--rh-art-shadow)); }
:root[data-theme='light'] .collector-app .rh-fan-item.is-top .kd-art .card-visual.is-clean { box-shadow: 0 0 0 1px var(--kd-top-edge-line), var(--rh-art-lift), var(--rh-art-geom) var(--kd-art-shadow); }
@media not (prefers-color-scheme: dark) {
  :root[data-theme='system'] .collector-app .rh-stage[data-fan] { --kd-art-shadow: color-mix(in srgb, var(--pb-c1, var(--vi-ink)) 45%, var(--rh-art-shadow)); }
  :root[data-theme='system'] .collector-app .rh-fan-item.is-top .kd-art .card-visual.is-clean { box-shadow: 0 0 0 1px var(--kd-top-edge-line), var(--rh-art-lift), var(--rh-art-geom) var(--kd-art-shadow); }
}
@media (prefers-reduced-motion: no-preference) {
  .collector-app .rh-fan-item { transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
  .collector-app .rh-fan-item.is-jump { transition: none; }
}
.collector-app .rh-fan-nav { position: static; } /* R3: no row of its own: the arrows sit on the stage's left/right edges, the dots in one quiet row at the bottom (all absolute: nothing in the flow changes with the card) */
.collector-app .rh-stage[data-fan] { --nav-top: calc(36px + var(--fan-w) * .6875 - 22px); padding-bottom: 16px; }   /* Q9e: the bottom padding is the stage's side padding (it held 50px for the pager dots, which are hidden: .rh-dots below is visibility:hidden, pointer-events:none, absolute) */
.collector-app .rh-fan-arrow { position: absolute; z-index: 6; top: var(--nav-top); width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--kd-radius-ui); background: radial-gradient(circle closest-side, var(--rh-arrow-bg) 0 11px, transparent 12px); color: var(--rh-arrow-ink); font-size: 1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.collector-app .rh-fan-arrow:first-child { left: 0; }
.collector-app .rh-fan-arrow:last-child { right: 0; }
.collector-app .rh-fan-arrow:hover { background: radial-gradient(circle closest-side, var(--rh-arrow-bg-hover) 0 12px, transparent 13px); color: var(--rh-arrow-ink-hover); }
@media (max-width: 899.98px) { :is(.collector-app, .app-loading) .rh-fan-nav .rh-fan-arrow { display: none; } }   /* Q9: no stage arrows on a phone (swipe + dots) */
.collector-app .rh-stage[data-fan] .rh-dots { position: absolute; z-index: 6; left: 0; right: 0; bottom: -10px; opacity: .75; }
.collector-app .rh-stage[data-fan] :is(.rh-fan-arrow, .rh-dots button, .rh-fan-pick, .rh-cta):focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
/* keyboard focus on the centre card (arrow keys return focus there) never frames the card; the small prev/next controls carry the cue instead */
html[data-kb] .collector-app .rh-stage[data-fan]:has(.rh-spot-open:focus-visible) .rh-fan-arrow { outline: 2px solid var(--vi-marker); outline-offset: -2px; }
.collector-app .rh-stage[data-fan] .rh-spot-open:focus-visible { outline: none; }
/* pointer/touch focus (incl. focus returned after the motion prompt) never draws the ring; html[data-kb] is set by the last keydown (tilt.ts) */
html:not([data-kb]) .collector-app .rh-stage[data-fan] :is(.rh-fan-arrow, .rh-dots button, .rh-fan-pick, .rh-cta):focus-visible { outline: none; }
.collector-app .rh-stage[data-fan] .rh-spot { position: relative; z-index: 6; padding: 1px 0 0; }   /* Q9e: 1px (was 6px) between the plate and the name slot (below 900px; >=900 has its own padding) */
@media (min-width: 700px) { .collector-app .rh-backdrop-arts { --glow: ellipse 36% 44% at 50% 36%; } .collector-app .rh-stage[data-fan] { --nav-top: calc(18px + var(--fan-w) * .6875 - 22px); --fan-w: 250px; --x1: calc(var(--fan-w) * .78); --x2: calc(var(--fan-w) * 1.36); --x3: calc(var(--fan-w) * 1.8); } .collector-app .rh-fan { margin-top: 4px; } }
/* fix r10 (repo rule 11-14, text in a fixed cell may wrap to 2 lines in a reserved height): the phone slot holds TWO lines of the smallest step (2 x 1.25rem x 1.2 = 3rem), so a long name that still overflows at 1.25rem wraps whole instead of ending in an ellipsis; the spot's own side padding is gone (the page's 16px gutter is the edge), so a 56-character name fits two lines at 360 in any font and the facts cells hold their values whole; one-line names centre in it, every card the same height. Only a name past two lines (the 132-character raw title) is clamped. */
/* Q9e (Steven 2026-11-01, 「手機這些空格是不是還沒修，然後卡片的名字也太小了吧」): below 900px the name is ALWAYS one line in one fixed-height slot, whatever the pool holds (no pool-wide two-line reserve), 1.75rem by default and stepping down by name length (data-name-px on the stage = phoneNameRem x 16, from phoneNameRem) to 1.25rem, then an ellipsis; the slot is a fixed 2.1rem so rotation moves nothing */
@media (max-width: 899.98px) { .collector-app .rh-spot-name { font-size: 1.875rem; height: 3rem; align-content: center; } .collector-app .rh-spot-name-t { -webkit-line-clamp: 2; } .collector-app .rh-stage[data-name-px='28'] .rh-spot-name { font-size: 1.75rem; } .collector-app .rh-stage[data-name-px='20'] .rh-spot-name { font-size: 1.25rem; } .collector-app .rh-stage[data-name-px='22'] .rh-spot-name { font-size: 1.375rem; } .collector-app .rh-stage[data-name-px='24'] .rh-spot-name { font-size: 1.5rem; } .collector-app .rh-stage[data-name-px='26'] .rh-spot-name { font-size: 1.625rem; }
  .collector-app .rh-stage[data-fan] { padding-top: 10px; }
  .collector-app .rh-stage[data-fan] .rh-fan { margin-top: 0; }
  .collector-app .rh-big { font-size: 1.25rem; font-weight: 500; }   /* the name steps down to 1.25rem: the price never reads larger than it */
  .collector-app .rh-spot .rh-spot-name .rh-spot-name-t { font-size: inherit; line-height: inherit; }   /* the span read 16px, so none of the size steps above reached the name */
  .collector-app .rh-spot-val { row-gap: 1rem; }
  .collector-app .rh-spot .rh-spot-val .kd-amount[data-amount='masked'] { min-inline-size: 0; }   /* the reserved box pushed the badge under the mask */   /* a change that wraps stays wholly outside the fixed row */
  .collector-app .rh-pause.rh-pause-icon { position: absolute; z-index: 7; top: calc(var(--nav-top) + 22px + var(--fan-w) * .6875 - 18px); left: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; color: color-mix(in srgb, var(--vi-ink) 70%, transparent); }   /* Steven 2026-11-03: pause + 展示 left the art; they sit in one row under the card, level with the grade seal (pause left, 展示 right, 44px targets, 20px icons); absolute, so no row is added and nothing shifts */
  .collector-app .rh-pause.rh-pause-icon svg { display: block; }
  .collector-app .rh-pause.rh-exhibit-icon { position: absolute; z-index: 7; top: calc(var(--nav-top) + 22px + var(--fan-w) * .6875 - 18px); right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; color: color-mix(in srgb, var(--vi-ink) 70%, transparent); }   /* 展示 on a phone: icon only, 44px hit area, right end of the dots row; absolute, so it adds no row */
  .collector-app .rh-pause.rh-exhibit-icon svg { display: block; }
  .collector-app .rh-facts.n5 { grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }   /* 價格日期 left the phone box (Steven 2026-11-03): 4 facts = a 2x2, 5 (several copies) = 2 + 2 + the value across; both keep the same box height */
  .collector-app .rh-facts:is(.n4, .n5) { height: calc(3 * (2.375rem + 1px) + 8px + 12px + 1.25rem); gap: 4px 12px; padding-block: 6px; }   /* Steven 2026-11-03: a tighter box (row gap 8 to 4, padding 10 to 6; 16px shorter at the same height for 4 and 5 cells) */
  .collector-app .rh-facts.n5 > div.loading-phone-cell { display: grid; }
  .loading-stage .rh-eyebrow { display: none; }   /* the loading skeleton draws the same phone stage as the loaded one: no header row, the 5-cell facts box height */
}
/* Spotlight phone, Steven 2026-11-02: no header row above the art (collector-home.tsx does not render the eyebrow or the 持有 · 價格日期 note below 900px), so the art starts 10px under the stage's top edge (was 42px at 390). The pause control is a 44px icon button in the stage's top-right corner (a 22px disc inside it), over the backdrop beside the art's corner and clear of every text line. The facts box is 1.25rem taller in its first row, which holds the two-line cost cell (original currency, then 「≈ TWD …」); the box is that one height for every card, so rotation moves nothing. */
/* 持有成本 / 分攤成本 cell: line 1 = the original-currency amount, line 2 = the converted amount (「≈ TWD 35,068」). Line 2 is always rendered (empty for a one-amount cost) so the cell is the same height for every card and in hidden mode. */
.collector-app .rh-facts > div.loading-phone-cell { display: none; }
/* Money never clips (Steven 2026-11-02): the cost cell neither ellipsizes nor overflows; it keeps its whole content (each amount is joined by no-break spaces, so only 「HKD 50 + JPY 250」 can wrap, at the +), and on desktop it shrinks no further than its longest amount. */
.collector-app .rh-facts dd.rh-cost { white-space: normal; overflow: visible; text-overflow: clip; }
.collector-app .rh-facts > div:has(> dd.rh-cost) { min-width: min-content; }
.collector-app .rh-facts .rh-cost-l1, .collector-app .rh-facts .rh-cost-l2 { display: block; overflow: visible; text-overflow: clip; }
/* O2 (s4): the ≈ line lives INSIDE its cell (never hung below the box). One currency: no cell has it and every label + value pair is centred in the box (R6). Two currencies (.has-l2 on the box): the labels share one top, the values share one top, and the ≈ line sits under its value inside the box. */
.collector-app .rh-facts .rh-cost-l2 { min-height: 0; font-size: .75rem; font-weight: 500; color: var(--vi-muted); white-space: nowrap; line-height: 1.2; }
.collector-app .rh-facts .rh-cost-l2:empty { display: none; }
.collector-app .rh-facts.has-l2 > div { align-content: start; }
@media (min-width: 900px) {
  .collector-app .rh-stage[data-fan] { --fan-w: clamp(240px, min(34vw, calc(61vh - 105px)), 680px); --nav-top: calc(10px + var(--fan-w) * .6875 - 22px); --x1: calc(var(--fan-w) * .74); --x2: calc(var(--fan-w) * 1.3); --x3: calc(var(--fan-w) * 1.72); padding: 0 0 18px; margin-bottom: 12px; border-radius: var(--kd-radius-ui); }
  .collector-app .rh-stage[data-fan] .rh-eyebrow { top: 18px; left: 28px; }
  .collector-app .rh-fan { margin-top: 0; height: calc(var(--fan-w) * 1.375 + 50px); }
  .collector-app .rh-fan-item .rh-grades.is-lg { margin-top: 6px; }
  .collector-app .rh-fan-arrow:first-child { left: 16px; }
  .collector-app .rh-fan-arrow:last-child { right: 16px; }
  .collector-app .rh-stage[data-fan] .rh-spot { padding: 0 40px 0; }
  .collector-app .rh-spot { gap: 6px; }
  .collector-app .rh-spot-info { --rh-spot-just: flex-start; grid-template-columns: 15rem minmax(0, 42rem) auto; justify-content: center; gap: 6px 16px; max-width: none; --rh-info-mt: 12px; margin: 12px auto 0; justify-items: start; align-items: center; text-align: left; }   /* R3: pulled up beside the grade seal. 2026-11-02 round 2: the bar is ONE group of fixed tracks (set line + price | facts | 查看卡片) centred under the art, the name above it spanning the group; facts and button centre on that stack (no drop/lift offsets) */
  .collector-app .rh-spot-more, .collector-app .rh-spot-id { display: contents; }
  .collector-app .rh-spot-info > .rh-spot-id > :is(.rh-spot-name, .rh-spot-set), .collector-app .rh-spot-name, .collector-app .rh-spot-set { grid-column: 1 / -1; width: 0; min-width: 100%; }   /* width 0 + min-width 100%: a long name spans the group but adds nothing to the auto track (the button's), so rotation cannot resize a track */
  .collector-app .rh-spot .rh-spot-name { height: 2.5em; margin-top: -12px; line-height: 1.25; align-content: end; }   /* fix r9: two reserved lines, the name bottom-aligned: a wider font wraps a long name into the spare line instead of cutting it, and a 1- or 2-line name moves nothing */
  .collector-app .rh-spot .rh-spot-name .rh-spot-name-t { font-size: inherit; line-height: inherit; -webkit-line-clamp: 2; }
  .collector-app .rh-spot-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; width: 100%; min-width: 0; }   /* set line + price: ONE fixed stack in the first track, whatever the facts box's height (a price alone in a tall row floats away from the line above it) */
  .collector-app .rh-spot-info .rh-facts { align-self: center; justify-self: stretch; top: 0; }
  .collector-app .rh-spot-info .rh-cta { align-self: center; justify-self: start; margin: 0 0 0 12px; top: 0; }   /* +12px from the facts box (Steven 2026-11-03) */
  .collector-app .rh-spot-name { font-size: 1.75rem; }
  .collector-app .rh-spot-val { justify-content: flex-start; margin-top: 0; height: auto; min-height: 2.1rem; overflow: visible; }   /* 900-1023: the change % wraps under the price, never vanishes */
  .collector-app .rh-spot .rh-spot-val .kd-amount[data-amount='masked'] { min-inline-size: 0; }   /* the tracks are fixed, so the mask needs no constant box here; the box pushed the badge across the facts */
  .collector-app .rh-big { font-size: calc(var(--vi-type-2xl) * .75); white-space: nowrap; }
  .collector-app .rh-cta { padding: 0 24px; white-space: nowrap; }
  .collector-app .rh-exhibit:not(.rh-exhibit-icon) { min-width: 4.5rem; }   /* 展示 beside 暫停輪播 on the stage's top row: its slot is reserved */
}

/* facts box (app/spotlight/facts-view.tsx), Q9b (Steven 2026-10-31): five facts, six for a card held in several copies, in ONE even grid that fills the box: label over a centred value, one line each, plain wording. Amounts are masked in hidden mode (the % and the durations stay), a missing fact is "—". Phone: 2 columns x 3 rows (the odd fifth cell spans both); 900px up: a 12-column grid, row 1 = 帳面損益 / 持有成本 / 在哪買, row 2 = the rest. Fixed rows: the box has the same size for every card and every mode. */
.collector-app .rh-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rh-facts-rows, 2), 1fr); height: calc(3 * (2.375rem + 1px) + 16px + 20px); gap: 8px 12px; width: 100%; margin: 8px 0 0; padding: 10px 14px; border-radius: var(--kd-radius-ui); background: color-mix(in srgb, var(--vi-panel) 62%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vi-line) 70%, transparent); text-align: center; }
.collector-app .rh-facts > div { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 1px; }
.collector-app .rh-facts:is(.n5, .n6) { --rh-facts-rows: 3; }
.collector-app .rh-facts.n5 > div:last-child { grid-column: 1 / -1; }   /* phone: 4 or 5 cells, the box is ALWAYS the 3-row height (2 taller rows for 4 cells), so rotating to a multi-copy card moves nothing */
.collector-app .rh-facts dt { font-size: .75rem; line-height: 1.4; color: var(--vi-muted); word-break: keep-all; }   /* fix r10: a CJK label never breaks inside; an English one only at its middle space (facts-view.tsx halves()) */
.collector-app .rh-facts dd { margin: 0; min-width: 0; max-width: 100%; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--vi-ink); text-align: center; }
.collector-app .rh-facts dd.gain { color: var(--vi-gain); }
.collector-app .rh-facts dd.loss { color: var(--vi-loss); }
.collector-app .rh-facts .rh-facts-na { font-weight: 400; color: var(--vi-muted); }
.collector-app .rh-facts .rh-facts-place { font-weight: 500; }
.collector-app .rh-facts .rh-facts-fix { position: relative; padding: 0; border: 0; background: none; color: var(--vi-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 28px; }
.collector-app .rh-facts .rh-facts-fix::after { content: ""; position: absolute; inset: -8px -4px; }  /* Q1: a 44px touch target (28px + 2 x 8px) with no change to the row height */
.collector-app .rh-spot-meta { position: absolute; z-index: 6; top: 1px; bottom: auto; left: 164px; right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 44px; margin: 0; padding: 0; color: var(--vi-muted); font-size: .75rem; pointer-events: none; }   /* Q9d (Steven 2026-10-31 22:52, 「還是自己一行」): phone = the SAME fold as desktop, on the stage's TOP edge beside the eyebrow (the bottom edge read as a loose row under the button). Compact type + a compact pause button so 持有 N 張 · 價格日期 and 暫停輪播 fit beside the eyebrow at 390; only a narrower phone ellipsizes the date text. Only the pause button takes pointer events */
.collector-app .rh-spot-meta-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.collector-app .rh-pause { pointer-events: auto; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--vi-muted); font-size: .75rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.collector-app .rh-pause:hover { color: var(--vi-ink); }
.collector-app .rh-pause:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .rh-pause[data-idle] { visibility: hidden; }   /* reduced motion / one card: nothing autoplays, the slot stays so the row never changes height */
.collector-app .rh-facts :is(dt, dd) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Q9d (Steven 2026-10-31 21:50, 「右邊格子裡面的弄成一行就好 這樣資料很亂」) + 2026-11-02 「Size the spotlight facts box for real money」: from 1180px EVERY fact is one cell on ONE row, label above, value centred, nowrap. The box is one fixed track (38rem, the spotlight info grid), so no card moves it. Inside it the cells share the width in proportion to what they hold (帳面損益 15, 持有成本 14, 在哪買 9, 已陪你 and 持有市值 8), and every cell's floor is its own content, so money is never cut: only 在哪買 (floor 0) gives way, with an ellipsis. A label never widens a cell (width 0 + min-width 100%, the name line's trick). The cost lines stay on one line each, so the box height comes from the two reserved cost lines on every card and in hidden mode; min-height is that same height, for the loading skeleton's one-line cells. Cells start at the top, so every label sits on one line whether or not the cost has a second line. */
@media (min-width: 900px) { .collector-app .rh-facts { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: auto; height: auto; min-height: 90px; margin: 0; padding: 10px clamp(12px, 1.4vw, 20px); } .collector-app .rh-facts > div { flex: 8 1 6.5rem; min-width: min-content; align-self: stretch; align-content: center; } .collector-app .rh-facts > div:first-child { flex-grow: 15; } .collector-app .rh-facts > div:has(> dd.rh-cost) { flex-grow: 14; } .collector-app .rh-facts > div.rh-facts-wh { flex-grow: 9; } .collector-app .rh-facts dt { width: auto; padding-inline: 0; display: grid; align-content: end; min-height: 2.1rem; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; } .collector-app .rh-facts dd { min-width: max-content; } .collector-app .rh-facts dd.rh-cost { white-space: nowrap; } }   /* fix r10: min-height 90px (5.625rem at the default 16px; px because the rem spelling cost 2 bytes over the first-load CSS budget) = the box WITH the cost's second line (≈ TWD, in flow at 1180-1279; the 1280 block hangs it below a fixed 4.725rem box), so rotating to a two-currency card no longer grows the stage by 14px */   /* fix r10: in the one-row box a label breaks only at its middle space (facts-view.tsx halves()), and the label keeps the grid item's automatic minimum (its min-content: the longer half), so it never takes a third line and its cell never shrinks below it (the 900-1179 grid below sets min-width: 100% again) */   /* fix r9: a cell is never narrower than its VALUE (min-content; a label wraps into its two-line, bottom-aligned slot, so a wider font never pushes a label past the box or under 查看卡片, and a 1- or 2-line label moves nothing); the box stays inside its 38rem track. The 900-1179px grid below returns to fixed tracks */
/* 900-1179px: a row of cells cannot hold real money beside the price and the button, so the gaps and the type tighten one step and the box takes two fixed rows on every card: 帳面損益 | 持有成本 (| 持有市值), then 在哪買 | 已陪你 */
@media (min-width: 900px) and (max-width: 1179px) { .collector-app .rh-facts { gap: 10px; row-gap: 6px; display: grid; grid-template-columns: 11fr 10fr; grid-template-rows: auto auto; min-height: 9.275rem; padding-inline: 12px; } .collector-app .rh-facts dt { font-size: .75rem; } .collector-app .rh-facts dd { font-size: .875rem; } .collector-app .rh-spot-info { grid-template-columns: clamp(13.5rem, 19.4vw + 42px, 15rem) minmax(0, 30rem) auto; column-gap: 14px; } .collector-app .rh-facts.n5 { grid-template-columns: 12fr 10fr 9fr; } .collector-app .rh-spot-info .rh-cta { padding: 0 20px; margin-left: 8px; } .collector-app .rh-facts.n5 > div:nth-child(5) { grid-area: 1 / 3; } .collector-app .rh-facts.n5 > div:nth-child(4) { grid-column: 2 / -1; } .collector-app .rh-spot .rh-spot-info .rh-spot-name { margin-bottom: 0; } .collector-app .rh-facts > div.rh-facts-wh { min-width: 0; } .collector-app .rh-facts dd { min-width: 0; } .collector-app .rh-facts dt { width: 0; min-width: 100%; }   /* fix r8: a label WRAPS to at most two lines (never one-line room), its slot always two lines tall and bottom-aligned, so a wrap never moves a value or the box */   /* fix r6: the 2-row facts box is taller than the series + price stack, so the name stays on its own row above the box (lowering it put a long name across the box and 查看卡片); the top-line caption keeps clear of the card's chips at 900 */ }
@media (min-width: 1280px) { .collector-app .rh-spot-info { --rh-price-fs: clamp(1.75rem, .6vw + 1.25rem, 2.125rem); grid-template-columns: calc(var(--rh-price-fs) * 13) minmax(0, 42rem) auto; gap: 8px 16px; --rh-info-mt: 12px; --rh-arrow: inline; } .collector-app .rh-spot-val { flex-wrap: nowrap; height: 2.4rem; gap: 8px; }
  .collector-app .rh-spot .rh-spot-name { font-size: clamp(1.875rem, .6vw + 1.5rem, 2.25rem); }
  .collector-app .rh-spot .rh-big { font-size: var(--rh-price-fs); }
  .collector-app .rh-spot .rh-spot-val { height: auto; min-height: 3rem; }
  .collector-app .rh-spot .rh-spot-info { --rh-price-row: 3rem; --rh-fs: var(--rh-price-fs); }
  .collector-app .rh-facts { --rh-f-h: 4.725rem; --rh-f-pair: calc(1.05rem + 1px + 1.3125rem); height: var(--rh-f-h); min-height: 0; padding-block: 0 calc((var(--rh-f-h) - var(--rh-f-pair)) / 2); align-items: last baseline; }
  .collector-app .rh-facts > div { align-self: auto; align-content: start; }
  .collector-app .rh-facts dd.rh-cost { position: relative; }
  .collector-app .rh-facts .rh-cost-l2 { position: absolute; inset-inline: 0; margin-inline: auto; inline-size: max-content; top: 100%; }   /* centred under the value even when it is wider than the value */
  .collector-app .rh-spot .rh-spot-info { align-items: last baseline; }   /* name/price block, facts value and 查看卡片 share one baseline: the value line (the 1024px rules in redesign-overview.css bottom-aligned them) */
  .collector-app .rh-spot .rh-spot-info :is(.rh-facts, .rh-cta) { align-self: auto; }
  .collector-app .rh-spot .rh-spot-info .rh-cta { margin-bottom: 0; }
  .collector-app .rh-spot .rh-spot-val { align-items: baseline; } }
/* O1 + O2 (s4, fix r2): from 1280px the facts box is ONE row of cells with room to spare (1180-1279px keep the older centred row). Its label hangs ABOVE the value and the second cost line (≈ ...) hangs BELOW it, both out of the cell's flow but inside the box (it keeps one fixed height), so a cell's baseline is its value line and the box can be baseline-aligned with the price and 查看卡片.
   The label + value pair is centred in the box (R6) and sits on the same lines whether or not a cost has a ≈ line, which hangs under the value inside the box's lower padding (it fits: 14.4px of the 18.4px strip), so the box and the row never change height. The type sizes and line heights are fixed, so these offsets are exact in every font; the browser does the baseline. */

/* Steven 2026-11-02 (「還是太空」), round 2: from 900px the spotlight bar is ONE centred group of fixed tracks: the name on top (one line, truncates), then the set line + price stack | facts box | 查看卡片 on one row, each vertically centred. Track widths depend on the viewport only, never on the card, so rotation moves nothing; the first track is sized from the price font (13em holds TWD 1,800,000 plus its badge, and the set line above it; a 900-1023px track stays 13.5rem because the badge wraps under the price there), so the facts start right after the price. Name 1.875-2.25rem and price 1.75-2.125rem from 1280px: the name is always the larger.

/* card tilt + sheen (app/spotlight/tilt.ts writes --tilt-x/--tilt-y/--sheen-x/--sheen-y and data-tilt = pointer|orientation, data-moving). Nothing under reduced motion.
   White sheen: shown while the pointer is over the art (data-tilt="pointer") or the phone is moving (data-moving, cleared ~.2 s after it stops; the .3 s opacity fade ends it).
   Iridescent holo (top grades): desktop fine pointer only, never in orientation mode, so a phone keeps the card's true colours at rest. */
.collector-app .rh-spot-open { position: relative; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .45s var(--kd-ease); }
.collector-app .rh-spot-open[data-tilt] { transition: transform .1s linear; }
.collector-app .rh-tilt-sheen { position: absolute; inset: 0; z-index: 3; border-radius: var(--kd-radius-card); pointer-events: none; opacity: 0; mix-blend-mode: soft-light; transition: opacity .3s;
  background: radial-gradient(circle at var(--sheen-x, 50%) var(--sheen-y, 30%), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 48%); }
.collector-app .rh-spot-open[data-tilt="pointer"] .rh-tilt-sheen, .collector-app .rh-spot-open[data-moving] .rh-tilt-sheen { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .collector-app .rh-spot-open:not([data-tilt="orientation"]) .rh-tilt-sheen.is-holo { opacity: .3; mix-blend-mode: color-dodge;
    background: repeating-linear-gradient(115deg, #ff6b8b 0%, #ffd36b 7%, #7dffb0 14%, #69c8ff 21%, #b38bff 28%, #ff6b8b 35%);
    background-size: 300% 300%; background-position: var(--sheen-x, 50%) var(--sheen-y, 30%);
    -webkit-mask: radial-gradient(circle at var(--sheen-x, 50%) var(--sheen-y, 30%), #000, transparent 55%); mask: radial-gradient(circle at var(--sheen-x, 50%) var(--sheen-y, 30%), #000, transparent 55%); }
  .collector-app .rh-spot-open[data-tilt="pointer"] .rh-tilt-sheen.is-holo { opacity: .62; }
}
@media (prefers-reduced-motion: reduce) { .collector-app .rh-spot-open { transform: none; transition: none; } .collector-app .rh-tilt-sheen { display: none; } }

/* palette background (app/palette-bg/): flowing swirl from 4 colours sampled on-device from the spotlight art.
   Static gradient layers moved only by transform (compositor), paused offscreen / hidden tab (.is-animated removed), static under reduced motion.
   Colours are registered properties so a new spotlight card cross-fades its palette instead of jumping. */
@property --pb-c1 { syntax: '<color>'; inherits: true; initial-value: #6b7a8f; }
@property --pb-c2 { syntax: '<color>'; inherits: true; initial-value: #a9b4c2; }
@property --pb-c3 { syntax: '<color>'; inherits: true; initial-value: #3d4756; }
@property --pb-c4 { syntax: '<color>'; inherits: true; initial-value: #e3e8ee; }
.pbg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; contain: strict;
  background: color-mix(in srgb, var(--pb-c3) 18%, var(--vi-panel, #fff)); transition: --pb-c1 1.4s ease, --pb-c2 1.4s ease, --pb-c3 1.4s ease, --pb-c4 1.4s ease; }
.pbg > span { position: absolute; display: block; }
.pbg-swirl { left: 50%; top: 42%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; opacity: .5;
  background: conic-gradient(from 20deg, var(--pb-c1), var(--pb-c2), var(--pb-c4), var(--pb-c3), var(--pb-c2), var(--pb-c1));
  -webkit-mask: radial-gradient(closest-side, transparent 4%, #000 22%, rgba(0, 0, 0, .55) 46%, transparent 72%); mask: radial-gradient(closest-side, transparent 4%, #000 22%, rgba(0, 0, 0, .55) 46%, transparent 72%); }
.pbg-blob { width: 62%; aspect-ratio: 1; border-radius: var(--kd-radius-round); opacity: .8; }
.pbg-blob.is-a { left: -14%; top: -38%; background: radial-gradient(closest-side, var(--pb-c1), transparent); }
.pbg-blob.is-b { right: -18%; top: 6%; background: radial-gradient(closest-side, var(--pb-c2), transparent); }
.pbg-blob.is-c { left: 22%; bottom: -60%; background: radial-gradient(closest-side, var(--pb-c4), transparent); opacity: .6; }
.pbg-scrim { inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--vi-panel, #fff) 40%, transparent) 70%); }
@media (max-width: 899px) {
  .pbg-blob { width: 115%; }
  .pbg-blob.is-a { left: -45%; top: -12%; }
  .pbg-blob.is-b { right: -55%; top: 28%; }
  .pbg-blob.is-c { left: -25%; bottom: -22%; }
  .collector-app .rh-spot-val .kd-amount { margin-inline-start: 1.5ch; }   /* E1 v2: the centred spotlight has no eye beside the value; the constant 14.5ch box is 1.5ch wider than the digits, so this constant margin re-centres them (text stays start-aligned: no shift on toggle) */
}
@media (min-width: 900px) { .pbg-swirl { left: 18%; } .pbg-scrim { background: linear-gradient(90deg, transparent 18%, color-mix(in srgb, var(--vi-panel, #fff) 38%, transparent) 44%, color-mix(in srgb, var(--vi-panel, #fff) 16%, transparent)); } }
@media (prefers-reduced-motion: no-preference) {
  .pbg.is-animated .pbg-swirl { will-change: transform; animation: pbg-spin 70s linear infinite; }
  .pbg.is-animated .pbg-blob { will-change: transform; animation: pbg-drift 26s ease-in-out infinite alternate; }
  .pbg.is-animated .pbg-blob.is-b { animation-duration: 33s; animation-delay: -9s; animation-direction: alternate-reverse; }
  .pbg.is-animated .pbg-blob.is-c { animation-duration: 41s; animation-delay: -17s; }
}
@keyframes pbg-spin { to { transform: rotate(1turn); } }
@keyframes pbg-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(16%, 10%) scale(1.18); } 100% { transform: translate(-8%, 18%) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .pbg { transition: none; } }

/* fullscreen card-art viewer (app/spotlight/viewer.tsx): native modal dialog in the top layer */
.collector-app dialog.rh-viewer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; border-radius: 0; background: transparent; color: #fff; overflow: hidden; display: grid; place-items: center; touch-action: none; box-shadow: none; }
.collector-app dialog.rh-viewer:not([open]) { display: none; }
.collector-app dialog.rh-viewer::backdrop { background: rgba(6, 6, 10, .9); }
.collector-app .rh-viewer-fig { margin: 0; display: grid; gap: 10px; justify-items: center; width: min(92vw, calc((100dvh - 120px) * 600 / 825)); transform-origin: center; }
.collector-app .rh-viewer-fig .kd-art { width: 100%; }
.collector-app .rh-viewer .kd-art .card-visual.large.is-clean { max-width: none; max-height: none; margin: 0; }
.collector-app .rh-viewer .kd-art:hover .card-visual.is-clean { transform: none; }
.collector-app .rh-viewer-fig figcaption { font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .86); text-align: center; overflow-wrap: anywhere; }
.collector-app .rh-viewer-hint { position: absolute; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: .75rem; color: rgba(255, 255, 255, .62); }
.collector-app .rh-viewer-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--kd-radius-round); background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.collector-app .rh-viewer-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .collector-app dialog.rh-viewer[open]::backdrop { animation: rh-viewer-in .28s ease; } .collector-app dialog.rh-viewer.is-closing::backdrop { opacity: 0; transition: opacity .2s; } }
@keyframes rh-viewer-in { from { opacity: 0; } to { opacity: 1; } }

/* stats strip (C2-E1 round 3): one compact band, only 收藏數量 + 頂級評級 (value, P&L and coverage live in the 總覽 hero right below; no money figure here, so the band is the same box in both states) */
.collector-app .rh-strip { display: flex; flex-wrap: wrap; gap: 1px; margin: 0; background: var(--vi-line); border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); overflow: hidden; }
.collector-app .rh-strip > div { flex: 1 1 auto; display: grid; align-content: center; gap: 2px; padding: 12px 16px; background: var(--vi-panel); }
.collector-app .rh-strip > div:first-child { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
.collector-app .rh-strip small { display: block; font-size: .75rem; line-height: 1.5; color: var(--vi-muted); letter-spacing: .02em; }
.collector-app .rh-strip small > svg { width: 1rem; height: 1rem; margin-inline-end: 6px; vertical-align: -3px; color: var(--vi-accent); }
.collector-app .rh-strip strong { font-size: 1.125rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.collector-app .rh-strip strong span { font-weight: 500; }
.collector-app .rh-strip > .rh-top { flex: 3 1 16rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 10px; }
.collector-app .rh-strip .kd-toptier { padding-inline-start: 8px; }
.collector-app .rh-strip .kd-shard.is-gold { font-size: .8125rem; }
@media (min-width: 900px) { .collector-app .rh-strip > div { padding: 10px 24px; } .collector-app .rh-strip strong { font-size: 1.375rem; } }
/* one fixed 44 px row under the strip (C2-E1): 「價格更新 10/13 ⓘ」 at the start; the end group holds 「金額已隱藏 [eye]」 (its box is reserved shown and hidden, so nothing moves) and the share button. Never wraps
   at any width or language (the date is never ellipsized: the hm-note slot is sized per language so it always fits, 320 px up); the loading skeleton uses the same box. Below 400 px the share button shows only its icon (44 px, the words stay in its aria-label). */
.collector-app .rh-home .home-meta-row { display: flex; align-items: center; gap: 0 4px; block-size: 44px; margin: 4px 0 0; font-size: .8125rem; color: var(--vi-muted); }
.collector-app .rh-home .home-meta-row > * { flex: none; white-space: nowrap; }
.collector-app .rh-home .home-meta-row > .hm-end { margin-inline-start: auto; }
.collector-app .rh-home .home-meta-row :is(.hm-end, .hm-note) { display: flex; align-items: center; gap: 0 4px; }
.collector-app .rh-home .home-meta-row .hm-note { min-inline-size: 5.2em; }
.collector-app .rh-home .home-meta-row .hm-note:lang(en) { min-inline-size: 7.8em; }
.collector-app .rh-home .home-meta-row .hm-hidden { font-weight: 600; color: var(--vi-ink); }
.collector-app .rh-home .home-meta-row .cd-i { margin-inline-start: -2px; }
.collector-app .rh-home .home-meta-row .cd-i > summary { min-width: var(--vi-target); min-height: var(--vi-target); margin: -4px -6px; }
.collector-app .rh-home .home-meta-row .home-how-tip > .info-tip-body { max-height: min(60vh, 440px); overflow-y: auto; }
.collector-app .rh-home .home-meta-row .home-meta-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 0 auto; min-height: var(--vi-target); min-width: var(--vi-target); padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 380px) { .collector-app .rh-home .home-meta-row { font-size: .75rem; gap: 0 3px; } }
.collector-app .rh-home details.home-how { padding: 0; border: 0; border-radius: 0; background: none; }
.collector-app .rh-home details.home-how[open] { padding-bottom: 8px; }

/* section heads + rails */
.collector-app .rh-home .kd-channel { margin-block: 12px 0; }
.collector-app .rh-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 4px; }
.collector-app .rh-head h2 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.collector-app .rh-head button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--vi-accent); font-size: .875rem; font-weight: 600; cursor: pointer; }
.collector-app .rh-head button:hover { text-decoration: underline; text-underline-offset: 4px; }
.collector-app .rh-rail { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 2px 20px; margin-inline: -2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.collector-app .rh-rail::-webkit-scrollbar { display: none; }
.collector-app .rh-rail > .rh-tile { flex: 0 0 clamp(150px, 44vw, 236px); scroll-snap-align: start; }
@media (max-width: 760px) { .collector-app .rh-rail { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } }
@media (min-width: 900px) { .collector-app .rh-rail { gap: 24px; } .collector-app .rh-rail > .rh-tile { flex-basis: 244px; } }
.collector-app .rh-home .digest-card { margin-top: 24px; }

/* ---------- TILE (collection grid + home rails) ---------- */
.collector-app .rh-tile { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.collector-app .rh-tile .rh-art { display: block; position: relative; width: 100%; padding: 0; margin: 0; border: 0; border-radius: var(--kd-radius-card); background: none; color: inherit; cursor: pointer; text-align: inherit; min-height: 0; }
.collector-app .rh-tile .rh-art.art-button-ph { display: block; }
.collector-app .rh-tile .rh-art .art-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; border-radius: var(--kd-radius-card); background: none; cursor: pointer; min-height: 0; }
/* orphan rows 5: a tile with no approved art carries one ◇ on the art (the words are its title and stay in the DOM for screen readers); adding a photo lives in the opened card, 照片 › 新增照片 */
.collector-app .rh-tile .art-card-ph .ph-reason { inline-size: 1.5em; overflow: hidden; white-space: nowrap; color: transparent; }
.collector-app .rh-tile .rh-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; min-height: 0; height: max(2.8em, var(--vi-target)); margin: 0; padding: 0; border: 0; background: none; text-align: start; color: var(--vi-ink); font-size: .9375rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; cursor: pointer; overflow-wrap: anywhere; }
.collector-app .rh-tile .rh-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.collector-app .rh-tile .rh-sub { margin: 2px 0 0; padding: 0; font-size: .8125rem; line-height: 1.5; color: var(--vi-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collector-app .rh-tile .rh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; padding-inline-start: 4px; }
/* Tile price line: a FIXED shape, so showing / hiding amounts never changes a tile's height (owner rule: no layout shift, 2026-10-13).
   Row 1 = the value shard alone, row 2 = basis badge + P&L chip; nothing wraps (a too-long value ends in an ellipsis). Whether row 2
   exists depends only on the card (badge / comparable P&L), never on hidden mode. */
.collector-app .rh-tile .rh-chips { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; }
.collector-app .rh-tile .rh-chips > .rh-value { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
.collector-app .rh-tile .rh-chips > .rh-value .num { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collector-app .rh-tile .rh-chips > .val-badge { grid-column: 1; white-space: nowrap; }
.collector-app .rh-tile .rh-chips > .rh-pnl { grid-column: 2; min-width: 0; max-width: 100%; overflow: clip; overflow-clip-margin: 8px; } /* R3a: the screen-reader texts of the chip (English is longer) must not widen the page (18 px at 375): they are clipped, the skewed shard keeps 8 px of ink margin */
/* price display 2026-10-20: the tile price reads as text, not pills: the value in bold, then the basis word and the gain muted underneath (same boxes in shown and hidden mode) */
.collector-app .rh-tile .rh-chips > :is(.rh-value, .rh-pnl) { padding-inline: 0; }
.collector-app .rh-tile .rh-chips > :is(.rh-value, .rh-pnl)::before { display: none; }
.collector-app .rh-tile .rh-chips > .rh-value { font-size: var(--vi-type-base); font-weight: 700; }
.collector-app .rh-tile .rh-chips > .val-badge { opacity: 1; }
.collector-app .rh-tile .rh-chips > .rh-pnl { font-size: var(--vi-type-sm); font-weight: 600; }
.collector-app .rh-tile.is-rail .rh-grades { min-height: 0; margin-top: 10px; }
.collector-app .rh-tile.is-rail .rh-name { height: max(2.8em, var(--vi-target)); }
.collector-app .rh-tile:hover .kd-seal.is-tag::before { background-position: -60% 0, 0 0; }
.collector-app .rh-tile .rh-more { margin: 4px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.collector-app .rh-more > summary { display: inline-flex; align-items: center; justify-content: center; list-style: none; min-width: 44px; min-height: 44px; margin-block: -8px; margin-inline-start: -8px; color: var(--vi-accent); font-size: 1rem; cursor: pointer; border-radius: var(--kd-radius-round); }
.collector-app .rh-more > summary::-webkit-details-marker { display: none; }
.collector-app .rh-more-body { display: grid; gap: 4px; padding: 8px 0 4px; font-size: .8125rem; line-height: 1.5; color: var(--vi-muted); }
.collector-app .rh-more-body :is(small, p) { display: block; margin: 0; font-size: .8125rem; color: var(--vi-muted); overflow-wrap: anywhere; }
.collector-app .rh-more-body .tile-cost strong { font-size: 1rem; color: var(--vi-ink); }
.collector-app .rh-more-body .card-pnl.gain { color: var(--vi-gain); }
.collector-app .rh-more-body .card-pnl.loss { color: var(--vi-loss); }
.collector-app .rh-more-body .rh-grade-line { color: var(--vi-ink); font-weight: 600; }
.collector-app .rh-more-body .rh-edit { justify-self: start; display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0; } /* icon-only edit */
.collector-app .rh-more-body .rh-sub-line { color: var(--vi-ink); }

/* ---------- COLLECTION ---------- */
/* One sticky bar of FIXED height (owner rule: filters never move the grid): row 1 = search · 篩選 · 排序 · 檢視, row 2 = quick chips + result count; both 44px tap rows since M2.
   The page title stays for screen readers only; the bottom nav / top nav already says 收藏. */
.collector-app .collection-browser { --coll-row: var(--vi-target); --coll-chip: var(--vi-target); --coll-bar-h: calc(var(--coll-row) + var(--coll-chip) + 24px); }
html body .collector-app .collection-browser { padding-top: 0; }
/* Q5b: two grid rows. Row 2 = the four categories (left) and 篩選 / 排序 (right); row 3 = search + the chips on one line. The search keeps a fixed width (it no longer stretches across the page). Phone: categories, then search + the icon buttons, then the chips. */
.collector-app .coll-bar { position: sticky; top: var(--coll-sticky-top, 0px); z-index: 14; display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto; grid-template-areas: "cats cats tools" "search chips chips"; grid-template-rows: var(--coll-row) var(--coll-chip); gap: 8px; height: var(--coll-bar-h); box-sizing: border-box; margin: 0; padding: 8px 0; background: var(--vi-paper); }
.collector-app .coll-toolbar { display: contents; }
.collector-app .coll-tools { grid-area: tools; display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; height: var(--coll-row); }
html body .collector-app .coll-toolbar .collection-search { grid-area: search; position: relative; flex: 1 1 auto; display: flex; flex-direction: row; padding: 0; align-items: center; min-width: 0; height: var(--coll-row); margin: 0; }
.collector-app .coll-toolbar .collection-search > svg { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 12px; color: var(--vi-muted); pointer-events: none; }
.collector-app .coll-toolbar .collection-search input { width: 100%; height: var(--coll-row); min-height: 0; margin: 0; padding: 0 10px 0 38px; box-sizing: border-box; font-size: 16px; border: 1px solid var(--vi-line-strong); border-radius: var(--kd-radius-ui); background: var(--vi-panel); color: var(--vi-ink); text-overflow: ellipsis; }
html body .collector-app .coll-toolbar .coll-icon { position: relative; flex: none; display: inline-flex; flex-direction: row; align-items: center; width: auto; justify-content: center; gap: 6px; height: var(--coll-row); min-height: 0; min-width: var(--coll-row); margin: 0; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: var(--vi-panel); color: var(--vi-ink); font-size: .875rem; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap; }
.collector-app .coll-icon:hover { border-color: var(--vi-accent); }
.collector-app .coll-badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: var(--kd-radius-ui); background: var(--vi-accent); color: var(--vi-on-accent); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.collector-app .coll-badge[hidden] { display: none; }
/* 篩選: desktop = popover (applies as you pick); mobile = the bottom sheet (draft, 套用 / 清除). */
html body .collector-app .coll-toolbar .mobile-filter-trigger.coll-icon { display: none; }
.collector-app .coll-pop { position: relative; flex: none; margin: 0; padding: 0; }
.collector-app .coll-pop > summary { list-style: none; }
.collector-app .coll-pop > summary::-webkit-details-marker { display: none; }
.collector-app .coll-pop[open] > summary { border-color: var(--vi-accent); color: var(--vi-accent); }
.collector-app .coll-pop-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; display: grid; gap: 14px; width: min(560px, calc(100vw - 32px)); max-height: max(280px, min(560px, calc(100dvh - 400px))); overflow: auto; padding: 16px 16px 0; box-sizing: border-box; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: var(--vi-panel); color: var(--vi-ink); box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.collector-app .coll-pop-panel .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0; padding: 0; }
.collector-app .mobile-filter-sheet .filters { padding: 0; } /* the global .filters card padding (18px) left an empty band under 快速篩選 */
.collector-app .coll-pop-panel .filters > button { display: none; }
/* Owner rule: a label sits on the same line as its control, never stacked above it. */
html body .collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .filter-field { display: grid; grid-template-columns: minmax(5.5em, max-content) minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; font-size: .8125rem; color: var(--vi-muted); }
html body .collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .filter-field > span { white-space: nowrap; }
.collector-app .coll-pop-panel .filter-field select { width: 100%; min-height: var(--vi-target); }
.collector-app .coll-pop-foot { position: sticky; bottom: 0; display: flex; justify-content: center; gap: 12px; margin: 0 -16px; padding: 12px 16px; border-top: 1px solid var(--vi-line); background: var(--vi-panel); }
.collector-app .coll-pop-foot button { min-height: var(--vi-target); padding: 0 16px; }
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .coll-quick { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .coll-quick legend { padding: 0; margin: 0 0 4px; font-size: .8125rem; color: var(--vi-muted); }
html body .collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .coll-quick label { display: inline-flex; flex-direction: row; align-items: center; padding: 0; gap: 8px; min-height: var(--vi-target); margin: 0; font-size: .9375rem; color: var(--vi-ink); }
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .coll-quick input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--vi-accent); }
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .advanced-filters { margin: 0; font-size: .875rem; }
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .advanced-filters > summary { min-height: var(--vi-target); display: flex; align-items: center; color: var(--vi-muted); cursor: pointer; }
/* Filter sheet footer (the global boxed <footer> gave it a card with a 30px / 24px margin): the same 20px inset as the header and the fields, flush with the sheet's bottom edge. */
html body .collector-app .mobile-filter-sheet > footer { margin: 0; border: 0; background: transparent; }
/* 排序 and 檢視: icon buttons; the native select sits on top (transparent), so the phone's own picker opens. One fixed-size control each. */
.collector-app :is(.coll-sort .rh-sort, .coll-view .coll-view-select) { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; text-indent: -1000px; cursor: pointer; } /* the control is invisible but its selected-option text is not zero-width: WebKit counts that text as page overflow (wall / list: the page panned ~44px sideways). It starts left of the 44px box, where overflow is never scrollable; the picker still opens and the label names the control */
/* B1, second lock: the label is the box of its invisible select. text-indent is the measured fix in the WebKit rig; a real iPhone is free to ignore it on a native menu, so the label also clips what the select lays out past it. Only the invisible select is inside on a phone, and an element's own outline (below) is not clipped by this */
.collector-app :is(.coll-sort, .coll-view) { overflow: clip; }
.collector-app :is(.coll-sort, .coll-view):focus-within { outline: 2px solid var(--vi-marker); outline-offset: 3px; }
.collector-app :is(.coll-sort, .coll-view) .coll-text { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
/* Row 2: one horizontally scrolling line of small chips; the count is pinned at the end. */
.collector-app .coll-chiprow { grid-area: chips; display: flex; align-items: center; gap: 8px; min-width: 0; height: var(--coll-chip); }
.collector-app .coll-chiprow .rh-filterchips { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; height: 100%; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.collector-app .rh-filterchips::-webkit-scrollbar { display: none; }
/* R1 (D9): on a phone the chips are centred when they fit and still scroll when they do not. Auto margins on the first and last chip centre without clipping the start of an overflowing row (justify-content:center would). */
.collector-app .coll-chiprow .filter-chips { display: contents; }
.collector-app .coll-chiprow :is(.rh-fchip, .filter-chip) { position: relative; z-index: 0; flex: none; display: inline-flex; align-items: center; gap: 4px; height: var(--vi-target); min-height: 0; margin: 0; padding: 0 12px; box-sizing: border-box; border-radius: var(--kd-radius-ui); border: 0; background: transparent; color: var(--vi-ink); font-size: .8125rem; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; }
.collector-app .coll-chiprow .rh-fchip .num { font-size: .75rem; font-weight: 500; opacity: .72; font-variant-numeric: tabular-nums; }
/* 5.6 filter chip: 32 px visual (the ::before pill) inside a 44 px hit box (M2) */
.collector-app .coll-chiprow :is(.rh-fchip, .filter-chip)::before { content: ""; position: absolute; z-index: -1; inset: 6px 0; border: 1px solid var(--vi-line-strong); border-radius: var(--kd-radius-ui); background: transparent; }
.collector-app .coll-chiprow :is(.rh-fchip, .filter-chip):hover::before { border-color: var(--vi-accent); }
.collector-app .coll-chiprow .rh-fchip[aria-pressed='true'] { color: var(--vi-on-accent); font-weight: 600; }
.collector-app .coll-chiprow .rh-fchip[aria-pressed='true']::before { background: var(--vi-accent); border-color: var(--vi-accent); }
.collector-app .coll-chiprow .filter-chip-clear { border-style: dashed; color: var(--vi-accent); }
.collector-app .rh-fchip .kd-top-mark { margin-inline-start: 2px; }
.collector-app .coll-chiprow .result-count { flex: none; min-width: 4.5em; margin: 0; text-align: end; font-size: .75rem; font-weight: 500; color: var(--vi-muted); font-variant-numeric: tabular-nums; }
.collector-app .coll-chiprow .result-count.is-dup { position: absolute; width: 1px; height: 1px; min-width: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* orphan rows 7: while nothing is filtered the 全部 chip already says the number; the live region stays for screen readers, a narrowed list shows its own count */
.collector-app .collection-browser > :is(.rh-grid, .coll-wall) { margin-top: 12px; }
/* Densities (owner, 2026-10-12): 大 = .rh-grid (2 / 3 / 4 per row), 中 = .rh-grid.is-medium (3 / 4 / 6), 小 = .coll-wall (4–5 / 6–8 / 10–12: art + grade only).
   Every tile keeps the card ratio from .kd-art, so images loading in never move the grid. */
.collector-app .rh-grid.is-medium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
.collector-app .rh-grid.is-medium .rh-sub { display: none; }
.collector-app .rh-grid.is-medium .rh-name { font-size: .8125rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.collector-app .rh-grid.is-medium .rh-chips { flex-wrap: wrap; gap: 4px; font-size: .75rem; }
/* Phone 中 (3 a row, ~110px): the full price shard + basis label cannot share one line there, so it is swapped for ONE compact line (.rh-price-compact,
   e.g. "TWD 11.1萬 開價"); masked in hidden mode, "—" when there is no price. Desktop / tablet 中 keep the full price line. */
.collector-app .rh-price-compact { display: none; }
@media (max-width: 699px) { .collector-app .rh-grid.is-medium :is(.rh-more, .rh-chips) { display: none; } .collector-app .rh-grid.is-medium .rh-grades .favorite { display: none; } .collector-app .collection-browser .rh-grid.is-medium .rh-tile:not(.is-stack) :is(.rh-more, .rh-chips), .collector-app .collection-browser .rh-grid.is-medium .rh-tile .rh-sub.is-desk { display: none; } .collector-app .collection-browser .rh-grid.is-medium .rh-tile .rh-name { font-size: var(--vi-type-sm); line-height: 1.35; } /* phone 中: art + name only */ .collector-app .coll-chiprow .rh-filterchips > :first-child { margin-inline-start: auto; } .collector-app .coll-chiprow .rh-filterchips > :last-child { margin-inline-end: auto; }
  .collector-app .rh-grid.is-medium .rh-price-compact { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 0; margin: 6px 0 0; padding-inline-start: 4px; font-size: .75rem; font-weight: 600; color: var(--vi-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .collector-app .rh-grid.is-medium .rh-price-compact .num { flex: none; }   /* the number is never cut: the pill below gives way first */
  .collector-app .rh-grid.is-medium .rh-price-compact .val-badge { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: clip; margin: 0; padding: 0 4px; font-size: .75rem; line-height: 1.4; } }
/* Tiles never exceed their grid cell (fix for the 390px page growing to 425px): each tile is a size container and the seal shrinks in narrow tiles, so the ☆ stays inside. */
.collector-app .collection-browser :is(.rh-grid, .coll-wall) > * { min-width: 0; }
.collector-app .collection-browser .rh-grid > .rh-tile { container-type: inline-size; }
.collector-app .collection-browser .rh-tile .rh-grades .kd-seal { flex: 0 1 auto; min-width: 0; }
@container (max-width: 220px) { .collector-app .collection-browser .rh-tile .rh-grades .kd-seal { zoom: .82; } }
@container (max-width: 150px) { .collector-app .collection-browser .rh-tile .rh-grades .kd-seal { zoom: .68; } }
.collector-app .coll-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; padding: 0; list-style: none; }
@media (min-width: 480px) { .collector-app .coll-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* 版本辨識: printing-block.css is the narrow base; the button design returns here (existing 480 query, no new width query). */
  .collector-app .pp-block{--pp-pick:calc(3.7rem + 2px);--pp-item:5.8rem}
  .collector-app .pp-block-chosen{grid-template-rows:1.5rem 2.2rem}
  .collector-app .pp-block-name{flex-wrap:nowrap;block-size:1.5rem;align-content:normal;row-gap:normal}
  .collector-app .pp-block-name>b{flex:0 1 auto;min-inline-size:0}
  .collector-app .pp-block-none{display:flex;align-content:normal}
  .collector-app .pp-block-range::before{content:" · "}
  .collector-app .pp-block-item{position:static;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 2.2rem;grid-template-areas:"line btn" "tells tells";padding-inline-end:12px}
  .collector-app .pp-block-line{display:flex}
  .collector-app .pp-block .pp-block-item .pp-block-switch.kd-btn{position:relative;inset:auto;color:var(--kd-btn-fg)}
  .collector-app .pp-block .pp-block-item .pp-block-switch.kd-btn::before{content:"";position:absolute;inset:0;z-index:-1;transform:skewX(calc(var(--kd-slant) * -1));border:1px solid var(--kd-btn-bd);background:var(--kd-btn-bg);inline-size:auto}
  .collector-app .pp-block .pp-block-item .pp-block-switch.kd-btn:focus-visible{outline-offset:3px}
}
@media (min-width: 700px) { .collector-app .coll-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; } }
@media (min-width: 900px) { .collector-app .coll-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .collector-app .coll-wall { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .collector-app .coll-wall { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.collector-app .coll-wall-item { display: grid; gap: 4px; justify-items: center; align-content: start; min-width: 0; margin: 0; }
.collector-app .coll-wall-art { display: block; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: none; border-radius: var(--kd-radius-card); cursor: pointer; }
.collector-app .coll-wall-art .kd-art .card-visual.is-clean { box-shadow: 0 1px 2px var(--kd-art-shadow-soft), 0 6px 10px -6px var(--kd-art-shadow); }
.collector-app .coll-wall-art .kd-art .card-visual.is-clean :is(.image-kind, .kd-sheen) { display: none; }
.collector-app .coll-wall-art .kd-art .art-card-ph { padding: 6px 4px; gap: 2px; }
.collector-app .coll-wall-art .kd-art .art-card-ph > :not(.ph-name) { display: none; }
.collector-app .coll-wall-art .kd-art .art-card-ph .ph-name { font-size: .75rem; line-height: 1.3; overflow-wrap: anywhere; }
.collector-app .coll-wall-item.is-top .kd-art .card-visual.is-clean { box-shadow: 0 0 0 1px var(--kd-top-edge-line, rgba(212, 175, 55, .5)), 0 6px 10px -6px var(--kd-art-shadow); }
.collector-app .coll-wall-grade { display: flex; justify-content: center; max-width: 100%; min-height: 22px; overflow: hidden; }
.collector-app .collection-browser > .rh-grid { padding-top: 0; }
/* Continuous scrolling: one quiet line at the end ("已載入 N / M 張 · 載入更多"); it is also the sentinel that loads the next chunk. 回到頂端 floats (fixed), so showing it moves nothing. */
.collector-app .coll-more { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; margin: 24px 0 0; font-size: .8125rem; color: var(--vi-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.collector-app .coll-more button { min-height: 36px; padding: 0 14px; border-radius: var(--kd-radius-ui); font-size: .8125rem; }
.collector-app .coll-top { position: fixed; z-index: 16; right: max(16px, env(safe-area-inset-right)); bottom: 24px; display: inline-flex; align-items: center; gap: 6px; height: var(--vi-target); min-height: 0; padding: 0 14px; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: var(--vi-panel); color: var(--vi-ink); font-size: .8125rem; white-space: nowrap; box-shadow: 0 6px 18px rgb(0 0 0 / .3); cursor: pointer; }
@media (max-width: 760px) { .collector-app .coll-top { bottom: calc(82px + env(safe-area-inset-bottom)); width: var(--vi-target); padding: 0; justify-content: center; } .collector-app .coll-top-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; } } /* phone: the arrow alone (the words stay for screen readers): the 96px pill sat over the grade chip of the row under it */
/* Desktop: stick just under the sticky header (.app-header, 56px tall), never under or over it. */
@media (min-width: 761px) { .collector-app .collection-browser { --coll-sticky-top: var(--coll-nav-h, 56px); } }
@media (max-width: 760px) { .collector-app .collection-browser { --coll-bar-h: calc(var(--coll-row) * 2 + var(--coll-chip) + 32px); } .collector-app .coll-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cats cats" "search tools" "chips chips"; grid-template-rows: var(--coll-row) var(--coll-row) var(--coll-chip); } .collector-app .coll-toolbar .coll-text { display: none; } .collector-app .coll-chiprow .result-count { position: absolute; width: 1px; height: 1px; min-width: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the 全部 chip already counts; the live region stays for screen readers */ .collector-app .coll-toolbar .coll-pop { display: none; } html body .collector-app .coll-toolbar .mobile-filter-trigger.coll-icon { display: inline-flex; } .collector-app .coll-bar { top: env(safe-area-inset-top, 0px); } }
.collector-app .rh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; align-items: start; padding-top: 20px; }
@media (min-width: 700px) { .collector-app .rh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } .collector-app .rh-grid.is-medium { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; } }
@media (min-width: 1100px) { .collector-app .rh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .collector-app .rh-grid.is-medium { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 18px; } }
.collector-app .collection-browser .empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px 16px; min-block-size: 280px; align-content: center; }
.collector-app .collection-browser .empty-state h3, .collector-app .collection-browser .empty-state p { margin: 0; }
/* list view */
.collector-app .rh-thumb { flex: none; width: 52px; min-height: 0; padding: 0; margin: 0; border: 0; background: none; border-radius: var(--kd-radius-card); cursor: pointer; }
.collector-app .rh-thumb .kd-art .card-visual.is-clean { box-shadow: 0 1px 2px var(--kd-art-shadow-soft), 0 4px 8px -4px var(--kd-art-shadow); }
.collector-app .rh-thumb .kd-art .card-visual.is-clean :is(.art-card-ph > *, .image-kind, .art-skeleton) { display: none; }
.collector-app .rh-thumb .art-card-ph::before, .collector-app .rh-thumb .art-card-ph::after { display: none; }
.collector-app .rh-thumb .kd-art .card-visual.is-clean.has-ph { background: var(--vi-raised) !important; }
.collector-app .rh-thumb .kd-art:hover .card-visual.is-clean { transform: none; }

/* ---------- CARD DETAIL ---------- */
.collector-app .rh-detail { position: relative; }
.collector-app .rh-detail.is-top { box-shadow: inset 0 0 0 1px var(--kd-top-edge-line), inset 0 0 60px -28px var(--kd-top-glow); }
.collector-app .rh-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 16px 16px 24px; }
.collector-app .rh-detail-art { min-width: 0; }
.collector-app .rh-detail-art > .detail-art-trigger { display: block; width: 100%; max-width: min(66vw, 280px, 32vh); max-width: min(66vw, 280px, 32dvh); margin-inline: auto; padding: 0; border: 0; background: none; cursor: zoom-in; min-height: 0; border-radius: var(--kd-radius-card); }
.collector-app .rh-detail-art > .kd-art { width: min(66vw, 280px, 32vh); width: min(66vw, 280px, 32dvh); margin-inline: auto; } /* R6 / TR-15: art <= 45dvh tall at the card ratio, so the name and price are on the first phone screen */
.collector-app .rh-detail .kd-art .card-visual.large.is-clean { max-width: none; max-height: none; margin: 0; }
.collector-app .rh-detail .kd-gradepanel { margin-top: 4px; }
.collector-app .rh-detail-main { min-width: 0; display: grid; align-content: start; gap: 8px; }
.collector-app .rh-detail-main > * { margin-block: 0; }
/* Phone order = DOM order (name, price, 行情, purchase facts, 照片, 詳細資料); no `order` overrides. */
.collector-app .rh-title { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; overflow-wrap: anywhere; }
.collector-app .rh-detail .detail-summary { position: relative; display: grid; gap: 2px; min-width: 0; margin: 4px 0 0; padding: 0; border: 0; background: none; }
.collector-app .rh-detail .detail-summary > * { min-width: 0; margin: 0; padding: 0; }
.collector-app .rh-detail .detail-summary small { font-size: .75rem; line-height: 1.5; color: var(--vi-muted); }
.collector-app .rh-detail .detail-summary strong { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.collector-app .rh-detail .detail-summary .ds-value { display: grid; gap: 0; }
html body .collector-app .rh-detail .detail-summary > button.ds-eye { position: absolute; inset-block-start: -7px; inset-inline-end: -12px; margin: 0; }   /* the one eye of the price block: top-right corner, level with the value line */
.collector-app .rh-detail .detail-summary .ds-amount { padding-inline-end: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.collector-app .rh-detail .detail-summary .ds-amount > strong { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; white-space: nowrap; min-width: 0; }
.collector-app .rh-detail .detail-summary .ds-amount .val-badge { display: inline-flex; align-items: center; flex: none; block-size: 24px; margin: 0; padding: 0 8px; border: 1px solid var(--vi-line-strong); border-radius: var(--kd-radius-ui); background: var(--vi-raised); color: var(--vi-ink); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.collector-app .rh-detail .detail-summary .ds-k .cd-i { flex: none; vertical-align: middle; }
.collector-app .rh-detail .detail-summary .ds-k .cd-i > summary { margin-block: -14px; }   /* the 44px hit area sits inside the label's own line: the label row keeps its height */
.collector-app .rh-detail .detail-summary .ds-source-row.mi-row { min-height: 0; }
.collector-app .rh-detail .detail-summary .ds-source-row .mi-action { margin-inline-start: 0; }
/* reserved widths (C2-E1): CONSTANT per role (components.css --kd-slot-*), identical shown and hidden and independent of the value, so the mask takes the room of a typical figure (up to TWD 9,999,999.00) and the eye / badge beside it never moves; a wider shown figure grows its box (nowrap) */
.collector-app .rh-detail .detail-summary .ds-amount > strong { min-inline-size: var(--kd-slot-value); }
.collector-app .rh-detail .detail-summary .ds-pnl > strong { min-inline-size: var(--kd-slot-signed); }
.collector-app .rh-detail .detail-summary .ds-pct { display: inline-block; min-inline-size: calc(var(--kd-slot-pct) + 1.1em); }   /* + the arrow's room (.8em + .3em): hidden mode has no arrow, the box stays */
.collector-app .rh-detail .detail-summary .price-source { margin: 0; padding-inline-end: 32px; font-size: var(--vi-type-sm); line-height: 1.5; color: var(--vi-muted); }   /* keeps the line (and the cd-queue-note button) clear of the 44px eye hit area in the corner; same in both states */
.collector-app .rh-detail .detail-summary .ds-stale { color: var(--vi-warning); }
.collector-app .rh-detail .detail-summary .ds-pnl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: .9375rem; }
.collector-app .rh-detail .detail-summary .ds-pnl > strong { font-size: 1rem; }
.collector-app .rh-detail .detail-summary .ds-pct { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.collector-app .rh-detail .detail-summary .gain { color: var(--vi-gain); }
.collector-app .rh-detail .detail-summary .loss { color: var(--vi-loss); }
.collector-app .rh-detail .detail-summary .ds-na { font-size: 1rem; font-weight: 600; color: var(--vi-muted); }
.collector-app .rh-detail .detail-summary .ds-note:empty { display: none; }
.collector-app .rh-detail .kd-channel { margin-block: 20px 4px; }
@media (max-width: 400px) { .collector-app .rh-detail .detail-summary .ds-amount > strong { font-size: 1.25rem; } .collector-app .rh-detail .detail-summary .ds-pnl { min-block-size: 2lh; align-content: flex-start; } .collector-app .rh-home .home-meta-row .home-meta-link { padding: 0; text-decoration: none; } .collector-app .rh-home .home-meta-row .share-label { display: none; } html .collector-app .ov .ov-pl-row { gap: .25rem; } .collector-app .rh-home .home-meta-row .hm-note:lang(en) { min-inline-size: 0; } .collector-app .rh-home .home-meta-row .hm-note:lang(en) .hm-hidden { display: none; } .collector-app .rh-fan { /* phone: the neighbours' clipped slivers beside the card are masked out (constant width: the mask follows --fan-w, not any text) */
  -webkit-mask: linear-gradient(90deg, transparent calc(50% - var(--fan-w) / 2 - 3px), black calc(50% - var(--fan-w) / 2 + 1px), black calc(50% + var(--fan-w) / 2 - 1px), transparent calc(50% + var(--fan-w) / 2 + 3px));
  mask: linear-gradient(90deg, transparent calc(50% - var(--fan-w) / 2 - 3px), black calc(50% - var(--fan-w) / 2 + 1px), black calc(50% + var(--fan-w) / 2 - 1px), transparent calc(50% + var(--fan-w) / 2 + 3px)); } }
@media (min-width: 900px) {
  .collector-app .rh-detail-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; padding: 24px 32px 40px; align-items: start; } /* art 40% / info 60% */
  /* Sticky while it fits; taller → --cd-art-top (card-detail/fit-sticky.ts) lets it scroll with the dialog until its bottom shows. */
  .collector-app .rh-detail-art { position: sticky; top: var(--cd-art-top, 72px); }
    .collector-app .rh-detail .detail-summary.detail-summary { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }   /* doubled class: outranks the lazy card-detail-r3.css phone rules that load later; R3: 目前市值 | 成本 | 帳面損益 in ONE row */
  .collector-app .rh-detail .detail-summary.detail-summary > .ds-value { grid-column: auto; }
  .collector-app .rh-detail-art > .detail-art-trigger, .collector-app .rh-detail-art > .kd-art { width: 100%; max-width: 480px; }
  /* 2026-10-21: FIXED facts under the art on desktop (the art column was empty below the card); the info column keeps what changes (price, history, chart, sources). On a phone the same block follows the name (is-main). */
  .collector-app .rh-detail-art .cd-specs.is-art { gap: 12px; max-width: 480px; margin-top: 20px; }
  .collector-app .rh-detail-art .cd-specs .kd-gradepanel { margin: 0; }
  .collector-app .cd-specs dl > div { grid-template-columns: 6rem minmax(0, 1fr); }
}
.rh-share-row{display:flex;justify-content:flex-end;margin:8px 0}

/* 總覽 spotlight, reserved widths (C2-E1): constant per-role widths (components.css --kd-slot-*), the same shown and hidden; hiding or showing amounts keeps the value line and the facts row the same size */
.collector-app .rh-spot-val .kd-amount { min-inline-size: var(--spot-slot-v, 9ch); text-align: start; }   /* start-aligned inside the reserved box: a centred mask would sit elsewhere than the digits */
.collector-app .rh-spot-val .rh-pnl { min-inline-size: 17.4ch; }

/* spotlight online tidy (2026-10-24); the >=1024px rules sit in redesign-overview.css's existing 1024 block (design-lint counts @media queries) and read these variables */
.collector-app .rh-dots { visibility: hidden; pointer-events: none; }   /* hidden, not removed: its fill animation is the autoplay timer */
.collector-app .rh-facts-pct { display: inline; font-size: .75rem; }   /* the % always sits beside the amount, a size smaller so the pair fits the cell */
.collector-app .rh-facts-arrow { display: var(--rh-arrow, none); margin-inline-end: .35em; }

/* 總覽 百科 block (2026-10-30, Codex overview design): ONE illustrated feature + THREE ruled rows, below the spotlight / chart / weekly sections. No outer box, no autoplay, no amounts.
   The feature art box and the 64px row art are fixed, so a lazy illustrator index or an image failure never moves anything. Columns come from the block's own width: feature first, then rows (phone); side by side from 760px. */
/* Empty 收藏 (EmptyWall): one primary button, the template link, a quiet line of the older ways. Every row keeps a fixed 44px line, so opening the template choices moves nothing. */
.collector-app .rh-first-actions { display: grid; justify-items: center; gap: 0; margin-top: 8px; width: 100%; }
.collector-app .rh-first-primary { width: 100%; max-width: 20rem; min-height: 48px; }
.collector-app .rh-first-line { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; }
.collector-app .rh-first-tpl-choices { display: inline-flex; align-items: center; gap: 4px; }
.collector-app .rh-first-tpl-choices > span { margin-right: 4px; }
.collector-app .rh-first-link { min-height: 44px; min-width: 44px; padding: 0 8px; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.collector-app .rh-first-quiet { gap: 0; color: var(--vi-muted); font-size: var(--vi-type-sm); } /* each link already carries 8px of padding (its 44px target): the line reads 或 · 拍 PSA 標籤 · 手動新增 with one even gap */
.collector-app .rh-first-quiet .rh-first-link { color: var(--vi-muted); text-decoration: none; }
.collector-app .rh-first-link:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: -2px; }
@media (min-width: 900px) { .collector-app .rh-spot-meta { top: 5px; bottom: auto; right: 2px; left: calc(50% + var(--fan-w) / 2 + 8px); justify-content: flex-end; font-size: .75rem; } .collector-app .rh-spot-meta-t { white-space: normal; text-align: end; } .collector-app .rh-spot-meta .rh-pause { flex: none; } .collector-app .rh-pause { padding: 0 12px; font-size: .8125rem; } }

/* 收藏 rarity filter (coll-filters): tri-state chips per group, 日版 / 美版 / 其他 / 未知. Fixed chip box: state changes never move layout. */
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .rar-field { display: grid; grid-column: 1 / -1; gap: 8px; margin: 4px 0; padding: 0; border: 0; min-width: 0; }
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .rar-field legend { padding: 0; margin: 0 0 4px; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app :is(.coll-pop-panel, .mobile-filter-sheet) .rar-field legend .cd-i { margin-inline-start: 4px; }
.collector-app .rar-group { display: grid; gap: 4px; }
.collector-app .rar-group > b { font-size: var(--vi-type-xs); font-weight: 600; color: var(--vi-muted); }
.collector-app .rar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.collector-app .rar-chip { display: inline-flex; align-items: center; gap: 4px; min-height: var(--vi-target, 44px); min-width: 44px; padding: 0 10px; border: 1px solid var(--vi-line-strong, currentColor); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: var(--vi-type-sm); cursor: pointer; }
.collector-app .rar-chip { position: relative; justify-content: center; padding: 0 14px; } /* the label + count stay centred; the state mark sits in the left padding (no reserved slot, no width change) */
.collector-app .rar-chip .rar-mark { position: absolute; inset-inline-start: 3px; top: 50%; transform: translateY(-50%); width: 10px; text-align: center; font-size: var(--vi-type-xs); line-height: 1; }
.collector-app .rar-chip .rar-n { color: var(--vi-muted); font-variant-numeric: tabular-nums; }
.collector-app .rar-chip[data-state="only"] { border-color: var(--vi-accent); color: var(--vi-accent); }
.collector-app .rar-chip[data-state="not"] { border-style: dashed; color: var(--vi-muted); }
.collector-app .rar-chip[data-state="not"] .rar-label { text-decoration: line-through; }
/* L3: the empty wall's two buttons share one row when it is wide enough for both (11rem each), else they stack full width (the phone); no extra breakpoint */
.collector-app .rh-first-secondary { min-height: 48px; }
.collector-app .rh-first-actions .kd-state-actions { margin-top: 0; width: 100%; max-width: 25rem; justify-content: center; }
.collector-app .rh-first-actions :is(.rh-first-primary, .rh-first-secondary) { flex: 1 1 11rem; width: auto; min-width: 0; max-width: none; }

/* Duplicate stacks in the collection (owner 2026-10-13; VI redesign 2026-10-14). Tokens only (--vi-*, --kd-*).
   A stack tile has the single tile's exact box: the deck is two pseudo-element card backs moved with transform, the ×N slab chip sits
   in the grade row (where a single tile has its ☆), and an open stack is just its members (the first one's chip collapses it). Nothing covers the art or the name.
   Deck geometry: the back cards turn about their centre, so a turn of a° pushes a corner out by about h/2 · sin a. With the offsets
   below the peek stays inside every density's column gap (big 16 / 24 px, 中 10 / 16 px, wall 8 / 12 px) and row gap. */
.collector-app :is(.rh-tile, .coll-wall-item).is-stack { position: relative; }
.collector-app :is(.rh-tile.is-stack .rh-art, .coll-wall-item.is-stack .coll-wall-art) {
  position: relative; isolation: isolate;
  --deck-x1: 4px; --deck-y1: -4px; --deck-r1: 2deg; --deck-x2: 7px; --deck-y2: -8px; --deck-r2: 3.5deg;
}
.collector-app .rh-grid.is-medium .rh-tile.is-stack .rh-art { --deck-x1: 3px; --deck-y1: -3px; --deck-x2: 4px; --deck-y2: -6px; }
.collector-app .coll-wall-item.is-stack .coll-wall-art { --deck-x1: 2px; --deck-y1: -3px; --deck-r1: 2deg; --deck-x2: 3px; --deck-y2: -5px; --deck-r2: 3deg; }
/* The two card backs: darker tint than the page, a 32° hairline texture (the brand hatch angle), a top edge highlight and real depth. */
.collector-app :is(.rh-tile.is-stack .rh-art, .coll-wall-item.is-stack .coll-wall-art)::before,
.collector-app :is(.rh-tile.is-stack .rh-art, .coll-wall-item.is-stack .coll-wall-art)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--kd-radius-card); pointer-events: none;
  background:
    repeating-linear-gradient(-58deg, transparent 0 6px, color-mix(in srgb, var(--vi-accent) 16%, transparent) 6px 7px),
    linear-gradient(160deg, color-mix(in srgb, var(--vi-raised) 78%, var(--kd-art-shadow)), color-mix(in srgb, var(--vi-panel) 62%, var(--kd-art-shadow)));
  box-shadow: inset 0 0 0 1px var(--vi-line), inset 0 1px 0 color-mix(in srgb, var(--vi-panel) 60%, transparent),
    0 2px 4px var(--kd-art-shadow-soft), 0 8px 14px -8px var(--kd-art-shadow);
  transform-origin: 50% 50%; transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.collector-app :is(.rh-tile.is-stack .rh-art, .coll-wall-item.is-stack .coll-wall-art)::before { transform: translate(var(--deck-x1), var(--deck-y1)) rotate(var(--deck-r1)); }
.collector-app :is(.rh-tile.is-stack .rh-art, .coll-wall-item.is-stack .coll-wall-art)::after { z-index: -2; filter: brightness(.86); transform: translate(var(--deck-x2), var(--deck-y2)) rotate(var(--deck-r2)); }
/* Desktop hover / keyboard focus: the back cards fan out a little more (still inside the gaps). */
@media (hover: hover) {
  .collector-app :is(.rh-tile, .coll-wall-item).is-stack:not(.is-open) :is(.rh-art, .coll-wall-art):hover { --deck-r1: 3deg; --deck-r2: 4.5deg; --deck-x2: 6px; --deck-y2: -10px; }
}
.collector-app :is(.rh-tile, .coll-wall-item).is-stack:not(.is-open) :is(.rh-art, .coll-wall-art):focus-visible { --deck-r1: 3deg; --deck-r2: 4.5deg; --deck-x2: 6px; --deck-y2: -10px; }

/* ×N slab chip: a sibling of the grade seal it sits beside. Same construction (straight 4 px radius, thin top sheen,
   a narrow 32° stripe on the left edge) and, like the seal, the same dark plate in light and dark themes. Where PSA has its red
   stripe, the stack has the accent tone; the numeral is light like a seal numeral, with a small muted ×. Seal tokens only. */
.collector-app { --rh-stack-stripe: color-mix(in srgb, var(--vi-accent) 70%, var(--kd-silver)); --rh-stack-plate: linear-gradient(180deg, color-mix(in srgb, var(--kd-seal-ink-dark) 84%, var(--kd-silver-deep)), var(--kd-seal-ink-dark)); }
.collector-app .rh-stack-count {
  --h: 30px; position: relative; isolation: isolate; flex: none; display: inline-flex; align-items: baseline; gap: 1px;
  height: var(--h); margin-inline-start: auto; padding: 0 calc(var(--h) * 0.3125 + 6px); align-self: center;
  color: var(--kd-silver); line-height: var(--h); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums;
}
.collector-app .rh-stack-count::before, .collector-app .rh-stack-count::after { content: ""; position: absolute; inset: 0; border-radius: var(--kd-radius-ui); pointer-events: none; }
.collector-app .rh-stack-count::before { z-index: -2; background: var(--rh-stack-plate); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kd-silver) 16%, transparent), 0 1px 2px var(--kd-art-shadow-soft); }
.collector-app .rh-stack-count::after { z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--kd-silver) 24%, transparent), transparent 42%); }
.collector-app :is(.rh-stack-count, .rh-stack-collapse) .stripe { position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; width: 6px; border-radius: 0; background: var(--rh-stack-stripe); pointer-events: none; }
.collector-app .coll-wall-item .rh-stack-count .stripe { width: 4px; }
.collector-app .rh-stack-count .x { font-size: .8125rem; font-weight: 700; color: var(--kd-silver-deep); }
.collector-app .rh-stack-count .n { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 1100px) { .collector-app .rh-tile .rh-stack-count { --h: 34px; } .collector-app .rh-tile .rh-stack-count .n { font-size: 1.625rem; } .collector-app .rh-tile .rh-stack-count .x { font-size: .875rem; } }
@container (max-width: 150px) {
  .collector-app .collection-browser .rh-tile .rh-stack-count { --h: 24px; padding-inline: calc(var(--h) * 0.3125 + 3px); }
  .collector-app .collection-browser .rh-tile .rh-stack-count .n { font-size: 1.125rem; }
  .collector-app .collection-browser .rh-tile .rh-stack-count .x { font-size: .6875rem; }
}
/* 收藏牆: the grade row is narrow (≈ 84 px on a phone), so the seal (slightly smaller) and a compact chip share it, one channel apart.
   The item is a size container so the seal scale follows the real column width. */
.collector-app .coll-wall-item:is(.is-stack, :has(.rh-stack-collapse)) { container-type: inline-size; }
.collector-app .coll-wall-item:is(.is-stack, :has(.rh-stack-collapse)) .coll-wall-grade { width: 100%; justify-content: center; align-items: center; gap: 2px; overflow: visible; }
.collector-app .coll-wall-item:is(.is-stack, :has(.rh-stack-collapse)) .coll-wall-grade .kd-seal { zoom: .8; flex: none; }
.collector-app .coll-wall-item .rh-stack-count { --h: 20px; margin: 0; padding-inline: calc(var(--h) * 0.3125 + 1px); }
.collector-app .coll-wall-item .rh-stack-count .n { font-size: 1.0625rem; }
.collector-app .coll-wall-item .rh-stack-count .x { font-size: .5625rem; }
@container (max-width: 92px) {
  .collector-app .coll-wall-item:is(.is-stack, :has(.rh-stack-collapse)) .coll-wall-grade .kd-seal { zoom: .64; }
  .collector-app .coll-wall-item .rh-stack-count { --h: 18px; }
  .collector-app .coll-wall-item .rh-stack-count .n { font-size: 1rem; }
}
@container (min-width: 116px) { .collector-app .coll-wall-item:is(.is-stack, :has(.rh-stack-collapse)) .coll-wall-grade .kd-seal { zoom: 1; } }

/* An open group: exactly its members, sharing an accent underline (a slab bar under each cell; the column gap reads as the channel). */
.collector-app .rh-stack-members { display: contents; }
.collector-app .rh-stack-members > ul { display: contents; }
.collector-app .rh-stack-members > .rh-tile { position: relative; }
.collector-app .rh-stack-members > .rh-tile::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -12px; height: 2px; border-radius: var(--kd-radius-ui); pointer-events: none;
  background: var(--rh-stack-stripe); opacity: .85; clip-path: polygon(calc(4px * var(--kd-slope)) 0, 100% 0, calc(100% - 4px * var(--kd-slope)) 100%, 0 100%);
}
.collector-app .rh-grid.is-medium .rh-stack-members > .rh-tile::after { bottom: -9px; height: 2px; }
.collector-app .rh-stack-members .coll-wall-item { position: relative; }
.collector-app .rh-stack-members .coll-wall-item::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -7px; height: 2px; border-radius: var(--kd-radius-ui); pointer-events: none; background: var(--rh-stack-stripe); opacity: .85;
}

/* 收合: the first member's ×N ︿ chip, in the grade row where the stack's ×N chip was (same slab plate). The button is the 44px hit
   area; the plate is drawn on ::before at the chip's height, so the row does not grow. */
.collector-app .rh-stack-collapse {
  --h: 30px; position: relative; isolation: isolate; flex: none; display: inline-flex; align-items: baseline; justify-content: center; gap: 1px;
  min-width: 44px; min-height: 44px; padding: 7px calc(var(--h) * 0.3125 + 6px); border: 0; background: none; color: var(--kd-silver);
  line-height: 30px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; cursor: pointer;
}
.collector-app .rh-stack-collapse::before { content: ""; position: absolute; inset: calc((44px - var(--h)) / 2) 0; z-index: -1; border-radius: var(--kd-radius-ui); background: var(--rh-stack-plate); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kd-silver) 16%, transparent), inset 0 1px 0 color-mix(in srgb, var(--kd-silver) 24%, transparent), 0 1px 2px var(--kd-art-shadow-soft); transition: box-shadow .15s ease; }
.collector-app .rh-stack-collapse:hover::before, .collector-app .rh-stack-collapse:focus-visible::before { box-shadow: inset 0 0 0 1.5px var(--rh-stack-stripe), inset 0 1px 0 color-mix(in srgb, var(--kd-silver) 24%, transparent), 0 1px 2px var(--kd-art-shadow-soft); }
.collector-app .rh-stack-collapse:focus-visible { outline: none; }
.collector-app .rh-stack-collapse .x { font-size: .8125rem; font-weight: 700; color: var(--kd-silver-deep); }
.collector-app .rh-stack-collapse .n { font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.collector-app .rh-stack-collapse .up { margin-inline-start: 4px; font-size: .75rem; font-weight: 800; align-self: center; }
.collector-app .rh-stack-collapse .stripe { top: calc((44px - var(--h)) / 2); bottom: calc((44px - var(--h)) / 2); }
.collector-app .rh-grades .rh-stack-collapse { margin-inline-start: auto; }
/* The chip takes the star's place in the first member's grade row (the cell is too narrow for seal + chip + star); the star stays in the card detail. */
.collector-app .rh-grades:has(.rh-stack-collapse) .favorite { display: none; }
/* 收藏牆 cell (≈ 84 px): the plate is compact (n ︿, no ×) and the 44px hit area is a pseudo-element around it, so the row does not grow. */
.collector-app .coll-wall-item .rh-stack-collapse { --h: 20px; min-width: 0; min-height: 20px; padding: 0 calc(var(--h) * 0.3125 + 1px); margin: 0; flex: none; line-height: 20px; }
.collector-app .coll-wall-item .rh-stack-collapse::before { inset: 0; }
.collector-app .coll-wall-item .rh-stack-collapse::after { content: ""; position: absolute; inset: -12px -8px; }
.collector-app .coll-wall-item .rh-stack-collapse .stripe { top: 0; bottom: 0; width: 4px; }
.collector-app .coll-wall-item .rh-stack-collapse .x { display: none; }
.collector-app .coll-wall-item .rh-stack-collapse .n { font-size: 1rem; }
.collector-app .coll-wall-item .rh-stack-collapse .up { margin-inline-start: 2px; font-size: .5625rem; }
.collector-app .coll-wall-item .coll-wall-grade { gap: 2px; }

.collector-app .rh-tile .rh-chips > .rh-stack-badge { color: var(--vi-accent); }
.collector-app .rh-tile .rh-chips > .rh-stack-note { grid-column: 2; min-width: 0; max-width: 100%; color: var(--vi-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.collector-app .rh-stack-mult { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: var(--kd-radius-ui); background: var(--rh-stack-plate); box-shadow: inset 2px 0 0 var(--rh-stack-stripe); color: var(--kd-silver); font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) {
  .collector-app :is(.rh-tile.is-stack .rh-art, .coll-wall-item.is-stack .coll-wall-art)::before,
  .collector-app :is(.rh-tile.is-stack .rh-art, .coll-wall-item.is-stack .coll-wall-art)::after,
  .collector-app .rh-stack-collapse::before { transition: none; }
}

/* found-f2: a stack's value (and the phone one-line price) is one <Amount> in a CONSTANT slot (--kd-slot-value), identical shown and hidden. The tile's chips row wraps, so the slot never pushes the 合計 badge or the note out of the tile. */
.collector-app .rh-tile.is-stack .rh-chips > .rh-value { --kd-amount-slot: min(var(--kd-slot-value), 66cqi); }
.collector-app .rh-tile.is-stack .rh-chips > .rh-value .num, .collector-app .rh-tile.is-stack .rh-price-compact .num { display: inline-block; min-width: var(--kd-amount-slot, 0px); text-align: start; }
.collector-app .rh-tile.is-stack .rh-price-compact { --kd-amount-slot: min(var(--kd-slot-value), 66cqi); }

/* KARDORA redesign 2026-10 — redesign-overview (owned by its page agent)
   Finance-portfolio look for the 總覽 tab. Everything lives under `.collector-app .ov` / `.overview-layout` so the older
   overview rules (ux-design.css, globals.css, portfolio-overview-frame.css) never reach the new markup.
   Mobile first: one column at 390px, two columns from 1024px. 12px minimum text, 44px targets, AA in light and dark. */

/* ---- palette for series, bars and the donut (non-text, 3:1 on the panel) ---- */
.collector-app .ov {
  /* --ov-c1..c5 / --ov-cu: the light series live on :root (app/design/tokens.css); the dark ones are below. */
  --ov-line-value: var(--vi-gain); --ov-line-cost: var(--vi-muted);
  display: grid; gap: 1rem; min-width: 0; padding: 0 0 1.5rem; margin: 0; background: transparent; border: 0; border-radius: 0;
  font-variant-numeric: lining-nums;
}
:root[data-theme='dark'] .collector-app .ov { --ov-c1: #a2ccec; --ov-c2: var(--vi-warning); --ov-c3: #9ed0b2; --ov-c4: #c9b6ef; --ov-c5: #8d9bb0; --ov-cu: #6c7a8e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) .collector-app .ov { --ov-c1: #a2ccec; --ov-c2: var(--vi-warning); --ov-c3: #9ed0b2; --ov-c4: #c9b6ef; --ov-c5: #8d9bb0; --ov-cu: #6c7a8e; }
}
.collector-app .ov :is(.ov-num) { font-variant-numeric: tabular-nums lining-nums; }
.collector-app .ov .gain { color: var(--vi-gain); }
.collector-app .ov .loss { color: var(--vi-loss); }

/* ---- hero (2026-10-12 mobile rebalance): title + icon actions, value, one P&L chip, one coverage line with every caveat behind ⓘ.
   Shown and hidden render the same boxes; each row has a fixed block size so toggling amounts never moves anything. ---- */
.collector-app .ov .ov-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; justify-items: start; padding: .25rem 0 0; min-width: 0; position: relative; isolation: isolate; z-index: 3; }
.collector-app .ov .ov-hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 44px; flex-wrap: wrap; padding-inline-end: 32px; }
html body .collector-app .ov .ov-hero-top > button.ov-hero-eye { position: absolute; inset-block-start: 0; inset-inline-end: -12px; margin: 0; }   /* the hero's one eye: top-right of the heading row at every width, out of the wrap flow (the row reserves its 32 px) */
.collector-app .ov .ov-eyebrow { display: flex; align-items: center; min-block-size: 44px; margin: 0 auto 0 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--vi-ink); white-space: nowrap; }
.collector-app .ov .ov-controls { display: flex; align-items: center; gap: .375rem; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
/* 問我的收藏: a compact pill (the one amounts eye of the hero sits at the right end of the header row) */
.collector-app .ov .ov-controls .asst-open { min-height: var(--vi-target); height: var(--vi-target); padding: 0 .875rem; border: 1px solid var(--vi-line-strong); border-radius: var(--kd-radius-ui); background: transparent; color: var(--vi-ink); font-size: .8125rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
/* U9 (phone sweep 2026-11-01): the 問我的收藏 sheet is a modal <dialog>, and the browser's own `dialog:modal { max-width: calc(100% - 6px - 2em) }` held its full-width phone sheet (inset 0, width 100%, assistant/panel.css) 32px short of the screen: the page and the 我的 tab showed beside it. The sheet may be as wide as its own width says. */
.asst-sheet { max-width: 100%; }
.collector-app .ov .ov-controls .ov-filters > summary { min-height: var(--vi-target); height: var(--vi-target); padding: 0 .875rem; font-size: .8125rem; }
.collector-app .ov .ov-label { font-size: .875rem; line-height: 1.4; color: var(--vi-muted); margin-top: .25rem; }
.collector-app .ov .ov-fig { display: flex; align-items: center; }
.collector-app .ov .ov-fig > .ov-total { min-width: min(var(--kd-slot-value), 80vw); }   /* constant (components.css --kd-slot-value), never derived from the amount; % would be cyclic in this shrink-to-fit row, so the cap is a viewport share */
.collector-app .ov .ov-total { display: block; max-width: 100%; height: 1.15em; margin: 0; font-size: clamp(2rem, 9vw, 3.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; color: var(--vi-ink); }
.collector-app .ov :is(.vi-overview-support, .provisional-summary) { display: grid; gap: .25rem; justify-items: start; margin: 0; padding: 0; border: 0; background: transparent; min-width: 0; max-width: 100%; }
.collector-app .ov .ov-pl-row { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; min-height: 32px; max-width: 100%; min-width: 0; }
.collector-app .ov .ov-pl-label { flex: none; font-size: .8125rem; font-weight: 400; color: var(--vi-muted); }
.collector-app .ov .ov-pct { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.collector-app .ov .ov-pct.is-na { color: var(--vi-muted); font-weight: 400; }
.collector-app .ov .ov-pct.is-na.is-masked { font-weight: 600; }   /* the mask is set in the weight of the figure it hides */
/* the P&L chip is a shard: its ends lean at the brand 32 degrees; amount and percent sit in one chip */
.collector-app .ov .ov-chip { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .375rem; min-height: 28px; padding: 0 .9rem; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.collector-app .ov .ov-chip::after { content: ""; position: absolute; inset: -8px 0; }   /* 44px hit area (28 + 2 x 8), same look */
.collector-app .ov .ov-chip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--kd-radius-ui); background: color-mix(in srgb, currentColor 14%, transparent); }
/* R3 shapes: the 總覽 chips (集合 grade shards, the P&L chip) are straight 4px chips; only the grade seal, CERT chip and 查看卡片 keep the 32-degree lean */
.collector-app .ov .kd-shard::before { transform: none; border-radius: var(--kd-radius-ui); }
/* the coverage ⓘ popover anchors to the whole hero (static here), so it opens full width right under this line */
.collector-app .ov .vi-overview-coverage { position: static; display: flex; flex-wrap: nowrap; align-items: center; gap: .125rem; height: 44px; margin: 0; padding: 0; border: 0; max-width: 100%; }
/* coverage ⓘ: a 44px target whose caveats open as a popover over the page (opening it never pushes the chart down) */
.collector-app .ov .vi-overview-how { position: static; margin: 0; padding: 0; border: 0; flex: none; }
.collector-app .ov .vi-overview-how > summary { display: grid; place-items: center; min-width: 44px; height: 44px; min-height: 44px; padding: 0 .25rem; list-style: none; cursor: pointer; color: var(--vi-accent); border-radius: var(--kd-radius-ui); font-size: var(--vi-type-sm); font-weight: 600; }
.collector-app .ov .vi-overview-how > summary::-webkit-details-marker { display: none; }
.collector-app .ov .vi-overview-how[open] > summary { color: var(--vi-ink); }
.collector-app .ov .vi-overview-how .ov-info-body { position: absolute; z-index: 8; inset-inline: 0; top: 100%; width: min(100%, 34rem); max-height: 60vh; overflow-y: auto; }
.collector-app .ov .vi-overview-how .ov-info-body :is(p, small) { margin: 0 0 .5rem; font-size: .8125rem; line-height: 1.6; color: var(--vi-ink); }
.collector-app .ov .vi-overview-how .ov-info-body > :last-child { margin-bottom: 0; }
.collector-app .ov .vi-overview-how .ov-info-body b { font-weight: 600; }
.collector-app .ov .vi-source-note, .collector-app .ov .val-note { display: block; font-size: .8125rem; color: var(--vi-muted); }

/* ---- layout: one column in priority order (each slot carries its order); two columns from 1024 ---- */
.collector-app .ov .ov-grid { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.collector-app .ov .ov-col { display: contents; }
/* Q1 2026-10-31: the chart's plot is 9rem here (was 17rem) so the chart box (about 317px) is close to the statement beside it (276px); measured at 1440 the void under 目前市值 was 169px. */
@container (min-width: 720px) { .collector-app .ov.ov-summary > .an-teaser { --tc-plot: 9rem; align-self: stretch; grid-template-rows: 44px 1.75rem 2.75rem minmax(var(--tc-plot), 1fr) 1.5rem; } .collector-app .ov.ov-summary .tc-plot { height: auto; align-self: stretch; min-height: var(--tc-plot); } }
@media (min-width: 1024px) {
  /* spotlight (collector-home.tsx), 1024px up: price row, facts box and button share one bottom; 帳面損益 carries its percent. Variables come from redesign-home.css's 1280 block (the 1024-1279 fallbacks are the 2-column box) */
  .collector-app .rh-spot-info { align-items: end; margin-top: var(--rh-info-mt, 10px); }
  .collector-app .rh-spot-info { --rh-price-row: 2.4rem; --rh-fs: calc(var(--vi-type-2xl) * .75); }
  .collector-app .rh-spot-info :is(.rh-spot-name, .rh-spot-line) { margin-bottom: calc((0.67 * var(--rh-fs) - var(--rh-price-row)) / 2); }
  .collector-app .rh-spot-info .rh-spot-name { margin-bottom: max(calc((0.67 * var(--rh-fs) - var(--rh-price-row)) / 2), -6px); }   /* fix r6: the name spans the whole group, so it may follow the price stack down only as far as the row gap: its box (and the descenders of a long name) never reach the facts box's top edge */   /* Steven 2026-11-03: the whole text block (name, series, price) sits lower by the price row's empty strip, so the price's text bottom IS the facts box bottom; their spacing is unchanged */
  .collector-app .rh-spot-val { flex-wrap: nowrap; height: 2.4rem; gap: 8px; overflow: visible; --spot-slot-v: var(--kd-slot-value); }
  .collector-app .rh-spot-val .rh-pnl { display: none; }
  .collector-app .rh-spot-val .kd-amount:not([data-amount='masked']) { min-inline-size: 0; }
  .collector-app .rh-facts { align-self: end; }   /* Steven 2026-11-03: the box's bottom edge IS the left text block's bottom edge: no drop/lift offset any more */
  .collector-app .rh-facts-pct { display: inline; }
  .collector-app .rh-cta { align-self: end; margin-bottom: calc(((2.375rem + 1px + 20px) - 44px) / 2); }
  .collector-app .ov { gap: 1.5rem; }
  .collector-app .ov .ov-hero { padding-top: 1rem; }
  .collector-app .ov .ov-grid { grid-template-columns: minmax(0, 1.6fr) minmax(20rem, 1fr); gap: 1.5rem; }
  .collector-app .ov .ov-col { display: grid; gap: 1.5rem; min-width: 0; align-content: start; }
}

/* ---- cards ---- */
.collector-app .ov .ov-card { position: relative; min-width: 0; margin: 0; padding: 1rem 1.25rem; background: var(--vi-panel, var(--panel)); border: 1px solid var(--vi-line, var(--line)); border-radius: var(--kd-radius-ui); }
.collector-app .ov .ov-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; }
.collector-app .ov .ov-head .ov-unit { margin-right: auto; min-width: 4ch; color: var(--vi-muted); font-size: var(--vi-type-sm); white-space: nowrap; }  /* the block's ONE currency code (Q1): code and mask take the same slot */
.collector-app .ov .ov-head h3 { flex: 1 1 auto; margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.collector-app .ov .ov-fine { margin: 0 0 .5rem; font-size: .8125rem; line-height: 1.6; color: var(--vi-muted); }
.collector-app .ov .ov-sub-h { margin: 1rem 0 .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--vi-muted); }
.collector-app .ov .ov-empty-note { margin: .5rem 0; padding: .75rem 0; font-size: .875rem; line-height: 1.6; color: var(--vi-muted); border-block: 1px dashed var(--vi-line, var(--line)); }
/* ⓘ: a 44px target that opens a short note under the heading */
.collector-app .ov .ov-info { position: static; flex: none; }
.collector-app .ov .ov-info > summary { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -.5rem; list-style: none; cursor: pointer; color: var(--vi-muted); border-radius: var(--kd-radius-round); font-size: 1.0625rem; }
.collector-app .ov .ov-info > summary::-webkit-details-marker { display: none; }
.collector-app .ov .ov-info[open] > summary { color: var(--vi-ink); }
.collector-app .ov .ov-info-body { position: absolute; z-index: 6; inset-inline: 0; top: 100%; padding: .75rem 1rem; background: var(--vi-panel, var(--panel)); border: 1px solid var(--vi-line, var(--line)); border-radius: var(--kd-radius-ui); box-shadow: var(--vi-shadow); font-size: .8125rem; line-height: 1.6; color: var(--vi-ink); }
.collector-app .ov .ov-info-body p { margin: 0 0 .5rem; font-size: .8125rem; }
.collector-app .ov .ov-info-body p:last-child { margin-bottom: 0; }
.collector-app .ov :is(.ov-snap, .ov-more, .ov-ranges button, .ov-seg button, .ov-hrow):focus-visible,
.collector-app .ov .ov-info > summary:focus-visible, .collector-app .ov .vi-overview-how > summary:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: 3px; }

/* ---- trend card ---- */
.collector-app .ov .ov-ranges { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .5rem; }
.collector-app .ov .ov-ranges button, .collector-app .ov .ov-seg button { min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 0; border-radius: var(--kd-radius-ui); background: transparent; color: var(--vi-muted); font-size: .875rem; font-weight: 600; cursor: pointer; }
.collector-app .ov :is(.ov-ranges, .ov-seg) button[aria-pressed='true'] { background: var(--vi-raised, var(--panel)); color: var(--vi-ink); }
.collector-app .ov .ov-chart { position: relative; margin-top: .5rem; }
.collector-app .ov .ov-dot { position: absolute; width: 10px; height: 10px; min-height: 0; padding: 0; border: 2px solid var(--vi-panel, var(--panel)); border-radius: var(--kd-radius-round); transform: translate(-50%, -50%); cursor: pointer; }
.collector-app .ov .ov-dot::after { content: ""; position: absolute; inset: -17px; border-radius: var(--kd-radius-round); }
.collector-app .ov .ov-dot.value { background: var(--ov-line-value); }
.collector-app .ov .ov-dot.cost { background: var(--ov-line-cost); }
.collector-app .ov .ov-chart-empty { display: grid; justify-items: center; gap: .375rem; padding: 1.25rem .5rem; text-align: center; border-block: 1px dashed var(--vi-line, var(--line)); }
.collector-app .ov .ov-chart-empty strong { font-size: 1rem; font-weight: 600; }
.collector-app .ov .ov-chart-empty small, .collector-app .ov .ov-chart-empty p { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--vi-muted); }
.collector-app .ov .snapshot-table { margin-top: .25rem; font-size: .8125rem; }
.collector-app .ov .snapshot-table > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--vi-muted); }
.collector-app .ov .snapshot-table .tablewrap { overflow-x: auto; }
.collector-app .ov .snapshot-table table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.collector-app .ov .snapshot-table :is(th, td) { padding: .375rem .5rem .375rem 0; text-align: left; border-bottom: 1px solid var(--vi-line, var(--line)); white-space: nowrap; }

/* ---- holdings and movers rows ---- */
.collector-app .ov .ov-list { list-style: none; margin: 0; padding: 0; }
.collector-app .ov .ov-li + .ov-li { border-top: 1px solid var(--vi-line, var(--line)); }
.collector-app .ov .ov-hrow { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; width: 100%; min-height: 4rem; margin: 0; padding: .5rem 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.collector-app .ov .ov-hrow:hover { background: color-mix(in srgb, var(--vi-raised, var(--panel)) 55%, transparent); }
.collector-app .ov .ov-th { display: block; width: 2.25rem; }
.collector-app .ov .ov-th .kd-art .card-visual.is-clean { box-shadow: 0 0 0 1px var(--vi-line, var(--line)), 0 3px 6px -2px var(--kd-art-shadow); }
.collector-app .ov .ov-hn { display: grid; gap: .25rem; min-width: 0; }
.collector-app .ov .ov-hn > strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collector-app .ov .ov-sub { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.collector-app .ov .ov-sub > small { min-width: 0; font-size: .8125rem; line-height: 1.5; color: var(--vi-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collector-app .ov .ov-hv { display: grid; justify-items: end; gap: .125rem; text-align: right; }
.collector-app .ov .ov-hv > strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.collector-app .ov .ov-hv .ov-pct, .collector-app .ov .ov-delta { font-size: .8125rem; }
.collector-app .ov .ov-hv .ov-pct { min-inline-size: calc(var(--kd-slot-pct) + 1.5em); justify-content: flex-end; }   /* constant box (arrow room included), so the masked % keeps the shown start edge */
.collector-app .ov .ov-hv > strong { display: flex; justify-content: flex-end; }
.collector-app .ov .ov-hv > strong .kd-amount { --kd-amount-slot: var(--kd-slot-value); text-align: start; }   /* the box is right-aligned and constant; the text starts at ITS start edge, so the mask and the digits share a start (a right-aligned text of another width would move its start edge on toggle) */
.collector-app .ov .ov-hv .ov-delta { --kd-amount-slot: var(--kd-slot-signed); text-align: start; }
.collector-app .ov .ov-hv .val-badge { margin-inline-start: .375rem; }
.collector-app .ov .ov-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: .5rem 0 0; border: 0; border-top: 1px solid var(--vi-line, var(--line)); border-radius: 0; background: transparent; color: var(--vi-accent); font-size: .875rem; font-weight: 500; cursor: pointer; }

/* ---- card price and exchange rate (卡價與匯率) ---- */
.collector-app .ov .ov-split-bar { height: 14px; margin: .5rem 0 .75rem; }
.collector-app .ov .ov-eq { display: grid; gap: .75rem; }
/* No layout shift between shown and hidden (••••): the amount column is reserved at the width of a 7-digit 2-decimal amount ("+TWD 1,234,567.89"), so the label
   column has the same width in both modes and a label wraps (or not) identically; only a larger amount, shown, can widen it. */
.collector-app .ov .ov-eq > div { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(9.5rem, max-content); align-items: center; gap: .25rem .5rem; font-size: .9375rem; }
.collector-app .ov .ov-eq b { font-weight: 600; white-space: nowrap; text-align: right; }
.collector-app .ov .ov-eq b { justify-self: end; min-inline-size: var(--kd-slot-signed); text-align: start; }   /* a constant box at the column's end, text from ITS start edge: right-aligned text of another width would move its start edge when the mask replaces the digits */
.collector-app .ov .ov-eq > div > span { min-width: 0; overflow-wrap: anywhere; }
.collector-app .ov .ov-eq small { grid-column: 2 / 4; margin-top: -.25rem; font-size: .8125rem; color: var(--vi-muted); }
/* 卡價與匯率: the rate-move row keeps one line of height whether it holds chips or a dash, in shown and hidden mode */
.collector-app .ov .ov-fxrates { display: flex; flex-wrap: wrap; gap: .25rem .75rem; min-height: 1.5rem; margin: .75rem 0 .25rem; font-size: .8125rem; color: var(--vi-muted); }
.collector-app .ov .ov-sw { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: var(--kd-radius-ui); }
.collector-app .ov .ov-fx { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: .8125rem; }
.collector-app .ov .ov-fx th { padding: .5rem 0; font-weight: 500; text-align: left; color: var(--vi-muted); border-bottom: 1px solid var(--vi-line, var(--line)); }
.collector-app .ov .ov-fx td { padding: .5rem 0; border-bottom: 1px solid var(--vi-line, var(--line)); }
.collector-app .ov .ov-fx :is(th, td):not(:first-child) { text-align: right; }
.collector-app .ov .ov-fxdetail { padding: 0 1.25rem; }
.collector-app .ov .ov-fxdetail > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: .875rem; color: var(--vi-muted); }
.collector-app .ov .ov-fxdetail[open] { padding-bottom: 1rem; }
.collector-app .ov .ov-fxdetail .fxh-panel { margin: 0; padding: 0; border: 0; background: transparent; }

/* ---- allocation ---- */
.collector-app .ov .ov-donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.collector-app .ov .ov-donut { position: relative; flex: none; width: 7rem; height: 7rem; border-radius: var(--kd-radius-round); }
.collector-app .ov .ov-donut::after { content: ""; position: absolute; inset: 22px; border-radius: var(--kd-radius-round); background: var(--vi-panel, var(--panel)); }
.collector-app .ov .ov-donut > span { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; font-size: .75rem; line-height: 1.3; color: var(--vi-muted); }
.collector-app .ov .ov-donut > span b { font-size: 1.25rem; color: var(--vi-ink); }
.collector-app .ov .ov-leg { flex: 1 1 9rem; min-width: 0; list-style: none; margin: 0 0 .25rem; padding: 0; display: grid; gap: .5rem; font-size: .875rem; }
.collector-app .ov .ov-leg li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.collector-app .ov .ov-leg li > span:not(.ov-sw) { min-width: 0; overflow-wrap: anywhere; }
.collector-app .ov .ov-leg b { font-weight: 600; }
/* 依購入管道與幣別: hidden merges the currency groups of a channel (fewer rows than shown), so the legend reserves a constant box of the most rows it can have (5 named + 其他 + 未標示 = 7), shown and hidden alike: the eye toggle moves nothing */
.collector-app .ov .ov-leg-fixed { grid-auto-rows: 1.5rem; min-height: calc(7 * 1.5rem + 6 * .5rem); align-content: start; }
/* fixed 1.5rem rows: the label stays on one line (ellipsis, full text in its title) so a long channel name can never overflow its row; the % figure is a <b>, never clipped */
.collector-app .ov .ov-leg-fixed li > span:not(.ov-sw) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collector-app .ov .ov-sbar { height: 12px; margin: .5rem 0 .75rem; }
.collector-app .ov .ov-sbar > i { min-width: 4px; }

/* ---- accounting, filters and the older sections that stay below ---- */
.collector-app .ov .vi-overview-accounting { margin: 0; border: 1px solid var(--vi-line, var(--line)); border-radius: var(--kd-radius-ui); background: var(--vi-panel, var(--panel)); padding: 0 1.25rem; }
.collector-app .ov .vi-overview-accounting > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: .875rem; color: var(--vi-muted); }
.collector-app .ov .vi-overview-accounting > div { padding: 0 0 1rem; font-size: .8125rem; line-height: 1.6; }
.collector-app .ov .vi-overview-accounting :is(p, small, summary) { font-size: .8125rem; }
.collector-app .ov-filters { position: relative; }
.collector-app .ov-filters > summary { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; list-style: none; cursor: pointer; border: 1px solid var(--vi-line-strong); border-radius: var(--kd-radius-ui); font-size: .875rem; color: var(--vi-ink); }
.collector-app .ov-filters > summary::-webkit-details-marker { display: none; }
.collector-app .ov-filters .ov-badge { padding: 0 .5rem; border-radius: var(--kd-radius-ui); background: var(--vi-accent); color: var(--vi-paper); font-size: .75rem; }
.collector-app .ov-filters .analysis-controls { position: absolute; z-index: 6; right: 0; top: calc(100% + .25rem); display: grid; gap: .5rem; width: min(18rem, calc(100vw - 2rem)); margin: 0; padding: .75rem; background: var(--vi-panel, var(--panel)); border: 1px solid var(--vi-line, var(--line)); border-radius: var(--kd-radius-ui); box-shadow: var(--vi-shadow); }
.collector-app .ov-filters .analysis-controls :is(select, button) { min-height: 44px; font-size: .875rem; }
/* R2 / R7 (D6, D12): 重設 is a skewed .kd-btn, centred and capped, never the 18rem popover width */
.collector-app .ov-filters .analysis-controls .an-reset { justify-self: center; inline-size: auto; min-inline-size: 8rem; max-inline-size: 10rem; }
.collector-app .overview-layout { display: grid; gap: 1rem; min-width: 0; }
.collector-app .overview-layout > :is(details.overview-secondary, .overview-oripa-entry) { margin: 0; padding: 0 1.25rem; border: 1px solid var(--vi-line, var(--line)); border-radius: var(--kd-radius-ui); background: var(--vi-panel, var(--panel)); }
.collector-app .overview-layout > .overview-oripa-entry { padding-block: .25rem 1rem; }

/* older global rules: a bare `table` is 720px wide; keep ours inside the card (the snapshot table scrolls inside its wrapper) */
.collector-app .ov table { min-width: 0; }
.collector-app .ov .snapshot-table table { min-width: 28rem; }

/* older global rule: every <details> gets a bottom rule and 15px padding; plain disclosures here carry neither */
.collector-app .ov :is(.ov-filters, .ov-info, .vi-overview-how, .snapshot-table) { padding: 0; border: 0; margin: 0; }
.collector-app .ov .ov-fxdetail { padding: 0 1.25rem; border: 1px solid var(--vi-line, var(--line)); }
.collector-app .ov .ov-fxdetail[open] { padding-bottom: 1rem; }
.collector-app .ov .vi-overview-accounting { padding: 0 1.25rem; }
/* long names wrap to two lines instead of being cut at a dozen characters */
.collector-app .ov .ov-hn > strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.collector-app .ov .ov-hv-sub { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .25rem .5rem; }
.collector-app .ov .ov-hv-sub .val-badge { margin: 0; font-size: .75rem; }
.collector-app .ov .ov-sub { flex-wrap: wrap; row-gap: 0; }
.collector-app .ov .ov-sub > small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; overflow-wrap: anywhere; }
.collector-app .ov :is(.vi-overview-support, .provisional-summary) { grid-template-columns: minmax(0, 1fr); }
/* every disclosure heading inside the overview is a full-size target (includes the older FX and accounting panels) */
.collector-app .ov details > summary { min-height: 44px; box-sizing: border-box; }
.collector-app .ov :is(.fxh-panel, .vi-overview-accounting) details > summary { display: flex; align-items: center; cursor: pointer; }
.collector-app .ov .fxh-toggle button { min-height: 44px; }

/* ---- 2026-10-12 mobile rebalance: compact cards, the hidden-mode % axis, the one-line empty chart, top grades and Oripa cards ---- */
@media (max-width: 1023px) {
  .collector-app .ov { gap: .75rem; }
  .collector-app .ov .ov-card { padding: .75rem 1rem; }
  .collector-app .ov :is(.ov-fxdetail) { padding: 0 1rem; }
  .collector-app .rh-stage[data-fan] .rh-eyebrow [lang='en'] { letter-spacing: .06em; }   /* U4: the spotlight eyebrow gives the price-date strip beside it a clear gap */
}
.collector-app .ov .ov-trend .ov-head .ov-info { margin-inline-start: auto; }
.collector-app .ov .ov-chart-empty.is-line { display: flex; align-items: center; justify-items: start; gap: .5rem; margin: .25rem 0; padding: .5rem 0; text-align: left; font-size: .875rem; line-height: 1.4; color: var(--vi-muted); }
.collector-app .ov .ov-chart-empty.is-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vi-ink); }
.collector-app .ov .ov-chart-empty.is-line svg { flex: none; }
.collector-app .ov .ov-tops .kd-toptier { display: flex; flex-wrap: wrap; gap: .375rem .5rem; padding-bottom: .25rem; }
.collector-app .ov .ov-oripa { display: grid; gap: 0; }
.collector-app .ov .ov-oripa .oripa-direct-link { justify-self: start; margin: 0; color: var(--vi-accent); font-size: .875rem; }
/* holdings and movers rows: one fixed height in both modes, so a masked amount (narrower than the real one) can never re-wrap a row and
   move the cards below it. The height reserves name (two lines at most) + seal/set/number (two lines at most). The set name may be
   shortened with …; the card number is its own non-shrinking span and is never cut. The full set + number is the title. */
.collector-app .ov .ov-hrow { height: 6.375rem; min-height: 6.375rem; padding-block: .375rem; overflow: hidden; }
.collector-app .ov .ov-hn { max-height: 100%; overflow: hidden; align-content: center; }
.collector-app .ov .ov-sub { flex-wrap: wrap; row-gap: .125rem; max-height: 2.75rem; overflow: hidden; }
.collector-app .ov .ov-sub > small.ov-meta { display: flex; flex: 1 1 7rem; align-items: baseline; gap: .375rem; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; -webkit-line-clamp: none; }
.collector-app .ov .ov-meta > .ov-set { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collector-app .ov .ov-meta > .ov-no { flex: none; white-space: nowrap; }
.collector-app .ov .ov-hv { min-width: max(5.5rem, var(--kd-slot-value)); max-height: 100%; overflow: hidden; }
.collector-app .ov .ov-hv-sub { flex-wrap: wrap; }
/* the amount box keeps the column's full width (text right-aligned), so a masked amount changes text only, never the box position */
.collector-app .ov .ov-hv { justify-items: stretch; }
.collector-app .ov .ov-hv > strong { text-align: right; }

/* Design-system M3 (owner rule: toggling hidden amounts moves nothing). Every line of a 收藏焦點 row is a fixed line box, so a row is as tall with the
   mask as with the digits: at 375 the digits wrapped and the mask did not (rows 142-180 px shown, 115 px hidden on main). */
.collector-app .focus-row .focus-name > .vi-row-title { block-size: 2lh; }
.collector-app .focus-row .focus-name > small { display: block; block-size: 1lh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collector-app .focus-row > div > .kd-delta { display: block; block-size: 1lh; }

/* ---- phone sweep P2 (2026-11-01) ---- */
/* U1: a spotlight card with no art keeps its full size and gets a designed face: an inset frame, the name large in the middle (size is the art box's, nothing here sizes the card) */
.collector-app .rh-fan-item .kd-art .card-visual.is-clean.has-ph .art-card-ph { position: relative; isolation: isolate; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.25rem 1.125rem 1.125rem; text-align: center; background-image: linear-gradient(160deg, color-mix(in srgb, var(--vi-accent) 12%, var(--vi-panel)), var(--vi-panel) 62%); }
.collector-app .rh-fan-item .kd-art .card-visual.is-clean.has-ph .art-card-ph::before { content: ""; position: absolute; inset: .5rem; z-index: -1; border: 1px solid var(--vi-line-strong); }
.collector-app .rh-fan-item .kd-art .card-visual.is-clean.has-ph .art-card-ph .ph-name { margin-block: auto; font-size: var(--vi-type-lg); font-weight: 700; line-height: 1.35; -webkit-line-clamp: 5; line-clamp: 5; text-wrap: balance; }
/* the facts box under the spotlight: an amount and its % wrap inside their cell instead of ending in an ellipsis (a six-digit % is a real value, never cut) */
.collector-app .rh-facts dd.num { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.collector-app .rh-facts dd.num .rh-facts-pct { white-space: nowrap; }
/* U5: no card yet. The lone — already says the value is unavailable, so the 無法計算 chip under it (and its arrow-width indent) is not drawn; the line below says what will happen */
.collector-app .ov-summary .vi-overview-support[data-empty] .ov-pl-row { display: none; }
/* N1: the global `article { border-radius }` rounded the top corners of 今日卡片 / 今日系列 rows, so their one hairline drew as a stray arc */
.collector-app .rh-ency-item { border-radius: 0; }

/* Analysis IA: slim 總覽 + pending badge (first load); the 分析 page is analysis-page.css (lazy). @container, not @media (breakpoints are ratcheted). */


.collector-app .ov-home { container-type: inline-size; }
.collector-app .ov-summary { margin-top: 1rem; padding-block: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3rem; }
.collector-app .ov-summary .ov-hero-top { justify-content: flex-start; padding-inline-end: 0; }
.collector-app .ov-summary .ov-hero-top:empty { display: none; }   /* no 問我的收藏 button: no blank row */   /* header-ig: the eye moved beside 目前市值, so the row no longer reserves its box */
/* the eye beside 目前市值, banking-app style (header-ig, Steven 2026-10-24): same 20px icon / 44px hit area in both states, its footprint is about one text line (negative margins), so toggling moves nothing */
.collector-app .ov-summary .ov-label { display: inline-flex; align-items: center; }
.collector-app .ov-summary .ov-label > button.ov-label-eye { margin-inline-start: -4px; }
.collector-app .ov-summary .ov-controls { justify-content: flex-start; flex-wrap: wrap; }
.collector-app .ov-summary .ov-controls .ov-share { box-sizing: border-box; min-height: 44px; padding: 0 .6rem; border: 0; border-block: 6px solid transparent; background: var(--vi-raised); background-clip: padding-box; color: var(--vi-ink); font-size: var(--vi-type-sm); font-weight: 500; white-space: nowrap; }
.collector-app .ov-summary .ov-controls .ov-share { position: relative; isolation: isolate; background: none; border-color: transparent; }
.collector-app .ov-summary .ov-controls .ov-share::before { content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: var(--kd-radius-ui); background: var(--vi-raised); transform: skewX(calc(var(--kd-slant) * -1)); pointer-events: none; }   /* R2: the VI skewed shape */
/* 資產走勢 (app/overview/home-trend.tsx, mock A2 + chart-states): ONE fixed box in all three states (full / short / empty): head 44px, stats 1.75rem, plot --tc-plot, foot 1.5rem. Nothing inside is sized from the data. */
.collector-app .ov-summary .an-teaser { --tc-plot: 14rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 44px 1.75rem 2.75rem var(--tc-plot) 1.5rem; align-items: center; margin-top: 1.25rem; box-sizing: border-box; }
.collector-app .ov-summary .an-teaser-text { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.collector-app .ov-summary .an-teaser h3 { margin: 0; font-size: var(--vi-type-md); font-weight: 700; }
.collector-app .ov-summary .tc-tabs { grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end; }

.collector-app .ov-summary .tc-tabs .ov-ranges { margin: 0; flex-wrap: nowrap; }
.collector-app .ov-summary .tc-stats { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: nowrap; align-items: center; gap: 0 1.25rem; min-width: 0; overflow: hidden; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-summary .tc-change { white-space: nowrap; } .collector-app .ov-summary .tc-change b { font-weight: 600; } .collector-app .ov-summary .tc-change.gain { color: var(--vi-gain); } .collector-app .ov-summary .tc-change.loss { color: var(--vi-loss); } .collector-app .ov-summary .tc-change-lab, .collector-app .ov-summary .tc-ends { color: var(--vi-muted); }
/* the ONE fixed readout of the inspected point (or the newest one) and, under it, the note shown while inspecting: two reserved lines, constant height */
.collector-app .ov-summary .tc-read { grid-column: 1 / -1; grid-row: 3; display: grid; align-content: start; gap: 1px; min-width: 0; overflow: hidden; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-summary .tc-readout { display: flex; align-items: center; gap: .5rem; min-height: 1.5rem; margin: 0; white-space: nowrap; } .collector-app .ov-summary .tc-readout b { color: var(--vi-ink); font-weight: 600; }
.collector-app .ov-summary .tc-note { min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collector-app .ov-summary .tc-clear { margin-inline-start: auto; min-height: 24px; padding: 0 .25rem; border: 0; background: transparent; color: var(--vi-accent); font: inherit; cursor: pointer; }
.collector-app .ov-summary .tc-plot { grid-column: 1 / -1; grid-row: 4; position: relative; height: var(--tc-plot); touch-action: pan-y; cursor: crosshair; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-summary .tc-plot:focus-visible { outline: 3px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .ov-summary .tc-field { position: absolute; inset: .5rem 3.75rem 1.5rem 3rem; }
.collector-app .ov-summary .tc-field svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.collector-app .ov-summary .tc-grid { stroke: var(--vi-line); stroke-width: 1; }
.collector-app .ov-summary .tc-yaxis { position: absolute; inset: .5rem auto 1.5rem 0; width: 2.75rem; }
.collector-app .ov-summary .tc-tick { position: absolute; inset-inline-end: 0; transform: translateY(-50%); white-space: nowrap; }
.collector-app .ov-summary .tc-xaxis { position: absolute; inset: auto 3.75rem 0 3rem; height: 1.25rem; }
.collector-app .ov-summary .tc-xt { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; } .collector-app .ov-summary .tc-xt.is-start { transform: none; } .collector-app .ov-summary .tc-xt.is-end { transform: translateX(-100%); }
.collector-app .ov-summary .tc-pt { position: absolute; box-sizing: border-box; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border: 2px solid var(--ov-line-value); border-radius: var(--kd-radius-round); background: var(--vi-paper); pointer-events: none; }
.collector-app .ov-summary .tc-pt.is-weekly { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-width: 1.5px; opacity: .75; }
.collector-app .ov-summary .tc-pt.is-last { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--ov-line-value); }
.collector-app .ov-summary .tc-pt.is-active { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-color: var(--vi-ink); background: var(--vi-ink); }
.collector-app .ov-summary .tc-guide { position: absolute; inset-block: 0; width: 0; border-inline-start: 1px dashed var(--vi-line-strong); pointer-events: none; }
.collector-app .ov-summary .tc-tag { --tx: -50%; --ty: -150%; position: absolute; transform: translate(var(--tx), var(--ty)); color: var(--vi-ink); font-weight: 600; white-space: nowrap; pointer-events: none; }
.collector-app .ov-summary .tc-tag.is-last { --tx: .75rem; --ty: -50%; }
/* hidden mode keeps the shown chart: every money label is one <Amount> in a CONSTANT slot (components.css --kd-slot-value / a fixed ch width for the compact figures), so the mask and the digits take the same box */
.collector-app .ov-summary :is(.tc-change, .tc-readout) b .kd-amount { --kd-amount-slot: var(--kd-slot-value); text-align: start; }
.collector-app .ov-summary :is(.tc-tick, .tc-tag) .kd-amount { --kd-amount-slot: 4.5ch; } .collector-app .ov-summary .tc-tick .kd-amount { text-align: end; }
/* empty state: the same plot box, a dashed baseline with one dot and the honest line; the foot says where the live value is */
.collector-app .ov-summary .tc-plot.is-empty { cursor: default; touch-action: auto; }
.collector-app .ov-summary .tc-base { position: absolute; inset: auto 0 1.5rem 0; border-top: 1px dashed var(--vi-line-strong); }
.collector-app .ov-summary .tc-pt.is-now { inset: auto auto 1.5rem 0; margin: 0 0 -4px 0; width: 9px; height: 9px; background: var(--vi-accent); border-color: var(--vi-accent); }
.collector-app .ov-summary .an-spark-empty { position: absolute; inset: auto 0 2.25rem 1.5rem; margin: 0; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-summary .tc-foot { grid-column: 1 / -1; grid-row: 5; margin: 0; color: var(--vi-muted); font-size: var(--vi-type-sm); min-height: 1.2em; }
@container (min-width: 720px) {
  .collector-app .ov-summary { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto; align-items: start; column-gap: 4rem; }
  .collector-app .ov-summary > .ov-hero { grid-column: 1; grid-row: 1; }
  .collector-app .ov-summary > .an-teaser { grid-column: 2; grid-row: 1; --tc-plot: 17rem; margin-top: 0; }
}
/* 本週收藏動態 / 需要處理 (app/overview/home-lower.tsx): one DOM, one order, one column up to 1099px. From 1100px 總覽 sits on ONE three-column grid (see the block below): 目前市值 | chart, then 漲幅 | 跌幅 | 需要處理. Nothing here reserves room for rows that do not exist. */
.collector-app .ov-lower { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.collector-app .ov-lower > section { min-width: 0; border: 0; border-top: 1px solid var(--vi-line); border-radius: 0; background: none; padding: 1rem 0 0; position: relative; }
.collector-app .ov-lower > section::before { content: ""; position: absolute; inset-block-start: -2px; inset-inline-start: 0; width: 2.5rem; height: 3px; border-radius: 0; background: var(--vi-accent); }
.collector-app .ov-lower .wm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; min-height: 44px; }
.collector-app .ov-lower .wk-fold { margin-inline-start: auto; color: var(--vi-muted); font-size: var(--vi-type-sm); text-align: end; }   /* O2: nothing to compare folds to this one reserved row (the head's 44px) */
.collector-app .ov-lower .wm-head h3 { margin: 0; font-size: var(--vi-type-md); font-weight: 700; }
.collector-app .ov-lower .wm-all { margin-inline-start: auto; min-height: 44px; min-width: 44px; padding: 0 .25rem; border: 0; background: transparent; color: var(--vi-accent); font: inherit; font-size: var(--vi-type-sm); font-weight: 600; white-space: nowrap; cursor: pointer; }
.collector-app .ov-lower .wm-body { display: grid; grid-template-columns: minmax(0, 23rem); gap: .5rem 2.5rem; align-content: start; }
.collector-app .ov-lower .wm-half { min-width: 0; }
.collector-app .ov-lower .wm-sub-h { margin: 0; min-height: 1.5rem; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-lower .wm-list { margin: 0; padding: 0; list-style: none; }
.collector-app .ov-lower .wm-li { border-bottom: 1px solid var(--vi-line); } .collector-app .ov-lower .wm-li:last-child { border-bottom: 0; }
.collector-app .ov-lower .wm-row { display: flex; align-items: center; gap: .625rem; width: 100%; min-height: 44px; padding: .25rem 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.collector-app .ov-lower .wm-th { flex: none; display: block; width: 1.75rem; }
.collector-app .ov-lower .wm-name { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.collector-app .ov-lower .wm-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--vi-type-base); line-height: 1.3; font-weight: 600; }   /* one line; the full name is the title */
.collector-app .ov-lower .wm-sub { display: flex; align-items: center; gap: .375rem; min-width: 0; white-space: nowrap; overflow: hidden; color: var(--vi-muted); font-size: var(--vi-type-sm); font-weight: 400; }
.collector-app .ov-lower .wm-fig { flex: none; display: grid; justify-items: end; line-height: 1.25; font-variant-numeric: tabular-nums; }
.collector-app .ov-lower .wm-fig .ov-pct { font-size: var(--vi-type-sm); }   /* the card name is the row's primary text */
.collector-app .ov-lower .wm-amt { color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-lower .wm-amt.gain { color: var(--vi-gain); } .collector-app .ov-lower .wm-amt.loss { color: var(--vi-loss); }
.collector-app .ov-lower .wm-empty { margin: 0; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-lower .wm-sub .kd-seal { zoom: .8; }
.collector-app .ov-lower .wm-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.collector-app .ov-lower .wk-meta { order: 1; flex-basis: 100%; color: var(--vi-muted); font-size: var(--vi-type-sm); }   /* phone: under the title; from 720px on the title's line */
.collector-app .ov-lower .wk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; }
.collector-app .ov-lower .wk-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.collector-app .ov-lower .wk-lab, .collector-app .ov-lower .wk-none { color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov-lower .wk-fig { display: flex; align-items: baseline; gap: .5rem; font-variant-numeric: tabular-nums; }
.collector-app .ov-lower .wk-amt { font-size: var(--vi-type-lg, 1.25rem); font-weight: 700; }
.collector-app .ov-lower .wk-amt.gain { color: var(--vi-gain); } .collector-app .ov-lower .wk-amt.loss { color: var(--vi-loss); }
.collector-app .ov-lower .wk-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .75rem; min-height: 44px; }
.collector-app .ov-lower .wk-quotes, .collector-app .ov-lower .wk-qopen, .collector-app .ov-lower .wk-qall { min-height: 44px; min-width: 44px; padding: 0 .25rem; border: 0; background: transparent; font: inherit; font-size: var(--vi-type-sm); cursor: pointer; }
.collector-app .ov-lower .wk-quotes, .collector-app .ov-lower .wk-qopen, .collector-app .ov-lower .wk-qall { color: var(--vi-accent); font-weight: 600; }
.collector-app .ov-lower .wk-qlist { margin: 0; padding: 0; list-style: none; }
.collector-app .ov-lower .wk-qlist > li { display: flex; align-items: center; gap: .75rem; min-height: 44px; border-bottom: 1px solid var(--vi-line); }
.collector-app .ov-lower .wk-qname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collector-app .ov-lower .wk-qamt, .collector-app .ov-lower .wk-qdate { flex: none; color: var(--vi-muted); font-size: var(--vi-type-sm); font-variant-numeric: tabular-nums; }
.collector-app .ov-lower :is(.wm-all, .wm-row, .wk-quotes, .wk-qopen, .wk-qall):focus-visible { outline: 3px solid var(--vi-marker); outline-offset: -3px; }
@container (min-width: 720px) {
  .collector-app .ov.ov-summary .ov-total { font-size: min(3.5rem, 5cqi); }   /* a seven-digit total stays inside its column */
  .collector-app .ov-lower { gap: 2rem; margin-top: 2rem; }
  .collector-app .ov-lower .wk-meta { order: 0; flex-basis: auto; }
  .collector-app .ov-lower .wm-body { grid-template-columns: repeat(2, minmax(0, 23rem)); }
  .collector-app .ov-lower .wk-fold { margin-inline-start: 0; text-align: start; }   /* the fold text sits right after its title, not at the far edge of a wide row */
}
/* the page's ONE grid: three equal columns, 3rem apart. 目前市值 | chart (two columns), then 漲幅 | 跌幅 | 需要處理 at one even gap */
@container (min-width: 1100px) {
  .collector-app .ov-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
  .collector-app .ov.ov-summary .ov-total { font-size: min(3.5rem, 100cqi / 24 - 4px); }
  .collector-app .ov-summary > .an-teaser { grid-column: 2 / -1; }
  .collector-app .ov-lower { grid-template-columns: minmax(0, 48.5rem) minmax(0, 1fr); gap: 2.5rem; }   /* the week is as wide as its two lists, 需要處理 follows it at the lists' own gap */
}

/* less-ai-feel (mock): 總覽 below the spotlight reads as binder pages, not boxes. Rules + index tabs replace cards; the P&L chip and count pills become type. */
/* 收藏總值走勢 readout: the record cadence sits at the right edge of its own line, not a loose word floating after the figure's reserved slot */
.collector-app .ov-summary .tc-r-cad { margin-inline-start: auto; }

/* 總覽 direction A 「一句話」 grid (app/overview/home-b.tsx; the row styles are in lazy overview/home-b.css). First-load on purpose: the loading skeleton (app/loading-screen.tsx) uses the same boxes at the same --ova-*-h heights (live blocks AND skeleton read the SAME variables), so nothing shifts when the page arrives.
   Phone: ONE column in DOM order: 市值 (value, change, sentence, meta), 走勢, the hairline, 本週漲跌, 今日百科 (editorial). From 1100px (the .ov-home container): ONE centred 1180px container, columns 640 | 508, gap 32, the hairline spans both. */
.collector-app .ova { --ova-val-h: 10.25rem; --ova-trend-h: 15.75rem; --ova-story-h: 30.5rem; --ova-side-h: 44rem; --ova-gap: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ova-gap); margin-top: var(--ova-gap); align-items: start; }   /* O3: ONE section gap token; the spotlight's own bottom margins are zero on 總覽 (rh-home-top), so the gap between the spotlight and 目前市值 is this token too */
.collector-app .ova-top { display: contents; }   /* the TOP row's own track from 1100px (below); on a phone its two blocks are plain grid items of .ova */
.collector-app .ova-top > .ov-summary { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
html .collector-app :is(.ova, .ova-top) > section { margin: 0; border: 0; background: none; box-shadow: none; padding: 0; }   /* the app-wide section{border;padding;background} reset: the open blocks are not panels */
.collector-app .ova > .ova-rule { margin: 0; border: 0; block-size: 0; border-block-start: 1px solid var(--vi-line); }   /* the ONE hairline */
.collector-app .ova-top > .ov-summary { block-size: var(--ova-val-h); }
.collector-app .ova-top > .ova-trend { block-size: var(--ova-trend-h); }
.collector-app .ova > .ova-side { block-size: auto; }   /* O5: 今日百科 is the last block on every layout, so it takes its own height (its boxes are fixed-size, so loading never moves it); only the skeleton reserves --ova-side-h */
.collector-app .ova > .kd-skel { display: block; }
.collector-app .ova > .kd-skel.ova-sk-val { block-size: var(--ova-val-h); }
.collector-app .ova > .kd-skel.ova-sk-trend { block-size: var(--ova-trend-h); }
.collector-app .ova > .kd-skel.ova-sk-story { block-size: var(--ova-story-h); }
.collector-app .ova > .kd-skel.ova-sk-side { block-size: var(--ova-side-h); }
@container (min-width: 480px) {
  .collector-app .ova { --ova-side-h: 29.625rem; }
}
.collector-app .rh-home.rh-home-top { margin-bottom: 0; }
.collector-app .rh-home.rh-home-top > .rh-stage[data-fan], .collector-app .rh-home.rh-home-top > .rh-stage { margin-bottom: 0; }
@container (min-width: 720px) {
  .collector-app .ova { --ova-val-h: 10.75rem; --ova-trend-h: 15.5rem; --ova-gap: 2.5rem; }
}
@container (min-width: 1100px) {
  /* row 1: 市值 (216 high) | 走勢 (272 high, the change row starts level with the value), row 2: the hairline, row 3: 本週漲跌 (as tall as its rows, at most six) | 今日百科 (416 high) */
  .collector-app .ova { --ova-val-h: 11.75rem; --ova-trend-h: 17rem; grid-template-columns: minmax(0, 560fr) minmax(0, 588fr); column-gap: 2rem; max-inline-size: 73.75rem; margin-inline: auto; }
  /* the TOP row has its own track: the value column is as wide as its content (at most 640px), the chart takes the rest up to the container's right edge; the lower row keeps 640 | 508 */
  .collector-app .ova-top { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: fit-content(40rem) minmax(0, 1fr); column-gap: 2rem; align-items: start; min-width: 0; }
  .collector-app .ova-top > .ov-summary { min-inline-size: min(20rem, 100%); }
  .collector-app .ova > .ova-rule { grid-column: 1 / -1; grid-row: 2; }
  .collector-app .ova > .ova-story { grid-column: 1; grid-row: 3; }
  .collector-app .ova > .ova-side { grid-column: 2; grid-row: 3; }
  .collector-app .ova > .kd-skel.ova-sk-val { grid-column: 1; grid-row: 1; }
  .collector-app .ova > .kd-skel.ova-sk-trend { grid-column: 2; grid-row: 1; }
  .collector-app .ova > .kd-skel.ova-sk-story { grid-column: 1; grid-row: 3; }
  .collector-app .ova > .kd-skel.ova-sk-side { grid-column: 2; grid-row: 3; }
}

/* KAKURA redesign 2026-10 — redesign-chrome (owned by its page agent) */
/* VI v2 on the app chrome: header lockup, channel divider, shard nav markers, custom icons, loading + empty states.
   Presentation only. Loaded last; selectors carry `html body` so they beat the older chrome rules without !important. */

/* ---------- R1 chrome: one 56px header at every width, ink tabs, 4-slot phone bar (docs/design/redesign-2026-10/vi.md, Chrome and logo) ---------- */
/* Phone (header-ig, Steven 2026-10-24, Instagram-like): [＋] · KAKURA centred · [bell]; search lives in 收藏 and the eye beside the amounts. Desktop: KAKURA · 總覽 / 收藏 / 分析 / 管理 · eye · 「＋ 新增卡片」 · bell · avatar. One DOM order serves both. Vermilion only as the unread dot and the focus ring. */
.collector-app .app-header{container-type:inline-size;position:relative;display:flex;align-items:center;gap:4px;box-sizing:border-box;height:56px;min-height:56px;margin:0 calc(-1 * max(16px,env(safe-area-inset-left))) 16px;padding:0 max(16px,env(safe-area-inset-left));border:0;box-shadow:0 1px 0 var(--vi-line);background:var(--vi-paper)}
.collector-app .brand-home{display:inline-flex;align-items:center;flex:none;gap:8px;min-height:var(--kd-btn-h);margin:0;padding:0;color:var(--vi-ink)}
.collector-app .brand-k-mark{flex:none;width:28px;height:auto;color:var(--vi-ink)}
.collector-app .brand-wordmark{flex:none;width:var(--bw,119.3px)!important;height:var(--bh,16.3px)!important;margin:0!important;line-height:0}
.collector-app .brand-wordmark>span{background:var(--vi-ink)}
/* the header icon buttons: 44px, muted at rest, ink on hover; the eye is the existing amounts control with its words visually removed */
.collector-app :is(.header-controls .privacy-control button,.header-notifications .missing-data.bell>button,.header-notifications .account-avatar-button){position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:var(--kd-btn-w);min-width:var(--kd-btn-w);height:var(--kd-btn-h);min-height:var(--kd-btn-h);margin:0;padding:0;border:0;border-radius:var(--kd-radius-ui);background:transparent;box-shadow:none;color:var(--vi-muted);cursor:pointer}
.collector-app :is(.header-controls .privacy-control button,.header-notifications .missing-data.bell>button):hover{color:var(--vi-ink)}
.collector-app :is(.header-controls .privacy-control button,.header-notifications .missing-data.bell>button,.header-notifications .account-avatar-button,.brand-home,.desktop-app-nav>button):focus-visible{outline:2px solid var(--vi-marker);outline-offset:-2px}
.collector-app .header-controls{display:flex;flex:none;margin:0}
.collector-app .header-controls .privacy-control{display:inline-flex;margin:0;padding:0;font-size:0;line-height:0}
.collector-app .header-controls .privacy-control>span,.collector-app .header-controls .privacy-action{display:none}
.collector-app .header-controls .privacy-control button>svg{flex:none;width:var(--kd-btn-icon);height:var(--kd-btn-icon)}
.collector-app .header-notifications{display:flex;flex:none;align-items:center;gap:0}
.collector-app .header-notifications .missing-data.bell>button>svg{width:var(--kd-btn-icon);height:var(--kd-btn-icon);flex:none}
/* bell: the count is a small quiet badge (absolute, so a count change never moves anything), the unread dot is the one vermilion mark */
.collector-app .header-notifications .missing-data.bell>button>b{position:absolute;right:0;bottom:2px;min-width:16px;box-sizing:border-box;padding:0 4px;border-radius:var(--kd-radius-ui);background:var(--vi-raised);color:var(--vi-ink);font-size:11px;font-weight:600;line-height:16px;text-align:center}
.collector-app .header-notifications .digest-dot{top:6px;right:8px;width:8px;height:8px;border:0;background:var(--vi-marker)}
.collector-app :is(.header-controls .privacy-control button,.header-notifications .missing-data.bell>button){display:inline-flex}
.collector-app .app-header .header-me{display:none}
.collector-app .desktop-app-nav{display:none}
/* the detail, edit and import flows have no ＋, but it keeps its box (visibility), so nothing moves */
html body .collector-app .header-add.is-away{visibility:hidden}
/* the ＋ diamond layer's corner radius, one declaration for the phone and the desktop shapes below */
.collector-app .header-add::before{border-radius:var(--kd-radius-ui)}
/* a container query measures the header's content box (the viewport minus 2 x 16px padding). On the phone the K mark is hidden and the wordmark is 110px wide (139 x 19 scaled to 15px tall), centred between ONE 44px button each side, so it needs 110 + 2 x (44 + 12) = 222px: every phone from 320px up shows it (320: 288px box, 45px clear each side); under 222px the wordmark is clipped away. The desktop lockup (28px mark + 119px wordmark) is wider but never sits in a box that narrow. The h1 / link keep the name for assistive tech in every case. */
@container (max-width:221px){.collector-app .app-header .brand-wordmark{position:absolute;clip-path:inset(50%)}}
@media(min-width:761px){
 main.collector-app{padding-top:0}
 .collector-app .app-header{position:sticky;top:0;z-index:20;gap:8px;margin:0 -4.5vw 24px;padding:0 4.5vw}
 .collector-app .brand-k-mark{width:24px}
 .collector-app .brand-wordmark{width:116.8px!important;height:16px!important}
 .collector-app .brand-wordmark>span{mask-image:url('/brand/kakura-wordmark.svg');-webkit-mask-image:url('/brand/kakura-wordmark.svg')}
 .collector-app .desktop-app-nav{display:flex;align-self:stretch;gap:0;min-height:0;margin:0 0 0 20px;padding:0;border:0;background:none}
 .collector-app .desktop-app-nav>button{position:relative;box-sizing:border-box;height:100%;min-height:var(--kd-btn-h);min-width:0;padding:0 var(--kd-btn-pad-x-tab);border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--vi-muted);font-size:var(--vi-type-base);font-weight:600;letter-spacing:0;cursor:pointer}
 .collector-app .desktop-app-nav>button:hover,.collector-app .desktop-app-nav>button[aria-current=page]{color:var(--vi-ink)}
 /* active tab: a 3px ink bar on the header's bottom edge (no pill); the weight is the same in every state, so nothing shifts */
 .collector-app .desktop-app-nav>button[aria-current=page]::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:3px;background:var(--vi-ink)}
 .collector-app .app-header .header-me{display:inline-flex;align-items:center;margin-inline-start:4px;border-radius:var(--kd-radius-round)}
 .collector-app .app-header .header-me[aria-current=page] .account-avatar-button{box-shadow:0 0 0 2px var(--vi-ink)}
 .collector-app .header-controls{margin-left:auto}   /* the eye starts the right-hand group (the header search moved into 收藏) */
 .collector-app .header-add{flex:none;margin-left:8px}
 /* the ＋ 新增卡片 is the VI diamond here too (Steven 2026-10-31, the same language as the detail-v3 buttons): the button keeps its own 44px box and its 「＋ 新增卡片」 content, the slanted LIGHT brand tone (--kd-tone-3) is its ::before layer, the ＋ and the label stay upright and ink */
 .collector-app .kd-btn--primary.header-add{--kd-btn-bg:transparent;--kd-btn-bd:transparent;--kd-btn-fg:var(--vi-ink);position:relative;isolation:isolate;color:var(--vi-ink)}
 .collector-app .kd-btn--primary.header-add:hover{--kd-btn-bg:transparent;--kd-btn-fg:var(--vi-ink);color:var(--vi-ink)}
 .collector-app .header-add::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--kd-tone-3);transform:skewX(calc(var(--kd-slant,32deg) * -1))}
 .collector-app .header-add:hover::before{background:color-mix(in srgb,var(--kd-tone-3) 85%,var(--vi-ink))}
}
/* narrow desktop (761-1023px): the ＋ is icon-only and the tabs tighten, so the four tabs fit even with English labels; under 900px the wordmark is visually hidden too (the K mark stays, the h1 keeps its name). Fixed 56px header, nothing wraps. */
@media(min-width:761px) and (max-width:1023px){
 .collector-app .header-add{width:var(--kd-btn-w);padding:0}.collector-app .header-add>span{display:none}
 .collector-app .header-add::before{inset:auto;left:50%;top:50%;width:29px;height:32px;margin:-16px 0 0 -14.5px}   /* icon-only: the same 29 x 32 diamond as the phone, inside the same 44px box */
 .collector-app .desktop-app-nav{margin-left:8px}
 .collector-app .desktop-app-nav>button{padding:0 var(--kd-btn-pad-x-tab-tight)}
 .collector-app .desktop-app-nav>button[aria-current=page]::after{left:12px;right:12px}
}
@media(min-width:761px) and (max-width:899px){.collector-app .app-header .brand-wordmark{position:absolute;clip-path:inset(50%)}}

/* ---------- phone tab bar: 總覽 · 收藏 · 分析 · 管理 · 我的 (the avatar), ink marker on the top edge (no shards, no vermilion) ---------- */
@media(max-width:760px){
 .collector-app .app-header .brand-home{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
 /* phone logo (Steven 2026-10-27, variant B): the wordmark alone, 15px tall (110 x 15, the 139 x 19 art scaled), with a bolder ＋ (20px, stroke 3.2) and bell (22px, stroke 2.4) so the three weigh the same; the K mark stays on desktop. The link keeps its name. */
 .collector-app .app-header .brand-k-mark{display:none}
 .collector-app .app-header .brand-wordmark{--bw:110px;--bh:15px}   /* KAKURA is centred on the screen whatever sits either side of it */
 .collector-app .header-notifications .missing-data.bell>button>svg{width:22px;height:22px;stroke-width:2.4}
 .collector-app .app-header .header-controls{display:none}   /* the eye sits beside the amounts on the phone (總覽, 分析, 收藏, 我的, 我的 › 顯示設定), not in the header */
 /* the ＋ is first (left), the bell takes the free space and sits right (Steven 2026-10-31 asked why it had moved to the top right; restored) */
 .collector-app .app-header .header-notifications{margin-left:auto}
 /* the ＋ is the VI diamond on the phone (Steven 2026-10-22): the slanted square of the VI (the 32deg lean of var(--kd-slant), 29 x 32 base like the old 44 x 48 slab, radius 5), a solid LIGHT brand fill (--kd-tone-3, Steven 2026-10-31; was ink) with an ink ＋ upright
    inside it (the lean is on ::before only, so the ＋ never rotates or reads as x). The button's own box stays 44 x 44 (the hit area is not clipped to the diamond). No glow, no spin, no bounce. The filled
    「＋ 新增卡片」 pill is the desktop's kd-btn. */
 html body .collector-app .header-add{position:relative;order:-1;flex:none;width:var(--kd-btn-w);min-width:var(--kd-btn-w);height:var(--kd-btn-h);min-height:var(--kd-btn-h);margin:0;padding:0;border:0;border-radius:var(--kd-radius-ui);background:transparent;box-shadow:none;color:var(--vi-ink)}
 .collector-app .header-add::before{content:"";position:absolute;left:50%;top:50%;width:29px;height:32px;margin:-16px 0 0 -14.5px;background:var(--kd-tone-3);transform:skewX(calc(var(--kd-slant,32deg) * -1))}
 html body .collector-app .header-add:hover{color:var(--vi-ink)}
 html body .collector-app .header-add>span{display:none}
 html body .collector-app .header-add .header-add-icon{position:relative;width:var(--kd-btn-icon);height:var(--kd-btn-icon);stroke-width:3.2}
 html body .collector-app .header-add:focus-visible{outline:2px solid var(--vi-marker);outline-offset:-2px}
 /* the header is sticky on the phone so it can hide and return without moving anything (it keeps its place in the flow: hiding is transform + opacity only); the strip above it (the safe area) is painted paper */
 .collector-app .app-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;box-shadow:0 1px 0 var(--vi-line),0 calc(-1 * env(safe-area-inset-top,0px)) 0 0 var(--vi-paper)}
 .collector-app>.mobile-app-nav{box-shadow:none}
 .collector-app>.mobile-app-nav button{position:relative;background:transparent;color:var(--vi-muted);border-radius:var(--kd-radius-ui)}
 .collector-app>.mobile-app-nav button[aria-current=page]{background:transparent;color:var(--vi-ink)}
 .collector-app>.mobile-app-nav button>svg{width:24px;height:24px;flex:none}
 html body .collector-app>.mobile-app-nav button{padding-block:3px} /* 3+24+4+16+3 = 50px: the 24px icons keep the 50px button of the 22px ones */
 .collector-app>.mobile-app-nav button[aria-current=page]::before{content:"";position:absolute;top:-7px;left:50%;width:24px;height:3px;margin-left:-12px;background:var(--vi-ink);border-radius:0}
 .collector-app>.mobile-app-nav button:focus-visible{outline:2px solid var(--vi-marker);outline-offset:-3px}
 /* 我的 is the account picture: the same 26px box as the icons around it (a plain person icon until the picture is known), a 2px ink ring while its page is open */
 .collector-app>.mobile-app-nav .nav-me>svg,.collector-app>.mobile-app-nav .nav-me .account-avatar{width:26px;height:26px;flex:none}
 .collector-app>.mobile-app-nav .nav-me[aria-current=page] .account-avatar{box-shadow:0 0 0 2px var(--vi-ink)}
 .collector-app>.mobile-app-nav .nav-me .account-avatar-initial{font-size:.875rem}

 /* ---------- phone bar (RI A7, Steven 2026-10-19, after Instagram): translucent ---------- */
 /* The bar's own surface is the ::before layer: 75% panel + blur + a hairline top edge, firming to 93% panel under the labels (a scrim: the muted labels stay >= 4.5:1 over pure white or pure black content). The nav element keeps its box (66px + safe area), so the page's bottom padding never changes. */
 .collector-app>.mobile-app-nav{background:transparent;border-top:0}
 .collector-app>.mobile-app-nav::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-top:1px solid var(--vi-line);background:linear-gradient(to bottom,color-mix(in srgb,var(--vi-panel) 75%,transparent) 0,color-mix(in srgb,var(--vi-panel) 75%,transparent) 28%,color-mix(in srgb,var(--vi-panel) 93%,transparent) 62%);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}
 @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.collector-app>.mobile-app-nav::before{background:var(--vi-panel)}}
 /* U6 (phone sweep 2026-11-01): the ::before gradient above is measured in % of the bar, so on an iPhone with a home indicator (bar = 66px + 34px) the label row (31-47px down) sits at only 76-85% panel, and a headless WebKit that paints no blur shows the page through the icons at 25%. A SECOND scrim in px (safe-area independent) stacks on it: nothing extra for the top 14px (the hairline edge keeps the 75% look), then the bar firms to >= 96% total by the top of the labels, whatever the safe area, so muted labels stay >= 4.5:1 over pure white or pure black content in light and dark (tests/phone-chrome-bar.test.ts). */
 .collector-app>.mobile-app-nav::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,transparent 0,color-mix(in srgb,var(--vi-panel) 60%,transparent) 14px,color-mix(in srgb,var(--vi-panel) 85%,transparent) 30px)}
 @media(prefers-reduced-transparency:reduce){.collector-app>.mobile-app-nav::before{background:var(--vi-panel);-webkit-backdrop-filter:none;backdrop-filter:none}.collector-app>.mobile-app-nav::after{display:none}}
 /* ---------- auto-hide (Steven 2026-10-22; app/chrome-autohide.ts sets <html data-chrome="hidden"> on a sustained scroll down and clears it on a small scroll up / 500ms after the scroll stops) ----------
    The header slides up and the bar slides down, with a fade: transform + opacity ONLY, so nothing reflows (no content push, no card-art resize, no scroll jump; both keep their boxes and the page keeps its padding).
    Hidden elements also become non-interactive and invisible to assistive tech once the slide ends; a keyboard user focusing into either one brings it back (:has(:focus-visible)). Reduced motion: the watcher never hides. */
 /* bar-float (Steven 2026-11-03: on an iPhone the bar sometimes floated mid-screen while scrolling): both bars keep ONE compositing layer for the page's lifetime (a transform at rest + will-change), and hiding only moves that layer. No opacity, visibility or display flip while the page scrolls: iOS built and tore down the layer mid-momentum and painted it at a stale scroll offset. Access while hidden is closed by `inert` + aria-hidden (app/chrome-autohide.ts), not by visibility. The bar's two-part list (translateY(100%) + 40px) also carries its 25px shadow below the screen. */
 .collector-app .app-header{transform:translateY(0);will-change:transform}
 .collector-app>.mobile-app-nav{transform:translateY(0) translateY(0);will-change:transform}
 html[data-chrome=hidden] .collector-app .app-header:not(:has(:focus-visible)){transform:translateY(calc(-100% - env(safe-area-inset-top,0px)));pointer-events:none}
 html[data-chrome=hidden] .collector-app>.mobile-app-nav:not(:has(:focus-visible)){transform:translateY(100%) translateY(40px);pointer-events:none}
 /* sticky bars that sit under the (now sticky) header start below it, and follow it up when it hides, instead of leaving a gap */
 .collector-app .collection-browser{--coll-sticky-top:var(--coll-nav-h,56px)}
 .collector-app .ency-titlebar{top:56px}
 html[data-chrome=hidden] .collector-app :is(.coll-bar,.ency-titlebar){transform:translateY(calc(-1 * var(--coll-nav-h,56px)))}
 @media(prefers-reduced-motion:no-preference){
  .collector-app .app-header,.collector-app>.mobile-app-nav,.collector-app :is(.coll-bar,.ency-titlebar){transition:transform 200ms ease,opacity 200ms ease}   /* show: ~200ms */
  html[data-chrome=hidden] .collector-app :is(.app-header,.mobile-app-nav,.coll-bar,.ency-titlebar){transition:transform 300ms ease-out,opacity 300ms ease-out,visibility 0s linear 300ms}   /* hide: ~300ms gentle slide + fade; no property flips visibility any more (bar-float); the visibility term is inert */
 }
}

/* U10 (phone sweep 2026-11-01): the 匯率資訊 popover's two disclosures (「ⓘ 更多說明」, 「ⓘ 匯率來源」) already start with their own ⓘ; WebKit also drew its ▶ in front (▶ ⓘ 更多說明). One marker: the ⓘ. They still open and close on tap or Enter. */
.fx-help-popover details>summary{list-style:none}
.fx-help-popover details>summary::-webkit-details-marker{display:none}

/* ---------- display settings panel (the matching rules of the own-profile settings sheet live in app/profile/profile.css) ---------- */
html body .collector-app .chrome-panel-heading h2{display:flex;align-items:center;gap:10px}
html body .collector-app .chrome-panel-heading h2::before{
 content:"";flex:none;width:7px;height:.8em;margin-inline:.25em .1em;background:var(--accent);border-radius:var(--kd-radius-ui);transform:skewX(calc(var(--kd-slant,32deg) * -1))}
html body .collector-app .chrome-panel :is(.privacy-control,.theme-control,.language-control,.valuation-policy-control){width:100%}
/* desktop footer: one 13px muted line */
.collector-app .app-footer{display:none}
@media(min-width:761px){
 .collector-app .app-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:48px 0 0;border-top:1px solid var(--vi-line);color:var(--vi-muted);font-size:13px}
 .collector-app .app-footer-link{display:inline-flex;align-items:center;min-height:var(--kd-btn-h);margin:0;padding:0 4px;border:0;background:none;color:inherit;font:inherit;text-decoration:none;cursor:pointer}
 .collector-app .app-footer-link:hover{color:var(--vi-ink);text-decoration:underline}
 .collector-app .app-footer-link:focus-visible{outline:2px solid var(--vi-marker);outline-offset:-2px}
 .collector-app .app-footer [hidden]{display:none}
}
/* first open (the empty collection): the name and the tagline, one quiet line under the start choices */
.collector-app .rh-empty-brand{margin:16px 0 0;width:100%;text-align:center;color:var(--vi-muted);font-size:var(--vi-type-sm);line-height:1.5}

/* ---------- reduced motion: no assemble, no shimmer, no transitions on chrome ---------- */
@media (prefers-reduced-motion:reduce){
 html body main.app-loading .kd-skel{animation:none}
 html body main.app-loading .kd-k-anim .k-left,html body main.app-loading .kd-k-anim .k-stem,html body main.app-loading .kd-k-anim .k-arm{animation:none}
 html body .collector-app :is(.mobile-app-nav,.app-header,.chrome-panel) *{transition:none;animation:none}
}

/* Slab scanner (docs/design/mobile-scanner.md section 3). Always dark whatever the app theme: the dark token VALUES already in
   vi-tokens.css are re-declared for this scope only (no new colours). Tokens only otherwise. Fixed boxes everywhere: no layout shift. */
.scanner{
 --vi-paper:#0c121c;--vi-panel:#151e2c;--vi-raised:#1d293a;--vi-ink:#edf2f8;--vi-muted:#adbacb;--vi-line:#354255;--vi-accent:#a2ccec;
 --vi-warning:#e3c387;--vi-shadow:0 .75rem 2rem #0005,0 .125rem .375rem #0003;--vi-overlay:#030812aa;
 --kd-shard-fill:var(--vi-ink);--kd-shard-on-fill:var(--vi-paper);
 position:fixed;inset:0;z-index:200;height:100dvh;background:var(--vi-paper);color:var(--vi-ink);overscroll-behavior:none;touch-action:manipulation;overflow:hidden;font-family:var(--vi-font,inherit)}
.sc-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--vi-paper)}
.sc-top{position:absolute;z-index:4;left:0;right:0;top:env(safe-area-inset-top);height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 max(12px,env(safe-area-inset-left))}
.sc-ib,.sc-ib-slot{width:44px;height:44px;flex:none}
.sc-ib{display:grid;place-items:center;border:0;border-radius:var(--kd-radius-round);background:var(--vi-overlay);color:var(--vi-ink)}
.sc-ib[aria-pressed=true]{background:var(--vi-ink);color:var(--vi-paper)}
.sc-chips{display:flex;gap:6px}
.sc-chip-slot{display:inline-flex;min-width:74px;height:var(--kd-chip-h,26px);justify-content:center}
.sc-chip{display:inline-flex;align-items:center;justify-content:center;height:var(--kd-chip-h,26px);padding:0 12px;position:relative;isolation:isolate;font-size:var(--vi-type-caption,.75rem);font-weight:var(--vi-weight-label,500);color:var(--vi-ink);white-space:nowrap}
.sc-chip::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--vi-raised);box-shadow:inset 0 0 0 1px var(--vi-line);border-radius:var(--kd-radius-ui)}
.sc-chip.sc-on{color:var(--kd-shard-on-fill)}.sc-chip.sc-on::before{background:var(--kd-shard-fill)}
.sc-guide{position:absolute;left:50%;top:calc(env(safe-area-inset-top) + 84px);width:min(240px,62vw);aspect-ratio:240/400;transform:translateX(-50%);pointer-events:none}
.sc-guide svg{display:block;width:100%;height:100%;fill:none;stroke:var(--vi-ink);stroke-width:3;stroke-linejoin:round}
.sc-guide[data-locked] svg{stroke:var(--vi-accent)}
.sc-label-zone{position:absolute;left:5%;right:5%;top:4%;height:19.5%;border:1.5px dashed var(--vi-accent);border-radius:var(--kd-radius-ui)}
.sc-hint{position:absolute;left:0;right:0;top:calc(env(safe-area-inset-top) + 84px + min(400px,103.4vw) + 14px);text-align:center;padding:0 16px}
.sc-hint b{display:block;font-weight:var(--vi-weight-label,500)}
.sc-hint small{display:block;margin-top:2px;color:var(--vi-muted);font-size:var(--vi-type-caption,.75rem)}
.sc-problem{position:absolute;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 160px);margin:0;min-height:20px;text-align:center;font-size:var(--vi-type-meta,.8125rem);color:var(--vi-warning)}
.sc-raw{position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 118px);height:44px;display:flex;justify-content:center;align-items:center}
.sc-link{min-height:44px;padding:0 12px;border:0;background:transparent;color:var(--vi-ink);text-decoration:underline;font-size:var(--vi-type-meta,.8125rem)}
/* stacking (UI-1): the covers (fallback / busy / paused, z 2) sit under the top row (close, z 4) and the control row (手動記錄, z 3), so both stay tappable */
.sc-cover{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:0 24px calc(env(safe-area-inset-bottom) + 120px);background:var(--vi-paper);text-align:center}
.sc-cover p{margin:0;max-width:320px;line-height:1.6}
.sc-ctl{position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 20px);height:96px;display:grid;grid-template-columns:1fr 84px 1fr;align-items:center;justify-items:center;z-index:3}
.sc-lnk{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:64px;min-height:56px;border:0;background:transparent;color:var(--vi-ink);font-size:11px;cursor:pointer}
/* P5 N11: 手動記錄 is a <button>, which the app-wide button rule made 15px with its own padding (88x72 beside the 64x56 相簿 label): same size and weight as 相簿 */
.scanner button.sc-lnk{padding:0;font-size:11px;font-weight:400}
.sc-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.sc-shutter{width:76px;height:76px;border-radius:var(--kd-radius-round);border:3px solid var(--vi-ink);background:transparent;display:grid;place-items:center;padding:0}
.sc-shutter i{display:block;width:58px;height:58px;border-radius:var(--kd-radius-round);background:var(--vi-ink)}
.sc-shutter:disabled{opacity:.4}
.sc-shutter:active:not(:disabled) i{filter:brightness(.8)}
.scanner button:focus-visible,.scanner label:focus-within{outline: 2px solid var(--vi-marker);outline-offset: 3px}
.sc-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui);background:transparent;color:var(--vi-ink);font-weight:var(--vi-weight-label,500);font-size:var(--vi-type-control,.9375rem)}
.sc-primary{background:var(--vi-accent);border-color:var(--vi-accent);color:var(--vi-paper)}
.sc-scrim{position:absolute;inset:0;z-index:4}
.sc-sheet{position:absolute;left:0;right:0;bottom:0;z-index:5;padding:10px 16px calc(16px + env(safe-area-inset-bottom));background:var(--vi-panel);border-top:1px solid var(--vi-line);border-radius:var(--kd-radius-ui) var(--kd-radius-ui) 0 0;box-shadow:var(--vi-shadow)}
.sc-grab{width:40px;height:4px;margin:0 auto 12px;border-radius:var(--kd-radius-ui);background:var(--vi-line)}
.sc-sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.sc-sh h2{margin:0;font-size:1.125rem}
.sc-slab{display:grid;grid-template-columns:auto 1fr;gap:0 14px;padding:12px 14px;margin-bottom:10px;background:var(--vi-paper);border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui)}
.sc-gradebox{position:relative;isolation:isolate;display:grid;place-items:center;align-content:center;width:72px;height:64px;align-self:center;text-align:center}
.sc-gradebox::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--kd-shard-fill);border-radius:var(--kd-radius-ui)}
.sc-gradebox small{color:var(--kd-shard-on-fill);font-size:11px;letter-spacing:.08em;line-height:1}.sc-gradebox b{color:var(--kd-shard-on-fill);font-size:1.75rem;line-height:1.1}
.sc-fld{display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-height:30px;border-bottom:1px solid var(--vi-line);font-size:var(--vi-type-meta,.8125rem)}
.sc-fld:last-child{border-bottom:0}.sc-fld>span{color:var(--vi-muted)}.sc-fld b{font-weight:var(--vi-weight-label,500);font-size:var(--vi-type-control,.9375rem);text-align:right;overflow-wrap:anywhere}
.sc-cert{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.sc-tbc{margin-left:8px;font-style:normal;color:var(--vi-warning);font-weight:var(--vi-weight-strong,600)}
.sc-note{margin:0 0 12px;font-size:var(--vi-type-meta,.8125rem);color:var(--vi-muted)}
.sc-actions{display:flex;gap:8px}.sc-actions .sc-btn{flex:1}.sc-actions .sc-btn:first-child{flex:0 0 104px}
@media(prefers-reduced-motion:no-preference){.sc-guide svg{transition:stroke .2s}}
@media(prefers-reduced-motion:reduce){.scanner *{transition:none!important;animation:none!important}}

/* Loading screen (app/loading-screen.tsx). The markup reuses the destination's own classes (.collector-app, .app-header,
   .desktop-app-nav, .rh-stage[data-fan], .rh-fan, .rh-facts, .rh-strip), so sizes come from the real page rules; this file only
   paints placeholders, the K badge, and the motion. Nothing here sets a size the real page does not also have. */

/* Shown only after 150ms: a fast load never flashes the skeleton. Opacity only, so layout is identical from the first frame. */
@keyframes kd-loading-in { from { opacity: 0; } to { opacity: 1; } }
html body main.collector-app.app-loading { animation: kd-loading-in 260ms var(--kd-ease) 150ms both; }
html body main.collector-app.app-loading button:disabled { opacity: 1; cursor: default; }

/* header placeholders: the same 44px boxes as the real eye, bell and avatar, so the header keeps its height and its row */
.app-loading .loading-controls > i, .app-loading .loading-notes > i { display: inline-block; flex: none; height: 44px; width: 44px; border-radius: var(--kd-radius-ui); }
.app-loading .loading-notes { display: flex; align-items: center; gap: 0; }
.app-loading .loading-notes > i:nth-child(2) { border-radius: var(--kd-radius-round); }
@media (max-width: 760px) { .app-loading .loading-notes > i:nth-child(2) { display: none; } }

/* text-line placeholder sized in em, so it sits inside the real fixed-height text slots */
.app-loading .loading-line { display: inline-block; width: var(--w, 60%); max-width: 100%; height: .72em; vertical-align: middle; border-radius: var(--kd-radius-ui); }

/* ---- 首頁: the fan stage silhouette ---- */
.app-loading .loading-card { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 600 / 825; border-radius: var(--kd-radius-card);
  box-shadow: var(--rh-skel-shadow), inset 0 0 0 1px color-mix(in srgb, var(--vi-ink) 7%, transparent); }
.app-loading .rh-fan-item:not(.is-centre) .loading-card { background-color: color-mix(in srgb, var(--vi-raised) 72%, var(--vi-paper)); box-shadow: var(--rh-skel-shadow), inset 0 0 0 1px color-mix(in srgb, var(--vi-ink) 11%, transparent); }
.app-loading .rh-fan-item.is-centre .loading-card { background-color: color-mix(in srgb, var(--vi-raised) 86%, var(--vi-accent)); }
.app-loading .loading-seal { display: block; width: 92px; height: 30px; border-radius: var(--kd-radius-ui); background: var(--vi-raised); transform: skewX(calc(var(--kd-slant) * -1)); }
.app-loading .rh-fan-item:not(.is-centre) .loading-seal { width: 72px; height: 24px; opacity: .7; }
.app-loading .rh-fan-arrow { color: color-mix(in srgb, var(--vi-ink) 40%, transparent); }
.app-loading .loading-cta { pointer-events: none; color: transparent; }
.app-loading .loading-cta::before { background: var(--vi-raised); }
/* fanSize(): 7 cards from 700px, 5 below */
@media (max-width: 699px) { .app-loading .loading-home .rh-fan-item[data-a='3'], .app-loading .loading-home .rh-dots > button:nth-child(n+6) { display: none; } }

/* ---- the K badge: three slabs assemble at 32 degrees, a sheen crosses now and then, one status line, an indeterminate slab bar ---- */
.app-loading .loading-badge { display: grid; justify-items: center; gap: 14px; padding: 16px; text-align: center; color: var(--vi-ink); }
.app-loading .loading-badge [role=status] { margin: 0; font-size: .875rem; line-height: 1.4; letter-spacing: .02em; color: var(--vi-muted); }
.app-loading .loading-k { width: 72px; height: auto; color: var(--vi-ink); overflow: visible; }
/* the assemble starts when the screen becomes visible (150ms), not while it is still transparent */
.app-loading .loading-k.kd-k-anim .k-left { animation-delay: 150ms; }
.app-loading .loading-k.kd-k-anim .k-stem { animation-delay: calc(150ms + var(--kd-stagger)); }
.app-loading .loading-k.kd-k-anim .k-arm { animation-delay: calc(150ms + var(--kd-stagger) * 2); }
@keyframes kd-k-sheen { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(1500px); } }
.app-loading .loading-k-sheen { animation: kd-k-sheen 2600ms var(--kd-ease) 900ms infinite; }
@keyframes kd-loading-bar { from { transform: translateX(-130%) skewX(calc(var(--kd-slant) * -1)); } to { transform: translateX(290%) skewX(calc(var(--kd-slant) * -1)); } }
.app-loading .loading-progress { position: relative; display: block; width: 112px; height: 6px; overflow: hidden; border-radius: var(--kd-radius-ui); background: color-mix(in srgb, var(--vi-ink) 12%, transparent); }
.app-loading .loading-progress > i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--vi-accent); transform: translateX(-130%) skewX(calc(var(--kd-slant) * -1)); animation: kd-loading-bar 1400ms var(--kd-ease) infinite; }
.app-loading .loading-badge > button { min-height: 44px; }

/* ---- other destinations: their own silhouette; the badge floats in the middle without taking layout space ---- */
.app-loading .loading-page { display: grid; gap: 14px; }
.app-loading .loading-page > h2 { margin: 4px 0 2px; font-size: 24px; height: 1.25em; }
.app-loading .loading-block, .app-loading .loading-manage > i { border-radius: var(--kd-radius-ui); }
.app-loading .loading-block { display: block; }
.app-loading .loading-block.is-search { height: 48px; }
.app-loading .loading-block.is-filters { height: 120px; }
.app-loading .loading-block.is-chart { height: 260px; }
.app-loading .loading-home > .loading-block.is-chart { margin-top: 16px; } /* RI: the chart box under the 總覽 top summary tiles */
.app-loading .loading-block.is-panel { height: 140px; }
.app-loading .loading-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 761px) { .app-loading .loading-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1550px) { .app-loading .loading-tiles.is-collection { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.app-loading .loading-tile { display: block; aspect-ratio: 600 / 825; border-radius: var(--kd-radius-card); }
/* 管理: the loaded inbox's boxes (app/manage/inbox/inbox.css): the 44px top row, the chip row (4 chips, 32px in a 44px line + .5rem padding), then 1.5rem-spaced queue sections; same 1040px column. No heading (the loaded page has none). */
/* 管理 has no quiet period: its sized skeleton is up at once (never a blank screen) */
.lazy-shell.is-skeleton:has(.loading-page.is-manage) { animation-delay: 0ms; }
.app-loading .loading-page.is-manage > h2 { display: none; }   /* the loaded 管理 has no visible heading (its h1 is screen-reader only) */
.app-loading .loading-manage { max-inline-size: 1040px; margin-inline: auto; display: grid; gap: 1.5rem; padding-block-start: 44px; }
.app-loading .loading-manage > i { display: block; block-size: 232px; }
.app-loading .loading-manage > i:first-child { block-size: 32px; inline-size: min(100%, 460px); border-radius: var(--kd-radius-round); margin-block: .5rem -.5rem; }
.app-loading .loading-tiles.is-catalog .loading-tile { aspect-ratio: 4 / 3; border-radius: var(--kd-radius-ui); }
.app-loading .loading-float { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.app-loading .loading-float > .loading-badge { pointer-events: auto; padding: 22px 30px; border-radius: var(--kd-radius-ui); border: 1px solid var(--vi-line); background: color-mix(in srgb, var(--vi-panel) 90%, transparent); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); }

/* ---- one loading signal (kit K6/D10): the first-load screen's signal is the K badge, so its skeleton boxes stay still; a failed load is an opaque panel and nothing behind it moves ---- */
main.collector-app.app-loading .kd-skel, main.collector-app.app-loading .kd-skel::after { animation: none; }
main.collector-app.app-loading[data-error] :is(.kd-skel, .loading-k-sheen, .loading-progress > i), main.collector-app.app-loading[data-error] .kd-skel::after { animation: none; }
.app-loading .loading-badge.is-error, .app-loading .loading-float > .loading-badge.is-error { background: var(--vi-panel); box-shadow: none; }
.app-loading .loading-badge.is-error .kd-plate { inline-size: 96px; block-size: 96px; }

/* ---- reduced motion: still delayed, but no fade, a static K, no sheen, no shimmer, a still bar ---- */
@media (prefers-reduced-motion: reduce) {
  html body main.collector-app.app-loading { animation: kd-loading-in 1ms linear 150ms both; }
  .app-loading .loading-k.kd-k-anim .k-left, .app-loading .loading-k.kd-k-anim .k-stem, .app-loading .loading-k.kd-k-anim .k-arm { animation: none; }
  .app-loading .loading-k-sheen { display: none; animation: none; }
  .app-loading .kd-skel, .app-loading .loading-line { animation: none; }
  .app-loading .loading-progress > i { animation: none; transform: none; width: 100%; opacity: .35; }
}


/* ---- the same skeleton as a tab's Suspense fallback (app/lazy-shell.tsx LazyShell, login-load): one screen tall like the text panel, fades in after --skel-delay (set by skeletonDelay()), static K ---- */
.lazy-shell.is-skeleton { display: block; padding-top: 0; color: inherit; animation: kd-loading-in 260ms var(--kd-ease) var(--skel-delay, 400ms) both; }
.lazy-shell.is-skeleton .loading-k * { animation: none; }
@media (prefers-reduced-motion: reduce) { .lazy-shell.is-skeleton { animation: kd-loading-in 1ms linear var(--skel-delay, 400ms) both; } }

/* Placeholder of a lazily loaded screen (app/lazy-shell.tsx): one screen tall, text invisible for 400 ms. */
.lazy-shell{min-height:100vh;min-height:100svh;display:grid;place-items:start center;padding-top:32vh;color:var(--vi-muted,#66707f)}
.lazy-shell p{margin:0;font-size:.9rem;opacity:0;animation:lazy-shell-in .2s ease 400ms forwards}
@keyframes lazy-shell-in{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.lazy-shell p{animation-duration:0s}}
/* Nothing after a placeholder may move when the real screen arrives (its height is not known here): everything after it in the page is invisible, not removed,
   so the layout is what it will be and a section that was never shown cannot "shift". A browser without :has() keeps the one-screen height only. */
.collector-app > :is(.lazy-shell,:has(.lazy-shell)) ~ *{visibility:hidden}
/* A chunk that could not be fetched: the same box, with the message and the reload button visible at once. */
.lazy-shell.is-failed{align-content:start;justify-items:center;gap:.75rem}
.lazy-shell.is-failed p{opacity:1;animation:none;font-size:1rem}
.lazy-toast{position:fixed;left:50%;bottom:calc(5.5rem + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:60;display:flex;gap:.75rem;align-items:center;max-width:calc(100vw - 2rem);padding:.6rem .9rem;border-radius:var(--kd-radius-ui);background:var(--vi-panel,#fff);color:inherit;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.lazy-shell.is-failed button,.lazy-toast button,.route-error button{min-height:44px;min-width:44px}
.lazy-code{font-size:.75rem;opacity:.7}
.route-error{display:grid;justify-items:center;gap:.75rem;padding:2rem 1rem}

/* Cross-market price gap. Import where MarketGapCard / MarketGapPortfolio is wired. Tokens fall back to the fx-history values. */
.mg-card,.mg-portfolio{display:grid;gap:var(--vi-space-2,.5rem);min-width:0;max-width:100%;padding-top:var(--vi-space-3,.75rem);border-top:1px solid var(--vi-line,#ccd5e0)}
.mg-card>*,.mg-portfolio>*{min-width:0}
.mg-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--vi-space-2,.5rem)}
.mg-head h3,.mg-head h4{margin:0}
.mg-quotes,.mg-rows,.mg-missing{list-style:none;margin:0;padding:0;display:grid;gap:var(--vi-space-2,.5rem)}
.mg-quote,.mg-row{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .75rem}
.mg-amount{margin-inline-start:auto}
.mg-meta,.mg-foot,.mg-sub,.mg-missing{font-size:var(--vi-type-meta,.8125rem);color:var(--vi-muted,#5a6878)}
.mg-meta{flex-basis:100%}
.mg-warning,.mg-note{margin:0}
.mg-info summary{cursor:pointer;font-size:var(--vi-type-meta,.8125rem)}
.mg-info-body p{margin:.25rem 0;font-size:var(--vi-type-meta,.8125rem)}
.mg-name{overflow-wrap:anywhere;min-width:0}
.mg-total{margin-inline-start:auto}
/* On the Overview the card frame comes from .ov-card. */
.ov-gap .mg-portfolio{border-top:0;padding-top:0}

/* "Ask my collection" panel. Import once from the layout when the panel is mounted. Mobile first; 44px touch targets; uses the ai.css tokens. */
.asst{display:grid;gap:10px;min-width:0;max-width:100%}
.asst>*{min-width:0;max-width:100%}
.asst-log{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.asst-turn{padding:10px 12px;border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);background:var(--panel,#151e2a)}
.asst-turn>small{display:block;margin-bottom:4px;font-size:12px;color:var(--muted,#aab8cb)}
.asst-user{margin-left:12%;border-color:#82b9df}
.asst-text{margin:0;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.asst-ref{min-width:24px;min-height:24px;padding:0 2px;border:0;background:transparent;color:#82b9df;font:inherit;font-size:12px;cursor:pointer}
.asst-ref:disabled{color:inherit;cursor:default}
.asst-cited ul,.asst-suggest ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.asst-chip{min-height:44px;max-width:100%;padding:6px 12px;border:1px solid var(--vi-line-strong);border-radius:var(--kd-radius-ui);background:transparent;color:inherit;font:inherit;font-size:13px;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.asst-chip:disabled{cursor:default}
.asst-coverage,.asst-meta,.asst-usage{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--muted,#aab8cb)}
.asst-form{display:grid;gap:8px}
.asst-form textarea{width:100%;box-sizing:border-box;min-height:56px;padding:10px 12px;border:1px solid var(--vi-line-strong);background:transparent;color:inherit;font:inherit;font-size:16px;resize:vertical}
.asst-wait{color:var(--muted,#aab8cb);font-size:14px}
/* Entry button (Overview header) and the sheet that hosts the chat. */
.collector-app .asst-open{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 1rem;border:1px solid var(--vi-line,var(--line,#354357));border-radius:var(--kd-radius-ui);background:transparent;font:inherit;font-size:.875rem;color:var(--vi-ink,inherit);cursor:pointer}
.asst-sheet{position:fixed;inset:5vh 20px 5vh auto;margin:0;width:min(520px,calc(100vw - 32px));max-height:90dvh;overflow:auto;overscroll-behavior:contain;padding:16px;box-sizing:border-box;color:var(--ink,inherit);background:var(--panel,#151e2a);border:1px solid var(--line,#354357);border-radius:var(--kd-radius-ui);box-shadow:0 16px 48px #0005}
.asst-sheet::backdrop{background:#0005}
.asst-sheet .notification-heading{margin-bottom:8px}
.asst-sheet .asst-form textarea{background:var(--vi-paper,transparent)}
@media(max-width:760px){.asst-sheet{inset:auto 0 0;width:100%;max-height:88dvh;border-radius:var(--kd-radius-ui) var(--kd-radius-ui) 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom))}}

/* Always loaded (the Home chip's closed summary, the unpriced link). The notification panel's own rules are alerts.css, a lazy chunk's CSS (alerts/notifications-chunk.tsx). */
.alerts-home>summary{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer}
.coverage-link{display:inline;min-height:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}

/* Share preview dialog (app/share/ShareDialog.tsx). Needs: import './share/share.css' in app/layout.tsx. */
.share-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 0; border: 1px solid var(--vi-line); border-radius: var(--kd-radius-ui); background: var(--vi-panel); color: var(--vi-ink); }
.share-modal::backdrop { background: rgba(8, 12, 18, 0.62); }
.share-body { display: grid; gap: 12px; padding: 16px; }
.share-body h3 { margin: 0; }
.share-preview { position: relative; inline-size: 100%; aspect-ratio: var(--share-ar, 4 / 5); max-block-size: min(44dvh, 480px); background: var(--vi-raised); border-radius: var(--kd-radius-ui); overflow: hidden; }
/* motion-r2a (item 7): the box has the image's final aspect from the first frame, so the arriving image moves nothing (R-UI-07); the image fades in inside it and a new one crossfades over the old (opacity only; the global reduced-motion rule zeroes the transition). */
.share-preview canvas { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; object-fit: contain; opacity: 0; transition: opacity var(--kd-dur-3) var(--kd-ease-out); }
.share-preview canvas[data-on] { opacity: 1; }
.share-preview > small { position: absolute; inset: auto 0 12px; text-align: center; }
.share-toggles { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.share-toggles label { margin-bottom: 0; }
.share-toggles legend { padding: 0; font-weight: 600; margin-bottom: 4px; }
.share-toggles label { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; min-height: 36px; text-align: left; }
.share-toggles input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; flex: none; margin: 0; padding: 0; }
.share-hint { flex-basis: 100%; color: var(--vi-muted); }
.share-toggles .share-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.share-faces-label { flex-basis: 100%; font-weight: 600; }
.share-toggles .share-faces label { min-height: 36px; gap: 6px; }
.share-toggles input[type="radio"] { width: 20px; height: 20px; min-height: 0; flex: none; margin: 0; padding: 0; }
.share-privacy, .share-note { margin: 0; color: var(--vi-muted); font-size: 0.875rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.share-actions button { min-height: 40px; }

/* 帳號 page (app/account/view.tsx), redesign A1. One centred column (max 640) on every width; groups are bordered lists of >=48px rows;
   secondary text is a one-line caption. Nothing here changes size when data loads (fixed row height, reserved caption line, fixed-size
   dialog); only the delete-account disclosure moves content below it, and only when the user opens it. */
/* Shared quiet-line pieces (app/meta/meta.tsx). Imported by the lazy page stylesheets (tools, oripa, collection list) and the account stylesheet. Tokens only. */
.collector-app .mi-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--vi-space-3); min-height: 44px; max-width: 100%; font-size: var(--vi-type-sm); line-height: 1.5; color: var(--vi-muted); }
.collector-app .mi-row--reserve { min-height: 44px; }
.collector-app .mi-items { min-width: 0; overflow-wrap: anywhere; }
.collector-app .mi-action { margin-inline-start: auto; }
.collector-app .mi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--vi-space-3); }
.collector-app .mi-head-main { min-width: 0; flex: 1 1 auto; }
.collector-app .mi-title { display: flex; align-items: center; margin: 0; }
.collector-app .mi-head-actions { flex: none; display: flex; align-items: center; gap: var(--vi-space-2); }
/* the ⓘ popover (same behaviour as .cd-i in card-detail.css, which only loads with the card detail) */
.collector-app .mi-tip { display: inline-block; position: relative; vertical-align: middle; font-size: var(--vi-type-sm); font-weight: 400; }
.collector-app .mi-tip > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--vi-target); min-height: var(--vi-target); cursor: pointer; color: var(--vi-muted); }
.collector-app .mi-tip > summary::-webkit-details-marker { display: none; }
.collector-app .mi-tip > summary:hover, .collector-app .mi-tip[open] > summary { color: var(--vi-ink); }
.collector-app .mi-tip > .info-tip-body { position: fixed; z-index: 80; top: 0; left: 0; box-sizing: border-box; width: max-content; max-width: min(340px, calc(100vw - 32px)); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 10px 12px; border: 1px solid var(--vi-line-strong); background: var(--vi-raised, var(--vi-panel)); color: var(--vi-muted); line-height: 1.6; text-align: left; white-space: normal; font-weight: 400; }
.collector-app .mi-tip > .info-tip-body > :first-child { margin-top: 0; }
.collector-app .mi-tip > .info-tip-body > :last-child { margin-bottom: 0; }
.collector-app .mi-tip > .info-tip-body :is(p, dd, strong) { color: var(--vi-ink); }
/* button + inline ⓘ on one row (匯入 / AI panels), ⓘ after a title / legend, popover-held raw text */
.collector-app :is(h2, h3, legend, b, .cf-label) > .mi-tip { margin-inline-start: 2px; }
.collector-app .mi-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vi-space-2); }
.collector-app .mi-btn-row > .mi-tip { flex: none; }
.collector-app .mi-pop-ocr { margin-top: var(--vi-space-2); }
/* the card form's field look rides here, with the lazy form (first-load budget) */
/* U24: the form's selects are the same 48px box as its inputs, not a 26-29px native glossy pill; the chevron is drawn, the phone's own picker still opens. globals.css sets `background` with !important, hence the !important here */
.collector-app .card-form select { appearance: none; -webkit-appearance: none; box-sizing: border-box; min-block-size: 48px; padding: 0 36px 0 14px; background: linear-gradient(45deg, transparent 50%, var(--vi-muted) 50%) calc(100% - 20px) 50% / 6px 6px no-repeat, linear-gradient(135deg, var(--vi-muted) 50%, transparent 50%) calc(100% - 14px) 50% / 6px 6px no-repeat, var(--vi-panel) !important; }
/* U23: the 74px reserved for the 金額已隱藏 notice is blank in a form that is not hidden */
.collector-app .card-form .ha-slot[data-hidden="false"]{min-block-size:0}
/* G2: a field is as wide as what goes in it, on every screen (the form used to stretch a cert to 1133px) */
.card-form input[data-edit-field=cert]{max-width:min(100%,22ch)}.card-form input[data-edit-field=grade]{max-width:min(100%,12ch)}.card-form input[data-edit-field=cost]{max-width:min(100%,16ch)}.card-form input[data-edit-field=date]{max-width:min(100%,20ch)}.card-form select[data-edit-field=grader],.card-form .cf-cost select{max-width:min(100%,12ch)}
html .card-form .two.cf-cost{grid-template-columns:repeat(2,minmax(0,max-content));justify-content:start}

.account-page{max-width:640px;margin:0 auto;padding:var(--vi-space-4,16px);display:grid;gap:var(--vi-space-3,12px);box-sizing:border-box}
.account-profile{margin:0;display:flex;align-items:center;gap:var(--vi-space-4,16px);padding:var(--vi-space-4,16px);border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui);background:var(--vi-panel)}
.account-avatar{border-radius:var(--kd-radius-round);object-fit:cover;flex:none}
.account-avatar-initial{display:inline-grid;place-items:center;background:var(--vi-raised);color:var(--vi-ink);font-weight:600;font-size:1.5rem}
.account-avatar-edit{position:relative;flex:none;display:inline-grid;padding:0;border:0;background:none;border-radius:var(--kd-radius-round);cursor:pointer;min-width:64px;min-height:64px}
.account-avatar-camera{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:24px;height:24px;border-radius:var(--kd-radius-round);background:var(--vi-ink);color:var(--vi-paper);border:2px solid var(--vi-panel)}
.account-identity{display:grid;gap:2px;min-width:0}
.account-identity b{display:flex;align-items:center;gap:var(--vi-space-2,8px);min-width:0;overflow-wrap:anywhere}
.account-identity small{color:var(--vi-muted);overflow:hidden;text-overflow:ellipsis}
.account-badge{flex:none;padding:1px 8px;border:1px solid var(--vi-line-strong);border-radius:var(--kd-radius-ui);color:var(--vi-muted);font-size:var(--vi-type-sm);font-weight:500}
.account-avatar-button{display:inline-grid;place-items:center;padding:0;border:0;background:none;border-radius:var(--kd-radius-round);min-width:var(--vi-target);min-height:var(--vi-target);cursor:pointer}
.account-caption{margin:0;min-height:1.4em;padding:0 var(--vi-space-1,4px);color:var(--vi-muted);font-size:var(--vi-type-sm)}
:root[data-flavor='muse'] .account-group .account-caption{min-block-size:2lh}
.account-group{display:grid;gap:var(--vi-space-1,4px)}
.account-group-title{margin:var(--vi-space-2,8px) var(--vi-space-1,4px) 0;font-size:var(--vi-type-sm);font-weight:600;color:var(--vi-muted)}
.account-rows{border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui);background:var(--vi-panel);overflow:hidden}
.account-row{display:flex;align-items:center;gap:var(--vi-space-3,12px);box-sizing:border-box;width:100%;min-height:48px;padding:0 var(--vi-space-4,16px);border:0;border-top:1px solid var(--vi-line);border-radius:0;background:none;color:var(--vi-ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer;position:relative}
.account-rows>.account-row:first-child{border-top:0}
.account-row-label{flex:1;min-width:0}
.account-row-value{flex:none;min-width:3.5em;text-align:right;color:var(--vi-muted);font-variant-numeric:tabular-nums}
.account-row-value[aria-busy="true"]{background:linear-gradient(var(--vi-line),var(--vi-line)) right center / 3.5em .65em no-repeat}
.account-chevron{flex:none;color:var(--vi-muted);font-size:1.25rem;line-height:1}
.account-import{margin:0;flex-direction:row}
.account-import input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.account-import:focus-within{outline:2px solid var(--vi-marker);outline-offset:-3px}
.account-switch{flex:none;display:inline-flex;align-items:center;justify-content:flex-end;width:52px;min-height:44px;padding:0;border:0;background:none;cursor:pointer}
.account-switch>span{position:relative;width:44px;height:26px;border:1px solid var(--vi-line-strong);border-radius:var(--kd-radius-ui);background:var(--vi-raised);box-sizing:border-box}
.account-switch>span::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:var(--kd-radius-round);background:var(--vi-muted)}
.account-switch[aria-checked="true"]>span{background:var(--vi-accent);border-color:var(--vi-accent)}
.account-switch[aria-checked="true"]>span::after{left:20px;background:var(--vi-paper)}
.account-switch:disabled{cursor:default}
.account-switch:disabled:not([aria-checked="true"]){opacity:.5}
.account-meter{flex:none;width:72px;height:6px;border-radius:var(--kd-radius-ui);background:var(--vi-raised);overflow:hidden}
.account-meter>span{display:block;height:100%;background:var(--vi-ink)}
.account-signout{justify-content:center;border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui);background:var(--vi-panel);font-weight:600}
.account-actions{display:flex;flex-wrap:wrap;gap:var(--vi-space-2,8px)}
.account-danger{margin-top:var(--vi-space-4,16px);border:1px solid var(--vi-danger);border-radius:var(--kd-radius-ui)}
.account-danger>summary{display:flex;align-items:center;min-height:48px;padding:0 var(--vi-space-4,16px);cursor:pointer;color:var(--vi-danger);font-weight:600}
.account-danger-body{display:grid;gap:var(--vi-space-2,8px);padding:0 var(--vi-space-4,16px) var(--vi-space-4,16px)}
.account-danger-body h3{margin:0;font-size:var(--vi-type-body)}
.account-danger-body p{margin:0}
.account-confirm{display:grid;gap:4px}
.account-delete{justify-self:start;background:var(--vi-danger);color:var(--vi-paper);border:0;border-radius:var(--kd-radius-ui);padding:8px 14px;min-height:44px}
.account-delete:disabled{opacity:.5;cursor:not-allowed}
/* Profile-picture crop dialog: fixed-size overlay. */
.account-crop-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:var(--vi-space-4,16px);background:var(--vi-overlay)}
.account-crop{display:grid;justify-items:center;gap:var(--vi-space-3,12px);box-sizing:border-box;width:min(100%,320px);padding:var(--vi-space-4,16px);border:1px solid var(--vi-line);border-radius:var(--kd-radius-ui);background:var(--vi-panel);color:var(--vi-ink)}
.account-crop h3{margin:0;font-size:var(--vi-type-body)}
.account-crop-stage{position:relative;border-radius:var(--kd-radius-ui);overflow:hidden;background:var(--vi-art-well)}
.account-crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.account-crop-ring{position:absolute;inset:0;border-radius:var(--kd-radius-round);box-shadow:0 0 0 999px var(--vi-overlay);pointer-events:none}
.account-crop-zoom{display:grid;gap:4px;width:100%}
.account-crop-actions{display:flex;gap:var(--vi-space-2,8px);justify-content:flex-end;width:100%}
.account-crop-actions button{min-height:44px;padding:0 var(--vi-space-4,16px)}
/* Header: bell + avatar stay on one row (390px wrapped the avatar under the bell). */
.header-notifications{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
/* Phones: no header avatar (it pushed 新增卡片 over the wordmark at <=430px); 帳號 is the first row in 我的 instead. */
@media(max-width:760px){
 .header-notifications .account-avatar-button{display:none}
 :root[data-flavor='muse'] .account-group .account-caption{min-block-size:3lh}
}

.account-group-title{display:flex;align-items:center}

/* 「回報問題／建議」 sheet (app/beta/feedback-ui.tsx). The floating launcher is gone (redesign R1); entry points are the 我的 row and the desktop footer link. */
.feedback-sheet{width:min(92vw,440px);max-height:86dvh;overflow:auto;padding:var(--vi-space-4,16px);border:1px solid var(--vi-border,rgba(127,127,127,.3));border-radius:var(--kd-radius-ui);background:var(--vi-panel,#fff);color:var(--vi-ink,inherit)}
.feedback-sheet::backdrop{background:rgba(2,8,17,.55)}
.feedback-sheet h2{margin:0 0 var(--vi-space-2,8px);font-size:var(--vi-type-title,1.2rem)}
.feedback-sheet form{display:grid;gap:var(--vi-space-2,8px)}
.feedback-sheet label{display:grid;gap:4px}
.feedback-sheet textarea{width:100%;box-sizing:border-box;font:inherit;resize:vertical;min-height:7em}
.feedback-sheet small{color:var(--vi-muted,inherit)}
.feedback-actions{display:flex;justify-content:flex-end;gap:var(--vi-space-2,8px);margin-top:var(--vi-space-2,8px)}

/* Analysis IA release: the 分析 page (lazy: rides with its chunk, app/analysis-page-css.ts). */
/* the segment row: the switch on the left, the meta line + 篩選 + the eye on the right (wraps under the switch on a phone); the switch keeps its 16px bottom margin, so the row has the height the reserved box has */
.collector-app .an-page .an-bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0 1rem; margin-bottom: .25rem; }
.collector-app .an-page .an-bar > .ts-switch { flex: 1 1 22rem; width: auto; }
.collector-app .an-page .an-tools { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 0 .5rem; min-height: 52px; margin-inline-start: auto; }
.collector-app .an-page .an-meta { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; min-width: 0; gap: 0 .25rem; min-height: 44px; margin: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .an-meta-item { display: inline-flex; align-items: center; gap: .125rem; white-space: nowrap; }
.collector-app .an-page .an-meta .coverage-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.collector-app .an-page .ov-info > summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.collector-app .an-page .an-wide { padding: 0 1.25rem 1rem; }
.collector-app .an-page .an-seg > .an-wide { margin-top: .75rem; }
.collector-app .an-page .an-wide.vi-overview-accounting > .ov-head, .collector-app .an-page .an-wide.ov-fxdetail > .ov-head { padding: 0; }
.collector-app .an-page .an-fig-label { font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .ov .ov-oripa > .ov-head .oripa-direct-link { min-height: 44px; margin: 0; padding: 0 .25rem; color: var(--vi-accent); font-size: var(--vi-type-sm); text-decoration: none; white-space: nowrap; }
.collector-app .an-page .sales-title { margin: .75rem 0 .25rem; font-size: var(--vi-type-base); }
.collector-app .an-page .an-stack { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .125rem .75rem; }   /* R3: label and figure share one line when they fit; the figure reserves 13ch shown or masked, so both states wrap at the same width */
.collector-app .an-page .an-stack > strong { white-space: nowrap; min-inline-size: 13ch; text-align: end; }   /* label line + value line: the line count is the same whether the figure is shown or masked */
/* 依幣別 (app/overview/by-currency.tsx): one table, a muted sub-row per currency. Amount columns reserve a CONSTANT slot (never from the value), so hidden and shown are the same width and nothing moves when the eye toggles. */
.collector-app .ov .bc-unit { display: flex; align-items: center; gap: .25rem; min-height: 44px; margin: 0; }
.collector-app .ov .bc-table { width: 100%; max-width: 46rem; min-width: 0; border-collapse: collapse; font-size: var(--vi-type-sm); font-variant-numeric: tabular-nums; }
.collector-app .ov .bc-table :is(th, td) { padding: .5rem 0; white-space: nowrap; text-align: left; border: 0; }
.collector-app .ov .bc-table thead th { font-weight: 500; color: var(--vi-muted); border-bottom: 1px solid var(--vi-line); }
.collector-app .ov .bc-table .metric-cell { text-align: right; padding-inline-start: .375rem; }
.collector-app .ov .bc-table td.num .kd-amount { --kd-amount-slot: 8ch; }
.collector-app .ov .bc-cur { --kd-amount-slot: 4ch; }   /* a currency code: the mask takes the room of the code (constant, never from the value) */
.collector-app .ov .bc-scroll { overflow-x: auto; }   /* a ledger of very large amounts scrolls inside its panel instead of widening the page */
.collector-app .ov .bc-table tbody th { font-weight: 600; }
.collector-app .ov .bc-chart { display: flex; justify-content: center; margin: .25rem 0 .5rem; }
.collector-app .ov .bc-donut { width: clamp(9rem, 14vw, 13rem); height: clamp(9rem, 14vw, 13rem); }   /* same box shown or hidden, so the eye moves nothing */
.collector-app .ov .bc-donut::after { inset: 28%; }
.collector-app .ov .bc-detail { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .ov .bc-detail b { color: var(--vi-ink); }
.collector-app .ov .bc-table tbody th .ov-sw { margin-inline-end: .5rem; }
.collector-app .ov .bc-table tbody tr { border-bottom: 1px solid var(--vi-line); }
.collector-app .ov .bc-table tbody :is(th, td) { padding: .625rem 0; }
.collector-app .ov .bc-table .bc-total :is(th, td) { padding-top: .625rem; font-weight: 600; }
.collector-app .ov section.ov-fxdetail .fxh-panel { margin-top: 1.5rem; }   /* the panel is the one heading under the table now (its separate sub-heading was removed): it keeps the air that sub-heading gave; one more type selector outranks the margin reset in redesign-overview.css */
/* 分類明細 (app/fx-history/panel-view.tsx): five columns, no inner scroll. The amount columns keep their natural (nowrap) width and the first column takes the rest and wraps a long shop name (same lines shown or hidden); masks are one constant-width literal, so hidden and shown lay out alike. */
.collector-app .ov .fxh-bd { width: 100%; border-collapse: collapse; font-size: var(--vi-type-sm); font-variant-numeric: tabular-nums; }
.collector-app .ov .fxh-bd :is(th, td) { padding: .5rem 0 .5rem .375rem; text-align: right; vertical-align: top; white-space: nowrap; border: 0; border-bottom: 1px solid var(--vi-line); }
.collector-app .ov .fxh-bd thead th { font-weight: 500; color: var(--vi-muted); }
.collector-app .ov .fxh-bd :is(th, td):first-child { width: 100%; max-width: 0; padding-inline-start: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; font-weight: 600; }
.collector-app .ov .fxh-bd thead th:first-child { font-weight: 500; }
.collector-app .ov .fxh-bd td small { display: block; color: inherit; opacity: .8; }   /* the % under the P&L figure: same tone, a step quieter */

/* 分析 regroup (績效 | 收藏配置 | 購入與 Oripa). Segments are blocks in a grid whose columns come from the container (auto-fit, no viewport @media): they sit side by side when there is room and stack on a phone. Rows of a block stretch, so a short block is as tall as its neighbour. */
.collector-app .an-page .an-seg { display: grid; gap: .75rem; min-width: 0; }
.collector-app .an-page .an-blocks { display: grid; gap: .75rem; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); min-width: 0; }
.collector-app .an-page .an-blocks > * { min-width: 0; margin: 0; }
.collector-app .an-page .an-block { padding: .75rem 1rem; background: var(--vi-panel); border: 1px solid var(--vi-line); border-radius: .75rem; }
.collector-app .an-page .an-block > .ov-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; }
.collector-app .an-page .an-block > .ov-head h3 { margin: 0; }
.collector-app .an-page .an-hint { display: flex; align-items: center; min-height: 44px; margin: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }   /* an empty chart or list: ONE line with the count so far, never a drawn empty box */
/* 績效: the two columns end where their own content ends (no card is stretched into an empty tail); the cards are placed so the two heights are close. */
.collector-app .an-page .ov-grid[data-seg] { align-items: start; }
.collector-app .an-page .ov-gap .mg-portfolio { margin: 0; padding: 0; border: 0; background: transparent; }   /* the gap card is already a card: no second box inside it */
.collector-app .an-page .an-fig.pnl-summary { grid-template-columns: minmax(0, 1fr); padding-inline: 0; border-radius: 0; background: transparent; }   /* label line, then the figure line, shown or hidden: a long figure can no longer wrap the label (the box height is the same in both modes) */
/* 收藏配置 → 依幣別: on a wide card the donut sits beside the table, which takes the rest of the width. */
.collector-app .ov .ov-fxdetail { container-type: inline-size; }
@container (min-width: 40rem) { .collector-app .ov .bc-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 2rem; align-items: center; } .collector-app .ov .bc-wrap > .bc-unit { grid-column: 1 / -1; } .collector-app .ov .bc-wrap > .bc-chart { grid-column: 1; grid-row: 2; } .collector-app .ov .bc-wrap > .bc-scroll { grid-column: 2; grid-row: 2; } .collector-app .ov .bc-table { max-width: none; } }
/* 收藏焦點 rows wrap inside the panel: name line, then the price line (never wider than the panel, phone included). */
.collector-app .an-page .focus-row { flex-wrap: wrap; min-width: 0; }
.collector-app .an-page .focus-row > .focus-name { flex: 1 1 10rem; min-width: 0; text-align: start; }
.collector-app .an-page .focus-row > div { min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 30rem) { .collector-app .an-page .focus-row > div { flex: 1 1 100%; text-align: start; } .collector-app .an-page .focus-row > div > button { margin-top: 0; } }
/* phone summary rows (app/overview/summary-rows.tsx): the table shows from 30rem of its own container; below that the rows do. */
.collector-app .ov .sr-list { display: none; margin: 0; padding: 0; list-style: none; }
/* R3: the app-wide `details { padding: 15px 0; border-bottom }` drew a second ruled line and a blank band under every row; the row's summary owns the rule. The chevron says the row opens (張, 成本 and 損益 live inside) */
.collector-app .ov .sr-row { padding: 0; border: 0; }
.collector-app .ov .sr-row > summary::after { content: ""; flex: none; width: .4375rem; height: .4375rem; margin-inline-end: .25rem; border-block-end: 1.5px solid var(--vi-muted); border-inline-end: 1.5px solid var(--vi-muted); transform: rotate(-45deg); }
.collector-app .ov .sr-row[open] > summary::after { transform: rotate(45deg); }
.collector-app .ov .sr-row > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; padding: 0; cursor: pointer; list-style: none; border-bottom: 1px solid var(--vi-line); font-size: var(--vi-type-sm); }
.collector-app .ov .sr-row > summary::-webkit-details-marker { display: none; }
.collector-app .ov .sr-row > summary:focus-visible { outline: 2px solid var(--vi-marker); outline-offset: -2px; }
.collector-app .ov .sr-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.collector-app .ov .sr-main { flex: none; margin-inline-start: auto; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.collector-app .ov .sr-main small { display: block; opacity: .8; }
.collector-app .ov .sr-body { display: grid; gap: .25rem; margin: 0; padding: .5rem 0 .75rem; font-size: var(--vi-type-sm); }
.collector-app .ov .sr-body > div { display: flex; justify-content: space-between; gap: .75rem; }
.collector-app .ov .sr-body dt { color: var(--vi-muted); }
.collector-app .ov .sr-body dd { margin: 0; font-variant-numeric: tabular-nums; }
.collector-app .ov .sr-row .kd-amount { --kd-amount-slot: 8ch; }
.collector-app .ov .bc-wrap, .collector-app .ov .fxh-breakdown { container-type: inline-size; }
@container (max-width: 30rem) { .collector-app .ov .sr-list { display: block; } .collector-app .ov .bc-scroll, .collector-app .ov .fxh-bd { display: none; } }
/* 分析 amounts that used to be bare mask strings: each is one <Amount> in a CONSTANT slot (components.css --kd-slot-*), so hiding never resizes the row, column or badge beside it */
.collector-app .ov .snapshot-table td .kd-amount { --kd-amount-slot: var(--kd-slot-value); text-align: start; }
.collector-app .an-page .focus-row .kd-amount { --kd-amount-slot: var(--kd-slot-value); text-align: end; }
.collector-app .an-page .focus-name .kd-amount { text-align: start; }
.collector-app .ov .ov-held .ov-num { display: inline-block; min-inline-size: var(--kd-slot-value); }   /* number-notes.tsx prints a bare string; a constant box keeps the shown and masked width the same */
.collector-app .ov .fxh-bd td .kd-amount { --kd-amount-slot: 8ch; text-align: end; }
.collector-app .ov .fxh-cur { --kd-amount-slot: 4ch; }
.collector-app .ov .fxh-summary .kd-amount { --kd-amount-slot: var(--kd-slot-signed); text-align: end; }
/* the filter button never wraps its two letters; the meta line gives way instead (it wraps to two lines before the button does) */
.collector-app .an-page .an-tools .ov-controls { flex: none; }
.collector-app .an-page .an-tools .ov-controls .ov-filters > summary { white-space: nowrap; }
/* the meta line on a phone: the separators leave (they could wrap onto a line by themselves); the items keep their gap and wrap whole, never a dangling · or an ⓘ without its label */
@container (max-width: 30rem) {
  .collector-app .an-page .an-meta { justify-content: flex-start; column-gap: .75rem; }
  .collector-app .an-page .an-meta-sep { display: none; }
}


/* 分析 > 收藏配置: the 收藏組成 heading and the 系列收藏進度 block (lazy: imported by app/analysis-page-css.ts). Tokens only. */
/* 收藏組成 / 系列收藏進度 now live in app/analysis/statement.css (Direction A); nothing else is left here. */

/* 分析 › 績效 「對帳單」 (Direction A, 2026-10-29). Lazy 分析 chunk only (imported by app/analysis-page-css.ts), never first load. Tokens only. */
.collector-app .an-page .st-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; grid-auto-flow: row dense; min-width: 0; }
.collector-app .an-page .st-slot { min-width: 0; }
/* a row's blocks share one height (no ragged bottom edges); the content of a shorter block is centred, its meta row stays at the foot */
.collector-app .an-page .st-slot > .st-block { box-sizing: border-box; height: 100%; display: flex; flex-direction: column; }
.collector-app .an-page .st-slot > .st-block > .st-meta { margin-top: auto; }
.collector-app .an-page .st-span-12 { grid-column: span 12; }
.collector-app .an-page .st-span-6 { grid-column: span 6; }
.collector-app .an-page .st-block { position: relative; padding: 20px; background: var(--vi-panel); border: 1px solid var(--vi-line); border-radius: 6px; min-width: 0; font-variant-numeric: tabular-nums; }
.collector-app .an-page .st-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; }
.collector-app .an-page .st-title { display: inline-flex; align-items: center; gap: 0; min-width: 0; }
.collector-app .an-page .st-title .ov-info > summary { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; margin: 0 0 0 -.5rem; }
.collector-app .an-page .st-title h3 { margin: 0; font-size: calc(var(--vi-type-2xl) * .53125); font-weight: 600; letter-spacing: -.01em; }
.collector-app .an-page .st-block .ov-info { position: static; flex: none; }
.collector-app .an-page .st-block .ov-info-body { position: absolute; z-index: 6; inset-inline: 0; top: 100%; max-height: 60vh; overflow-y: auto; }
.collector-app .an-page .st-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; margin: .5rem 0 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-empty { margin: 0; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .an-page .st-empty-block { display: flex; align-items: center; min-height: 5.5rem; }
.collector-app .an-page .gain { color: var(--vi-gain); }
.collector-app .an-page .loss { color: var(--vi-loss); }
/* 資產走勢 */
.collector-app .an-page .st-hl-label { font-size: var(--vi-type-sm); color: var(--vi-muted); white-space: nowrap; }
.collector-app .an-page .st-pct { font-size: var(--vi-type-sm); }
.collector-app .an-page .st-num .kd-amount { --kd-amount-slot: 10ch; }
.collector-app .an-page .st-chart { flex: none; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); height: 13.75rem; margin-top: .75rem; padding-inline-end: .75rem; padding-bottom: 1.5rem; box-sizing: content-box; }
.collector-app .an-page .st-chart.is-empty { display: block; padding: 0; }
.collector-app .an-page .st-yaxis { position: relative; }
.collector-app .an-page .st-ylab { position: absolute; inset-inline: 0 .5rem; text-align: end; transform: translateY(-50%); font-size: var(--vi-type-xs); color: var(--vi-muted); white-space: nowrap; }
.collector-app .an-page .st-plot { position: relative; min-width: 0; }
.collector-app .an-page .st-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.collector-app .an-page .st-grid-line { stroke: var(--vi-line); stroke-width: 1; opacity: .7; }
.collector-app .an-page .st-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-sizing: border-box; }
.collector-app .an-page .st-dot.is-value { background: var(--vi-gain); }
.collector-app .an-page .st-dot.is-cost { background: var(--vi-panel); border: 2px solid var(--vi-series-cost); }
.collector-app .an-page .st-dot.is-small { width: 6px; height: 6px; background: var(--vi-gain); }
.collector-app .an-page .st-dl { position: absolute; inset-inline-end: 14px; font-size: var(--vi-type-xs); white-space: nowrap; text-align: end; color: var(--vi-ink); }
.collector-app .an-page .st-dl.is-value { transform: translateY(calc(-100% - 8px)); }
.collector-app .an-page .st-dl.is-cost { transform: translateY(8px); color: var(--vi-muted); }
.collector-app .an-page .st-dl .kd-amount { --kd-amount-slot: 9ch; text-align: end; }
.collector-app .an-page .st-plot { touch-action: pan-y; }
.collector-app .an-page .st-plot:focus-visible { outline: 3px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .an-page .st-guide { position: absolute; inset-block: 0; width: 0; border-inline-start: 1px dashed var(--vi-line-strong); pointer-events: none; }
.collector-app .an-page .st-dot.is-active { width: 12px; height: 12px; z-index: 1; }
.collector-app .an-page .st-tip { position: absolute; top: 0; z-index: calc(var(--kd-z-base) + 1); display: grid; gap: 2px; min-width: 9rem; max-width: 60%; padding: .375rem .5rem; margin-inline-start: 10px; border: 1px solid var(--vi-line-strong); border-radius: 6px; background: var(--vi-panel); color: var(--vi-ink); font-size: var(--vi-type-xs); white-space: nowrap; pointer-events: none; }
.collector-app .an-page .st-tip.is-left { transform: translateX(calc(-100% - 20px)); }
.collector-app .an-page .st-tip .kd-amount { --kd-amount-slot: 9ch; text-align: start; }
.collector-app .an-page .st-tip-date { font-weight: 600; }
.collector-app .an-page .st-tip-clear { position: relative; justify-self: end; min-height: 24px; padding: 0 .25rem; border: 0; background: transparent; color: var(--vi-accent); font: inherit; cursor: pointer; pointer-events: auto; }
.collector-app .an-page .st-tip-clear::after { content: ""; position: absolute; inset: -10px -8px; }   /* kit-money K2: 44 px hit area, same look */
.collector-app .an-page .st-xaxis { position: absolute; inset-inline: 0; top: 100%; height: 1.5rem; }
.collector-app .an-page .st-xt { position: absolute; top: .375rem; transform: translateX(-50%); font-size: var(--vi-type-xs); color: var(--vi-muted); white-space: nowrap; }
/* 儲存本週快照 is a skewed secondary .kd-btn (R2): box, fill and outline come from .kd-btn */
.collector-app .an-page .st-save { flex: none; font-size: var(--vi-type-sm); }
.collector-app .an-page .st-trend .snapshot-table { margin-top: .5rem; }
.collector-app .an-page .st-trend .snapshot-table .kd-amount { --kd-amount-slot: var(--kd-slot-value); text-align: start; }
/* 分組報酬 table cells */
.collector-app .an-page .st-table { margin-top: .25rem; }
.collector-app .an-page .st-th .art-card-ph .ph-chips { display: none; }
.collector-app .an-page .st-cell { text-align: end; min-width: 0; }
.collector-app .an-page .st-cell.st-name { text-align: start; }
.collector-app .an-page .st-name b { display: block; font-weight: 600; }
.collector-app .an-page .st-name small { display: block; white-space: nowrap; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-cell .kd-amount { --kd-amount-slot: 9ch; text-align: end; }
.collector-app .an-page .st-name .kd-amount { --kd-amount-slot: 8ch; text-align: start; }
/* 本月變動拆解 */
.collector-app .an-page .st-bridge-body { min-height: 6.5rem; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.collector-app .an-page .st-bar { display: flex; align-items: center; gap: 2px; height: 20px; margin: 1.25rem 0 .75rem; }
.collector-app .an-page .st-half { flex: 1 1 0; display: flex; gap: 2px; min-width: 0; }
.collector-app .an-page .st-spacer { min-width: 0; }
.collector-app .an-page .st-seg { display: block; height: 12px; border-radius: 2px; min-width: 0; }
.collector-app .an-page .st-zero { flex: none; width: 2px; height: 20px; background: var(--vi-ink); opacity: .6; }
.collector-app .an-page :is(.st-seg, .st-sq).is-gain { background: var(--vi-gain); }
.collector-app .an-page :is(.st-seg, .st-sq).is-loss { background: var(--vi-loss); }
.collector-app .an-page :is(.st-seg, .st-sq).is-added { background: color-mix(in srgb, var(--vi-accent) 50%, var(--vi-muted)); }
.collector-app .an-page :is(.st-seg, .st-sq).is-other { background: var(--vi-muted); opacity: .7; }
.collector-app .an-page .st-figs { font-size: var(--vi-type-sm); display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; }
.collector-app .an-page .st-sq { display: inline-block; width: 8px; height: 8px; margin-inline-end: .375rem; border-radius: 1px; }
.collector-app .an-page .st-sum { margin-inline-start: auto; font-weight: 600; }
.collector-app .an-page .st-figs .kd-amount { --kd-amount-slot: 8ch; text-align: start; }
/* 本月貢獻 */
.collector-app .an-page .st-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.collector-app .an-page .st-mlist + .st-mlist { padding-inline-start: 24px; border-inline-start: 1px solid var(--vi-line); margin-inline-start: -12px; }
.collector-app .an-page .st-mlist h4 { margin: 0; font-size: var(--vi-type-sm); font-weight: 600; color: var(--vi-muted); }
.collector-app .an-page .st-block :is(ol) { margin: 0; padding: 0; list-style: none; }
.collector-app .an-page .st-block li { border-top: 1px solid var(--vi-line); }
.collector-app .an-page .st-move { display: grid; grid-template-columns: 1.25rem 2.25rem minmax(0, 1fr) auto; align-items: center; column-gap: .5rem; width: 100%; min-height: 56px; padding: .25rem 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.collector-app .an-page .st-th { display: block; width: 2.25rem; aspect-ratio: 63 / 88; overflow: hidden; }
.collector-app .an-page .st-th .kd-art .card-visual.is-clean { padding: 0; box-shadow: 0 0 0 1px var(--vi-line, var(--line)); }
.collector-app .an-page .st-rank { color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .an-page .st-mid { display: grid; align-content: center; row-gap: 4px; min-width: 0; }
.collector-app .an-page .st-mname { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.collector-app .an-page .st-msub { display: flex; align-items: center; gap: .5rem; min-width: 0; }
@container (max-width: 45rem) { .collector-app .an-page .st-mname { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } }
.collector-app .an-page .st-chip { --kd-chip-fg: var(--vi-muted); } /* the shape is .kd-chip (kit K1) */
.collector-app .an-page .st-mamt { display: grid; justify-items: end; }
.collector-app .an-page .st-mamt small { font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-mamt .kd-amount { --kd-amount-slot: 8ch; text-align: end; }
.collector-app .an-page .st-all > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-all > summary:hover { color: var(--vi-ink); }
/* 分組報酬 */
.collector-app .an-page .st-grow { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 10rem) 4rem 3.5rem; justify-content: start; column-gap: 1rem; align-items: center; column-gap: .5rem; min-height: 44px; padding-block: .375rem; border-top: 1px solid var(--vi-line); }
.collector-app .an-page .st-grow.st-thead { min-height: 32px; padding-block: 0; border-top: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-gtable { min-height: 11.5rem; max-width: 35rem; }
.collector-app .an-page .st-g-bar { display: block; min-width: 0; }
.collector-app .an-page .st-gdetail { width: 100%; margin-top: .5rem; border-collapse: collapse; font-size: var(--vi-type-sm); }
.collector-app .an-page .st-gdetail th, .collector-app .an-page .st-gdetail td { padding: .125rem .5rem; text-align: end; } .collector-app .an-page .st-gdetail tbody th { text-align: start; font-weight: 400; }
.collector-app .an-page .st-g-n { white-space: nowrap; }
.collector-app .an-page .st-g-n small, .collector-app .an-page .st-fpnl small { display: inline; }
.collector-app .an-page .st-g-n small { color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .an-page .st-g-roi { display: flex; align-items: center; justify-content: flex-end; min-width: 0; text-align: end; }
.collector-app .an-page .st-g-n { text-align: end; }
.collector-app .an-page .st-rnum { position: relative; z-index: 1; padding-inline: .25rem; }
.collector-app .an-page .st-rbar { display: block; height: 4px; max-width: 100%; border-radius: 2px; background: var(--vi-gain); }
.collector-app .an-page .st-rbar.is-loss { background: var(--vi-loss); }
.collector-app .an-page .st-g-roi .kd-amount { --kd-amount-slot: 9ch; }
/* 卡價與匯率 */
.collector-app .an-page .st-fx-body { min-width: 0; }
.collector-app .an-page .st-hbar { display: flex; height: 12px; margin: .5rem 0 .75rem; border-radius: 2px; background: color-mix(in srgb, var(--vi-line) 60%, transparent); overflow: hidden; }
.collector-app .an-page .st-hbar .st-seg { height: 12px; border-radius: 0; flex: none; }
.collector-app .an-page :is(.st-seg, .st-sq).is-fx { background: var(--ov-c2); }
.collector-app .an-page .st-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.collector-app .an-page .st-fxchip { --kd-chip-fg: var(--vi-muted); font-size: var(--vi-type-sm); } /* the shape is .kd-chip (kit K1) */
.collector-app .an-page .st-fxcode { display: inline-block; min-width: 4ch; }
.collector-app .an-page .st-fxrate { display: inline-block; min-width: 6ch; text-align: end; }
/* 收藏焦點 */
.collector-app .an-page .st-head select { min-height: 44px; width: auto; max-width: 12rem; }
.collector-app .an-page .st-flist { min-height: 15rem; }
.collector-app .an-page .st-frow { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; column-gap: .75rem; width: 100%; min-height: 48px; padding: .25rem 0; border: 0; border-top: 1px solid var(--vi-line); background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.collector-app .an-page .st-thumb { display: block; width: 2rem; height: 2.75rem; overflow: hidden; }
.collector-app .an-page .st-thumb .card-visual { padding: 0; }
.collector-app .an-page .st-fmid { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.collector-app .an-page .st-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collector-app .an-page .st-fright { display: grid; justify-items: end; min-width: 8rem; }
.collector-app .an-page .st-fval { color: var(--vi-ink); }
.collector-app .an-page .st-fpnl { font-size: var(--vi-type-sm); white-space: nowrap; }
.collector-app .an-page .st-fpnl small { margin-inline-start: .25rem; font-size: inherit; }
.collector-app .an-page .st-fval .kd-amount, .collector-app .an-page .st-fpnl .kd-amount { --kd-amount-slot: 9ch; text-align: end; }
/* 跨市場價差 */
.collector-app .an-page .st-gaprow { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: 0 20px; border: 1px solid var(--vi-line); border-radius: 6px; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-gaprow .st-title h3 { font-size: var(--vi-type-sm); }
.collector-app .an-page .st-gaprow .ov-info { position: static; flex: none; }
.collector-app .an-page .st-gaprow .ov-info-body { position: absolute; z-index: 6; inset-inline: 0; top: 100%; padding: .75rem 1rem; background: var(--vi-panel); border: 1px solid var(--vi-line); border-radius: 6px; color: var(--vi-ink); }
.collector-app .an-page .st-gaprow .ov-info-body p { margin: 0 0 .5rem; }
.collector-app .an-page .st-gaprow .st-title .ov-info > summary { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; margin: 0 0 0 -.5rem; }
.collector-app .an-page .st-gapwhy { min-width: 0; flex: 1 1 auto; }
.collector-app .an-page .st-gapn { white-space: nowrap; margin-inline-start: auto; }
/* 跨市場價差 list: one box (st-block), hairlines between rows only */
.collector-app .an-page .st-gapl { list-style: none; margin: 0; padding: 0; }
.collector-app .an-page .st-gl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 4.5rem auto; align-items: center; column-gap: .75rem; min-height: 44px; padding-block: .25rem; border-top: 1px solid var(--vi-line); }
.collector-app .an-page .st-gl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collector-app .an-page .st-gl-pair { font-size: var(--vi-type-sm); color: var(--vi-muted); white-space: nowrap; }
.collector-app .an-page .st-gl-pct { text-align: end; color: var(--vi-ink); }
.collector-app .an-page .st-gl-total { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: .25rem; white-space: nowrap; }
.collector-app .an-page .st-gl-total .kd-amount { --kd-amount-slot: 9ch; text-align: end; }
.collector-app .an-page .st-gapmixed > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: var(--vi-type-sm); color: var(--vi-muted); }
/* A stack of blocks in one slot (the 損益 ledger and what sits under it). A stack sizes to its content: the column beside it never stretches to match it */
.collector-app .an-page .st-slot.st-stack { display: flex; flex-direction: column; gap: 24px; align-self: start; }
.collector-app .an-page .st-slot.st-stack > .st-block { height: auto; }
.collector-app .an-page .st-grid:has(> .st-stack) > .st-slot.st-span-6 { align-self: start; }
.collector-app .an-page .st-cnote { margin: .75rem 0 0; font-size: var(--vi-type-sm); line-height: 1.5; color: var(--vi-muted); }
.collector-app .an-page .st-cnote + .st-cnote { margin-top: .125rem; }
/* Phone layout keys off the page container, not the viewport (@media widths are ratcheted; the side nav narrows the page on desktop). */
.collector-app .ov.an-page { container-type: inline-size; }
@container (max-width: 45rem) {
 .collector-app .an-page .st-grid { gap: 16px; }
 .collector-app .an-page .st-span-6 { grid-column: span 12; }
 .collector-app .an-page .st-xt.is-skip { display: none; }
 .collector-app .an-page .st-thead { display: none; }
 .collector-app .an-page .st-slot.st-stack { gap: 16px; }
 .collector-app .an-page .st-name { grid-row: 1 / span 2; grid-column: 1; }
 .collector-app .an-page .st-cell:empty { display: none; }
 .collector-app .an-page .st-lists { grid-template-columns: minmax(0, 1fr); }
 .collector-app .an-page .st-mlist + .st-mlist { padding-inline-start: 0; margin-inline-start: 0; border-inline-start: 0; margin-top: .75rem; padding-top: .5rem; border-top: 1px solid var(--vi-line-strong, var(--vi-line)); }
 .collector-app .an-page .st-grow { grid-template-columns: minmax(0, 1fr) 3.5rem 3.5rem; column-gap: .5rem; row-gap: .125rem; }
 .collector-app .an-page .st-grow .st-name { grid-column: 1; grid-row: 1; }
 .collector-app .an-page .st-grow .st-g-roi { grid-column: 2; grid-row: 1; }
 .collector-app .an-page .st-grow .st-g-n { grid-column: 3; grid-row: 1; font-size: var(--vi-type-sm); color: var(--vi-muted); }
 .collector-app .an-page .st-grow .st-g-bar { grid-column: 1 / -1; grid-row: 2; }
 .collector-app .an-page .st-gtable { min-height: 0; }
 .collector-app .an-page .st-frow { grid-template-columns: 2rem minmax(0, 1fr); row-gap: .125rem; padding-block: .5rem; }   /* 收藏焦點 on a phone: thumbnail | name + grade over value + P&L, so the name gets the whole row instead of what the price column leaves */
 .collector-app .an-page .st-frow > .st-thumb { grid-row: 1 / span 2; }
 .collector-app .an-page .st-frow > .st-fmid, .collector-app .an-page .st-frow > .st-fright { grid-column: 2; }
 .collector-app .an-page .st-fname { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
 .collector-app .an-page .st-fright { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: .75rem; min-width: 0; }
 .collector-app .an-page .st-fright > .st-fpnl { margin-inline-start: auto; text-align: end; }
 .collector-app .an-page .st-trend > .st-meta { flex-wrap: wrap; row-gap: 0; }
 .collector-app .an-page .st-trend > .st-meta > span { flex: 1 1 100%; }
 .collector-app .an-page .st-trend > .st-meta > .st-save { margin-inline: auto; }   /* R1: the wrapped 儲存本週快照 button sits centred on its own row, not hugging the left */
  .collector-app .an-page .st-gaprow { flex-wrap: wrap; row-gap: 0; padding: 0 20px .75rem; }   /* the same 20px inset as the blocks above and below, and room under the wrapped line */
 .collector-app .an-page .st-gapwhy { flex: 1 1 100%; order: 3; }
 .collector-app .an-page .st-gl { grid-template-columns: auto minmax(0, 1fr) auto auto; row-gap: 0; }
 .collector-app .an-page .st-gl-pair { grid-column: 2; grid-row: 2; }
 .collector-app .an-page .st-gl-pct { grid-column: 3; grid-row: 1; }
 .collector-app .an-page .st-gl-total { grid-column: 4; grid-row: 1 / span 2; }
}
/* 購入與 Oripa (Direction A): 每月花費 chart, 出售收入 rows, Oripa embed presentation */
.collector-app .an-page .st-buys .st-buys-o { grid-column: 7 / span 6; grid-row: 2; }
.collector-app .an-page .st-buys .st-buys-s { grid-column: 1 / span 6; grid-row: 2; align-self: start; }
.collector-app .an-page .st-legend { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--vi-type-sm); color: var(--vi-muted); white-space: nowrap; }
.collector-app .an-page .st-key { display: inline-block; width: 8px; height: 8px; border-radius: 1px; }
.collector-app .an-page .st-key + .st-key, .collector-app .an-page .st-legend .st-key:not(:first-child) { margin-inline-start: .5rem; }
.collector-app .an-page .st-key.is-buy, .collector-app .an-page .st-colbar.is-buy { background: var(--vi-series-cost); }
.collector-app .an-page .st-key.is-sell, .collector-app .an-page .st-colbar.is-sell { background: var(--vi-gain); }
.collector-app .an-page .st-bh { display: flex; align-items: baseline; margin-top: .25rem; }
.collector-app .an-page .st-bh-fig { display: flex; flex-direction: column; gap: .125rem; flex: 1 1 0; min-width: 0; padding: .25rem 1rem; border-inline-start: 1px solid var(--vi-line); }
.collector-app .an-page .st-bh-fig:first-child { padding-inline-start: 0; border-inline-start: 0; }
.collector-app .an-page .st-bh-fig .st-num { font-size: calc(var(--vi-type-2xl) * .6875); font-weight: 600; }
.collector-app .an-page .st-bh-fig .st-num .kd-amount { --kd-amount-slot: 10ch; }
.collector-app .an-page .st-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2px; --st-plot: 14rem; margin: 2.75rem 0 0; }
.collector-app .an-page .st-col { position: relative; display: flex; flex-direction: column; min-width: 0; }
.collector-app .an-page .st-up, .collector-app .an-page .st-dn { position: relative; display: flex; justify-content: center; min-height: 0; box-sizing: border-box; }
.collector-app .an-page .st-up { height: calc(var(--st-plot) * var(--st-up)); }
.collector-app .an-page .st-dn { height: calc(var(--st-plot) * var(--st-dn)); }
.collector-app .an-page .st-up { align-items: flex-end; border-bottom: 1px solid var(--vi-line-strong, var(--vi-line)); }
.collector-app .an-page .st-dn { align-items: flex-start; }
.collector-app .an-page .st-colbar { position: relative; display: block; width: 100%; max-width: 28px; border-radius: 1px; }
.collector-app .an-page .st-dlab { position: absolute; left: 50%; transform: translateX(-50%); font-size: var(--vi-type-xs); white-space: nowrap; color: var(--vi-ink); }
.collector-app .an-page .st-colbar.is-buy .st-dlab { bottom: calc(100% + 4px); }
.collector-app .an-page .st-colbar.is-sell .st-dlab { top: calc(100% + 4px); }
.collector-app .an-page .st-dlab .kd-amount { --kd-amount-slot: 8ch; text-align: center; }
.collector-app .an-page .st-cx { height: 3rem; padding-top: 1.5rem; box-sizing: border-box; text-align: center; font-size: var(--vi-type-xs); color: var(--vi-muted); white-space: nowrap; }
.collector-app .an-page .st-metadet > summary { list-style: none; cursor: pointer; }
.collector-app .an-page .st-metadet > summary::-webkit-details-marker { display: none; }
.collector-app .an-page .st-metadet .st-more { white-space: nowrap; color: var(--vi-ink); }
.collector-app .an-page .st-mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: .5rem; min-height: 44px; border-top: 1px solid var(--vi-line); }
.collector-app .an-page .st-mrow > :not(:first-child) { text-align: end; }
.collector-app .an-page .st-mrow.st-thead { min-height: 32px; border-top: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-mrow .kd-amount { --kd-amount-slot: 9ch; text-align: end; }
.collector-app .an-page .st-sales ul { margin: 0; padding: 0; list-style: none; }
.collector-app .an-page .st-sales li { border-top: 1px solid var(--vi-line); }
.collector-app .an-page .st-srow { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 7rem) minmax(0, 8rem); align-items: center; column-gap: .5rem; width: 100%; min-height: 44px; padding: .25rem 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: start; }
button.st-srow { cursor: pointer; }
.collector-app .an-page .st-srow.st-thead { min-height: 32px; padding: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-srow > :nth-child(n+3) { text-align: end; }
.collector-app .an-page .st-sdate { color: var(--vi-muted); font-size: var(--vi-type-sm); white-space: nowrap; }
.collector-app .an-page .st-sname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collector-app .an-page .st-nocost { color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .an-page .st-srow .kd-amount { --kd-amount-slot: 8ch; text-align: end; }
.collector-app .an-page .st-sales .st-stable { min-height: 11rem; }
.collector-app .an-page .st-oripa .oa.is-embedded .oa-total { border: 0; border-radius: 0; background: none; padding-inline: 0; }
.collector-app .an-page .st-oripa .oripa-direct-link { display: inline-flex; align-items: center; min-height: 44px; }
.collector-app .an-page .st-oripa .oa-meta-row { margin-top: .25rem; }
@container (max-width: 45rem) {
 .collector-app .an-page .st-buys .st-buys-m { order: 1; }
 .collector-app .an-page .st-buys .st-buys-o { grid-column: span 12; grid-row: auto; order: 2; }
 .collector-app .an-page .st-buys .st-buys-s { grid-column: span 12; grid-row: auto; order: 3; }
 .collector-app .an-page .st-bh { flex-direction: column; align-items: stretch; }
 .collector-app .an-page .st-bh-fig { flex-direction: row; justify-content: space-between; align-items: baseline; padding: .5rem 0; border-inline-start: 0; border-top: 1px solid var(--vi-line); }
 .collector-app .an-page .st-bh-fig:first-child { border-top: 0; }
 .collector-app .an-page .st-cols { --st-plot: 200px; }
 .collector-app .an-page .st-cx.is-skip { visibility: hidden; }
 .collector-app .an-page .st-cx { display: flex; justify-content: center; }   /* U29: a nowrap label wider than its 26px column spills evenly, and the last one is held at the plot's right edge, so 2026-11 stays inside the card */
 .collector-app .an-page .st-col:last-child .st-cx { justify-content: flex-end; }
 .collector-app .an-page .st-metadet > summary.st-meta { flex-wrap: wrap; }
 .collector-app .an-page .st-srow { grid-template-columns: minmax(0, 1fr) minmax(0, 7rem) minmax(0, 8rem); row-gap: 0; }
 .collector-app .an-page .st-srow.st-thead { display: none; }
 .collector-app .an-page .st-srow .st-sname { grid-column: 1; grid-row: 1; }
 .collector-app .an-page .st-srow .st-sdate { grid-column: 1; grid-row: 2; }
 .collector-app .an-page .st-srow .st-snet { grid-column: 2; grid-row: 1 / span 2; }
 .collector-app .an-page .st-srow .st-spnl { grid-column: 3; grid-row: 1 / span 2; }
 .collector-app .an-page .st-mrow { grid-template-columns: minmax(0, 1fr) auto auto; }
}
.collector-app .an-page .st-oripa .oa.is-embedded { margin: 0; padding: 0; border: 0; }
.collector-app .an-page .st-oripa .oa.is-embedded > .st-head { margin-bottom: .25rem; }
.collector-app .an-page .st-metadet { border: 0; }
@container (max-width: 45rem) {
 .collector-app .an-page .st-srow { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .75rem; }
 .collector-app .an-page .st-srow .kd-amount { --kd-amount-slot: 7ch; }
}
.collector-app .an-page .st-dlab { line-height: 1.2; }
.collector-app .an-page .st-colbar { margin: 0; padding: 0; top: 0; }
/* 收藏配置 (Direction A): 收藏組成, 系列收藏進度, 依幣別, 歷史匯率成本 */
.collector-app .an-page .al-bar { display: flex; gap: 2px; height: 28px; margin: .5rem 0 .75rem; background: color-mix(in srgb, var(--vi-line) 50%, transparent); border-radius: 2px; overflow: hidden; }
.collector-app .an-page .al-seg { display: flex; align-items: center; min-width: 0; padding-inline: .5rem; overflow: hidden; color: var(--vi-panel); }
.collector-app .an-page .al-seg-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--vi-type-xs); font-weight: 600; }
.collector-app .an-page .al-table { min-height: calc(32px + 6 * 45px); }
.collector-app .an-page .al-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 5rem 10rem 4.5rem; align-items: center; column-gap: .75rem; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; text-align: start; }
.collector-app .an-page button.al-row { cursor: pointer; }
.collector-app .an-page button.al-row:hover { background: color-mix(in srgb, var(--vi-ink) 5%, transparent); }
.collector-app .an-page .al-thead { min-height: 32px; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .al-item { border-top: 1px solid var(--vi-line); }
.collector-app .an-page .al-thead + .al-item { border-top: 1px solid var(--vi-line); }
.collector-app .an-page .al-sw { display: block; width: 10px; height: 10px; border-radius: 2px; }
.collector-app .an-page .al-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.collector-app .an-page :is(.al-n, .al-v, .al-p) { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.collector-app .an-page .al-n small { color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .an-page .al-v .kd-amount { --kd-amount-slot: 10ch; text-align: end; }
.collector-app .an-page .al-cur { --kd-amount-slot: 4ch; }
.collector-app .an-page .al-drill { padding: 0 0 .5rem calc(10px + .75rem); }
.collector-app .an-page .al-drill ul { margin: 0; padding: 0; list-style: none; }
.collector-app .an-page .al-drill li button, .collector-app .an-page .al-only { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; padding: 0 .25rem; border: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.collector-app .an-page .al-drill li button small { color: var(--vi-muted); }
.collector-app .an-page .al-only { border: 1px solid var(--vi-line); border-radius: 6px; padding-inline: .75rem; font-weight: 600; }
.collector-app .an-page .al-only[aria-pressed="true"] { border-color: var(--vi-ink); }
/* 系列收藏進度: a binder index */
.collector-app .an-page .an-series-rows { display: block; }
.collector-app .an-page .an-series-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5rem; align-items: center; column-gap: .75rem; min-height: 3.5rem; padding-inline-start: .75rem; border-inline-start: 4px solid var(--vi-line); margin-bottom: .25rem; }
.collector-app .an-page .an-series-name { min-height: 44px; display: flex; align-items: center; justify-content: flex-start; gap: .25rem; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: start; }
.collector-app .an-page button.an-series-name { cursor: pointer; }
.collector-app .an-page .an-series-count { min-width: 6.5rem; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--vi-muted); }
.collector-app .an-page .an-series-roi { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .an-page .an-series-bar { grid-column: 1 / -1; height: .25rem; margin: 0 0 .5rem; border-radius: .25rem; background: var(--vi-line); overflow: hidden; }
.collector-app .an-page .an-series-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ov-c1); }
.collector-app .an-page .an-series-unmapped { min-height: 44px; }
.collector-app .an-page .an-series-unmapped .an-series-count { grid-column: 2 / -1; }
.collector-app .an-page .an-series-all { min-height: 44px; padding: 0; border: 0; background: none; color: var(--vi-ink); font: inherit; font-weight: 600; cursor: pointer; }
/* 依幣別: donut left, table right at the 6-col width */
.collector-app .ov .an-cur { container-type: inline-size; }
.collector-app .ov .an-cur .bc-donut { width: 8.5rem; height: 8.5rem; }
@container (min-width: 28rem) { .collector-app .ov .an-cur .bc-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: center; } .collector-app .ov .an-cur .bc-wrap > .bc-unit { grid-column: 1 / -1; } .collector-app .ov .an-cur .bc-wrap > .bc-chart { grid-column: 1; grid-row: 2; } .collector-app .ov .an-cur .bc-wrap > .bc-scroll { grid-column: 2; grid-row: 2; } .collector-app .ov .an-cur .bc-table { max-width: none; } }
/* 歷史匯率成本 */
.collector-app .ov section.fxh-panel.fxh-box { margin-top: 0; padding: 20px; border: 1px solid var(--vi-line); gap: 0; }
.collector-app .ov .fxh-box > .st-head { flex-wrap: nowrap; }
.collector-app .ov .fxh-box .fxh-toggle button { min-height: 44px; }
.collector-app .ov .fxh-box .fxh-summary { align-items: end; margin-top: .5rem; }
.collector-app .ov .fxh-box .fxh-summary small { color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ov .fxh-box .fxh-breakdown { margin-top: 1rem; }
.collector-app .ov .fxh-box .fxh-breakdown > .fxh-head { min-height: 44px; }
.collector-app .ov .fxh-box .fxh-dim select { min-height: 44px; }
.collector-app .ov .fxh-box .fxh-meta { justify-content: flex-start; gap: .75rem; flex-wrap: nowrap; }
.collector-app .ov .fxh-box .fxh-meta .fxh-pending { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.collector-app .ov .fxh-box .fxh-action { min-height: 44px; flex: none; }
.collector-app .ov .fxh-box .st-title .ov-info-body, .collector-app .ov .fxh-box .fxh-pending .ov-info-body { position: absolute; z-index: 6; inset-inline: 0; top: 100%; max-height: 60vh; overflow-y: auto; }
@container (max-width: 45rem) { .collector-app .an-page .al-row { grid-template-columns: 10px minmax(0, 1fr) auto 8ch 3rem; column-gap: .5rem; } .collector-app .an-page .al-v .kd-amount { --kd-amount-slot: 8ch; } .collector-app .ov .fxh-box > .st-head { flex-wrap: wrap; } .collector-app .ov .fxh-box .fxh-toggle { flex-wrap: nowrap; } .collector-app .ov .fxh-box .fxh-meta { flex-wrap: wrap; } }
.collector-app .an-page .al-n small { display: inline; }
.collector-app .ov .fxh-box .fxh-summary .kd-amount { text-align: start; }
.collector-app .ov .fxh-box .fxh-summary strong { font-size: calc(var(--vi-type-2xl) * .6875); }
.collector-app .ov .fxh-box .fxh-dim { display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .5rem; white-space: nowrap; }
.collector-app .ov .fxh-box .fxh-bd { table-layout: fixed; }
.collector-app .ov .fxh-box .fxh-bd :is(th, td):first-child { width: auto; max-width: none; }
.collector-app .ov .fxh-box .fxh-bd :is(th, td):not(:first-child) { width: 18%; padding-inline-start: 1rem; }
.collector-app .ov .fxh-box .fxh-bd :is(th, td):nth-child(2) { width: 9%; }
.collector-app .ov .fxh-box .fxh-dim > span { white-space: nowrap; }
.collector-app .ov .fxh-box .fxh-bd td .fxh-pct { display: inline; opacity: 1; font-size: inherit; }

/* 歷史匯率成本 at phone: the three figures are stacked rows (label left, figure right, one line each); the label never wraps */
@container (max-width: 45rem) {
 .collector-app .ov .fxh-box .fxh-summary { grid-template-columns: 1fr; gap: 0; align-items: center; }
 .collector-app .ov .fxh-box .fxh-summary > div { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--vi-space-3); min-height: 44px; padding: 0; border-bottom: 1px solid var(--vi-line); }
 .collector-app .ov .fxh-box .fxh-summary > div:last-child { border-bottom: 0; }
 .collector-app .ov .fxh-box .fxh-summary small { white-space: nowrap; }
 .collector-app .ov .fxh-box .fxh-summary strong { text-align: end; white-space: nowrap; }
 .collector-app .ov .fxh-box .fxh-summary .kd-amount { text-align: end; }
}
.collector-app .an-page .st-frow { border-radius: 0; }
/* phone (U26): an empty trend box and 收藏組成's six-row reserve were 220-250px of blank. A phone shows what exists: the one honest line, the rows there are. Wide screens keep their reserved boxes */
@container (max-width: 45rem) {
 .collector-app .an-page .st-chart.is-empty { height: auto; margin-top: .5rem; }
 .collector-app .an-page .al-table { min-height: 0; }
}
/* R2: the embedded Oripa batch on a phone. 「花費 X → 價值 Y」 and 「損益 ±Z (±p%)」 shared one line and ran into each other past four digits. Two lines, each with the whole row, so no amount can reach the other. app/oripa-analysis.css owns the row; this block only re-stacks it on 分析 */
@container (max-width: 559.98px) {
 .collector-app .an-page .st-oripa .oa.is-embedded .oa-row { grid-template-columns: minmax(0, 1fr); }
 .collector-app .an-page .st-oripa .oa.is-embedded .oa-row .oa-c3 { grid-column: 1; grid-row: 3; justify-content: flex-start; padding-inline-start: 24px; }
}
/* the two selects of 分析 (收藏焦點 排行, 依幣別 分類方式): WebKit gives a native menu its own 29px height whatever min-height says, so they draw their own chevron and keep the 44px target on a phone */
.collector-app .an-page .st-head select, .collector-app .ov .fxh-box .fxh-dim select { -webkit-appearance: none; appearance: none; min-height: 44px; padding-inline: .75rem 1.75rem; border: 1px solid var(--vi-line-strong); background-image: linear-gradient(45deg, transparent 50%, var(--vi-muted) 50%), linear-gradient(135deg, var(--vi-muted) 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; }
/* an empty ledger: one plain line above the dashboard of dashes says why they are dashes (the blocks stay, nothing is removed) */
.collector-app .an-page .st-empty-lead { margin: 0; color: var(--vi-ink); font-size: var(--vi-type-sm); line-height: 1.6; }
/* 資產走勢 tabs (市值 / 損益 / 配置): the plot keeps its fixed height on every tab */
/* the shared Seg here (st-ttabs, 分組方式): base's metrics (44px min, sm type, 12px sides, 4px between), so the 分析 rows keep their widths and the L5 range chips stay on one row beside 市值 / 損益 */
.collector-app .an-page .kd-seg { gap: .25rem; justify-self: start; align-self: flex-start; inline-size: fit-content; }   /* fit the labels, never the row (grid / column parents stretched it to 625 px at 1440) */
.collector-app .an-page .kd-seg .kd-seg__i { min-inline-size: 44px; font-size: var(--vi-type-sm); }
.collector-app .an-page .kd-seg.st-ttabs { flex: 0 1 auto; }   /* like base's tabs, the 市值 / 損益 pair may give up a few px at 360 instead of pushing the range chips onto a second row */
.collector-app .an-page .st-ttabs { margin-top: .5rem; border-bottom: 1px solid var(--vi-line); }
/* ONE height for all three tabs (--st-tab-h = the old plot 13.75rem + its 1.5rem axis strip; 配置 is a compact view inside it): the tab body is ONE box of that height whatever it holds (plot, the empty-history line, the allocation view), so a tab switch never moves what is below */
.collector-app .an-page .st-trend { --st-tab-h: 15.25rem; }
.collector-app .an-page .st-tabbody { flex: none; position: relative; height: var(--st-tab-h); margin-top: .75rem; contain: layout; }
.collector-app .an-page .st-tabbody > .st-chart { height: calc(var(--st-tab-h) - 1.5rem); margin-top: 0; }
.collector-app .an-page .st-tabbody > .st-chart.is-empty { display: block; height: 100%; padding: 0; }
.collector-app .an-page .st-alloc-panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.collector-app .an-page .st-alloc-panel .al-comp.is-embedded { min-width: 0; }
.collector-app .an-page .st-zero { opacity: .8; }
/* 本月貢獻: merged rows */
.collector-app .an-page .st-mult { flex: none; color: var(--vi-muted); font-size: var(--vi-type-sm); white-space: nowrap; }
/* 配置 compact view inside the tab body: bar 20px, up to 5 rows of 32px, one footer line; the full view is 收藏組成 below */
.collector-app .an-page .al-comp.is-embedded .al-bar { height: 20px; margin: .25rem 0 .375rem; }
.collector-app .an-page .al-comp.is-embedded .al-crow { min-height: 32px; }
.collector-app .an-page .al-comp.is-embedded .al-cmeta { margin: .25rem 0 0; line-height: 1.25; }
.collector-app .an-page .al-comp.is-embedded { display: flex; flex-direction: column; height: 100%; }
.collector-app .an-page .al-comp.is-embedded .al-ctable { flex: 1 1 auto; display: grid; grid-auto-rows: minmax(32px, 2.5rem); align-content: stretch; width: 100%; max-width: 36rem; }
.collector-app .an-page .al-comp.is-embedded .al-citem { display: grid; }
.collector-app .an-page .al-comp.is-embedded .al-citem > .al-crow { align-self: stretch; }
.collector-app .an-page .al-comp.is-embedded .al-cmeta { margin-top: auto; padding-top: .25rem; }

/* ---- 分析 › 績效, Direction A 「一頁對帳單」 (2026-11-06) ---- */
.collector-app .an-page .st-span-7 { grid-column: span 7; }
.collector-app .an-page .st-span-5 { grid-column: span 5; }
.collector-app .an-page .st-grid[data-seg="績效"] .st-block { background: none; border: 0; padding: 0; }
/* light separation between modules: one faint rule + the grid gap, never a box (Steven 11-04) */
.collector-app .an-page .st-grid[data-seg="績效"] > .st-slot:not(.st-first) { border-top: 1px solid color-mix(in srgb, var(--vi-line) 55%, transparent); padding-top: 24px; }
.collector-app .an-page .st-hero { margin-top: .25rem; min-width: 0; }
.collector-app .an-page .st-hero-top { display: flex; align-items: baseline; gap: .75rem; min-width: 0; }
.collector-app .an-page .st-hero-label { font-size: var(--vi-type-sm); color: var(--vi-muted); white-space: nowrap; }
.collector-app .an-page .st-hero-num { font-size: calc(var(--vi-type-2xl) * 1.0625); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.collector-app .an-page .st-hero-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: .25rem; margin: .25rem 0 0; font-size: var(--vi-type-sm); color: var(--vi-muted); min-height: 44px; }
.collector-app .an-page .st-hero-line .ov-info { position: static; flex: none; }
.collector-app .an-page .st-chartbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; }
.collector-app .an-page .st-chartbar .st-ttabs { margin-top: 0; border-bottom: 0; }
.collector-app .an-page .st-lhead { min-height: 44px; }
.collector-app .an-page .st-lmeta { display: inline-flex; align-items: center; gap: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); min-width: 0; }
.collector-app .an-page .st-ltable { display: block; }
.collector-app .an-page .st-lrow { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; min-height: 36px; padding-block: .25rem; font-size: var(--vi-type-sm); }
.collector-app .an-page .st-lname { color: var(--vi-muted); min-width: 0; }
.collector-app .an-page .st-lname .st-lsub { margin-inline-start: .5rem; font-size: var(--vi-type-sm); }
.collector-app .an-page .st-lname .ov-info { display: inline-block; position: static; vertical-align: middle; }
.collector-app .an-page .st-lamt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.collector-app .an-page .st-lrow.is-total { margin-top: .5rem; }
.collector-app .an-page .st-lrow.is-total .st-lname, .collector-app .an-page .st-lrow.is-total .st-lamt { color: var(--vi-ink); font-weight: 600; }
.collector-app .an-page .st-lrow.is-spend { font-size: var(--vi-type-sm); }
.collector-app .an-page .st-lrow.is-part { min-height: 32px; padding-block: .125rem; padding-inline-start: 1rem; font-size: var(--vi-type-sm); }
.collector-app .an-page .st-lrow.is-channel { min-height: 36px; padding-inline-start: 1rem; flex-wrap: wrap; }
.collector-app .an-page .st-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .75rem; min-height: 44px; align-items: center; }
.collector-app .an-page .st-fold > summary::-webkit-details-marker { display: none; }
.collector-app .an-page .st-fold-name { color: var(--vi-ink); font-size: var(--vi-type-sm); } .collector-app .an-page .st-fold-name::after { content: " ▸"; } .collector-app .an-page .st-fold[open] .st-fold-name::after { content: " ▾"; }
.collector-app .an-page .st-fold-sum { color: var(--vi-muted); font-size: var(--vi-type-sm); }
@container (max-width: 45rem) { .collector-app .an-page .st-span-7, .collector-app .an-page .st-span-5 { grid-column: span 12; } .collector-app .an-page .st-hero-num { font-size: calc(var(--vi-type-2xl) * .8125); } }
.collector-app .an-page .st-lname .st-lsub { display: inline; }
.collector-app .an-page .st-lmeta .ov-info { margin-inline-start: .125rem; }
.collector-app .an-page .st-grid[data-seg="績效"] > .st-first { align-self: start; }
.collector-app .an-page .st-grid[data-seg="績效"] > .st-first > .st-block { height: auto; }
.collector-app .an-page .st-grid[data-seg="績效"] > .st-first.st-stack { max-width: 28rem; }
/* 績效 row 1 at desktop: the chart column is as tall as the ledger beside it (the chart takes the spare height, never padding), so both bottoms align; the chart keeps its old height as a floor, so phone and short ledgers are unchanged */
.collector-app .an-page .st-grid[data-seg="績效"] > .st-first.st-span-7 { align-self: stretch; }
.collector-app .an-page .st-grid[data-seg="績效"] > .st-first.st-span-7 > .st-block { height: 100%; }
.collector-app .an-page .st-trend > .st-tabbody { display: flex; flex-direction: column; flex: 1 1 auto; height: auto; min-height: var(--st-tab-h); }
.collector-app .an-page .st-tabbody > .st-chart { flex: 1 1 auto; height: auto; min-height: calc(var(--st-tab-h) - 1.5rem); }
.collector-app .an-page .st-tabbody > .st-chart.is-empty { min-height: var(--st-tab-h); }
/* perf-money 11-06: hero line, 損益 title line and 依通路 sub-lines are built from nowrap units (perf-ledger.tsx seq): each unit carries its trailing 「 ·」 and the last one its ⓘ, so a line wraps only between units, never starts with a separator, and the ⓘ never sits alone. A channel row keeps its P&L on the right while its sub-line wraps. */
.collector-app .an-page .st-nw { white-space: nowrap; }
.collector-app .an-page .st-nw .ov-info-body { white-space: normal; }
.collector-app .an-page .st-nw > .ov-info { margin-inline-start: .25rem; display: inline-block; vertical-align: middle; }
.collector-app .an-page .st-lrow.is-channel { flex-wrap: nowrap; }
.collector-app .an-page .st-lrow.is-channel .st-lname { flex: 1 1 auto; min-width: 0; }
/* content-restore: the key-figure line under the 損益 title (帳面損益 · 持有成本 · 持有張數) and the 購入地點 rows reuse the ledger row styles */
.collector-app .an-page .st-lkeys { margin: 0; padding-block: .25rem; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .an-page .st-lrow.is-place { min-height: 36px; }
/* site-vi L4: the kit's section-head / meta classes ride on the analysis head and meta rows without changing their layout (the .an-page rules above win on display, gap, size and wrapping) */
.collector-app :is(.an-page, .ov) .st-head.kd-sec-h { font-size: inherit; font-weight: inherit; line-height: inherit; }
.collector-app :is(.an-page, .ov) .st-meta.kd-meta { block-size: auto; margin: .5rem 0 0; overflow: visible; line-height: inherit; white-space: normal; text-overflow: clip; }

/* s7 N1-N3 (desktop rows): a folded strip takes one column of the two-column grid (what a .st-span-6 slot is), its value sits right after the why line, 購入地點 is a tight name + value table, and the 分組報酬 meta sits under its table. Phone unchanged. */
@container (min-width: 45rem) {
 .collector-app .an-page .st-gaprow { inline-size: calc(50% - 12px); box-sizing: border-box; }
 .collector-app .an-page .st-gaprow .st-gapwhy { flex: 0 1 auto; }
 .collector-app .an-page .st-gaprow .st-gapn { margin-inline-start: 0; }
 .collector-app .an-page .st-places .st-ltable { inline-size: calc(50% - 12px); }
 .collector-app .an-page .st-places .st-lrow.is-place { justify-content: flex-start; column-gap: 1.5rem; }
 .collector-app .an-page .st-places .st-lrow.is-place .st-lname { flex: 0 1 auto; }
 .collector-app .an-page .st-slot > .st-groups > .st-meta { margin-top: .5rem; }
}

/* 分析 r3 shell and kit (app/analysis-ia/). Lazy: rides with the 分析 chunk (app/analysis-page-css.ts). Layout is container queries only (no viewport media query), sizes are the --vi-type scale, colours are tokens.
   No border-radius here on purpose: the radius ratchet (tests/design-lint.test.ts) has no headroom, so the list and pane are drawn with hairlines. */
.collector-app .an-page .ia { container-type: inline-size; min-width: 0; }
.collector-app .an-page .ia .gain { color: var(--vi-gain); } .collector-app .an-page .ia .loss { color: var(--vi-loss); }
/* list rows: every row is 56px, the key sits on ONE right edge */
.collector-app .ia .ia-list { display: block; gap: 0; margin: 0; padding: 0; border-block: 1px solid var(--vi-line); background: var(--vi-panel, transparent); }
.collector-app .ia .ia-it { border-top: 1px solid var(--vi-line); } .collector-app .ia .ia-it:first-child { border-top: 0; }
.collector-app .ia .ia-sum { position: relative; display: flex; align-items: center; gap: .5rem; block-size: 56px; padding-inline: 1rem; cursor: pointer; box-sizing: border-box; }
.collector-app .ia .ia-tt { min-width: 0; padding: 0; border: 0; background: none; color: var(--vi-ink); font: inherit; font-size: var(--vi-type-base); font-weight: 600; text-align: start; cursor: pointer; flex: 1 1 0; line-height: 1.2; white-space: normal; }   /* fix r3: designed for the longest locale (EN): the title takes the width the key leaves and wraps to at most two lines inside the 56px row, never an ellipsis */
.collector-app .ia .ia-tt:focus-visible { outline: 3px solid var(--vi-marker); outline-offset: 3px; }
.collector-app .ia .ia-k { margin-inline-start: auto; flex: 0 1 auto; line-height: 1.2; font-size: var(--vi-type-md); font-weight: 600; white-space: normal; text-align: end; font-variant-numeric: tabular-nums; }
.collector-app .ia .ia-cv { inline-size: 14px; text-align: center; color: var(--vi-muted); font-size: var(--vi-type-xs); transition: transform .15s; }
.collector-app .ia .is-open > .ia-sum .ia-cv { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .collector-app .ia .ia-cv { transition: none; } }
.collector-app .ia .ia-inf { display: inline-flex; flex: none; }
.collector-app .ia .ia-tag { flex: none; padding-inline: .375rem; border: 1px solid var(--vi-line-strong); color: var(--vi-muted); font-size: var(--vi-type-xs); font-weight: 600; white-space: nowrap; }
.collector-app .ia .ia-det { min-width: 0; margin: 0; padding: .25rem 1rem 1.25rem; border: 0; background: transparent; }   /* fix r5: the open body is plain (no radius declaration: the ratchet has no headroom, and with no border or fill the inherited radius paints nothing), not the app-wide section box (globals.css section reset stays untouched) */
/* the ⓘ popover hangs under its row / pane head */
.collector-app .ia .ia-sum .ov-info, .collector-app .ia .ia-dh .ov-info { position: static; }
.collector-app .ia .ia-sum .ov-info-body, .collector-app .ia .ia-dh .ov-info-body { inset-inline: 1rem; }
/* desktop: 320px list of rows that only pick + a pane (max 776px) */
.collector-app .ia.ia-md { display: grid; grid-template-columns: 320px minmax(0, 776px); column-gap: 1.5rem; align-items: start; }
.collector-app .ia.ia-md .ia-tt { font-size: var(--vi-type-md); }
.collector-app .ia.ia-md .ia-sum:has(> .ia-tt[aria-current="true"]) { background: var(--vi-raised); }
.collector-app .ia .ia-pane { position: relative; min-width: 0; padding: 1.25rem 1.5rem 1.5rem; border: 1px solid var(--vi-line); container-type: inline-size; }
.collector-app .ia .ia-dh { position: relative; display: flex; align-items: center; gap: .5rem; margin-block-end: .75rem; }
.collector-app .ia .ia-dh h3 { margin: 0; font-size: var(--vi-type-lg); font-weight: 700; }
@container (max-width: 700px) { .collector-app .ia.ia-md { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; } }
/* kit */
.collector-app .ia .ia-kv { display: grid; gap: .5rem 0; max-inline-size: 26rem; margin: 1rem 0 0; font-size: var(--vi-type-sm); }
.collector-app .ia .ia-kv-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; }
.collector-app .ia .ia-kv dt { color: var(--vi-muted); } .collector-app .ia .ia-kv dd { margin: 0; text-align: end; font-weight: 600; white-space: nowrap; }
.collector-app .ia .ia-kv .is-part dt { padding-inline-start: .875rem; font-size: var(--vi-type-xs); }
.collector-app .ia .ia-kv .is-big { padding-block-start: .5rem; border-top: 1px solid var(--vi-line-strong); font-size: var(--vi-type-base); font-weight: 700; }
.collector-app .ia .ia-figs { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.collector-app .ia .ia-fig { display: grid; gap: 2px; min-width: 0; } .collector-app .ia .ia-fig-l { color: var(--vi-muted); font-size: var(--vi-type-sm); } .collector-app .ia .ia-fig b { font-size: var(--vi-type-lg); font-weight: 700; }
.collector-app .ia .ia-fold > summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.collector-app .ia .ia-fold-w { margin-inline-start: auto; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ia .ia-rrb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 1rem; inline-size: 100%; min-block-size: 56px; padding: .625rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; align-items: baseline; box-sizing: border-box; }
.collector-app .ia button.ia-rrb { cursor: pointer; }
.collector-app .ia .ia-rr { border-top: 1px solid var(--vi-line); } .collector-app .ia .ia-rr:first-child { border-top: 0; } .collector-app .ia .ia-rr.is-tot { border-top: 2px solid var(--vi-line-strong); }
.collector-app .ia .ia-rr-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--vi-type-base); font-weight: 600; }
.collector-app .ia .ia-rr-v { font-size: var(--vi-type-base); font-weight: 600; white-space: nowrap; text-align: end; }
.collector-app .ia .ia-rr-s { grid-column: 1 / -1; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ia .ia-trk { grid-column: 1 / -1; display: block; block-size: 8px; margin-block-start: 4px; background: var(--vi-raised); overflow: hidden; }
.collector-app .ia .ia-trk > i { display: block; block-size: 100%; background: var(--vi-accent); }
.collector-app .ia .ia-tw { overflow-x: auto; }
.collector-app .ia .ia-rt { inline-size: 100%; border-collapse: collapse; font-size: var(--vi-type-sm); font-variant-numeric: tabular-nums; }
.collector-app .ia .ia-rt :is(th, td) { padding: .5625rem 0 .5625rem .75rem; text-align: end; white-space: nowrap; border-top: 1px solid var(--vi-line); }
.collector-app .ia .ia-rt th { padding-block-start: 0; border-top: 0; color: var(--vi-muted); font-size: var(--vi-type-xs); font-weight: 600; }
.collector-app .ia .ia-rt :is(th, td):first-child { padding-inline-start: 0; text-align: start; white-space: normal; }
.collector-app .ia .ia-rt tr.is-tot td { border-top: 2px solid var(--vi-line-strong); font-weight: 700; } .collector-app .ia .ia-rt tr.is-tap { cursor: pointer; }
.collector-app .ia .ia-cr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; inline-size: 100%; min-block-size: 60px; padding: .5rem 0; border: 0; border-top: 1px solid var(--vi-line); background: none; color: inherit; font: inherit; text-align: start; box-sizing: border-box; }
.collector-app .ia .ia-cr-m { min-width: 0; display: grid; } .collector-app .ia .ia-cr-m b { min-width: 0; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: var(--vi-type-base); font-weight: 600; }
.collector-app .ia .ia-cr-m small { display: flex; gap: .375rem; align-items: center; color: var(--vi-muted); font-size: var(--vi-type-xs); } .collector-app .ia .ia-cr-n { color: var(--vi-muted); font-weight: 400; }
.collector-app .ia .ia-cr-f { text-align: end; font-size: var(--vi-type-md); font-weight: 600; white-space: nowrap; }
.collector-app .ia .ia-chip { padding-inline: .375rem; border: 1px solid var(--vi-line-strong); color: var(--vi-ink); font-size: var(--vi-type-xs); font-weight: 600; white-space: nowrap; }
.collector-app .ia .ia-pending { margin: 0; color: var(--vi-muted); font-size: var(--vi-type-sm); }
.collector-app .ia .ia-chips { margin-block: 0 .75rem; }
/* 績效 blocks (step 2): two parts side by side on a wide pane, card rows, column chart, controls */
.collector-app .ia .ia-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@container (min-width: 700px) { .collector-app .ia .ia-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; } }
.collector-app .ia .ia-two > div { min-width: 0; }
.collector-app .ia .ia-h4 { margin: 1rem 0 .25rem; font-size: var(--vi-type-base); font-weight: 700; }
.collector-app .ia .ia-two .ia-h4:first-child { margin-block-start: 0; }
.collector-app .ia .ia-ctl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-block: .5rem; }
.collector-app .ia .ia-ctl.is-end { justify-content: flex-end; margin-block-start: 1rem; }
.collector-app .ia .ia-sel { min-block-size: 44px; max-inline-size: 100%; }
.collector-app .ia .ia-cr-art { display: block; inline-size: 2.5rem; aspect-ratio: 63 / 88; overflow: hidden; }
.collector-app .ia .ia-cr-art .art-card-ph .ph-chips { display: none; }
.collector-app .ia .ia-cr-f small { display: block; font-size: var(--vi-type-xs); font-weight: 600; }
.collector-app .ia .ia-cr-f .pct, .collector-app .ia .ia-cr-f small.gain, .collector-app .ia .ia-cr-f small.loss { font-variant-numeric: tabular-nums; }
.collector-app .ia .ia-fold-b { padding-block-end: .5rem; }
.collector-app .ia .ia-nocost { color: var(--vi-muted); font-weight: 400; }
/* 每月花費: ONE direction of columns, heights from the numbers (the mask never changes a bar) */
.collector-app .ia .ia-readout { min-block-size: 28px; margin: .25rem 0; font-size: var(--vi-type-sm); }
.collector-app .ia .ia-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.collector-app .ia .ia-col { display: grid; grid-template-rows: 140px auto; min-width: 0; cursor: pointer; }
.collector-app .ia .ia-col:focus-visible { outline: 3px solid var(--vi-marker); outline-offset: -3px; }
.collector-app .ia .ia-col-t { position: relative; display: flex; align-items: flex-end; block-size: 140px; }
.collector-app .ia .ia-col-t > i { position: relative; display: block; inline-size: 100%; min-block-size: 3px; background: var(--vi-accent); }
.collector-app .ia .ia-col.is-sel .ia-col-t > i { background: var(--vi-ink); }
.collector-app .ia .ia-col-l { position: absolute; inset-block-end: 100%; inset-inline-end: 0; padding-block-end: 4px; font-size: var(--vi-type-xs); font-weight: 600; white-space: nowrap; }
.collector-app .ia .ia-col-x { text-align: center; color: var(--vi-muted); font-size: var(--vi-type-xs); }
.collector-app .ia .ia-ledger > * + * { margin-block-start: .75rem; }
.collector-app .ia .ia-week .ia-crs + .ia-pending, .collector-app .ia .ia-pending { padding-block: .5rem; }
/* 收藏配置 blocks (step 3): a second tick on the share bar, the row's opened body, quarter columns */
.collector-app .ia .ia-trk { position: relative; }
.collector-app .ia .ia-tick { position: absolute; inset-block: 0; inline-size: 2px; background: var(--vi-ink); }
.collector-app .ia .ia-more { padding-block: .25rem .75rem; }
.collector-app .ia .ia-rt tr.is-more td { padding: 0 0 .75rem; border-top: 0; white-space: normal; text-align: start; }
.collector-app .ia .ia-rt-b { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.collector-app .ia .ia-only { min-block-size: 44px; margin-block-end: .5rem; }
.collector-app .ia .ia-vcols { display: grid; grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); gap: 4px; }
.collector-app .ia .ia-vcols .ia-col { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.collector-app .ia .ia-vcols .ia-col.is-undated .ia-col-t > i { background: var(--vi-muted); }
/* flaws seen in the 390 px PNGs (notes/analysis-ia/build): container queries only, no radius declarations (the ratchet has no headroom) */
/* 資產走勢 controls: on a phone two deliberate rows (the four ranges on one row, 市值 / 損益 under them, both with 44px targets); from 440px of body width one row, ranges at the start, the toggle at the end */
.collector-app .ia .st-chartbar { flex-wrap: wrap; justify-content: flex-start; row-gap: 0; margin-block: .25rem .5rem; }
.collector-app .ia .st-chartbar .st-ranges { flex: 1 0 100%; flex-wrap: nowrap; min-inline-size: 0; }
@container (min-width: 440px) { .collector-app .ia .st-chartbar { flex-wrap: nowrap; justify-content: space-between; } .collector-app .ia .st-chartbar .st-ranges { flex: 0 1 auto; } }
/* a switch of more than four labels (收藏組成 has seven): a grid of equal cells that wraps by design, never a strip that scrolls with its last label cut. The sliding cap cannot span two rows, so the pressed cell paints itself. */
.collector-app .ia .kd-seg.is-many { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; inline-size: 100%; max-inline-size: 100%; overflow: visible; background: none; box-shadow: none; }
.collector-app .ia .kd-seg.is-many .kd-seg__cap { display: none; }
.collector-app .ia .kd-seg.is-many .kd-seg__i { min-inline-size: 0; padding-inline: .25rem; white-space: nowrap; background: var(--vi-raised); box-shadow: inset 0 0 0 1px var(--vi-line); }
.collector-app .ia .kd-seg.is-many .kd-seg__i[data-on] { background: var(--vi-accent); box-shadow: none; }
/* Oripa open bodies: no top rule of the old standalone block, no padded box around the totals, one left edge for the platform lines (name, then the three figures one per line, a hairline between platforms) */
.collector-app .ia .oripa-analysis.oa.is-embedded { margin: 0; padding: 0; border: 0; background: transparent; }   /* fix r5: this <section> is a second app-wide section box (border, fill, 24px bottom margin = the empty band under the table) */
.collector-app .ia .oa.is-embedded .oa-total { margin-block: 0; padding: 0 0 .75rem; border: 0; background: none; }
.collector-app .ia .ol-block { display: block; margin-block: 0; }
.collector-app .ia .ol-block__row { display: block; padding-block: .625rem; border-top: 1px solid var(--vi-line); }
.collector-app .ia .ol-block__n { display: block; margin: 0; font-size: var(--vi-type-base); font-weight: 600; }
.collector-app .ia .ol-block .ol-sum { margin: 0; min-block-size: 0; padding: 0; font-size: var(--vi-type-sm); color: var(--vi-muted); }
.collector-app .ia .ol-block__row:last-child { padding-block-end: 0; }
/* fix r3: the open phone row has no box inside it either (the bordered .st-block of 資產走勢 and its chart), same as the pane */
.collector-app .ia .ia-det .st-block { margin: 0; padding: 0; border: 0; background: none; }   /* fix r5: margin too (the section reset's 24px bottom margin was an empty band under 資產走勢) */
/* fix r1: desktop bar column (the mock's td.bc), one row of small pills for the 收藏組成 dimension, no box inside an open row */
.collector-app .ia .ia-rt .ia-bc { inline-size: 96px; padding-inline-start: 1rem; }
.collector-app .ia .ia-rt .ia-bc .ia-trk { inline-size: 96px; margin: 0; }
.collector-app .ia .ia-pane .st-block { padding: 0; border: 0; background: none; }
/* a wide pane: the seven dimensions are ONE row of small pills (the mock's .chips), never a two-row block */
@container (min-width: 560px) {
 .collector-app .ia .kd-seg.is-many { display: flex; flex-wrap: nowrap; inline-size: auto; max-inline-size: 100%; gap: .375rem; overflow-x: auto; scrollbar-width: none; }
 .collector-app .ia .kd-seg.is-many .kd-seg__i { flex: none; min-block-size: 36px; padding-inline: .875rem; font-size: var(--vi-type-sm); }
}
/* fix r3 */
/* a title keeps its longest word whole (the key, which may wrap, gives way first) so a row with ⓘ and a tag still reads at 360 */
.collector-app .ia .ia-tt { flex: 1 1 auto; min-inline-size: min-content; }   /* fix r5: no fixed cap on the key: when title and key fit on one line nothing shrinks; when they do not, both give way in proportion */
/* table heads wrap inside their column, so a long EN head never widens the table past its pane */
.collector-app .ia .ia-rt th { white-space: normal; }
/* an empty-state note inside an open body is plain text, not a box in the box */
.collector-app .ia .oa-empty { border: 0; background: none; padding-inline: 0; }
/* the Oripa 通路合計 table in an open row fits the row: heads and the channel name wrap, no fixed-width amount slot wider than its figure */
.collector-app .ia .oa-shops :is(th, td):first-child { white-space: normal; max-width: none; overflow: visible; text-overflow: clip; }
.collector-app .ia .oa-shops th { white-space: normal; }
.collector-app .ia .oa-shops td.oa-cov { min-width: 0; }
.collector-app .ia .oa-shops td:last-child .kd-amount { --kd-amount-slot: 11ch; }
/* at phone-narrow widths (360) the row and the open body give back 4px a side, so a row with ⓘ and a tag keeps its title whole and the Oripa channel table fits the body */
@container (max-width: 380px) {
 .collector-app .ia .ia-sum { padding-inline: .75rem; gap: .25rem; }
 .collector-app .ia .ia-det { padding-inline: .75rem; }
 .collector-app .ia .oa-shops :is(th, td) { padding-inline: .2rem; }
}

/* 分析 segment switch (app/analysis-switch.tsx), the old 工具 switch's rules, moved here from the first-load chrome sheet: one segmented row, 44px targets; the active segment is raised + ink (no vermilion). */
.collector-app .ts-switch { width: 100%; max-width: 32rem; margin: 0 0 16px; padding: 4px; gap: 6px; }   /* base's box: 3px padding + 1px border; its heights and widths stay (found-f3 r2) */
.collector-app .ts-seg[aria-current='page'] { background: var(--vi-raised); color: var(--vi-ink); box-shadow: inset 0 -2px 0 var(--vi-ink); }
.collector-app .ts-wait { min-inline-size: 56px; pointer-events: none; }
/* Phone: the first-load sheet hides every direct-child <nav> of the app shell except the bottom bar (`.collector-app>nav:not(.mobile-app-nav){display:none}` at max-width 760px: 2 classes + 1 type). This switch is a screen control, not
   site chrome, and is a direct child of the shell on its own tab: this rule (one more type selector) outranks the hide rule without touching the first-load CSS, and without a new @media query (design-lint ratchet). Outside the
   phone query it equals what the base rule already gives (flex). Width: the whole row up to 32rem, three to four equal segments (approved mock phone-analysis-pool-*). */
main.collector-app > nav.ts-switch { display: flex; }
.collector-app .ts-switch .kd-seg__i { flex: 1 1 0; min-inline-size: 0; }
.collector-app .kd-seg.ts-switch .kd-seg__i { padding: 0 4px; gap: 6px; font-size: var(--vi-type-sm); }

@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-02000-c22f5dd2.woff2') format('woff2'); unicode-range: U+2039,U+2248; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-02400-5df4afbf.woff2') format('woff2'); unicode-range: U+24D8,U+25B6; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-04c00-8ac64b55.woff2') format('woff2'); unicode-range: U+4E82,U+4E86,U+4EAB,U+4EC0; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-05000-20d19e45.woff2') format('woff2'); unicode-range: U+505C,U+518A,U+522A,U+5317,U+53E5,U+53F3; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-05400-9e59e879.woff2') format('woff2'); unicode-range: U+5427,U+554F,U+56DB,U+570D,U+5713; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-05800-bbf0a09b.woff2') format('woff2'); unicode-range: U+5927,U+592E; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-05c00-dc88beca.woff2') format('woff2'); unicode-range: U+5C31,U+5C55,U+5DF1,U+5E7E,U+5F04,U+5F88; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-06000-2d1245f2.woff2') format('woff2'); unicode-range: U+600E,U+62C6,U+6389; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-06400-db7842f2.woff2') format('woff2'); unicode-range: U+64AD,U+672B; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-06800-952c0865.woff2') format('woff2'); unicode-range: U+6B50; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-06c00-db8422e8.woff2') format('woff2'); unicode-range: U+6D32,U+6D41,U+6ED1; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-07000-f45553a7.woff2') format('woff2'); unicode-range: U+7063,U+7136,U+7246,U+737B; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-07800-50a15349.woff2') format('woff2'); unicode-range: U+7A05,U+7AEF,U+7BC4; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-07c00-6b1741ce.woff2') format('woff2'); unicode-range: U+7C3F,U+7D04; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-08000-7195cb29.woff2') format('woff2'); unicode-range: U+80A1,U+8272,U+82B1; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-08400-0f90b332.woff2') format('woff2'); unicode-range: U+842C; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-08800-066f5a71.woff2') format('woff2'); unicode-range: U+88F8,U+8A71,U+8B70; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-08c00-af3ab178.woff2') format('woff2'); unicode-range: U+8CA2,U+8CFA,U+8D70,U+8DEF,U+8F2A,U+8F38,U+8F49; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-09000-5066b02d.woff2') format('woff2'); unicode-range: U+901F,U+9032,U+908A,U+90A3,U+9177; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-09400-8ab9e078.woff2') format('woff2'); unicode-range: U+966A,U+968E; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-09800-b5f21a67.woff2') format('woff2'); unicode-range: U+9802,U+984C,U+984F; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-09c00-52270dd2.woff2') format('woff2'); unicode-range: U+9EBC; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-0fc00-f56e983e.woff2') format('woff2'); unicode-range: U+FE3F; }
@font-face { font-family: 'Kardora TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/landing/demo-fonts/demo-ui-0305dc54.woff2') format('woff2'); unicode-range: U+2013,U+2014,U+2019,U+2022,U+2026,U+203A,U+2190,U+2192,U+2197,U+2212,U+25C7,U+2605,U+2606,U+3001,U+3002,U+300C,U+300D,U+4E00,U+4E0A,U+4E0B,U+4E0D,U+4E2D,U+4E4B,U+4E5F,U+4E8B,U+4E9B,U+4EA4,U+4EAE,U+4ECA,U+4ECD,U+4ED6,U+4ED8,U+4EE3,U+4EE5,U+4EF6,U+4EFD,U+4F30,U+4F46,U+4F4D,U+4F4E,U+4F5C,U+4F60,U+4F75,U+4F86,U+4F9B,U+4F9D,U+4FDD,U+4FEE,U+5009,U+500B,U+5019,U+503C,U+5099,U+50B3,U+50C5,U+50F9,U+5132,U+5148,U+5165,U+5168,U+5169,U+516C,U+516D,U+5171,U+5176,U+5177,U+518D,U+51FA,U+5206,U+5207,U+5217,U+521D,U+5225,U+5229,U+5230,U+524D,U+5269,U+52A0,U+52D5,U+52E2,U+5316,U+532F,U+5340,U+5347,U+5361,U+5373,U+539F,U+53BB,U+53C3,U+53CA,U+53D6,U+53D7,U+53E6,U+53EA,U+53EF,U+53F0,U+53F2,U+53F8,U+5404,U+5408,U+540C,U+540D,U+5411,U+542B,U+5448,U+548C,U+54C1,U+54EA,U+552E,U+55AE,U+56DE,U+56E0,U+5716,U+5728,U+5730,U+5740,U+5747,U+578B,U+5831,U+5834,U+586B,U+589E,U+5916,U+591A,U+5920,U+5929,U+592A,U+5931,U+5957,U+597D,U+59CB,U+5B50,U+5B57,U+5B58,U+5B8C,U+5B98,U+5B9A,U+5BB6,U+5BE6,U+5BEB,U+5C0B,U+5C0D,U+5C0F,U+5C11,U+5C1A,U+5C6C,U+5DE5,U+5DEE,U+5DF2,U+5E02,U+5E03,U+5E33,U+5E36,U+5E38,U+5E45,U+5E63,U+5E73,U+5E74,U+5E8F,U+5E97,U+5EA6,U+5EFA,U+5F0F,U+5F35,U+5F71,U+5F80,U+5F85,U+5F8C,U+5F97,U+5F9E,U+5FA9,U+5FEB,U+6062,U+60C5,U+611B,U+614B,U+6210,U+6211,U+6216,U+6232,U+6240,U+624B,U+6263,U+6279,U+62CD,U+6301,U+6392,U+63A1,U+63A5,U+63A8,U+63D2,U+63DB,U+640D,U+641C,U+6458,U+64CD,U+64DA,U+64F4,U+6524,U+6536,U+6539,U+653E,U+6548,U+6574,U+6578,U+6587,U+6599,U+65B0,U+65B9,U+65BC,U+65E2,U+65E5,U+65E9,U+660E,U+6613,U+662F,U+6642,U+66AB,U+66F4,U+6700,U+6703,U+6708,U+6709,U+671F,U+672A,U+672C,U+6790,U+67E5,U+6838,U+683C,U+689D,U+6A19,U+6A23,U+6A5F,U+6AA2,U+6B21,U+6B3E,U+6B63,U+6B64,U+6B77,U+6BCF,U+6BD4,U+6C92,U+6CBF,U+6CD5,U+6D88,U+6DB5,U+6DE8,U+6E05,U+6E1B,U+6E90,U+6EAF,U+6F32,U+70BA,U+7121,U+7126,U+7167,U+7247,U+7248,U+724C,U+72C0,U+734E,U+7372,U+7387,U+73FE,U+7406,U+751F,U+7522,U+7528,U+7531,U+7559,U+7565,U+756B,U+7576,U+767C,U+767D,U+767E,U+7684,U+76CA,U+76D2,U+76EE,U+76F4,U+76F8,U+770B,U+771F,U+77E5,U+78BA,U+793A,U+79D1,U+79FB,U+7A0B,U+7A31,U+7A4D,U+7A7A,U+7B2C,U+7B46,U+7B49,U+7B97,U+7BA1,U+7BE9,U+7C64,U+7CFB,U+7D00,U+7D14,U+7D1A,U+7D2F,U+7D30,U+7D44,U+7D50,U+7D93,U+7DB2,U+7DDA,U+7DE8,U+7E3D,U+7E3E,U+7E41,U+7F3A,U+7F6E,U+7F8E,U+8003,U+8005,U+80FD,U+81EA,U+81F3,U+8207,U+820A,U+82F1,U+84CB,U+85CF,U+8655,U+865F,U+8667,U+884C,U+8868,U+88DC,U+88DD,U+88E1,U+8907,U+8981,U+8986,U+898F,U+8996,U+89BD,U+89E3,U+8A00,U+8A08,U+8A0A,U+8A18,U+8A2D,U+8A55,U+8A72,U+8A73,U+8A8D,U+8A9E,U+8AAA,U+8ACB,U+8B49,U+8B58,U+8B8A,U+8CB7,U+8CBB,U+8CC7,U+8CE3,U+8CFC,U+8D08,U+8D77,U+8D85,U+8DB3,U+8DCC,U+8DE8,U+8E64,U+8EAB,U+8F03,U+8F09,U+8F2F,U+8FA8,U+8FD1,U+8FD4,U+8FFD,U+9010,U+9019,U+901A,U+9020,U+9023,U+9031,U+904A,U+904B,U+904E,U+9053,U+9078,U+9084,U+90E8,U+90FD,U+914D,U+916C,U+91CD,U+91CF,U+91D1,U+9304,U+9451,U+9589,U+958B,U+9593,U+95B1,U+95DC,U+9644,U+964D,U+9664,U+969B,U+96A8,U+96B1,U+96C6,U+96F6,U+9700,U+975E,U+9762,U+97D3,U+97FF,U+9801,U+9805,U+9810,U+984D,U+985E,U+986F,U+9918,U+9996,U+9A57,U+9AD4,U+9AD8,U+9EDE,U+FF08,U+FF09,U+FF0B,U+FF0C,U+FF0F,U+FF1A,U+FF1B,U+FF1D,U+FF1F; }
