/* Working identity: winged-orbital emblem, deep navy, restrained cyan. See docs/design/Veylarc Brand Update.
   Loaded after appearance.css. Scanner geometry and algorithms stay independent. */
@font-face{font-family:Cinzel;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/cinzel-latin-500.woff2) format('woff2')}
:root{--tg-bg:#091522;--tg-bg-secondary:#0c1c2c;--tg-surface:#0e2034;--tg-raised:#112740;--tg-border:#254866;--tg-border-strong:#3a6b91;--tg-text:#f1f0ed;--tg-text-secondary:#bdd0df;--tg-muted:#9fb5c7;--tg-bright:#8cc8ef;--tg-cyan:#35bdf5;--tg-primary-fill:#0665e8;--tg-primary-hover:#1479ef;--tg-rail:0px;--archive-serif:Georgia,'Times New Roman',serif;--brand-display:Cinzel,var(--archive-serif)}
body{background:radial-gradient(ellipse at 50% 0,#17365255,transparent 65%),var(--tg-bg)}h1,h2,h3{font-family:var(--archive-serif);font-weight:500;letter-spacing:-.015em}
.app{padding:0;width:100%;max-width:none;min-height:100dvh}
.app-masthead{display:flex;align-items:center;gap:28px;min-height:78px;padding:10px clamp(20px,3vw,48px);border-bottom:1px solid var(--tg-border);background:linear-gradient(180deg,#0c1c2c,#091522);position:relative;z-index:22}
.app-masthead .header{position:static;inset:auto;flex:0 0 auto;width:auto;height:auto;min-height:0;padding:0;border:0;background:none;display:block}
.header .brand{flex-direction:row;align-items:center;min-height:44px;gap:0}.header .brand-title{display:none}
.app-brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;color:var(--tg-text);font-family:var(--brand-display);font-weight:500;font-size:29px;letter-spacing:.02em;line-height:1}.app-brand img{display:block;position:static;width:50px;height:auto;flex:0 0 50px;filter:brightness(1.5) saturate(1.1)}
.header .status{position:absolute;right:90px;top:61px;z-index:2;padding:3px 8px;border:1px solid var(--tg-border);border-radius:5px;background:#091927;font-size:11px}.header .status:has(.connected){display:none}
.app-masthead .main-nav{position:static;inset:auto;display:flex;flex-direction:row;align-items:center;gap:8px;flex:1;width:auto;height:auto;padding:0 0 0 26px;border:0;border-left:1px solid #314657;background:none;overflow:visible}
.app-masthead .main-nav a{flex:0 0 auto;justify-content:center;gap:8px;padding:9px 12px;min-height:42px;font-size:13px;font-weight:500;border:1px solid transparent;background:none;box-shadow:none;color:#c2d4df;margin:0}
.app-masthead .main-nav a[aria-current=page]{background:linear-gradient(180deg,#193954,#102536);border-color:#416680;color:white;box-shadow:inset 0 1px #b4d9ef12}.main-nav .ui-icon{width:21px;height:21px}.app-masthead .main-nav .nav-settings{margin-left:auto}
.app-masthead .account-chip{position:static;width:auto;padding:0;flex:0 0 auto;min-height:44px;display:flex;border:0;background:none}.account-chip>span:last-child{display:none}.account-avatar{width:36px;height:36px;border:1px solid #4e6c84;background:#183349;color:#c7daea}
.app main{padding:28px clamp(20px,3vw,48px) 34px;max-width:1760px;min-height:calc(100dvh - 166px);margin:auto}.app footer{max-width:1664px;margin:0 auto;padding:20px clamp(20px,3vw,48px) 28px;border-color:#263f50}
.page-heading h1{font-family:var(--brand-display);font-size:30px;letter-spacing:.01em}.panel,aside{background:linear-gradient(135deg,#112740b5,#0a1828e8);border-color:var(--tg-border)}
/* The collection's card list sits on the page, not on a panel (November 24: the panel tint here showed as a band the cards touched). */
.holdings-panel{background:none;box-shadow:none}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px;padding-bottom:14px;border-bottom:1px solid #314655}.section-heading h2{font-size:23px;margin:0}.section-heading a{font-size:12px;text-decoration:none;white-space:nowrap;color:#aed7ee}
.home-welcome{position:relative;isolation:isolate;min-height:366px;border:0;border-bottom:1px solid #446071;border-radius:0;padding:36px 30px 0;margin:-28px calc(-1 * clamp(20px,3vw,48px)) 26px;background-color:#102535;background-position:center 47%;background-size:cover;overflow:hidden;box-shadow:none}
.home-welcome:before{background:linear-gradient(90deg,#06121de8 0,#071622a6 32%,#07162208 80%),linear-gradient(0deg,#07111b 0,#07111b11 70%);inset:0;z-index:-1}
.welcome-copy{padding:0 0 38px;max-width:660px;min-height:235px}.welcome-copy .archive-eyebrow{color:var(--tg-bright);font-size:10px;letter-spacing:.3em;text-transform:uppercase;margin:0 0 11px}
.hero-wordmark{display:flex;gap:15px;align-items:center}.hero-wordmark>img{display:block;width:clamp(92px,9vw,132px);height:auto;flex:none;filter:brightness(1.55) saturate(1.15) drop-shadow(0 0 18px #35bdf566)}.welcome-copy .hero-wordmark h1{font-family:var(--brand-display);font-size:clamp(43px,4.4vw,68px);font-weight:500;letter-spacing:.03em;margin:0;line-height:1.05;text-shadow:none;background:linear-gradient(180deg,#fff 10%,#f1f0ed 50%,#aebdcc 92%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 16px #000b)}.welcome-copy .hero-wordmark h1:after{content:'';display:block;height:clamp(12px,1.5vw,20px);margin-top:3px;background:url(/brand/veylarc-arc.svg) center/100% 100% no-repeat}
.welcome-copy .welcome-subtitle{font-family:var(--archive-serif);font-size:23px;line-height:1.5;margin:10px 0 0;color:#f2eee2}.welcome-copy .welcome-tagline{font-size:13px;margin:8px 0 0;color:#b9cbd7;letter-spacing:.015em}
.home-welcome .home-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 26px}.home-welcome .home-action{display:flex;align-items:center;gap:20px;padding:21px 25px;min-height:90px;border:1px solid #3a617a;border-radius:9px;background:linear-gradient(120deg,#132d40ed,#0b1e2cf2);box-shadow:inset 0 1px #b3def218}
.home-welcome .home-action h2{font-family:var(--archive-serif);font-size:22px;font-weight:500;margin:0;line-height:1.3;letter-spacing:0}.home-welcome .home-action>.ui-icon{width:33px;height:33px;color:#9fc9e3}.home-welcome .scan-action{background:linear-gradient(130deg,#0877f5,#034bbd);border-color:#449dff}.home-welcome .scan-action>.ui-icon{color:white}
.home-summary.archive-summary{display:flex;align-items:center;gap:34px;margin:0 0 24px;padding:20px 26px;min-height:104px;border:1px solid #355468;border-radius:10px;background:linear-gradient(120deg,#122b3a99,#091823)}
.summary-heading{display:flex;align-items:center;gap:12px}.summary-heading>.ui-icon{color:#98bad1;width:25px;height:25px}.archive-summary .summary-heading h2{font-size:23px;margin:0;white-space:nowrap}.archive-summary .collection-total{display:flex;align-items:baseline;gap:12px;margin:0;padding-left:34px;border-left:1px solid #365064;font-variant-numeric:tabular-nums}.archive-summary .collection-total strong{font-family:var(--archive-serif);font-size:39px;font-weight:400;color:#f4f1e8;line-height:1.2}.archive-summary .collection-total span{font-size:14px;color:#a9c5d8}.summary-ornament{margin-left:auto;font-size:27px;color:var(--tg-bright);opacity:.7}
.home-dashboard{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:start}.home-dashboard>.home-decks,.home-dashboard>.home-collection{margin:0;padding:22px 24px;border:1px solid #304d60;border-radius:10px;background:linear-gradient(135deg,#1027379c,#091923);min-width:0}
.home-dashboard .home-deck-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-dashboard .home-decks .deck-tile{min-height:112px;border-radius:7px;border-color:#395263}.home-dashboard .deck-tile-link{min-height:112px;padding:18px 42px 16px 16px}.home-dashboard .deck-tile .deck-tile-link h2{font-family:var(--archive-serif);font-size:19px;margin:0 0 9px}.home-dashboard .deck-tile .deck-tile-link p{font-size:11px;margin:0;color:#d4e2eb}
.home-dashboard .recent-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 13px}.home-dashboard .holding-tile strong{font-size:12px;line-height:1.4}.home-dashboard .holding-tile small{font-size:10px}.home-dashboard .holding-tile .tile-art{border-color:#557084}
.auth-page{background:linear-gradient(90deg,#07121ee8,#07121e99),var(--app-brand-hero) center/cover fixed,var(--tg-bg)}.auth-card{border-color:#3b5769;background:linear-gradient(140deg,#102737f5,#091824fa)}.auth-card>.app-brand{display:flex;justify-content:center;font-size:36px;margin:0 auto 30px;gap:10px}.auth-card>.app-brand img{width:64px;flex-basis:64px}.auth-card h1{font-size:29px}.auth-card .auth-powered{justify-content:center}.deck-heading h1,.deck-tile .deck-tile-link h2{font-family:var(--archive-serif)}
@media(max-width:1150px) and (min-width:901px){.app-masthead{gap:15px;padding-inline:20px}.app-brand{font-size:25px}.app-brand img{width:42px;flex-basis:42px}.app-masthead .main-nav{gap:2px;padding-left:14px}.app-masthead .main-nav a{font-size:12px;padding:8px}.main-nav .ui-icon{width:18px;height:18px}.home-dashboard{grid-template-columns:1fr 1fr}.home-dashboard .home-deck-grid{grid-template-columns:1fr}.home-welcome .home-action{padding:19px;gap:12px}.home-welcome .home-action h2{font-size:20px}}
@media(max-width:900px){.app-masthead{min-height:72px;padding:10px 20px;justify-content:space-between}.app-brand{font-size:28px}.app-masthead .main-nav{position:fixed;inset:auto 0 0;z-index:40;width:100%;height:auto;display:flex;flex-direction:row;justify-content:space-around;gap:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid #36556d;background:#081725f5;backdrop-filter:blur(16px)}.app-masthead .main-nav a{flex:1;flex-direction:column;min-width:0;padding:6px 2px;gap:4px;font-size:10px;min-height:52px;border-radius:7px}.app-masthead .main-nav .nav-settings{margin:0}.app-masthead .main-nav a[aria-current=page]{border-color:transparent;box-shadow:inset 0 2px #78c7ff}.header .status{right:73px;top:24px}.main-nav .ui-icon{width:21px;height:21px}.app footer{margin-bottom:76px}.home-dashboard{grid-template-columns:1fr}.home-dashboard .home-deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-dashboard .recent-cards{grid-template-columns:repeat(6,minmax(0,1fr))}.home-welcome .home-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-welcome .home-action{padding:16px 12px;min-height:80px;gap:12px}.home-welcome .home-action h2{font-size:18px}.home-welcome .home-action>.ui-icon{width:25px;height:25px}.pwa-update,.pwa-update-indicator{bottom:calc(84px + env(safe-area-inset-bottom))}}
@media(max-width:600px){.app-masthead{padding:8px 15px;min-height:66px}.app-brand{font-size:27px}.app-brand img{width:44px;flex-basis:44px}.app main{padding:20px 15px 26px}.page-heading h1{font-size:28px}.home-welcome{margin:-20px -15px 20px;padding:29px 15px 0;min-height:0;background-position:57% center}.welcome-copy{min-height:0;padding-bottom:29px}.welcome-copy .archive-eyebrow{font-size:9px;letter-spacing:.25em}.hero-wordmark{gap:8px}.welcome-copy .hero-wordmark h1{font-size:41px;letter-spacing:.03em}.welcome-copy .welcome-subtitle{font-size:20px;max-width:260px;line-height:1.4}.welcome-copy .welcome-tagline{font-size:11px;max-width:240px}.home-welcome .home-actions{grid-template-columns:1fr;gap:10px;margin-bottom:20px}.home-welcome .home-action{min-height:64px;padding:14px 19px;gap:16px}.home-welcome .home-action h2{font-size:21px}.home-summary.archive-summary{padding:18px;margin-bottom:20px;gap:15px;flex-wrap:wrap;position:relative}.archive-summary .summary-heading h2{font-size:21px}.summary-heading>.ui-icon{width:22px;height:22px}.archive-summary .collection-total{padding:0;border:0;flex-basis:100%}.archive-summary .collection-total strong{font-size:36px}.summary-ornament{position:absolute;right:20px;top:18px}.home-dashboard{gap:20px}.home-dashboard>.home-decks,.home-dashboard>.home-collection{padding:19px 15px}.section-heading h2{font-size:22px}.section-heading a{font-size:11px}.home-dashboard .home-deck-grid{grid-template-columns:1fr;gap:10px}.home-dashboard .deck-tile-link{min-height:104px;padding:18px 46px 16px 17px}.home-dashboard .home-decks .deck-tile{min-height:104px}.home-dashboard .deck-tile .deck-tile-link h2{font-size:22px}.home-dashboard .recent-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 11px}.app footer{padding-inline:15px;font-size:11px}.auth-card>.app-brand{font-size:32px}.auth-page{background-attachment:scroll}.app-masthead .main-nav .nav-admin,.app-masthead .main-nav .nav-settings{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:901px){.welcome-copy{min-height:210px}.home-dashboard .recent-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.home-dashboard .holding-tile strong{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.home-dashboard .holding-tile small{font-size:10px;line-height:1.4}}
.holding-tile .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.app-masthead .account-chip{height:44px}
@media(max-width:380px){.holding-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Scanner presentation. Video fitting, capture and geometry are unchanged; the guide overlay is drawn over the video and never captured. */
.bulk-scanner h2{font-family:var(--brand-display);font-weight:500;letter-spacing:.01em}
.bulk-scanner .eyebrow{color:var(--tg-bright);letter-spacing:.2em}
.bulk-scanner button:has(>.ui-icon),.bulk-scanner a.scan-link{display:inline-flex;align-items:center;justify-content:center;gap:9px}
.bulk-scanner .ui-icon{flex:none}
.bulk-scanner .automatic-diagnostics:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px;padding:10px 14px;border:1px solid #f2c59c66;border-radius:10px;background:#3a2a1a66;color:#f6dcc0;font-size:.85rem}
.app[data-route='/scan'] .page-heading{display:none}
.bulk-scanner .capture-mode{border-color:var(--tg-border-strong);border-radius:999px;background:#091522cc}
.bulk-scanner .capture-mode button{border-radius:999px;min-height:40px;padding:6px 18px}
.bulk-scanner .capture-mode button[aria-pressed=true]{background:linear-gradient(180deg,#1b4c74,#123450);border-color:#3a6b91;color:#fff}
.bulk-scanner>.panel .capture-mode{margin:4px 0 6px}
.scan-home.panel{max-width:940px;margin:0 auto;padding:0;overflow:hidden;border-radius:16px;border-color:var(--tg-border-strong);background:var(--tg-surface)}
.scan-home-hero{display:grid;justify-items:center;text-align:center;gap:10px;padding:34px 24px 30px;background:linear-gradient(180deg,#091522b3,#091522f5 92%),var(--app-brand-hero) center 42%/cover}
.scan-home-hero>img{width:92px;height:auto;filter:brightness(1.55) saturate(1.15) drop-shadow(0 0 16px #35bdf566)}
.scan-home-hero .eyebrow{margin:6px 0 0;font-size:.72rem}
.scan-home-hero h2{margin:0;font-size:clamp(30px,4vw,42px);line-height:1.1}
.scan-home-lead{max-width:520px;margin:0;color:var(--tg-text-secondary);line-height:1.55}
.scan-home-hero .muted{margin:2px 0 0;font-size:.8rem}
.bulk-scanner .scan-home-start{min-width:min(100%,280px);min-height:54px;margin-top:6px;font-size:1.05rem;border-radius:12px}
.scan-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;border-top:1px solid var(--tg-border)}
.scan-steps li{display:grid;justify-items:center;text-align:center;gap:5px;padding:18px 14px}
.scan-steps li+li{border-left:1px solid var(--tg-border)}
.scan-steps .ui-icon{width:24px;height:24px;color:var(--tg-cyan)}
.scan-steps strong{font-family:var(--archive-serif);font-size:1.05rem;font-weight:500}
.scan-steps span{font-size:.8rem;line-height:1.4;color:var(--tg-muted)}
.scan-drafts{padding:18px 24px 22px;border-top:1px solid var(--tg-border)}
.scan-drafts h3{margin:0 0 12px;font-size:1.1rem}
.scan-drafts .batch-summary{margin:8px 0;background:#091522b3}
.scan-drafts .batch-summary>span{flex:1;min-width:190px}
.capture-layout .batch-camera{border:1px solid var(--tg-border-strong);border-radius:16px;background:radial-gradient(ellipse at center,#123450,#060e18 75%);box-shadow:0 10px 34px #0007}
.camera-image-guide .guide-scrim{fill:#050c15;opacity:.48}
.camera-image-guide rect{stroke:#ffffff40;stroke-width:1;stroke-dasharray:none}
.camera-image-guide .guide-corners{fill:none;stroke:var(--tg-cyan);stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 5px #35bdf599);transition:stroke .18s}
.batch-camera:has(.camera-progress[data-tone=ready]) .guide-corners{stroke:#5fe3a1;filter:drop-shadow(0 0 6px #5fe3a199)}
.camera-progress{background:#091522eb;border-color:var(--tg-border-strong);border-radius:999px}
.camera-progress>span:first-child{background:var(--tg-cyan)}
.camera-progress[data-tone=ready]>span:first-child{background:#5fe3a1}
.capture-cue-card{border-color:var(--tg-cyan);background:#091522f2}
.capture-cue-icon{background:#123450;color:#8fdcff}
.capture-count{padding:5px 11px;border:1px solid var(--tg-border);border-radius:999px;background:#0c1c2c;color:var(--tg-text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap}
.capture-draft{color:var(--tg-muted)}
.capture-draft:before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#5fe3a1;vertical-align:1px}
.capture-topbar>button{border-color:transparent;color:var(--tg-text-secondary)}
.bulk-scanner .capture-actions .review-stack,.bulk-scanner .capture-actions .pause-camera{background:#0c1c2c;border-color:var(--tg-border-strong)}
.capture-options summary{color:var(--tg-text-secondary);font-weight:500}
.capture-options[open]{border-top-color:var(--tg-border)}
.scan-support{margin:14px 0 0;font-size:.82rem;color:var(--tg-muted)}
.scan-support summary{cursor:pointer;min-height:44px;padding:10px 0}
.processing-status{display:grid;gap:6px;margin-bottom:12px;border-color:var(--tg-border-strong);background:var(--tg-surface)}
.processing-status p{margin:0}
.processing-status progress{width:100%;height:6px;border:0;border-radius:99px;overflow:hidden;background:#123450;accent-color:var(--tg-cyan)}
.processing-status progress::-webkit-progress-bar{background:#123450}
.processing-status progress::-webkit-progress-value{background:var(--tg-cyan)}
.batch-review{max-width:1180px}
.batch-review .insight-heading{margin:0 0 6px}
.batch-review .insight-heading h2{font-size:clamp(24px,3vw,30px)}
.batch-review .insight-heading+p{margin:0 0 14px;font-size:.88rem;color:var(--tg-text-secondary)}
.review-layout{display:grid;gap:16px}
.review-stage,.review-details{min-width:0}
.batch-review .batch-controls{margin:0 0 10px}
.batch-review .batch-controls button{background:transparent}
.batch-review .batch-photo{border:1px solid var(--tg-border-strong);border-radius:14px;background:radial-gradient(ellipse at center,#123450,#060e18 78%)}
.batch-review .batch-photo img{display:block;width:auto;max-width:100%;max-height:44dvh;margin:auto;object-fit:contain;border-radius:10px}
.batch-filmstrip button[aria-current=true]{outline-color:var(--tg-cyan)}
.batch-review .recognition-review{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 0 14px;padding:18px;border:1px solid var(--tg-border-strong);border-radius:14px;background:linear-gradient(135deg,#112740,#0c1c2c)}
.batch-review .recognition-review p{margin:0;font-size:.86rem;line-height:1.5;color:var(--tg-text-secondary)}
.batch-review .recognition-review .identity-status{order:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:0;padding:0}
.batch-review .recognition-review .identity-status strong{font-family:var(--archive-serif);font-size:1.55rem;font-weight:500;line-height:1.2;letter-spacing:0}
.batch-review .recognition-review .identity-status span{padding:3px 10px;border:1px solid #f4ce8466;border-radius:999px;background:#f4ce841a;color:#f4ce84;font-size:.75rem}
.batch-review .recognition-review .identity-green span,.batch-review .recognition-review .identity-user-confirmed span{border-color:#5fe3a166;background:#5fe3a11a;color:#86efac}
.batch-review .recognition-review .identity-red span{border-color:#fca5a566;background:#fca5a51a;color:#fca5a5}
.batch-review .recognition-review>.muted{order:2}
.batch-review .recognition-review .card-metadata{order:3;display:block}
.batch-review .recognition-review .printing-status{order:4;margin:4px 0 0}
.batch-review .recognition-review .set-status{order:5}
.batch-review .recognition-review>button{order:6;align-self:flex-start;margin-top:6px;background:transparent;border-color:var(--tg-border-strong)}
.batch-review .recognition-review .correction-panel{order:7}
.batch-review .recognition-review>details{order:8}
.batch-review .checkbox{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.batch-review .checkbox input{width:20px;height:20px;margin:0;accent-color:var(--tg-cyan)}
.batch-review .form-grid{margin:0 0 14px}
.batch-review .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.batch-review .actions>.primary{grid-column:1/-1;min-height:52px;font-size:1rem}
.batch-review .review-secondary-action{background:transparent;border-color:var(--tg-border-strong)}
.batch-review .review-details>.muted{margin:10px 0 0;font-size:.8rem;line-height:1.5}
.batch-review .batch-footer{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:18px 0 8px;padding-top:16px;border-top:1px solid var(--tg-border)}
.batch-review .batch-footer>.primary{order:-1;grid-column:1/-1;min-height:54px;font-size:1.05rem}
.batch-review .batch-footer>button:not(.primary){background:transparent;border-color:var(--tg-border)}
.batch-review .batch-footer>.discard-batch{color:#f2b5a7}
.batch-review .batch-footer~.muted{font-size:.8rem}
.scan-done.panel{display:grid;justify-items:center;gap:10px;max-width:560px;margin:24px auto;padding:36px 24px;text-align:center;border-radius:16px;border-color:var(--tg-border-strong)}
.scan-done h2{margin:0;font-size:clamp(28px,4vw,36px)}
.scan-done .eyebrow{margin:6px 0 0}
.scan-done p{margin:0}
.scan-done-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid #5fe3a166;border-radius:50%;background:#5fe3a11a;color:#86efac}
.scan-done-icon .ui-icon{width:32px;height:32px}
.scan-done .primary{min-width:min(100%,260px);min-height:52px;margin-top:10px}
.scan-done .scan-link{min-height:44px;padding:8px 14px;color:var(--tg-bright)}
@media(min-width:1000px){
 .bulk-scanner .capture-layout{display:grid;max-width:1280px;grid-template-columns:minmax(0,1fr) 330px;grid-template-rows:repeat(6,auto) 1fr;column-gap:20px;row-gap:0;align-items:start}
 .capture-layout:before{content:'';grid-column:2;grid-row:1/-1;align-self:stretch;border:1px solid var(--tg-border-strong);border-radius:16px;background:linear-gradient(160deg,#112740,#0c1c2c)}
 .capture-layout>*{grid-column:2;margin:0 16px 14px}
 .capture-layout .batch-camera{grid-column:1;grid-row:1/-1;margin:0}
 .capture-layout .batch-camera video{height:min(calc(100dvh - 170px),780px);min-height:420px}
 .capture-topbar{grid-row:1;margin-top:16px;flex-wrap:wrap}.capture-layout>.capture-device{grid-row:2;flex-direction:column;align-items:stretch}
 .capture-layout>.batch-error{grid-row:3}.capture-layout>p[role=status]{grid-row:4}.capture-layout>.capture-actions{grid-row:5}.capture-layout>.capture-secondary{grid-row:6}
 .capture-topbar>button{padding:8px 10px 8px 4px}
 .capture-topbar .capture-mode{order:3;flex:0 0 100%}.capture-topbar .capture-mode button{flex:1}
 .bulk-scanner .capture-device .batch-camera-picker{max-width:none;grid-template-columns:1fr;gap:6px}
 .bulk-scanner .capture-device .batch-camera-picker select{font-size:.92rem}
 .capture-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .capture-actions>.primary{grid-column:1/-1;min-height:64px;font-size:1.08rem;border-radius:14px}
 .capture-actions>button:not(.primary){min-height:48px;padding-inline:8px;font-size:.85rem}
 .capture-actions:has(.start-camera)>.review-stack{grid-column:1/-1}
 .capture-secondary{justify-content:flex-start}.capture-options summary{text-align:left;padding-inline:0}
 .review-layout{grid-template-columns:minmax(0,1fr) minmax(360px,430px);gap:24px;align-items:start}
 .review-stage{position:sticky;top:16px}
 .batch-review .batch-photo img{max-height:min(calc(100dvh - 300px),640px)}
}
@media(max-width:800px),(max-width:900px) and (max-height:500px){
 .capture-layout .batch-camera{border-radius:14px}
 .capture-topbar>button{width:44px;padding:0}
 .capture-topbar>button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .capture-topbar .capture-mode button{min-height:44px;padding:6px 12px;font-size:.85rem}
 .capture-count{padding:4px 8px;flex:0 1 auto;max-width:none;font-size:.68rem}
 .bulk-scanner .capture-device .batch-camera-picker{grid-template-columns:minmax(0,1fr);font-size:0;gap:0}
 .bulk-scanner .capture-device .batch-camera-picker select{min-height:48px;font-size:1rem;padding:6px 8px;background-color:#0c1c2c;border-color:var(--tg-border)}
 .capture-secondary{justify-content:center}
}
@media(max-width:800px) and (min-height:501px){
 .capture-actions,.capture-actions:has(>button:nth-child(2):last-child){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px}
 .capture-actions>button{grid-row:auto}
 .capture-actions>.pause-camera{order:1}.capture-actions>.shutter{order:2}.capture-actions>.review-stack{order:3}
 .bulk-scanner .capture-actions>.pause-camera,.bulk-scanner .capture-actions>.review-stack{flex-direction:column;gap:3px;min-height:60px;padding:6px 4px;font-size:.72rem;line-height:1.2;background:transparent;border-color:transparent}
 .bulk-scanner .capture-actions>button.shutter,.capture-actions>button.shutter:first-child{grid-row:auto;width:78px;height:78px;min-height:78px;padding:0;border:4px solid #f1f0ed;border-radius:50%;background:radial-gradient(circle at 50% 35%,#35bdf5,#0665e8);box-shadow:0 0 0 3px #091522,0 0 0 5px #35bdf5aa,0 0 22px #35bdf566}
 .capture-actions>.shutter>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .capture-actions>.shutter>.ui-icon{width:30px;height:30px;color:#fff}
 .capture-actions>.shutter:disabled{opacity:.55}
 .capture-actions:has(.start-camera){grid-template-columns:1.5fr 1fr}
 .capture-actions>.start-camera{min-height:56px!important;font-size:1rem}
 .capture-actions:has(.start-camera)>.review-stack{flex-direction:row!important;min-height:56px!important;font-size:.85rem!important;background:#0c1c2c!important;border-color:var(--tg-border-strong)!important}
}
@media(max-width:360px){.capture-topbar .capture-mode button{padding:6px 9px;font-size:.8rem}.capture-count{padding:3px 6px;font-size:.62rem}}
@media(max-width:600px){
 .scan-home-hero{padding:24px 16px 22px}
 .scan-home-hero>img{width:74px}
 .scan-steps li{padding:14px 8px}.scan-steps span{font-size:.72rem}
 .scan-drafts{padding:16px}
 .batch-review .recognition-review{padding:15px}
 .batch-review .recognition-review .identity-status strong{font-size:1.35rem}
 .welcome-copy .hero-wordmark h1:after{margin-top:2px}
}

/* Accounts, reports and install. */
.account-form .account-remember{display:flex;align-items:center;gap:10px;font-weight:500}
.account-remember input{width:20px;height:20px;margin:0;accent-color:var(--tg-cyan)}
.install-app{display:grid;gap:8px;margin-top:16px}
.install-app button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;width:100%}
.install-app p{margin:0;font-size:.85rem;line-height:1.5;color:var(--tg-text-secondary)}
.signin-details{margin:16px 0;padding:16px;border:1px solid var(--tg-cyan);border-radius:12px;background:#091522}
.signin-details h3{margin:0 0 6px}.signin-details p{font-size:.85rem}
.signin-details pre{margin:10px 0;padding:12px;border-radius:8px;background:#060e18;font-size:.85rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;user-select:all}
button.report-problem{min-height:44px;padding:8px 12px;background:none;border-color:transparent;box-shadow:none;color:var(--tg-bright);font-size:.8rem;text-decoration:underline;text-underline-offset:3px}
button.report-problem:hover{background:none;color:#fff}
.bulk-scanner .review-report{padding-left:0}
.capture-options .report-problem{padding-left:0}
dialog.report-dialog{width:min(520px,calc(100vw - 24px));padding:24px;border:1px solid var(--tg-border-strong);border-radius:14px;background:var(--tg-surface);color:var(--tg-text)}
dialog.report-dialog::backdrop{background:#050c15cc}
.report-dialog h2{margin:0;font-family:var(--brand-display);font-weight:500}
.report-dialog textarea{width:100%;resize:vertical;font-size:1rem}
.report-list{list-style:none;margin:16px 0 0;padding:0}
.report-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--tg-border)}
.report-list li>div{display:grid;gap:5px;min-width:0}
.report-list li[data-resolved=true]{opacity:.6}
.report-list p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.report-list small{color:var(--tg-muted);overflow-wrap:anywhere}
.report-list button{flex:none}
@media(max-width:600px){.report-list li{flex-direction:column}}

/* Admin scanner support. */
.admin-scanner{display:grid;gap:16px}
.admin-scanner .scan-link{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;color:var(--tg-bright)}
.scanner-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.scanner-findings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:14px 0}
.scanner-findings h3{margin:0 0 8px;font-size:1.05rem}
.scanner-findings ul{margin:0;padding-left:18px;display:grid;gap:6px;font-size:.88rem;line-height:1.5}
.scanner-users{list-style:none;margin:12px 0 0;padding:0}
.scanner-users li{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--tg-border)}
.scanner-users li>div{display:grid;gap:3px;flex:1;min-width:170px}
.scanner-users small{color:var(--tg-muted)}
.scanner-captures{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.scanner-captures li{display:flex;gap:12px;padding:12px;border:1px solid var(--tg-border);border-radius:10px;background:#091522}
.scanner-captures img,.scanner-no-photo{flex:none;width:88px;height:122px;object-fit:contain;border-radius:6px;background:#060e18}
.scanner-no-photo{display:grid;place-items:center;font-size:.72rem;color:var(--tg-muted)}
.scanner-captures li>div{display:grid;gap:3px;align-content:start;min-width:0}
.scanner-captures small{color:var(--tg-muted);overflow-wrap:anywhere}
.scanner-captures .scanner-changed{color:#f4ce84}
@media(max-width:700px){.scanner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.scanner-findings{grid-template-columns:1fr}}
.scanner-users label.account-remember{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0}

/* Public landing page. */
.landing{min-height:100dvh;display:flex;flex-direction:column;background:var(--tg-bg)}
.landing-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding:10px clamp(16px,3vw,48px);border-bottom:1px solid var(--tg-border);background:linear-gradient(180deg,#0c1c2c,#091522)}
.landing-bar .primary{min-height:44px;padding:8px 22px}
.landing main{flex:1;width:100%;max-width:none;margin:0;padding:0}
.landing-hero{padding:clamp(32px,6vw,72px) clamp(16px,3vw,48px);background:linear-gradient(90deg,#06121df2 0,#071622b3 45%,#07162222 85%),linear-gradient(0deg,#091522 0,#09152200 45%),var(--app-brand-hero) center 42%/cover}
.landing-hero .welcome-copy{min-height:0;padding:0;max-width:680px}
.landing-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px}
.landing-actions .primary{min-width:190px;min-height:52px;font-size:1.05rem;border-radius:12px}
.landing-actions .install-app{margin:0;flex:1 1 190px;max-width:280px}
.landing-invite{margin:14px 0 0;font-size:.85rem;color:var(--tg-text-secondary)}
.landing-stats h3{margin:0 0 10px;font-size:1.05rem}
.landing-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.landing-totals>div{display:grid;gap:4px;padding:18px 22px;border:1px solid var(--tg-border-strong);border-radius:12px;background:linear-gradient(135deg,#112740,#0c1c2c)}
.landing-totals strong{font-family:var(--archive-serif);font-size:clamp(30px,5vw,44px);font-weight:400;line-height:1.1;font-variant-numeric:tabular-nums}
.landing-totals span{color:var(--tg-text-secondary);font-size:.9rem}
.landing-commanders ol{margin:0;padding-left:22px;display:grid;gap:5px}
.landing-features .ui-icon{width:28px;height:28px;color:var(--tg-cyan)}
.landing-features h2{margin:8px 0 6px;font-size:1.25rem}
.landing-features p{margin:0;font-size:.9rem;line-height:1.55;color:var(--tg-text-secondary)}
.landing-footer{padding:18px clamp(16px,3vw,48px);border-top:1px solid var(--tg-border);font-size:.8rem;color:var(--tg-muted)}
@media(max-width:700px){.landing-features{grid-template-columns:1fr}.landing-actions .primary,.landing-actions .install-app{flex:1 1 100%;max-width:none;width:100%}.landing-hero{background-position:60% center}}
.landing-stats{position:relative;isolation:isolate;padding:clamp(30px,5vw,56px) clamp(16px,3vw,48px);background:radial-gradient(ellipse at 50% 0,#17365299,transparent 70%)}
.landing-stats>*{max-width:1120px;margin-inline:auto}
.landing-stats h2{margin-top:0;margin-bottom:22px;text-align:center;font-family:var(--brand-display);font-weight:500;font-size:clamp(26px,3.4vw,36px)}
.landing-stats h2:after{content:'';display:block;width:min(320px,70%);height:14px;margin:6px auto 0;background:url(/brand/veylarc-arc.svg) center/100% 100% no-repeat}
.landing-colors,.landing-commanders{margin-top:34px;text-align:center}
.landing-colors h3,.landing-commanders h3{margin:0 0 20px;font-family:var(--archive-serif);font-weight:500;font-size:1.3rem}
.landing-colors ul{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(8px,1.6vw,20px)}
.landing-colors li{--glow:#35bdf5;display:grid;justify-items:center;gap:6px;padding:20px 8px 16px;border:1px solid var(--tg-border);border-radius:14px;background:linear-gradient(170deg,#112740,#0a1828);box-shadow:inset 0 1px #b3def214}
.landing-colors li[data-color=W]{--glow:#f4eed2}.landing-colors li[data-color=U]{--glow:#4bb8f0}.landing-colors li[data-color=B]{--glow:#a891c4}.landing-colors li[data-color=R]{--glow:#ef7a5f}.landing-colors li[data-color=G]{--glow:#58c486}.landing-colors li[data-color=C]{--glow:#c4d0dc}
.landing-colors img{width:clamp(44px,5.6vw,72px);height:auto;filter:drop-shadow(0 0 14px color-mix(in srgb,var(--glow) 55%,transparent))}
.landing-colors strong{margin-top:6px;font-family:var(--archive-serif);font-size:clamp(22px,3vw,32px);font-weight:400;font-variant-numeric:tabular-nums;line-height:1.1}
.landing-colors li span{color:var(--tg-text-secondary);font-size:.82rem}
.landing-colors>p{margin:14px 0 0;color:var(--tg-muted);font-size:.8rem}
.landing-commanders ol{display:inline-block;text-align:left}
.landing-totals>div{text-align:center;justify-items:center}
.landing-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1216px;margin:0 auto;padding:clamp(24px,4vw,44px) clamp(16px,3vw,48px)}
.landing-features>div{padding:22px;border:1px solid var(--tg-border);border-radius:14px;background:linear-gradient(170deg,#0f2134,#0a1828)}
@media(max-width:700px){.landing-colors ul{grid-template-columns:repeat(3,minmax(0,1fr))}.landing-features{grid-template-columns:1fr}}
/* Administrator tools. */
.viewing-banner{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:8px clamp(16px,3vw,48px);background:#6b4a12;color:#fff3d6;font-size:.88rem}
.viewing-banner button{min-height:40px;padding:6px 14px;background:#0009;border-color:#fff3d666;color:#fff}
.closed-accounts{margin-top:18px}.closed-accounts h3{margin:0 0 4px}.closed-accounts p{margin:0;font-size:.85rem;color:var(--tg-muted)}
.remove-account{margin:16px 0;padding:18px;border:1px solid #f2b5a766;border-radius:12px;background:#091522;max-width:560px}
.remove-account h3{margin:0}.remove-account p{margin:0 0 10px;font-size:.88rem;line-height:1.5}
.remove-option{display:grid;gap:10px;padding-top:14px;border-top:1px solid var(--tg-border)}
.remove-account button.danger{background:#8c2f24;border-color:#c85a4c;color:#fff}

/* Prices and trends. */
.value-card{display:grid;gap:4px;min-width:0}
.value-card .value-label{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tg-bright)}
.value-card>strong{font-family:var(--archive-serif);font-size:clamp(24px,3vw,32px);font-weight:400;line-height:1.15;font-variant-numeric:tabular-nums}
.value-card small{color:var(--tg-text-secondary);font-size:.78rem;line-height:1.45}
.value-card .value-as-of{color:var(--tg-muted);font-size:.72rem}
.home-summary.archive-summary .value-card{padding-left:34px;border-left:1px solid #365064}
.collection-value{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 24px;margin:4px 0 16px;padding:14px 16px;border:1px solid var(--tg-border);border-radius:12px;background:#0c1c2c}
.deck-heading .metrics .value-card{min-width:180px;padding:10px 14px;border:1px solid #ffffff22;border-radius:14px;background:#071724b3}
button.sparkline{display:inline-flex;align-items:center;gap:8px;min-height:44px;width:max-content;max-width:100%;padding:4px 10px 4px 4px;border:1px solid transparent;border-radius:10px;background:none;box-shadow:none;color:var(--tg-text-secondary);font-size:.78rem;font-variant-numeric:tabular-nums}
button.sparkline:hover{border-color:var(--tg-border-strong);background:#0c1c2c}
button.sparkline svg{width:120px;height:32px;flex:none;overflow:visible}
button.sparkline polyline{fill:none;stroke:var(--tg-cyan);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
button.sparkline[data-trend=up] polyline{stroke:#5fe3a1}button.sparkline[data-trend=down] polyline{stroke:#f2937f}
[data-trend=up]{color:#86efac}[data-trend=down]{color:#f6a693}
.holding-price{color:var(--tg-bright);font-variant-numeric:tabular-nums}.holding-price span{color:var(--tg-muted)}
.holding-value{display:grid;gap:6px;margin:10px 0}.holding-value p{margin:0}.holding-value .tag{margin-left:8px}
.holding-value label{display:grid;gap:4px;max-width:220px;font-size:.85rem}
dialog.price-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px;border:1px solid var(--tg-border-strong);border-radius:16px;background:var(--tg-surface);color:var(--tg-text)}
dialog.price-dialog::backdrop{background:#050c15cc}
.price-dialog h2{margin:0;font-family:var(--brand-display);font-weight:500}
.price-dialog .segmented{margin:12px 0}
.price-chart{margin:8px 0 0}
.price-chart svg{display:block;width:100%;height:200px;border-radius:10px;background:linear-gradient(180deg,#112740,#091522)}
.price-chart polyline{fill:none;stroke:var(--tg-cyan);stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.price-chart polygon{fill:#35bdf522}
.price-chart figcaption{display:flex;justify-content:space-between;margin-top:4px;font-size:.75rem;color:var(--tg-muted)}
.price-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:14px 0}
.price-facts div{padding:10px 12px;border:1px solid var(--tg-border);border-radius:10px;background:#091522}
.price-facts dt{font-size:.72rem;color:var(--tg-muted)}.price-facts dd{margin:2px 0 0;font-size:1.05rem;font-variant-numeric:tabular-nums}
.price-lists{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.price-lists h3{margin:0 0 8px;font-size:1rem}
.price-lines{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.price-lines li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--tg-border);font-size:.86rem}
.price-lines li>span:first-child{display:grid;min-width:0}.price-lines small{color:var(--tg-muted)}
.price-lines li>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.price-source{font-size:.75rem;color:var(--tg-muted)}
.finish-chooser>button{min-height:44px}
.finish-chooser>div{display:grid;gap:10px;margin-top:10px}.finish-chooser p{margin:0;font-size:.85rem}
.finish-chooser ul{list-style:none;margin:0;padding:0;max-height:420px;overflow:auto}
.finish-chooser li{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--tg-border)}
.finish-chooser li>span:first-child{display:grid}.finish-chooser small{color:var(--tg-muted)}
.finish-buttons{display:flex;gap:6px}.finish-buttons button{min-height:40px;padding:6px 12px}
@media(max-width:600px){.home-summary.archive-summary .value-card{padding-left:0;border-left:0;flex-basis:100%}button.sparkline svg{width:96px}}
.deck-heading .metrics .value-card{min-width:220px;min-height:104px;align-content:start}
.collection-value .value-card,.home-summary .value-card{min-height:96px;min-width:200px;align-content:start}

/* Scanner states: idle and paused, hints, auto capture switch, stack count. */
.camera-idle{position:absolute;inset:0;z-index:1;display:grid;place-content:center;justify-items:center;gap:10px;padding:24px;text-align:center;background:radial-gradient(ellipse at center,#123450cc,#060e18f2 75%)}
.camera-idle strong{font-family:var(--brand-display);font-size:clamp(20px,4vw,28px);font-weight:500}
.camera-idle span{max-width:340px;color:var(--tg-text-secondary);font-size:.9rem;line-height:1.5}
.capture-hint{position:absolute;left:50%;top:14px;z-index:3;transform:translateX(-50%);display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px 12px;width:max-content;max-width:calc(100% - 24px);padding:8px 10px 8px 14px;border:1px solid var(--tg-border-strong);border-radius:14px;background:#091522f0;font-size:.85rem;text-align:center}
.capture-hint .primary{min-height:40px;padding:6px 14px}
.auto-capture-switch,.proxy-switch{display:inline-flex;align-items:center;gap:10px;align-self:center;min-height:44px;font-size:.85rem;color:var(--tg-text-secondary)}
.auto-capture-switch input,.proxy-switch input{appearance:none;position:relative;width:42px;height:24px;margin:0;border:1px solid var(--tg-border-strong);border-radius:999px;background:#0c1c2c;cursor:pointer;transition:background .15s}
.auto-capture-switch input:after,.proxy-switch input:after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#9fb5c7;transition:transform .15s}
.auto-capture-switch input:checked,.proxy-switch input:checked{background:#1b6fb0;border-color:var(--tg-cyan)}
.auto-capture-switch input:checked:after,.proxy-switch input:checked:after{transform:translateX(18px);background:#fff}
.auto-capture-switch input:focus-visible{outline:3px solid var(--tg-cyan);outline-offset:2px}
.review-stack .stack-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--tg-cyan);color:#06121c;font-size:.75rem;font-weight:700}
@media(min-width:1000px){.capture-layout>.auto-capture-switch{grid-column:2;grid-row:6;margin:0 16px 10px}.capture-layout>.capture-secondary{grid-row:7}}
@media(prefers-reduced-motion:reduce){.auto-capture-switch input,.auto-capture-switch input:after,.proxy-switch input:after{transition:none}}
/* November 24 look review: alignment and finish. */
/* Footer: the three items on one line, at one size (the 44px Report a problem button sat lower than the text beside it). */
.app footer{align-items:center}
@media(min-width:601px){.app footer{display:grid;grid-template-columns:1fr auto 1fr}.app footer>span:not([class]){justify-self:end}.app footer>.fan-content{justify-self:center;text-align:center;max-width:900px}}
.app footer>span,.app footer .footer-credit,.app footer button.report-problem{font-size:12px}
@media(max-width:600px){.app footer{align-items:flex-start}.app footer>span,.app footer .footer-credit,.app footer button.report-problem{font-size:11px}.app footer button.report-problem{min-height:36px;padding-left:0}}
/* Top movers: the percentage stays beside the change instead of dropping to its own line (phones keep hiding it). */
@media(min-width:901px){:is(.app,.landing) .mover-tile .mover-change small{display:inline;margin:0}}
/* Card names take exactly two lines, whatever their line height, so every row's details line up. */
.holding-tile strong{min-height:2lh}
.holding-grid .holding-tile strong{line-height:1.3}
/* A heading the app moves focus to (an opened card's panel) shows no box after a click; keyboard focus still does. */
:is(h1,h2,h3,h4)[tabindex='-1']:focus:not(:focus-visible){outline:none;box-shadow:none}
/* Narrow screens: Grid and List fill their switch. */
@media(max-width:800px){.collection-tools>.segmented>button{flex:1 1 0}}
/* Deck favorite star stays boxless but reads on light artwork. */
.deck-tile .deck-favorite .ui-icon,.deck-tile .deck-favorite svg{filter:drop-shadow(0 0 1px #000) drop-shadow(0 1px 3px #000c)}
/* A closed panel has no gap under its title (the hidden content counted as a second row). */
details:not([open]){row-gap:0!important}
/* The lone ornament at the end of Home's collection summary read as a stray mark. */
.summary-ornament{display:none}
/* Wizards of the Coast Fan Content Policy notice (November 24): one quiet full-width line under each footer. */
.fan-content{display:block;flex-basis:100%;grid-column:1/-1;margin-top:4px;font-size:10.5px;line-height:1.5;color:var(--tg-muted);opacity:.85}
.fan-content a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.landing-footer,.auth-powered{flex-wrap:wrap}
.landing-footer .fan-content,.auth-powered .fan-content{max-width:620px}
/* November 24: Collection heading actions (Wishlist beside Scan Cards). */
.page-heading .page-actions{position:absolute;right:0;top:0;display:flex;gap:10px;align-items:center}
.page-heading .page-actions .page-action{position:static;margin:0}
.page-heading:has(.page-actions){padding-right:300px}
.page-action.secondary{background:transparent;border-color:var(--tg-border-strong);color:var(--tg-text)}
.page-action.secondary:hover{background:#ffffff0d}
@media(max-width:600px){.page-heading:has(.page-actions){padding-right:0}.page-heading .page-actions{position:static;margin-left:auto;gap:8px}}
/* Collection import and export (inside Add owned cards). */
.collection-transfer{margin-top:22px;padding-top:18px;border-top:1px solid var(--tg-border);display:grid;gap:10px}
.collection-transfer h3{margin:0;font-size:1rem}
.collection-transfer .muted{margin:0;font-size:.82rem;line-height:1.5}
.transfer-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.file-button{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:9px 16px;border:1px solid var(--tg-border-strong);border-radius:8px;cursor:pointer;font-size:.85rem}
.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}
.file-button:focus-within{outline:2px solid var(--tg-cyan);outline-offset:2px}
.transfer-paste summary{cursor:pointer;font-size:.82rem;color:var(--tg-text-secondary)}
.transfer-paste textarea{width:100%;margin:8px 0;font:inherit;font-size:.85rem}
.transfer-preview{display:grid;gap:10px;padding:14px 16px;border:1px solid var(--tg-border-strong);border-radius:10px;background:#0a1828}
.transfer-preview p{margin:0}
.transfer-problems{margin:0;padding-left:18px;font-size:.8rem;color:var(--tg-text-secondary);max-height:180px;overflow:auto}
/* Proxy swaps (November 24): one quiet line; the list opens on Show. */
.proxy-swaps{margin:0 0 16px;border:1px solid var(--tg-border);border-radius:10px;background:#0b1826}
.proxy-swaps-line{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 8px 6px 14px;font-size:.86rem}
.proxy-swaps-line>.ui-icon{flex:0 0 18px;width:18px;height:18px;color:#7fe0b0}
.proxy-swaps-line>span{flex:1 1 auto;min-width:0;color:var(--tg-text-secondary)}
.proxy-swaps-line strong{color:var(--tg-text)}
.management .proxy-swaps-show{min-height:34px;padding:4px 10px;border:0;background:none;color:var(--tg-bright);font-size:.8rem;text-decoration:underline;text-underline-offset:2px}
.management .proxy-swaps-show:hover{background:none}
.management .proxy-swaps-go{min-height:34px;padding:5px 14px;font-size:.8rem}
.proxy-swaps ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:4px 18px;margin:0;padding:4px 14px 12px 42px;list-style:none;font-size:.8rem;border-top:1px solid var(--tg-border)}
.proxy-swaps li{padding-top:6px}.proxy-swaps li span{color:var(--tg-text-secondary)}
.proxy-swaps-done{margin:0 0 16px;font-size:.85rem;color:#9fe6c3}
.scan-done .proxy-swaps{width:100%;margin:6px 0;text-align:left}
@media(max-width:600px){.proxy-swaps-line{flex-wrap:wrap;padding:10px 12px}.proxy-swaps-line>span{flex-basis:calc(100% - 30px)}.proxy-swaps-line .proxy-swaps-show{margin-left:20px}.proxy-swaps-line .proxy-swaps-go{margin-left:auto}.proxy-swaps ul{padding-left:14px}}
/* Wishlist page and Home notice. */
.wishlist-page{display:grid;gap:22px}
.wishlist-add h2{margin-top:0}
.wishlist-add .muted{margin:10px 0 0;font-size:.82rem}
.wishlist-empty{color:var(--tg-text-secondary)}
.wishlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:24px 20px;margin:0;padding:0;list-style:none}
.wishlist-tile{display:grid;gap:6px;align-content:start;min-width:0}
.wishlist-tile .tile-art{position:relative;display:block;border-radius:9px;overflow:hidden;aspect-ratio:488/680;background:#0d1c28}
.wishlist-tile.at-target .tile-art{outline:2px solid #5fd39a;outline-offset:2px}
.wishlist-badge{position:absolute;left:8px;bottom:8px;padding:3px 9px;border-radius:999px;background:#0c3b29e6;color:#9fe6c3;font-size:.72rem;font-weight:600}
.wishlist-tile>strong,.wishlist-tile>small{display:block}
.wishlist-tile strong{font-size:.9rem;line-height:1.3}
.wishlist-tile>small{color:var(--tg-text-secondary);font-size:.75rem}
.wishlist-price{display:flex;align-items:baseline;gap:8px;margin:0}
.wishlist-price span{font-size:1rem;font-variant-numeric:tabular-nums}
.wishlist-price small{color:var(--tg-text-secondary);font-size:.72rem}
.wishlist-target{display:grid;gap:4px;font-size:.75rem;color:var(--tg-text-secondary)}
.wishlist-target input{min-height:40px;font-size:.9rem}
.wishlist-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wishlist-actions select{min-height:36px;font-size:.8rem;flex:1 1 100%}
.wishlist-actions button,.wishlist-actions .tcgplayer-link{font-size:.78rem;min-height:36px;padding:6px 10px}
.wishlist-actions .tcgplayer-link{display:inline-flex;align-items:center;gap:6px;color:var(--tg-bright)}
.wishlist-actions .tcgplayer-link .ui-icon{width:16px;height:16px}
.home-wishlist{margin-bottom:20px;border-color:#2f6a4f}
.home-wishlist h2{margin:0 0 8px;font-size:1.15rem}
.home-wishlist ul{margin:0 0 10px;padding-left:18px;line-height:1.7}
.home-wishlist small{color:var(--tg-text-secondary)}
@media(max-width:600px){.wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}}
/* Public decks and Pod check (November 24). */
.deck-public{display:grid;gap:6px;margin:16px 0;padding:14px 0;border-top:1px solid var(--tg-border)}
.deck-public small{color:var(--tg-text-secondary);font-size:.8rem;line-height:1.5}
.pod-check{display:grid;gap:20px}
.pod-pick h2{margin-top:0}.pod-pick h3{margin:16px 0 8px;font-size:.95rem}
.pod-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.pod-option{display:grid;gap:2px;width:100%;text-align:left;padding:10px 12px;border:1px solid var(--tg-border);border-radius:9px;background:transparent}
.pod-option small{color:var(--tg-text-secondary);font-size:.75rem}
.pod-option.chosen{border-color:var(--tg-cyan);background:#1b4d6640}
.pod-verdict{margin:0;padding:14px 18px;border:1px solid var(--tg-border-strong);border-radius:10px;background:#0a1828;font-size:.95rem}
.pod-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:0;padding:0;list-style:none}
.pod-deck{display:grid;gap:10px;align-content:start;padding:14px;border:1px solid var(--tg-border);border-radius:12px;background:linear-gradient(135deg,#112740b5,#0a1828e8)}
.pod-art{position:relative;isolation:isolate;height:110px;border-radius:8px;overflow:hidden}
.pod-art .commander-banner-art{z-index:0}
.pod-art .commander-banner-art img{width:100%}
.pod-head{display:grid;gap:2px}.pod-head h3{margin:0;font-size:1.05rem}.pod-head small{color:var(--tg-text-secondary);font-size:.78rem}
.management .pod-head .text-link{justify-self:start;min-height:0;padding:0;border:0;background:none;color:var(--tg-bright);font-size:.78rem;text-decoration:underline;text-underline-offset:2px}
.pod-numbers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.pod-numbers div{padding:8px 10px;border:1px solid var(--tg-border);border-radius:8px}
.pod-numbers dt{font-size:.7rem;color:var(--tg-text-secondary);text-transform:uppercase;letter-spacing:.06em}
.pod-numbers dd{margin:2px 0 0;font-size:.85rem}.pod-numbers strong{font-size:1.25rem;margin-right:4px}
.pod-factors{display:grid;gap:6px;margin:0;padding:0;list-style:none;font-size:.78rem}
.pod-factors li{display:grid;grid-template-columns:92px 1fr;gap:8px;align-items:center}
.pod-bar{height:6px;border-radius:3px;background:#ffffff14;overflow:hidden}.pod-bar span{display:block;height:100%;background:var(--tg-cyan)}
.pod-plan{margin:0;font-size:.78rem}
/* Show proxies and Show cards in decks side by side (November 24). */
.collection-tools>.collection-filter{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px}
/* Set shelves (November 24): the Collection's Sets view. */
.collection-tools[data-view='sets']>:not(.segmented){display:none}
.collection-tools[data-view='sets']{grid-template-columns:1fr;justify-items:end;padding:0;border:0;background:none;box-shadow:none}
.set-shelves{display:grid;gap:14px}
.set-shelves-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:10px}
.set-shelves-head .muted{margin:0;font-size:.82rem}
.set-shelves-head label{display:grid;gap:4px;font-size:.78rem;color:var(--tg-text-secondary)}
.set-ring{position:relative;flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center}
.set-ring svg{position:absolute;inset:0}
.set-ring>span{font-size:.68rem;font-variant-numeric:tabular-nums}
.set-ring-track{fill:none;stroke:#ffffff17;stroke-width:5}
.set-ring-fill{fill:none;stroke:var(--tg-cyan);stroke-width:5;stroke-linecap:round}
.set-shelf{display:grid;gap:16px}
.set-shelf-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.set-shelf-head h3{margin:0;font-size:1.15rem}.set-shelf-head small{color:var(--tg-text-secondary);font-size:.8rem}
.set-shelf-head .segmented{margin-left:auto}
.management .set-back{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0;border:0;background:none;color:var(--tg-bright);font-size:.85rem}
.set-back .ui-icon{width:16px;height:16px}
.set-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px 14px;margin:0;padding:0;list-style:none}
.set-cards li{display:grid;gap:4px;align-content:start;min-width:0}
.set-cards .tile-art{display:block;border-radius:8px;overflow:hidden;aspect-ratio:488/680;background:#0d1c28}
.set-cards strong{display:block;font-size:.8rem;line-height:1.3}
.set-cards small{display:block;color:var(--tg-text-secondary);font-size:.7rem}
.set-cards li.missing .tile-art{opacity:.32;filter:grayscale(.85)}
.set-cards li.elsewhere .tile-art{opacity:.62;filter:grayscale(.4)}
.set-cards li.missing strong,.set-cards li.elsewhere strong{color:var(--tg-text-secondary)}
.management .set-want{justify-self:start;min-height:28px;padding:0;border:0;background:none;color:var(--tg-bright);font-size:.72rem;text-decoration:underline;text-underline-offset:2px;opacity:.85}
.management .set-want:hover{opacity:1;background:none}
.set-wanted{font-size:.72rem;color:#9fe6c3}
@media(max-width:600px){.set-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}.set-list{grid-template-columns:1fr}}
/* Card language (November 24). */
.language-badge{margin-left:8px;padding:1px 7px;border-radius:999px;border:1px solid var(--tg-border-strong);font-size:.72rem;font-style:normal;font-weight:500;vertical-align:middle}
.holding-language{display:grid;gap:4px;margin-top:8px;font-size:.8rem}
.holding-language-note{margin:4px 0 0;font-size:.75rem}
/* Set tiles with art filling in as the set completes (November 24): every tile the same size. */
.set-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.set-list>li{min-width:0}
.management .set-tile{position:relative;display:block;width:100%;height:168px;padding:0;overflow:hidden;text-align:left;border:1px solid var(--tg-border);border-radius:12px;background:#0b1826}
.management .set-tile:hover{border-color:var(--tg-border-strong);background:#0b1826}
.set-tile:focus-visible{outline:2px solid var(--tg-cyan);outline-offset:2px}
.set-art{position:absolute;inset:0;overflow:hidden;background:linear-gradient(135deg,#17324d,#0b1826)}
.set-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%}
.set-art-faded{opacity:.3;filter:grayscale(1)}
.set-art-filled{transition:clip-path .5s ease}
.set-art-level{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:#ffffffaa;box-shadow:0 0 8px #ffffff88}
.set-tile:not(:has(.set-art-filled)) .set-art-level{display:none}
.set-percent{position:absolute;top:10px;right:10px;z-index:1;padding:2px 9px;border-radius:999px;background:#07121dcc;border:1px solid #ffffff2b;font-size:.78rem;font-weight:600;font-variant-numeric:tabular-nums}
.set-tile .set-tile-text{position:absolute;left:0;right:0;bottom:0;z-index:1;display:grid;gap:2px;padding:24px 12px 10px;background:linear-gradient(0deg,#07121de6 25%,#07121d00);text-shadow:0 1px 3px #000}
.set-tile .set-tile-text strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.92rem;line-height:1.25}
.set-tile .set-tile-text small{color:var(--tg-text-secondary);font-size:.74rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.set-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.management .set-tile{height:150px}.set-tile .set-tile-text strong{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){.set-art-filled{transition:none}}
