/* Card-first inventory and stable front/back capture. */
:root{--bg:#08090b;--panel:#131518;--line:#2b2e34;--ink:#f7f7f7;--muted:#a5a9b0;--lime:#c9f56f;color-scheme:dark}body,main,#auth-splash{background:#08090b;color:#f7f7f7}header,.auth-panel,.settings-card,dialog,.collect-card,.stats>div,.toolbar,.cloud-status,.quick-scan,.home-cover{background:#131518;color:#f7f7f7;border-color:#2b2e34}input,select,textarea{background:#0c0d10;color:#f7f7f7;border-color:#383b42}.secondary,.quiet,.chip{color:#e7e9ed;border-color:#35383e;background:transparent}.primary{background:#c9f56f;color:#101509}.auth-tabs button,.auth-story h1,.auth-story p,.auth-panel h2,.portfolio-heading h1,.collection-title,.home-cover h2,label{color:#f7f7f7}.auth-card-gallery{display:flex;gap:14px;margin:30px 0;max-width:450px}.auth-card-gallery img{width:29%;aspect-ratio:2.5/3.5;object-fit:contain;filter:drop-shadow(0 16px 20px #0008);transform:rotate(-6deg)}.auth-card-gallery img:nth-child(2){transform:rotate(3deg) translateY(-12px)}.auth-card-gallery img:nth-child(3){transform:rotate(9deg)}.auth-benefits{display:none}.photo-sides{display:flex;gap:10px;align-items:center;margin-bottom:12px}.photo-sides>button{border:1px solid #383b42;border-radius:12px;padding:10px 16px;background:#191c20;color:#d5d8df;display:flex;align-items:center;gap:8px}.photo-sides>button.active{border-color:#c9f56f;color:#c9f56f}.photo-sides img{width:32px;height:42px;object-fit:contain}.photo-sides small{font-size:10px;color:#969ba3}.upload{height:320px!important;width:100%;overflow:hidden;border-radius:16px;background:#070809!important;position:relative}.upload img{width:100%!important;height:100%!important;object-fit:contain!important;position:static!important;transform:none!important}.scan-result{display:block;background:#14171b!important;border:1px solid #32363b;border-radius:16px;padding:16px;margin:16px 0}.scan-result[hidden]{display:none!important}.ai-consent{display:flex;align-items:center;gap:10px;font-size:12px;color:#bbc1cb;margin-bottom:14px}.ai-consent input{width:18px;height:18px;accent-color:#c9f56f}.visual-scan-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.visual-scan-heading strong{font-size:11px;letter-spacing:.08em}.visual-scan-heading p{font-size:11px;color:#959da8}.variant-choice{width:100%;display:flex;align-items:center;gap:14px;border:1px solid #34383e;border-radius:16px;background:#111317;color:#eef1f5;padding:12px;text-align:left;margin:10px 0}.variant-choice.selected{border-color:#c9f56f;background:#172010}.variant-photo{width:85px;min-width:85px;height:118px;border-radius:8px;background:#050608;display:grid;place-items:center}.variant-photo img{width:100%;height:100%;object-fit:contain}.variant-choice span strong,.variant-choice b,.variant-choice small,.variant-choice em{display:block}.variant-choice strong{font-size:16px}.variant-choice b{font-size:13px;font-weight:500;margin:5px 0}.variant-choice small{font-size:11px;color:#a4acb6;line-height:1.45}.variant-choice em{color:#c9f56f;font-size:12px;font-style:normal;margin-top:8px}.variant-reason{margin-top:6px}.market-value{display:flex;flex-direction:column;gap:9px;border:1px solid #3d5130;border-radius:16px;padding:18px;background:#121b10;margin:14px 0}.market-value strong{font-size:32px;color:#c9f56f}.market-value strong small{font-size:13px}.market-value>small,.market-value>span,.market-note{font-size:11px;color:#aeb8a6}.market-note{display:block;line-height:1.5;margin:8px 0}.sale-row{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #2c3036}.sale-row strong,.sale-row small{display:block}.sale-row small{font-size:11px;color:#adb4bf;max-width:400px;line-height:1.5}.sale-row a{font-size:12px;color:#c9f56f;white-space:nowrap}.editor-camera{flex-wrap:wrap}.scan-heading,.detected-lines{margin-top:16px}.scan-heading{font-size:11px}#editor{max-width:660px!important;width:calc(100% - 20px)!important;max-height:92dvh!important;overflow-y:auto;overscroll-behavior:contain}.capture-header,.capture-sides,.capture-controls{display:flex;justify-content:space-between;align-items:center}.capture-header{padding:18px 20px;height:70px}.capture-header button{background:transparent;color:#fff;border:0;font-size:24px}#capture-format{font-size:12px;border:1px solid #40444c;border-radius:20px;padding:8px 12px}.capture-sides{justify-content:center;gap:12px;padding:10px}.capture-sides button{background:#15181e;color:#9099a8;border:1px solid #343a43;border-radius:24px;padding:12px 24px}.capture-sides button.active{color:#d3f99a;border-color:#c9f56f}.capture-sides small{font-size:10px}.capture-controls{height:110px;padding:20px 35px}.capture-controls label{width:44px;height:44px;display:grid;place-items:center;border:1px solid #434a55;border-radius:12px;font-size:24px;position:relative;overflow:hidden}.capture-controls input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}#capture-dialog{background:#050609!important;color:#fff!important;border:0!important;border-radius:0!important;max-width:100vw!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)!important;overflow:hidden;inset:0}#capture-dialog[open]{display:flex;flex-direction:column}#capture-stage{position:relative;flex:1;min-height:240px;overflow:hidden}#capture-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}#capture-frame{position:absolute;width:min(70vw,310px);aspect-ratio:2.5/3.5;max-height:82%;left:50%;top:45%;transform:translate(-50%,-50%);box-shadow:0 0 0 2000px #0007;border:1px solid #ffffff80;border-radius:10px}#capture-frame.slab{aspect-ratio:2.5/4.2;width:min(65vw,270px)}#capture-frame i{width:26px;height:26px;position:absolute;border:3px solid #c9f56f}#capture-frame i:nth-child(1){top:-2px;left:-2px;border-right:0;border-bottom:0;border-radius:10px 0 0}#capture-frame i:nth-child(2){top:-2px;right:-2px;border-left:0;border-bottom:0;border-radius:0 10px 0 0}#capture-frame i:nth-child(3){bottom:-2px;left:-2px;border-right:0;border-top:0;border-radius:0 0 0 10px}#capture-frame i:nth-child(4){bottom:-2px;right:-2px;border-left:0;border-top:0;border-radius:0 0 10px 0}#capture-status{position:absolute;bottom:12px;left:10px;right:10px;text-align:center;font-size:13px;color:#fff;text-shadow:0 1px 8px #000}#capture-shutter{height:72px;width:72px;border:3px solid white;border-radius:50%;padding:5px;background:transparent}#capture-shutter span{display:block;border-radius:50%;height:100%;width:100%;background:#fff}#capture-shutter:disabled{opacity:.35}.capture-footer{text-align:center;color:#84909e;font-size:11px;padding-bottom:12px}#editor .actions{position:sticky;bottom:-1px;background:#131518;padding:12px 0;z-index:2}#editor .actions .primary{flex:1}.back-photo-detail{width:100%;max-height:450px;object-fit:contain;background:#070809;border-radius:16px}.research-refresh{margin:14px 0;width:100%}@media(max-width:640px){.auth-story{padding:24px!important}.auth-story h1{font-size:36px!important}.auth-card-gallery{margin:20px auto;max-width:300px}.auth-story>p{display:none}.auth-panel{padding:24px!important}.visual-scan-heading{align-items:flex-start;flex-direction:column}.visual-scan-heading button{width:100%}.photo-sides>button{padding:9px 10px}.upload{height:280px!important}.variant-photo{width:68px;min-width:68px;height:96px}.quick-scan{padding:16px!important}.profile-top{gap:18px}.capture-header{height:58px}#capture-frame{width:min(70vw,270px)}}
.camera-actions .native-file{position:relative;display:flex;align-items:center!important;justify-content:center;min-height:44px;overflow:hidden;padding:12px 20px;flex:1}.camera-actions .native-file input{position:absolute!important;inset:0!important;opacity:0!important;width:100%!important;height:100%!important;font-size:16px;cursor:pointer}.capture-controls input{font-size:16px}.research-detail>small{display:block;color:#9fa9b6;font-size:11px;text-align:center;margin-bottom:16px}
input,select,textarea{font-size:16px}#app-sidebar{background:#0c0d10;border-color:#2b2e34}.connection-banner{background:#121810;border-color:#2c3b20;color:#b6c2b1}.sidebar-bottom{color:#9caaa0}.form-grid label{color:#d8dde6}#daily-home .home-kicker{color:#b5c79f}.home-cover p,.portfolio-heading>div>p,.quick-scan>p:not(.photo-feedback),.intro>.eyebrow{display:none}.home-photos:empty{display:none}.portfolio-heading{gap:20px}.source-details a{color:#c9f56f}.card-info{background:#131518;color:#f7f7f7}.grade-values>div{background:#16191e}.scan-result .hint{font-size:11px}.settings-card h2,.auth-title{color:#f7f7f7}
input,select,textarea{background:#0c0d10!important;color:#f7f7f7!important;border-color:#383b42!important}.settings-card,.settings-content,.grade-values,.sources-status{background:#131518!important;color:#f7f7f7!important}.home-cover .primary{background:#c9f56f;color:#101509}.auth-story h1 span,.extra-card-data summary{color:#c9f56f}.movement-grid>section,.movement-card,.sale-tile{background:#131518;color:#f7f7f7}.sale-photo,.card-photo,.profile-image{background:#090b0d}.sale-photo>span,.badge,.quantity-badge,.account-pill,.add-steps span{background:#1c232b;color:#c9f56f}.auth-story{color:#f7f7f7}.collection-tabs button.active{background:#172211;color:#c9f56f;border-color:#41512f}.variant-tag{color:#c9f56f;border-color:#41512f}.excel-start{background:#151b12;border-color:#35432c}.primary:hover{background:#d8fba1;color:#101509}.home-cover .quiet{border-color:#3e4d32}.sale-body strong{color:#c9f56f}

/* Cover presentation: keep every card fully visible at any viewport width. */
.home-cover{gap:32px;padding:clamp(22px,4vw,44px);background:radial-gradient(ellipse at 85% 65%,#26331b 0,transparent 58%),#111417;overflow:visible}
.home-photos,.auth-card-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:clamp(8px,1.6vw,18px);width:100%;min-width:0;max-width:480px;margin:0 auto;padding:20px 0}
.home-photos button,.home-photos button:first-child,.home-photos button:nth-child(2),.home-photos button:last-child{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;width:100%;height:auto;aspect-ratio:3/4;padding:8px;border:1px solid #30382c;border-radius:14px;background:linear-gradient(145deg,#1c211b,#0b0d0b);transform:none;filter:none;box-shadow:0 12px 26px #0005}
.home-photos img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;border-radius:5px}
.home-photos button:focus-visible{outline:3px solid #c9f56f;outline-offset:4px}
.auth-card-gallery{margin:24px 0;max-width:440px}
.auth-card-gallery img,.auth-card-gallery img:nth-child(2),.auth-card-gallery img:nth-child(3){display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;padding:8px;box-sizing:border-box;border:1px solid #30382c;border-radius:14px;background:#101410;transform:none;filter:none;box-shadow:0 12px 26px #0005}
@media(max-width:700px){.home-cover{grid-template-columns:minmax(0,1fr);gap:18px;padding:24px;border-radius:22px}.home-cover h2{max-width:100%;font-size:clamp(28px,7vw,38px);line-height:1.13}.home-photos{max-width:390px;padding:8px 0 2px;gap:10px}.home-photos button{padding:6px;border-radius:11px}.auth-card-gallery{max-width:390px;margin:24px auto 6px;gap:10px}.auth-card-gallery img{padding:6px;border-radius:11px}}

.device-login-help{margin-top:20px;padding-top:16px;border-top:1px solid #30343a;font-size:12px;color:#aeb5bf}.device-login-help summary{cursor:pointer;color:#c9f56f}.device-login-help p{line-height:1.65;max-width:38em}
