:root{--wine:#792c38;--wine-dark:#58202b;--ink:#2e2827;--muted:#817b75;--paper:#fcfaf7;--cream:#f3eee6;--line:#e8e1d8;--gold:#a08a63;--font:'Golos Text',Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 var(--font)}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button{color:inherit}svg{width:22px;height:22px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b87f42;outline-offset:4px}[hidden]{display:none!important}.skip-link{position:absolute;top:-100px;background:white;padding:12px;z-index:10}.skip-link:focus{top:0}.header{height:112px;max-width:1320px;margin:auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:30px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-mark{display:grid;place-items:center;width:49px;height:58px;background:var(--wine);border-radius:50% 50% 45% 45%;color:#fff2e4;transform:rotate(-9deg)}.brand-mark svg{width:33px;height:33px;transform:rotate(9deg)}.brand strong{display:block;font:700 29px/1.05 Georgia,serif;letter-spacing:-1px}.brand small{font-size:12px;color:var(--muted);display:block;margin-top:5px}.header nav{display:flex;align-items:center;gap:35px;font-size:14px}.header nav a{padding:12px 0;color:var(--muted)}.header nav .active{color:var(--wine);border-bottom:1px solid var(--wine)}.header nav svg{width:16px;height:16px;margin-left:6px}.saved-trigger{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:transparent;border-radius:30px;padding:11px 17px;font-size:14px}.saved-trigger b{background:var(--cream);border-radius:50%;min-width:22px;line-height:22px;font-size:12px;color:var(--wine)}main{max-width:1224px;margin:0 auto;padding:42px 0 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow,.section-number{font-size:11px;letter-spacing:1.8px;font-weight:550;color:var(--gold);margin:0 0 12px}h1{font:400 48px/1.13 Georgia,serif;letter-spacing:-1.5px;margin:0}.subtitle{font-size:15px;color:var(--muted);margin:13px 0 0}.step-label{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);align-self:flex-end;padding-bottom:5px}.step-label span{font-size:11px;color:var(--wine)}.step-label i{width:30px;height:1px;background:var(--line);margin:0 8px}.scanner-layout{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:65px}.scanner-card{background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden}.viewfinder{position:relative;height:365px;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#efebe1 0,#e3decf 60%,#d6d0c3 100%);display:flex;justify-content:center;isolation:isolate}.viewfinder::after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 65px #66513812;pointer-events:none}.viewfinder.dragover{outline:4px solid var(--wine);outline-offset:-5px}.viewfinder-top{position:absolute;top:21px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;z-index:2;color:#635b4e}.lens-label{font-size:10px;letter-spacing:1.3px;font-weight:600;display:flex;align-items:center;gap:8px}.lens-label svg{height:16px;width:16px}.photo-hint{font-size:11px}.example-bottle{height:320px;width:190px;object-fit:contain;position:absolute;top:43px;mix-blend-mode:multiply;filter:drop-shadow(15px 12px 9px #49371e26)}.scan-frame{position:absolute;width:210px;height:158px;top:153px;left:50%;transform:translateX(-50%);z-index:2}.scan-frame>span{position:absolute;width:25px;height:25px;border:2px solid #fffbf4}.scan-frame>span:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-radius:9px 0 0 0}.scan-frame>span:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-radius:0 9px 0 0}.scan-frame>span:nth-child(3){bottom:0;left:0;border-right:0;border-top:0;border-radius:0 0 0 9px}.scan-frame>span:nth-child(4){bottom:0;right:0;border-left:0;border-top:0;border-radius:0 0 9px 0}.scan-line{position:absolute;left:10px;right:10px;top:50%;height:1px;background:#fff9dc;box-shadow:0 0 13px 2px #fff9dc75}.sample-label{position:absolute;right:15px;bottom:58px;font-size:10px;color:#655c4c;writing-mode:vertical-rl;transform:rotate(180deg)}.viewfinder-caption{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fcfaf5e8;backdrop-filter:blur(8px);border:1px solid #ffffff70;border-radius:30px;padding:8px 15px;font-size:11px;display:flex;gap:8px;align-items:center;z-index:3}.viewfinder-caption svg{width:16px;height:16px}.scanner-controls{padding:24px 27px 18px}.control-copy h2{font-size:19px;letter-spacing:-.4px;font-weight:550;margin:0 0 5px}.control-copy p{margin:0;font-size:13px;color:var(--muted)}.button-row{display:flex;gap:10px;margin-top:20px}.button{border:1px solid transparent;min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 21px;border-radius:12px;font-size:14px;font-weight:500;transition:background .2s,transform .2s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--wine);color:white;box-shadow:0 4px 8px #792c3812}.button.primary:hover{background:var(--wine-dark)}.button.secondary{border-color:var(--line);background:var(--paper)}.button.secondary:hover{background:var(--cream)}.button-row .button{flex:1}.button svg{width:19px;height:19px}.file-note{font-size:10px;color:var(--muted);margin:13px 0 0;text-align:center}.file-note span{margin-left:10px}.scanner-aside{padding:18px 0 0}.intro h2{font:400 37px/1.15 Georgia,serif;letter-spacing:-.7px;margin:13px 0}.intro p{font-size:14px;color:var(--muted);line-height:1.7;margin:0}.benefits{display:grid;gap:23px;margin:28px 0 30px}.benefits>div{display:flex;gap:16px;align-items:flex-start}.benefit-icon{color:var(--wine);width:38px;height:38px;flex-shrink:0;background:var(--cream);border-radius:50%;display:grid;place-items:center}.benefit-icon svg{width:19px;height:19px}.benefits h3{font-size:14px;font-weight:500;margin:0 0 4px}.benefits p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.example-card{width:100%;display:flex;gap:19px;text-align:left;border:1px solid var(--line);background:#f6f2eb;border-radius:16px;padding:13px 16px;align-items:center;transition:border-color .2s}.example-card:hover{border-color:var(--gold)}.example-image{width:63px;height:110px;display:grid;place-items:center;flex-shrink:0}.example-image img{width:60px;height:108px;object-fit:contain;mix-blend-mode:multiply}.example-card small{display:block;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:7px}.example-card strong{font:400 20px/1.15 Georgia,serif}.example-link{display:block;color:var(--wine);font-size:11px;margin-top:9px}.example-link svg{width:15px;height:15px;margin-left:8px}.tips{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:32px;padding:23px 0}.tips-heading{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:500}.tips-heading svg{color:var(--gold);width:18px;height:18px}.tips p{font-size:11px;color:var(--muted);margin:0}.tips b{color:var(--gold);margin-right:10px;font-size:10px;font-weight:400}footer{max-width:1224px;margin:24px auto 0;padding-bottom:25px;display:flex;justify-content:space-between;color:#918b82;font-size:10px;gap:18px}footer i{font-style:normal;margin:0 8px}.photo-preview,#camera-video{width:100%;height:100%;object-fit:contain;background:#252422;position:absolute;inset:0;z-index:1}#camera-video{object-fit:cover}.notice{background:#f9eee7;border-left:3px solid var(--gold);padding:12px 14px;font-size:13px;line-height:1.6;margin:16px 0 0}.processing-overlay{position:absolute;inset:0;z-index:5;background:#3b2229dc;backdrop-filter:blur(8px);display:flex;flex-direction:column;justify-content:center;align-items:center;color:white;text-align:center;padding:20px}.processing-overlay h2{font:28px Georgia,serif;margin:20px 0 10px}.processing-overlay p{font-size:13px;margin:0;color:#e7cdd2}.spinner{border:2px solid #ffffff30;border-top-color:white;border-radius:50%;height:35px;width:35px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.text-button{border:0;background:none;color:var(--wine);font-size:14px;padding:10px 0;display:inline-flex;gap:8px;align-items:center}.text-button.light{color:white;margin-top:16px}.muted{color:var(--muted);font-size:13px}.result-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.demo-badge{font-size:11px;background:#f1e7d6;color:#7e6135;padding:7px 13px;border-radius:30px}.result-layout{display:grid;grid-template-columns:1fr 1.35fr;gap:50px}.wine-portrait{border-radius:24px;background:radial-gradient(ellipse,#f4efdf,#e7dfcf);height:510px;display:flex;align-items:center;justify-content:center;position:relative}.wine-portrait img{height:90%;width:80%;object-fit:contain;mix-blend-mode:multiply}.portrait-caption{position:absolute;bottom:18px;font-size:11px;letter-spacing:1px;color:#8f8069}.wine-details{padding:10px 0}.wine-details h1{font-size:47px}.wine-category{margin:13px 0;color:var(--muted);font-size:14px}.rating-budget{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.data-block{border:1px solid var(--line);border-radius:13px;padding:14px 16px;min-width:0}.data-block label,.data-block>span{font-size:11px;color:var(--muted);display:block;margin-bottom:7px}.data-block strong{font-size:15px;font-weight:500}.data-block small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.price-input{display:flex;align-items:center;gap:5px}.price-input input{width:100%;min-width:0;background:transparent;border:0;border-bottom:1px solid var(--line);padding:3px 0;color:var(--ink);font-size:16px;outline-offset:1px}.price-input input::placeholder{font-size:13px}.wine-summary{font-size:16px;line-height:1.7}.taste-tags{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0}.taste-tags span{background:var(--cream);padding:7px 13px;border-radius:30px;font-size:12px}.source-note{font-size:10px;color:var(--muted)}.wine-facts{display:flex;gap:25px;border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.wine-facts span{font-size:13px}.wine-facts small{font-size:10px;display:block;color:var(--muted);margin-bottom:4px}.pairings{margin-top:30px;background:var(--cream);padding:25px 28px;border-radius:18px}.pairings-heading{display:flex;align-items:center;gap:10px}.pairings-heading h2{font:27px Georgia,serif;margin:0}.pairings-heading svg{color:var(--wine)}.food-buttons{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.food-buttons button{border:1px solid #dcd1c2;background:var(--paper);border-radius:30px;padding:9px 16px;font-size:13px}.food-buttons button[aria-pressed=true]{background:var(--wine);border-color:var(--wine);color:white}.pairing-explanation{font-size:14px;margin:0;max-width:800px;line-height:1.7}.result-actions{display:flex;gap:12px;margin-top:20px}.result-actions .button{min-width:190px}.description{border-bottom:1px solid var(--line);padding:23px 0}.description summary{cursor:pointer;font-size:14px}.description p{font-size:14px;line-height:1.8;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:22px;padding:26px;width:min(92vw,480px);max-height:80vh;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#2c1d2266;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-heading h2{font:30px Georgia,serif;margin:0}.icon-button{border:0;background:var(--cream);border-radius:50%;width:36px;height:36px}.saved-item{border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:14px 0}.saved-item img{width:40px;height:70px;object-fit:contain}.saved-item>button{border:0;background:none;text-align:left;flex:1;font-size:15px}.saved-item small{display:block;color:var(--muted);font-size:12px}.saved-item .remove-saved{flex:0;color:var(--wine);font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--wine-dark);color:white;padding:13px 25px;border-radius:12px;z-index:20;box-shadow:0 8px 25px #0002;font-size:13px;max-width:90vw}
@media(min-width:1450px){main{padding-top:48px}.viewfinder{height:410px}.example-bottle{height:365px;top:43px}.scan-frame{top:175px;height:170px}.scanner-aside{padding-top:30px}.benefits{gap:28px;margin:32px 0}.intro h2{font-size:42px}}
@media(max-width:1320px){main,footer{margin-left:48px;margin-right:48px}.scanner-layout{gap:45px}.header{padding:0 48px}}
@media(max-width:1000px){.header{padding:0 28px;height:94px}.header nav{gap:18px}main,footer{margin-left:28px;margin-right:28px}.scanner-layout{gap:28px;grid-template-columns:1.2fr 1fr}.step-label{display:none}.intro h2{font-size:32px}.button{padding:12px 13px;font-size:12px}.scanner-controls{padding:22px 18px 17px}.file-note span{display:none}.benefits{gap:19px}.tips{flex-wrap:wrap;justify-content:flex-start}.tips-heading{width:100%}.result-layout{gap:28px}.wine-details h1{font-size:36px}.wine-portrait{height:460px}}
@media(max-width:720px){.header{height:88px;padding:0 20px;gap:12px}.brand-mark{width:37px;height:43px}.brand-mark svg{width:26px;height:26px}.brand{gap:9px}.brand strong{font-size:25px}.brand small{font-size:10px}.header nav{display:none}.saved-trigger{padding:10px;border:0;background:var(--cream);gap:5px}.saved-trigger>span:nth-child(2){display:none}.saved-trigger svg{width:19px;height:19px}.saved-trigger b{min-width:17px;font-size:10px}main{margin:0;padding:29px 18px 0}.page-heading{margin-bottom:23px}.eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:10px}h1{font-size:37px;letter-spacing:-1px}.subtitle{font-size:13px;max-width:290px;margin-top:10px;line-height:1.7}.scanner-layout{display:flex;flex-direction:column;gap:0}.scanner-card{border-radius:20px}.viewfinder{height:335px}.example-bottle{height:292px;top:39px}.scan-frame{top:139px;width:180px;height:140px}.viewfinder-top{top:17px;left:17px;right:17px}.lens-label{font-size:9px}.photo-hint{font-size:9px}.viewfinder-caption{font-size:10px;padding:7px 12px}.scanner-controls{padding:21px 18px 18px}.control-copy h2{font-size:18px}.control-copy p{font-size:12px}.button-row{gap:8px;margin-top:17px}.button{font-size:12px;padding:12px 9px;gap:7px;min-height:49px}.button svg{width:17px;height:17px}.file-note{font-size:10px}.scanner-aside{padding:29px 5px 0}.intro{display:none}.benefits{margin:0 0 24px;gap:22px}.benefits h3{font-size:14px}.benefits p{font-size:12px}.benefits br{display:none}.benefit-icon{width:37px;height:37px}.example-card{padding:13px 17px;gap:20px}.example-image{height:90px}.example-image img{height:90px}.example-card strong{font-size:20px}.example-card small{font-size:9px}.example-link{font-size:11px}.tips{margin-top:27px;gap:14px;padding:20px 5px}.tips p{width:100%;font-size:12px}.tips-heading{margin-bottom:3px}footer{margin:22px 23px 0;flex-direction:column;gap:10px;line-height:1.7;font-size:10px;max-width:310px}.result-top{gap:10px;margin-bottom:18px}.result-top .text-button{font-size:12px}.demo-badge{font-size:10px}.result-layout{display:flex;flex-direction:column;gap:22px}.wine-portrait{height:285px;border-radius:20px}.wine-portrait img{height:91%}.portrait-caption{left:17px;bottom:14px;font-size:9px}.wine-details{padding:0 3px}.wine-details h1{font-size:38px}.wine-category{font-size:12px}.rating-budget{margin:19px 0;gap:8px}.data-block{padding:12px}.data-block strong{font-size:14px}.wine-summary{font-size:15px}.wine-facts{gap:30px}.pairings{padding:22px 20px;margin-top:23px}.pairings-heading h2{font-size:25px}.food-buttons{gap:7px}.food-buttons button{font-size:12px;padding:8px 12px}.pairing-explanation{font-size:13px}.result-actions .button{min-width:0;flex:1;font-size:12px}.source-note{font-size:10px}}
.example-bottle{width:320px}.example-image{overflow:hidden}.example-image img{width:108px;max-width:none}.scanner-card{align-self:start;width:100%}.result-top .text-button{white-space:nowrap;flex-shrink:0}.portrait-caption{display:none}
@media(min-width:1450px){.example-bottle{width:365px}}
@media(max-width:720px){.example-bottle{width:292px}.example-image img{width:90px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Main-site header direction: airy rounded container, official mark and portal navigation. */
:root{--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--header-surface:#f7f1e9;--header-ink:#2c2a28;--header-wine:#87382a}
body{background:#fffdfb}
.header{width:calc(100% - 64px);max-width:none;height:64px;margin:8px 32px 0;padding:0 24px 0 32px;border:0;border-radius:34px;background:var(--header-surface);gap:24px;position:relative;z-index:5}
.brand{display:flex;width:160px;height:40px;align-items:center;flex:0 0 160px}
.brand img{display:block;width:160px;height:40px;object-fit:contain}
.header nav{display:flex;align-items:center;justify-content:flex-start;gap:31px;padding-left:56px;flex:1;min-width:0;font-size:16px;line-height:24px;color:var(--header-ink)}
.header nav a{padding:0;color:var(--header-ink);white-space:nowrap;transition:opacity .2s ease}
.header nav a:hover{opacity:.66}
.header nav .active{border:0;color:var(--header-ink)}
.header-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.saved-trigger{border:0;background:transparent;padding:10px;border-radius:50%;color:var(--header-ink)}
.saved-trigger b{background:var(--paper);color:var(--wine)}
.search-trigger{width:48px;height:48px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--header-wine);color:#fffaf4;transition:background .2s ease,transform .2s ease}
.search-trigger:hover{background:#6f2d22;transform:scale(1.04)}
.search-trigger svg{width:27px;height:27px;stroke-width:2.4}
.header-actions .saved-trigger{display:none}

@media(max-width:1260px){
  .header nav{gap:22px;padding-left:28px;font-size:15px}
}

@media(max-width:1080px){
  .header{padding-left:24px;gap:18px}
  .header nav{gap:15px;font-size:14px}
}
@media(max-width:900px){
  .header nav{display:none}
  .header{justify-content:space-between}
  .header-actions .saved-trigger{display:flex}
  .header-actions .saved-trigger svg{width:20px;height:20px}
  .header-actions .saved-trigger b{min-width:19px;line-height:19px;font-size:10px}
}
@media(max-width:720px){
  .header{width:calc(100% - 40px);height:64px;margin:8px 20px 0;padding:0 12px 0 16px;border-radius:34px;gap:12px}
  .brand,.brand img{width:160px;flex-basis:160px}
  .header-actions{gap:3px}
  .saved-trigger{padding:8px}
  .saved-trigger .saved-label{display:none}
  .search-trigger{width:46px;height:46px}
  .search-trigger svg{width:25px;height:25px}
}
@media(max-width:380px){
  .brand,.brand img{width:145px;flex-basis:145px}
  .header{padding-left:13px}
}

/* Main-site footer direction: light links above a spacious legal and brand block. */
.site-footer{max-width:none;margin:72px 32px 0;padding:0 32px 42px;color:#9b9690;font-size:16px}
.footer-links{display:flex;align-items:flex-start;flex-wrap:wrap;gap:20px clamp(34px,5vw,80px);margin:0;padding:0}
.footer-links a{color:inherit;line-height:1.35;transition:color .2s ease}
.footer-links a:hover{color:var(--header-ink)}
.footer-meta{position:relative;min-height:190px;padding-top:32px}
.footer-copyright{display:block;line-height:1.35}
.footer-bank-logo{position:absolute;left:0;bottom:0;display:flex;align-items:center;gap:7px;color:inherit}
.footer-bank-logo>span{display:flex;align-items:flex-end;gap:3px;height:38px}
.footer-bank-logo i{display:block;width:7px;height:38px;background:currentColor}
.footer-bank-logo i:nth-child(2){height:28px}
.footer-bank-logo i:nth-child(3){height:38px}
.footer-bank-logo strong{font-size:31px;line-height:1;font-weight:750;letter-spacing:-1.8px}
.footer-disclaimer{position:absolute;right:0;bottom:0;display:flex;align-items:flex-end;gap:24px;text-align:right;color:inherit;line-height:1.15}
.footer-disclaimer span{font-size:14px}
.footer-disclaimer strong{font-size:34px;line-height:.9;font-weight:750;letter-spacing:-1.5px}

@media(max-width:720px){
  .site-footer{margin:52px 20px 0;padding:0 0 28px;font-size:14px}
  .footer-links{flex-direction:column;gap:17px}
  .footer-meta{min-height:0;display:flex;flex-direction:column;gap:34px;padding-top:34px}
  .footer-bank-logo,.footer-disclaimer{position:static}
  .footer-bank-logo{align-self:flex-start}
  .footer-disclaimer{align-self:flex-end;gap:18px}
  .footer-disclaimer span{font-size:12px}
  .footer-disclaimer strong{font-size:31px}
}

.catalog-rating{margin:22px 0 0;padding:15px 17px;display:flex;align-items:baseline;gap:12px;background:#f8f2e9;border-color:transparent}
.catalog-rating>span{margin:0;font-size:11px;letter-spacing:.35px;color:var(--muted)}
.catalog-rating strong{font-size:16px;font-weight:600}
.catalog-rating small{font-size:11px;color:var(--muted);margin-left:auto}
.rating-combo{display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center;gap:12px 16px;margin:18px 0 22px;padding:18px 20px;border-radius:24px;background:#f8f2e9}
.public-rating{display:flex;align-items:center;min-width:0}
.public-rating-badge{display:flex;align-items:center;gap:6px;padding:6px 12px 6px 10px;border-radius:16px;background:#f8ecc9;color:#8f3d42}
.public-rating-badge img{flex:0 0 20px;width:20px;height:20px;display:block;transform:scale(1.6) translateY(-2px)}
.public-rating-badge span{color:#2c2a28;font-size:16px;font-weight:600;line-height:20px;font-variant-numeric:tabular-nums}
.user-rating{margin:0;padding:0;background:transparent;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-width:0}
.user-rating-cta{margin:8px 0 0;padding:9px 18px;border-radius:40px;background:#f4e4b8;color:#2c2a28;font:500 14px/1.2 Georgia,"Times New Roman",serif}
.rating-options{display:flex;justify-content:center;align-items:center;gap:0;margin:0}
.rating-option{position:relative;width:44px;height:44px;padding:2px;border:0;border-radius:12px;background:transparent;transition:background-color .15s ease-in}
.rating-icons{position:absolute;top:50%;left:50%;width:40px;height:40px;transform:translate(-50%,-50%)}
.rating-icon-glass,.rating-icon-wine{position:absolute;top:50%;left:50%;width:40px;height:40px;display:block;pointer-events:none;transform:translate(-50%,-50%);transition:transform .15s ease-in}
.rating-icon-wine{transform:translate(-50%,-50%) scale(0)}
.rating-option.filled .rating-icons{animation:.3s ease-in-out backwards rating-sway}
.rating-option.filled .rating-icon-wine{transform:translate(-50%,-50%) scale(1)}
.rating-options:hover .rating-option{background:#f8ecc9}
.rating-options:hover .rating-option .rating-icon-glass,
.rating-options:hover .rating-option .rating-icon-wine{transform:translate(-50%,-50%) rotate(-15deg)}
.rating-options:hover .rating-option .rating-icon-wine{transform:translate(-50%,-50%) rotate(-15deg) scale(1)}
.rating-options:hover .rating-option:hover ~ .rating-option{background:transparent}
.rating-options:hover .rating-option:hover ~ .rating-option .rating-icon-glass{transform:translate(-50%,-50%) rotate(0)}
.rating-options:hover .rating-option:hover ~ .rating-option .rating-icon-wine{transform:translate(-50%,-50%) rotate(0) scale(0)}
.rating-options:hover .rating-option:hover ~ .rating-option.filled .rating-icon-wine{transform:translate(-50%,-50%) rotate(0) scale(0)}
.rating-status{margin:8px 0 0;color:#2c2a28;font:600 16px/1.5 var(--font)}
.rating-status:empty,[hidden].rating-status{display:none}
@keyframes rating-sway{0%,to{transform:translate(-50%,-50%) rotate(0)}25%{transform:translate(-50%,-50%) rotate(-4deg)}75%{transform:translate(-50%,-50%) rotate(4deg)}}

@media(max-width:720px){
  .catalog-rating{align-items:flex-start;flex-wrap:wrap;gap:7px 10px}
  .catalog-rating small{width:100%;margin-left:0}
  .rating-combo{margin:16px 0 18px;padding:14px 12px 12px;gap:8px 10px;grid-template-columns:auto minmax(0,1fr)}
  .rating-option{width:38px;height:38px}
  .rating-icons,.rating-icon-glass,.rating-icon-wine{width:34px;height:34px}
  .user-rating-cta{font-size:13px;padding:8px 14px}
}

/* Catalog imagery: reuse the public CDN thumbnails for metadata and food pairings. */
.catalog-visuals{margin:22px 0 0}
.visual-facts{display:flex;flex-wrap:wrap;gap:10px}
.visual-fact{min-height:64px;display:flex;align-items:center;gap:10px;padding:7px 13px 7px 7px;border:1px solid var(--line);border-radius:15px;background:#fffdfa;max-width:100%}
.visual-fact img{width:50px;height:50px;object-fit:cover;border-radius:10px;background:var(--cream)}
.visual-fact div{min-width:0}
.visual-fact small{display:block;color:var(--muted);font-size:9px;letter-spacing:.45px;margin-bottom:4px}
.visual-fact strong{display:block;font-size:12px;font-weight:600;line-height:1.3}
.visual-fact em{display:block;color:var(--muted);font-size:10px;font-style:normal;margin-top:3px}
.visual-fact-color{padding:10px 14px;border:0}
.visual-fact-color small,.visual-fact-color strong,.visual-fact-color em{color:inherit}
.visual-fact-color.color-tone-white{background:#eadfbe;color:#3a342c}
.visual-fact-color.color-tone-red{background:#78313a;color:#fff6ee}
.visual-fact-color.color-tone-orange{background:#c8793c;color:#fff7ee}
.visual-fact-color.color-tone-rose{background:#d9959c;color:#3a2428}
.color-dot{width:28px;height:50px;flex:0 0 28px;border-radius:15px;border:1px solid #d4cbbf;box-shadow:inset 0 0 0 5px #ffffffaa}
.color-dot-white{background:#eadfbe}
.color-dot-red{background:#78313a;border-color:#642931}
.color-dot-orange{background:#c8793c;border-color:#af632e}
.color-dot-rose{background:#d9959c;border-color:#c57c84}
.dish-pairings{margin-top:25px;padding:22px 24px;border-radius:19px;background:#f8f2e9}
.dish-pairings-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}
.dish-pairings-heading>div{display:flex;align-items:center;gap:10px}
.dish-pairings-heading svg,.dish-pairings-heading .icon-compare{width:20px;height:20px;color:var(--wine)}
.icon-compare{width:22px;height:22px;flex:0 0 auto;display:inline-block;vertical-align:middle;background:currentColor;-webkit-mask:url(/assets/compare-bottles.png) center/contain no-repeat;mask:url(/assets/compare-bottles.png) center/contain no-repeat}
.button .icon-compare{width:22px;height:22px}
.dish-pairings-heading h2{font:27px Georgia,serif;margin:0}
.dish-pairings-heading>span{font-size:10px;color:var(--muted);white-space:nowrap}
.dish-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.dish-card{display:flex;align-items:center;gap:10px;min-height:72px;padding:8px 10px;border:1px solid #e2d8ca;border-radius:14px;background:#fffdfa}
.dish-card img,.dish-placeholder{width:56px;height:56px;flex:0 0 56px;object-fit:cover;border-radius:10px;background:#efe6d9}
.dish-placeholder{display:grid;place-items:center;padding:7px;text-align:center;color:#998c7e;font-size:9px;line-height:1.15}
.dish-card strong{font-size:12px;line-height:1.35;font-weight:500}
@media(max-width:720px){
  .visual-facts{display:grid;grid-template-columns:1fr 1fr}
  .visual-fact{padding-right:9px}
  .visual-fact img{width:44px;height:44px}
  .visual-fact-color{padding-left:9px}
  .color-dot{width:22px;flex-basis:22px;height:44px}
  .dish-pairings{padding:20px 16px}
  .dish-pairings-heading{align-items:flex-start;flex-direction:column;gap:5px}
  .dish-pairings-heading h2{font-size:24px}
  .dish-pairings-heading>span{margin-left:30px}
  .dish-grid{grid-template-columns:1fr}
}

/* Result card: product-first layout inspired by the mobile reference. */
.wine-portrait{overflow:hidden}
.portrait-save{position:absolute;top:18px;right:18px;z-index:2}
.icon-action{width:52px;height:52px;border:0;border-radius:50%;display:grid;place-items:center;background:#fffdfb;color:var(--wine);box-shadow:0 7px 18px #48332d1c;transition:transform .2s ease,background .2s ease,color .2s ease}
.icon-action:hover,.icon-action:focus-visible{transform:translateY(-2px);background:#fff5e7}
.icon-action.is-saved{background:var(--wine);color:#fffdfb}
.icon-action svg{width:25px;height:25px}
.fit-card{display:flex;align-items:center;gap:15px;margin-top:16px;padding:16px 18px;border:1px solid #ead8ca;border-radius:18px;background:#fffaf3}
.fit-card>strong{min-width:67px;color:var(--wine);font-size:31px;line-height:1;font-weight:550;letter-spacing:-1px}
.fit-card small{display:block;color:var(--muted);font-size:10px;letter-spacing:.5px;line-height:1.2}
.fit-card b{display:block;margin-top:4px;font-size:14px;font-weight:550}
.fit-card p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.4}
.fit-card-empty>strong{color:#aa9d91}
.taste-profile{margin-top:25px;padding-top:19px;border-top:1px solid var(--line)}
.taste-profile-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:15px}
.taste-profile-heading h2{margin:0;font:400 27px/1.15 Georgia,serif;letter-spacing:-.5px}
.taste-profile-heading span{color:var(--muted);font-size:10px;white-space:nowrap}
.taste-row{display:grid;grid-template-columns:105px minmax(0,1fr) 31px;align-items:center;gap:11px;margin:13px 0;font-size:13px}
.taste-row>i{display:block;height:8px;border-radius:8px;background:#e7e3df;overflow:hidden}
.taste-row>i em{display:block;height:100%;border-radius:inherit;background:var(--wine)}
.taste-row>b{color:var(--muted);font-size:11px;font-weight:400;text-align:right}
.taste-profile .source-note{margin:17px 0 0;line-height:1.45}
#compare-wine.secondary{background:#fffdfa;color:var(--ink)}
#compare-wine.primary{background:var(--wine);color:#fff}
.result-actions .button{flex:1}
.saved-item-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;color:var(--wine)}
.saved-item-icon svg{width:20px;height:20px}
.saved-item .remove-saved{width:30px;height:30px;padding:5px;display:grid;place-items:center}
.saved-item .remove-saved svg{width:15px;height:15px}
.compare-trigger{width:40px;height:40px;padding:0;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;gap:2px;background:transparent;color:var(--header-ink);position:relative}
.compare-trigger:hover{background:#fffdfb}
.compare-trigger svg,.compare-trigger .icon-compare{width:20px;height:20px}
.compare-trigger b{position:absolute;right:-2px;top:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:10px;background:var(--wine);color:#fff;font-size:10px;line-height:17px;font-weight:600}
.compare-tray{position:fixed;left:50%;bottom:20px;z-index:8;width:min(760px,calc(100% - 32px));transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 15px 13px 20px;border:1px solid #e3d8ca;border-radius:18px;background:#fffdfbf2;box-shadow:0 12px 35px #4c302b26;backdrop-filter:blur(12px)}
.compare-tray strong{font-size:14px;font-weight:600}
.compare-tray p{margin:2px 0 0;color:var(--muted);font-size:11px}
.compare-tray .button{min-height:42px;padding:9px 15px;font-size:12px;white-space:nowrap}
@media(max-width:720px){
  .portrait-save{top:14px;right:14px;width:48px;height:48px}
  .wine-portrait{height:360px}
  .fit-card{align-items:flex-start;margin-top:14px;padding:14px}
  .fit-card>strong{min-width:54px;font-size:27px}
  .fit-card b{font-size:13px}
  .taste-profile{margin-top:22px;padding-top:17px}
  .taste-profile-heading{align-items:flex-start;flex-direction:column;gap:3px;margin-bottom:13px}
  .taste-profile-heading h2{font-size:25px}
  .taste-row{grid-template-columns:91px minmax(0,1fr) 30px;gap:8px;margin:12px 0;font-size:12px}
  .taste-row>i{height:7px}
  .result-actions{flex-direction:column;gap:8px}
  .result-actions .button{width:100%}
  .compare-tray{bottom:12px;width:calc(100% - 24px);padding:11px 12px 11px 15px}
  .compare-tray strong{font-size:12px}
  .compare-tray p{font-size:10px}
  .compare-tray .button{padding:8px 12px}
}

/* The home screen is intentionally focused on one action: scanning a label. */
.bottle-choice-layer{position:absolute;inset:0;z-index:6;pointer-events:none}
.bottle-choice-layer>p{position:absolute;top:16px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);margin:0;padding:9px 14px;border:1px solid #ffffff80;border-radius:20px;background:#302b2bdd;color:white;text-align:center;font-size:13px;line-height:1.35;box-shadow:0 3px 15px #0004}
#bottle-choice-buttons{position:absolute;inset:0}
.bottle-choice-box{position:absolute;display:flex;align-items:flex-start;justify-content:flex-start;padding:8px;border:2px solid #fff5df;border-radius:14px;background:#792c3820;color:white;text-shadow:0 1px 3px #000;box-shadow:0 0 0 1px #302b2b80,0 2px 12px #0004;pointer-events:auto;touch-action:manipulation}
.bottle-choice-box:hover,.bottle-choice-box:focus-visible{border-color:#d9b87c;background:#a7444b40}
.bottle-choice-box>span{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:18px;background:#792c38;color:white;font-size:13px;font-weight:650;text-shadow:none}
#scanner-screen{max-width:760px;margin:0 auto}
#scanner-screen .page-heading{justify-content:center;margin-bottom:28px}
#scanner-screen .page-heading-copy{max-width:650px;text-align:center;margin:0 auto}
#scanner-screen .page-heading h1{font-size:clamp(38px,5vw,56px)}
#scanner-screen .page-heading .subtitle{max-width:620px;margin:14px auto 0;font-size:17px;line-height:1.55}
#scanner-screen .scanner-layout{display:block}
#scanner-screen .scanner-card{width:min(100%,700px);margin:0 auto;background:transparent;border:0;overflow:visible}
#scanner-screen .viewfinder{height:auto;aspect-ratio:1;border-radius:28px}
#scanner-screen .example-bottle{width:88%;height:88%;top:6%}
#scanner-screen .scan-frame{width:57%;height:31%;top:34%}
#scanner-screen .sample-label{display:none}
#scanner-screen .viewfinder-caption{bottom:24px;padding:12px 18px;font-size:14px}
#scanner-screen .scanner-controls{padding:16px 0 0}
#scanner-screen .scanner-controls .button-row{flex-direction:column;gap:10px;margin-top:0}
#scanner-screen .scanner-controls .button{width:100%;min-height:56px;border-radius:30px;font-size:16px}
#scanner-screen .scanner-controls .notice{margin-top:14px}

@media(min-width:1450px){
  #scanner-screen .viewfinder{height:auto}
}

@media(max-width:720px){
  #scanner-screen{max-width:none}
  #scanner-screen .page-heading{margin-bottom:20px}
  #scanner-screen .page-heading h1{font-size:36px}
  #scanner-screen .page-heading .subtitle{margin-top:10px;font-size:15px;line-height:1.55}
  #scanner-screen .viewfinder{border-radius:22px}
  #scanner-screen .viewfinder-caption{bottom:16px;padding:10px 14px;font-size:12px}
  #scanner-screen .scanner-controls{padding-top:12px}
  #scanner-screen .scanner-controls .button{min-height:54px;font-size:15px}
}

/* Footer follows the primary site's spacious legal and brand layout. */
.site-footer{display:block;max-width:none;margin:80px 32px 0;padding:38px 32px 104px;border-top:1px solid var(--line);color:#9b9690;font-size:16px}
.footer-links{display:flex;align-items:flex-start;flex-wrap:wrap;gap:20px clamp(34px,5vw,80px);margin:0;padding:0}
.footer-links a{color:inherit;line-height:1.35;transition:color .2s ease}
.footer-links a:hover{color:var(--header-ink)}
.footer-meta{position:relative;min-height:190px;padding-top:32px}
.footer-copyright{display:block;line-height:1.35}
.footer-bank-logo{position:absolute;left:0;bottom:0;display:block;width:180px;height:auto;max-height:44px;object-fit:contain;object-position:left bottom}
.footer-disclaimer{position:absolute;right:0;bottom:0;display:flex;align-items:flex-end;gap:24px;width:auto;height:auto;max-height:none;text-align:right;color:inherit;line-height:1.15}
.footer-disclaimer span{font-size:14px}
.footer-disclaimer img{display:block;width:44px;height:auto;flex:0 0 44px}
@media(max-width:720px){
  .site-footer{margin:64px 20px 0;padding:32px 0 96px;font-size:14px}
  .footer-links{flex-direction:column;gap:17px}
  .footer-meta{min-height:0;display:flex;flex-direction:column;gap:34px;padding-top:34px}
  .footer-bank-logo,.footer-disclaimer{position:static}
  .footer-bank-logo{align-self:flex-start;width:168px;max-height:42px}
  .footer-disclaimer{align-self:flex-end;gap:18px;width:auto;max-width:100%;max-height:none}
  .footer-disclaimer span{font-size:12px}
  .footer-disclaimer img{width:44px;flex-basis:44px}
}

#catalog-search { display: grid; gap: 12px; }
#wine-query { width: 100%; box-sizing: border-box; padding: 12px; font: inherit; border: 1px solid #ddd; border-radius: 12px; }
.catalog-result { display: block; width: 100%; padding: 16px 8px; text-align: left; font: inherit; background: transparent; border: 0; border-bottom: 1px solid #eee; cursor: pointer; }
.catalog-result:hover { background: #f5f5f5; }

/* Scanning preview shown while backend finds the label automatically. */
.processing-overlay{background:radial-gradient(ellipse at center,#553239,#20151bec);backdrop-filter:blur(12px)}
.admin-tools{max-width:900px;margin:18px auto;padding:16px;border:1px dashed var(--gold);border-radius:10px}.admin-tools label{display:block;font-size:13px}.admin-tools input{width:100%;max-width:480px;padding:8px}.admin-tools p{font-size:12px;color:var(--muted)}
.debug-ocr-toggle{display:flex;align-items:center;gap:8px;margin:8px 0 4px;font-size:14px}
.debug-ocr-toggle input{width:auto;max-width:none;padding:0;accent-color:var(--wine)}
.debug-tools>span{display:block;color:var(--muted);font-size:12px;line-height:1.4}
.admin-diagnostics{margin:24px 0;padding:16px;border:1px dashed var(--gold);border-radius:10px}.admin-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 monospace}
#preview-actions{flex-wrap:wrap}

/* Debug scan telemetry is visible only with ?debug=1 or ?admin=1. */
.processing-debug{width:min(100%,420px);margin-top:16px;padding:12px 14px;border:1px solid #ffffff38;border-radius:14px;background:#1d131780;text-align:left}
.processing-elapsed{color:#f8dfb2;font-size:11px;font-variant-numeric:tabular-nums}
.processing-log{max-height:116px;overflow:auto;margin:8px 0 0;padding-left:20px;color:#f0dfe2;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}
.processing-log li::marker{color:#e9c88e}
.scan-debug{margin:0 0 28px;padding:18px 20px;border:1px solid #ead8ca;border-radius:18px;background:#fffaf3}
.scan-debug-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.scan-debug-heading small{color:var(--gold);font-size:10px;letter-spacing:1.2px}
.scan-debug-heading h2{margin:4px 0 0;font:25px/1.15 Georgia,serif}
.scan-debug-status{padding:6px 10px;border-radius:20px;background:#f1e7d6;color:#7e6135;font-size:11px;white-space:nowrap}
.scan-debug-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}
.scan-debug-metrics>div{min-width:0;padding:12px;border-radius:12px;background:#f8f2e9}
.scan-debug-metrics small{display:block;color:var(--muted);font-size:9px;letter-spacing:.7px}
.scan-debug-metrics strong{display:block;margin-top:3px;color:var(--wine);font-size:25px;line-height:1.1;font-variant-numeric:tabular-nums}
.scan-debug-metrics em{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-style:normal}
.scan-debug-details{margin-top:17px;border-top:1px solid #ead8ca}.scan-debug-details h3{margin:14px 0 7px;font-size:14px}.scan-debug-detail-row{display:flex;justify-content:space-between;gap:18px;padding:8px 0;border-bottom:1px solid #efe5da}.scan-debug-detail-row>div{min-width:0}.scan-debug-detail-row strong,.scan-debug-detail-row small{display:block}.scan-debug-detail-row strong{font-size:12px;font-weight:600}.scan-debug-detail-row small{margin-top:2px;color:var(--muted);font-size:10px;line-height:1.35}.scan-debug-detail-row b{flex:none;color:var(--wine);font:600 12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace}.scan-debug-footnote{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.scan-debug-crop{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.scan-debug-crop figure{margin:0}
.scan-debug-crop figcaption{margin-top:6px;color:var(--muted);font-size:10px;line-height:1.35}
.crop-source{position:relative;display:inline-block;max-width:100%;overflow:hidden;border-radius:12px;background:#1d1317}
.crop-source img{display:block;max-width:100%;max-height:280px;width:auto;height:auto;background:#1d1317}
.crop-sent{display:block;max-width:100%;max-height:280px;width:auto;height:auto;margin:0 auto;background:#1d1317;border-radius:12px}
.crop-box{position:absolute;border:2px solid #e23d3d;box-shadow:0 0 0 999px #00000055;pointer-events:none}
.crop-quad{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.crop-quad polygon{fill:#e23d3d22;stroke:#e23d3d;stroke-width:1.8;vector-effect:non-scaling-stroke}
.scan-debug-contrib{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}
.scan-debug-contrib>div{min-width:0;padding:12px;border-radius:12px;background:#f1e7d6}
.scan-debug-contrib small{display:block;color:var(--muted);font-size:9px;letter-spacing:.7px}
.scan-debug-contrib strong{display:block;margin-top:3px;color:var(--wine);font-size:20px;line-height:1.15;font-variant-numeric:tabular-nums}
.scan-debug-compare{display:grid;gap:12px;margin-top:8px}
.scan-debug-compare-pair{display:grid;grid-template-columns:1fr auto minmax(0,1.15fr);gap:10px;align-items:center}
.catalog-match-shots{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}
.catalog-match-shots figure{margin:0}
.scan-debug-compare-note{margin:8px 0 0;color:var(--muted);font-size:10px;line-height:1.4}
.scan-debug-compare-vs{color:var(--gold);font-size:18px}
.debug-probe{margin:8px 0 12px}
.debug-probe label{display:block;margin-bottom:6px;font-size:12px;color:var(--muted)}
.debug-probe input{width:min(100%,420px);padding:8px 10px;border:1px solid #ead8ca;border-radius:10px;background:#fff}
.debug-probe-hits{display:grid;gap:4px;margin-top:6px;max-width:420px}
.debug-probe-hits button{display:block;width:100%;text-align:left;padding:8px 10px;border:1px solid #ead8ca;border-radius:10px;background:#fff}
.debug-probe-hits small{display:block;color:var(--muted);font-size:11px}
.debug-probe-hits strong{display:block;font-size:13px}
.scan-debug-neighbors{display:grid;gap:8px;margin-top:8px}
.scan-debug-neighbor{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center;padding:8px;border:1px solid #ead8ca;border-radius:12px;background:#fff}
.scan-debug-neighbor img,.scan-debug-neighbor .dish-placeholder{width:52px;height:78px;object-fit:contain;background:#f6f1e8;border-radius:8px}
.scan-debug-neighbor small,.scan-debug-neighbor em{display:block;color:var(--muted);font-size:11px;font-style:normal;line-height:1.35}
.scan-debug-neighbor strong{display:block;margin:2px 0}
.debug-ocr-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 0}
.debug-ocr-bar>span{color:var(--muted);font-size:12px;line-height:1.35}
@media(max-width:720px){
  .processing-debug{width:100%;margin-top:14px}
  .scan-debug{padding:15px;margin-bottom:22px}
  .scan-debug-heading h2{font-size:22px}
  .scan-debug-metrics{grid-template-columns:1fr;gap:7px;margin-top:13px}
  .scan-debug-metrics>div{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:10px;padding:9px 11px}
  .scan-debug-metrics small{grid-row:span 2}
  .scan-debug-metrics strong{grid-column:2;grid-row:1}
  .scan-debug-metrics em{grid-column:2;grid-row:2;margin-top:1px;text-align:right}
  .scan-debug-detail-row{gap:10px}.scan-debug-detail-row small{font-size:9px}.scan-debug-footnote{font-size:10px}
  .scan-debug-crop,.scan-debug-contrib,.scan-debug-compare-pair{grid-template-columns:1fr}
}
.not-found-banner{padding:22px 20px;border-radius:20px;background:#f6f1e8}
.not-found-banner h1{margin:6px 0 10px;font-size:32px;letter-spacing:-.7px;line-height:1.15}
.not-found-banner .muted{margin:0;max-width:42em}
.alt-card-score{margin-left:auto;flex:0 0 auto;align-self:start;min-width:3.6em;padding:6px 8px;border-radius:999px;background:#f6f1e8;color:#792c38;font-size:12px;font-weight:700;letter-spacing:-.2px;text-align:center;font-variant-numeric:tabular-nums;line-height:1.2}
.after-search{margin-top:25px;padding:22px 24px;border-radius:19px;background:#f8f2e9}
.after-search .sommelier-heading{margin-top:22px}
.sommelier-panel{margin-top:8px}
.sommelier-hero h2{font:500 28px/1.15 "Playfair Display",Georgia,serif;margin:0;letter-spacing:-.4px}
.sommelier-sub{margin:6px 0 0;color:var(--muted);font-size:14px;font-style:italic}
.sommelier-step{margin-top:12px;padding:14px 16px;border:1px solid #eadfd3;border-radius:18px;background:#fffdfb}
.sommelier-step-title{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:15px;font-weight:600}
.sommelier-num{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--wine);color:#fff;font-size:13px;font-weight:700}
.sommelier-step .food-buttons{margin:0}
.sommelier-hint-card{margin:14px 0 0;padding:14px 16px;border-radius:16px;background:#f6ebe6;color:#5c3a3d;font-size:14px;line-height:1.55}
.sommelier-found{margin:16px 0 4px;font-size:13px;color:var(--muted);font-weight:600}
.sommelier-reason{display:inline-flex;margin-top:6px;padding:3px 8px;border-radius:999px;background:#f3e8e4;color:var(--wine);font-size:11px;font-weight:600}
.sommelier-rating{display:block;margin-top:4px;color:#b0892f;font-size:12px;font-weight:700}
.alt-card.sommelier-card{grid-template-columns:46px minmax(0,1fr)}
.alt-card.sommelier-card strong{min-height:0}
.alt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-top:12px;align-items:stretch}
.alt-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px 12px;align-items:start;min-height:108px;padding:12px;border:1px solid #e2d8ca;border-radius:14px;background:#fffdfa;color:inherit;text-decoration:none;cursor:pointer;text-align:left}
.alt-card img,.alt-card .dish-placeholder{width:46px;height:86px;flex:none;object-fit:contain;object-position:center;border-radius:8px;background:#f6f1e8}
.alt-card .dish-placeholder{display:grid;place-items:center;font-size:9px}
.alt-card>div{min-width:0}
.alt-card small,.alt-card em{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;color:var(--muted);font-size:10px;font-style:normal;line-height:1.3}
.alt-card strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:3px 0;min-height:2.5em;font-size:13px;line-height:1.25}
@media(max-width:720px){.after-search{padding:20px 16px}.alt-grid{grid-template-columns:1fr}.alt-card{min-height:0}}

@media(min-width:900px){
  main{padding-top:12px}
  .admin-tools{max-width:980px;margin:0 auto 10px;padding:8px 14px}
  #scanner-screen{max-width:1040px}
  #scanner-screen .page-heading{margin-bottom:16px}
  #scanner-screen .page-heading h1{font-size:42px}
  #scanner-screen .page-heading .subtitle{margin-top:8px;font-size:16px}
  #scanner-screen .scanner-card{display:flex;justify-content:center;align-items:center;gap:12px;width:auto;max-width:100%;margin:0 auto}
  #scanner-screen .viewfinder{flex:1 1 auto;width:min(640px,calc(100% - 212px));aspect-ratio:16/9;max-height:min(42vh,380px);height:auto}
  #scanner-screen .example-bottle{width:auto;max-width:28%;height:90%;top:5%;left:50%;transform:translateX(-50%)}
  #scanner-screen .scan-frame{width:34%;height:48%;top:24%}
  #scanner-screen .viewfinder-caption{bottom:14px;padding:8px 14px;font-size:13px}
  #scanner-screen .scanner-controls{flex:0 0 200px;padding:0;display:flex;flex-direction:column;justify-content:center;min-width:0}
  #scanner-screen .scanner-controls .button-row{flex-direction:column;gap:12px;margin-top:0}
  #scanner-screen .scanner-controls .button{width:100%;flex:none;min-height:52px;font-size:15px}
  #scanner-screen .scanner-controls .notice{margin-top:12px}
  .site-footer{margin-top:24px;padding:18px 32px 28px}
  .footer-meta{min-height:72px;padding-top:14px}


}


/* Product-first wine card. The bottle source includes wide transparent margins:
   size it by height instead of squeezing the source canvas into the left column. */
#result-screen{max-width:1120px;margin:0 auto}
#result-screen .result-top{margin-bottom:10px}
#result-screen .result-layout{display:flex;flex-direction:column;gap:14px}
#result-screen .wine-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1fr);grid-template-rows:1fr auto;column-gap:24px;min-height:440px;padding:32px 32px 28px 0;border-radius:28px;background:#f6f1e8;overflow:hidden}
#result-screen .wine-portrait{grid-row:1 / 3;align-self:stretch;min-height:380px;height:auto;background:transparent;border-radius:0;isolation:isolate;overflow:hidden}
#result-screen .wine-portrait::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f6f1e826 25%,#f6f1e8 100%),linear-gradient(0deg,#f6f1e8 0%,#f6f1e800 16%,#f6f1e800 50%,#f6f1e8 100%);pointer-events:none}
#result-screen .wine-portrait .wine-grape-backdrop{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-height:none;object-fit:cover;object-position:45% center;opacity:.55;mix-blend-mode:normal}
#result-screen .wine-portrait .wine-bottle{position:absolute;top:0;left:50%;transform:translateX(-50%);width:auto;height:100%;max-width:none;max-height:none;object-fit:contain;mix-blend-mode:normal;filter:drop-shadow(7px 10px 7px #3b292225)}
#result-screen .wine-portrait>span{padding:20px;color:var(--muted);font-size:13px}
#result-screen .wine-details{min-width:0;padding:8px 0 0}
#result-screen .wine-details .eyebrow{margin:0 42px 10px 0;font-size:12px;letter-spacing:1.3px}
#result-screen .wine-details h1{font:400 clamp(30px,3.4vw,44px)/1.08 Georgia,serif;letter-spacing:-1px;overflow-wrap:anywhere}
.wine-title-cuvee{display:block;font-size:.8em;margin-top:5px;letter-spacing:-.4px}
#result-screen .wine-category{margin:10px 0 18px;font-size:15px;line-height:1.4}
#result-screen .portrait-save{top:16px;right:16px;width:42px;height:42px;box-shadow:0 4px 18px #48332d0a}
#result-screen .portrait-save svg{width:20px;height:20px}
#result-screen .public-rating{margin-bottom:22px}
#result-screen .public-rating-badge{gap:9px;padding:7px 15px 7px 10px;border-radius:30px;background:#f1e5cbb3}
#result-screen .public-rating-badge span{font-size:23px;line-height:1.3}
#result-screen .public-rating-badge small{font-size:11px;color:#827361;line-height:1.2}
.rating-glass{width:24px;height:32px;stroke-width:1.3;color:#825452;flex:none}
.glass-wine{fill:var(--wine);stroke:none;opacity:0;transition:opacity .15s}
.public-rating-badge .glass-wine,.rating-option.filled .glass-wine{opacity:1}
#result-screen .catalog-visuals{margin:0}
#result-screen .visual-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#result-screen .visual-fact-color{grid-column:1 / -1}
#result-screen .visual-fact{min-width:0;min-height:72px;gap:10px;padding:10px;border:0;border-radius:16px;background:#fffdfbc9}
#result-screen .visual-fact img{width:44px;height:44px;border-radius:11px;flex:none}
#result-screen .visual-fact small{font-size:10px;margin-bottom:4px}
#result-screen .visual-fact strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
#result-screen .visual-fact-color{padding:12px 16px}
#result-screen .visual-fact-color.color-tone-red{background:#78313a;color:#fff6ee}
#result-screen .visual-fact-color.color-tone-white{background:#eadfbe;color:#3a342c}
#result-screen .visual-fact-color.color-tone-orange{background:#c8793c;color:#fff7ee}
#result-screen .visual-fact-color.color-tone-rose{background:#d9959c;color:#3a2428}
#result-screen .wine-facts{grid-column:2;display:flex;flex-wrap:wrap;gap:16px 0;margin:22px 0 0;padding:18px 0 0;border-top:1px solid #e1d9cc}
#result-screen .wine-facts>span{flex:1 1 28%;min-width:0;padding:0 14px;border-left:1px solid #e1d9cc;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
#result-screen .wine-facts>span:first-child{padding-left:0;border:0}
#result-screen .wine-facts small{font-size:10px;letter-spacing:.4px;margin-bottom:7px}
#result-screen .result-actions{display:flex;flex-direction:row;gap:10px;margin:0}
#result-screen .result-actions .button{flex:1;min-width:0;width:auto;min-height:48px;padding:10px 12px;font-size:14px;border-radius:16px;background:#fffdfb}
#result-screen .result-actions .button.primary,
#result-screen .result-actions #compare-wine.is-selected{background:var(--wine);color:#fff;border-color:var(--wine)}
#result-screen .result-actions .button.primary:hover,
#result-screen .result-actions #compare-wine.is-selected:hover{background:var(--wine-dark)}
#result-screen .fit-card{margin:0}
#result-screen .result-split{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;align-items:start}
#result-screen .result-taste{padding:24px;border-radius:24px;background:#f6f1e8}
#result-screen .taste-profile{margin:0;padding:0;border:0}
#result-screen .taste-profile-heading{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:18px}
#result-screen .taste-profile-heading h2,#result-screen .dish-pairings-heading h2{font-size:27px}
#result-screen .taste-profile-heading span{font-size:12px;white-space:normal}
#result-screen .taste-row{margin:13px 0}
#result-screen .rating-combo{display:block;margin:16px 0 0;padding:12px 0 0;border-top:1px solid #e1d9cc;border-radius:0;background:none}
#result-screen .user-rating{display:flex;flex-direction:row;justify-content:space-between;gap:8px}
#result-screen .user-rating-cta{padding:0;margin:0;background:none;text-align:left;font:12px/1.4 var(--font);color:var(--muted)}
#result-screen .rating-option{display:grid;place-items:center;width:38px;height:44px;padding:4px;border-radius:10px}
#result-screen .rating-option .rating-icons{width:28px;height:36px}
#result-screen .rating-option .rating-icon-glass,#result-screen .rating-option .rating-icon-wine{width:28px;height:36px}
#result-screen .public-rating-badge .rating-public-icon{width:28px;height:28px;transform:none}
#result-screen .rating-options:hover .rating-option{background:transparent}
@media(hover:hover){
  #result-screen .rating-option:hover{background:#eadfce}
  #result-screen .rating-options:hover .glass-wine{opacity:1}
  #result-screen .rating-options .rating-option:hover ~ .rating-option .glass-wine{opacity:0}
}
#result-screen .wine-summary{margin:14px 0 0;font-size:13px;line-height:1.65;display:block;-webkit-line-clamp:unset;overflow:visible;max-height:none;text-overflow:unset;white-space:normal}
#result-screen .taste-tags{margin:14px 0 0;gap:6px}
#result-screen .taste-tags span{padding:7px 12px;font-size:11px;background:#fffdfbc9}
#result-screen .dish-pairings{margin:0;padding:24px;border-radius:24px}
#result-screen .dish-pairings-heading{flex-wrap:wrap;gap:6px}
#result-screen .after-search{margin-top:18px}
@media(max-width:720px){
  body:has(#result-screen:not([hidden])) main{padding-top:16px}
  #result-screen .result-layout{gap:10px}
  #result-screen .wine-hero{grid-template-columns:38% minmax(0,1fr);column-gap:8px;min-height:0;padding:20px 14px 16px 0;border-radius:22px}
  #result-screen .wine-portrait{grid-row:1;min-height:270px;margin:-8px 0 -4px}
  #result-screen .wine-details{padding:15px 0 0}
  #result-screen .wine-details .eyebrow{margin:0 20px 8px 0;font-size:9px;letter-spacing:.8px}
  #result-screen .wine-details h1{font-size:clamp(23px,5.8vw,34px);letter-spacing:-.65px}
  #result-screen .wine-category{font-size:11px;margin:8px 0 12px}
  #result-screen .portrait-save{width:32px;height:32px;top:8px;right:8px}
  #result-screen .portrait-save svg{width:16px;height:16px}
  #result-screen .public-rating{margin-bottom:14px}
  #result-screen .public-rating-badge{gap:6px;padding:5px 10px 5px 7px}
  #result-screen .public-rating-badge span{font-size:19px}
  #result-screen .public-rating-badge small{font-size:9px;max-width:55px}
  #result-screen .public-rating-badge .rating-public-icon{width:22px;height:22px}
  #result-screen .visual-facts{grid-template-columns:1fr;gap:7px}
  #result-screen .visual-fact{min-height:45px;padding:7px 9px;border-radius:11px;gap:8px}
  #result-screen .visual-fact img{width:32px;height:32px;border-radius:8px}
  #result-screen .visual-fact small{font-size:8px;margin-bottom:2px}
  #result-screen .visual-fact strong{font-size:11px}
  #result-screen .visual-fact-color{min-height:43px;padding:7px 11px}
  #result-screen .wine-facts{grid-column:1 / -1;margin:18px 0 0 16px;padding-top:14px;gap:12px 0}
  #result-screen .wine-facts>span{font-size:12px;padding:0 10px}
  #result-screen .wine-facts small{font-size:8px;margin-bottom:5px}
  #result-screen .result-actions .button{min-height:46px;font-size:11px;padding:9px 7px;gap:7px;border-radius:13px}
  #result-screen .result-actions .button svg,#result-screen .result-actions .icon-compare{width:19px;height:19px;flex:none}
  #result-screen .result-split{grid-template-columns:1fr;gap:10px}
  #result-screen .result-taste,#result-screen .dish-pairings{padding:18px 16px;border-radius:22px}
  #result-screen .taste-profile-heading{margin-bottom:16px}
  #result-screen .taste-profile-heading h2,#result-screen .dish-pairings-heading h2{font-size:24px}
  #result-screen .taste-profile-heading span{font-size:10px}
  #result-screen .taste-row{margin:12px 0}
  #result-screen .rating-option{width:34px}
}
@media(prefers-reduced-motion:reduce){.glass-wine{transition:none}}

/* Wine comparison: the wine card's language, laid out as a table. */
#compare-dialog{width:min(96vw,1000px);max-width:1000px;max-height:94vh;padding:28px;border:0;border-radius:30px;background:#f6f1e8;box-shadow:0 30px 90px #23181640}
#compare-dialog::backdrop{background:#2c22208a;backdrop-filter:blur(8px)}
#compare-dialog .dialog-heading{align-items:flex-start}
#compare-dialog .dialog-heading h2{font:400 clamp(30px,4vw,44px)/1.05 Georgia,serif;letter-spacing:-.03em;color:#211c1a}
#compare-dialog .dialog-heading p{margin:6px 0 0;font-size:14px;color:#8b8179}
#compare-close{width:44px;height:44px;flex:none;border:0;background:#fffdfb;box-shadow:0 3px 12px #39231d14;color:var(--ink)}
#compare-close svg{width:22px;height:22px;stroke-width:1.9}
.compare-board{--cols:var(--compare-columns,3);display:grid;gap:12px;margin-top:20px}
.compare-list,.compare-cols{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:12px;margin:0}
.compare-sections{display:grid;gap:12px}
.compare-sections:empty{display:none}
.compare-card{position:relative;min-width:0;min-height:0;padding:0;overflow:hidden;border:2px solid #fffdfb;border-radius:24px;background:#fffdfbcc;box-shadow:none}
.compare-art{position:relative;height:220px;overflow:hidden;background:#e9dfd2}
.compare-art::before{content:'';position:absolute;inset:0;background-image:var(--compare-backdrop,linear-gradient(125deg,#e7d5c1,#d7c4ad));background-size:cover;background-position:center;opacity:.92}
.compare-art::after{content:'';position:absolute;inset:auto 0 0;height:64px;background:linear-gradient(transparent,#fdfaf5)}
.compare-art img{position:absolute;z-index:1;left:50%;bottom:6%;width:auto;height:88%;max-width:86%;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(8px 9px 8px #251b1955)}
.compare-card-placeholder{position:absolute;z-index:1;left:50%;top:45%;padding:8px 12px;border-radius:12px;background:#fcf9f4cc;color:var(--muted);font-size:12px;white-space:nowrap;transform:translate(-50%,-50%)}
.compare-remove{position:absolute;z-index:2;top:10px;right:10px;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:#fffdfbef;color:#6c1629;box-shadow:0 3px 12px #39231d22}
.compare-remove svg{width:18px;height:18px}
.compare-card-copy{position:relative;z-index:1;padding:4px 16px 16px}
.compare-card-copy small{display:block;color:#a38b6b;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.compare-card-copy h3{margin:4px 0 6px;font:400 clamp(19px,2.2vw,26px)/1.1 Georgia,serif;color:#211c1a;overflow-wrap:anywhere}
.compare-card-copy p{margin:0;color:#827971;font-size:13px;line-height:1.35}
.compare-add{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;border:1.5px dashed #d7c5af;border-radius:24px;background:#fbf8f3;color:#211c1a;text-align:center}
.compare-add:hover{border-color:#ae7e4e;background:#f5ede2}
.compare-add-plus{display:grid;place-items:center;width:52px;height:52px;border:2px solid #d7c5af;border-radius:50%;font:32px/1 Georgia,serif}
.compare-add strong{font:400 22px/1.1 Georgia,serif}
.compare-add small{max-width:160px;color:#8a817d;font-size:13px;line-height:1.4}
.compare-block{padding:18px 20px;border:2px solid #fffdfb;border-radius:24px;background:#fffdfbcc}
.compare-block-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#2c2523;font:500 19px/1.2 var(--font)}
.compare-block-title svg{width:20px;height:20px;color:#843541;stroke-width:1.9}
.compare-rating-block .compare-block-title{margin-bottom:8px;color:#70665e;font-size:15px;font-weight:450}
.compare-row+.compare-row{margin-top:14px;padding-top:14px;border-top:1px solid #eee6dd}
.compare-row-label{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#70665e;font-size:14px}
.compare-row-label svg{width:18px;height:18px;color:#843541;stroke-width:1.9}
.compare-cell{min-width:0;color:#2c2523;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.compare-cols>.compare-cell+.compare-cell{padding-left:12px;border-left:1px solid #eee6dd}
.compare-muted{color:#a39a92}
.compare-rating{color:#1c1918;font-size:30px;font-weight:600;line-height:1}
.compare-rating span{color:#eba92e;font-size:24px}
.compare-best{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:999px;background:#f6ebe0;color:#843541;font-size:11px;font-style:normal;font-weight:600;vertical-align:middle}
.compare-summary{background:#f9ecea}
.compare-summary .compare-block-title{color:#843541}
.compare-summary-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.compare-summary-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:#fffdfb}
.compare-glass{flex:none;width:30px;height:38px;fill:none;stroke:#b8aaa0;stroke-width:1.3}
.compare-summary-item strong{display:block;color:#2c2523;font-size:14px;font-weight:600}
.compare-summary-item p{margin:2px 0 0;color:#716861;font-size:13px;line-height:1.4}
.compare-taste-line{display:grid;grid-template-columns:minmax(0,200px) minmax(0,460px) 110px;align-items:center;gap:16px;margin:9px 0}
.compare-wine-name{display:flex;align-items:center;gap:7px;min-width:0;color:#4a403c;font-size:13px}
.compare-wine-name b{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-weight:500;line-height:1.2}
.compare-dot{flex:none;width:11px;height:11px;border-radius:50%;box-shadow:inset 0 0 0 1px #0000001f}
.compare-taste-word{color:#8b8179;font-size:12px;line-height:1.2}
.compare-taste-word.is-leading{color:#843541;font-weight:600}
#compare-dialog .taste-meter{position:relative;display:block;height:8px;border-radius:8px;background:linear-gradient(90deg,#e9a698,#f1d9cb)}
#compare-dialog .taste-meter i{position:absolute;top:50%;width:18px;height:18px;border-radius:50%;background:#792c38;box-shadow:0 0 0 2px #fcf8f2;transform:translate(-50%,-50%)}
.compare-notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px 4px}
#compare-dialog .tasting-note{min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;color:#292321;font-size:11px;line-height:1.2;text-align:center}
.compare-color{display:flex;align-items:center;gap:8px}
.compare-color i{flex:none;width:24px;height:24px;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 6px #3b261a26}
.compare-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.compare-actions .button{min-height:54px;border-radius:20px;font-size:15px}
.compare-actions .button.secondary{border-color:#d8cabc;background:#fffdfb;color:#792c38}
.compare-actions .button.primary{background:#792c38}
.compare-actions .icon-compare,.compare-actions svg{width:21px;height:21px}
@media(max-width:720px){
  #compare-dialog{width:calc(100vw - 16px);max-height:95vh;padding:18px 12px 14px;border-radius:24px}
  #compare-dialog .dialog-heading h2{font-size:30px}
  #compare-dialog .dialog-heading p{font-size:12px}
  #compare-close{width:40px;height:40px}
  #compare-close svg{width:20px;height:20px}
  .compare-board{--cols:var(--compare-mobile-columns,2);gap:10px;margin-top:14px}
  .compare-list,.compare-cols{gap:8px}
  .compare-board .is-desktop-only{display:none}
  .compare-art{height:150px}
  .compare-remove{top:6px;right:6px;width:30px;height:30px}
  .compare-remove svg{width:15px;height:15px}
  .compare-card{border-radius:20px}
  .compare-card-copy{padding:2px 10px 12px}
  .compare-card-copy small{font-size:9px;letter-spacing:.08em}
  .compare-card-copy h3{font-size:17px}
  .compare-card-copy p{font-size:11px}
  .compare-add{gap:6px;padding:12px;border-radius:20px}
  .compare-add-plus{width:42px;height:42px;font-size:26px}
  .compare-add strong{font-size:18px}
  .compare-add small{font-size:11px}
  .compare-block{padding:14px 12px;border-radius:20px}
  .compare-block-title{font-size:17px}
  .compare-row-label{font-size:13px}
  .compare-cell{font-size:13px}
  .compare-cols>.compare-cell+.compare-cell{padding-left:8px}
  .compare-rating{font-size:24px}
  .compare-rating span{font-size:19px}
  .compare-best{margin:4px 0 0;display:table}
  .compare-summary-item{padding:10px 12px}
  .compare-taste-line{grid-template-columns:104px minmax(0,1fr) 74px;gap:10px;margin:8px 0}
  .compare-wine-name{font-size:12px}
  .compare-taste-word{font-size:11px}
  #compare-dialog .taste-meter{height:7px}
  #compare-dialog .taste-meter i{width:15px;height:15px}
  .compare-notes{grid-template-columns:repeat(auto-fill,minmax(50px,1fr))}
  #compare-dialog .tasting-note{font-size:10px}
  .compare-color{gap:6px}
  .compare-color i{width:18px;height:18px}
  .compare-actions{gap:8px;margin-top:12px}
  .compare-actions .button{min-height:48px;padding:8px;border-radius:16px;font-size:13px;gap:6px;white-space:nowrap}
  .compare-actions .icon-compare,.compare-actions svg{width:18px;height:18px}
}

/* Result card refresh: bottle, rating, taste profile, then compact facts. */
#result-screen .result-layout{gap:13px}
#result-screen .wine-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:15px;min-height:0;padding:14px;border-radius:30px;background:#f6f1e8;overflow:hidden}
#result-screen .wine-main{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);min-height:490px;column-gap:22px;align-items:stretch}
#result-screen .wine-portrait{position:relative;grid-row:auto;min-height:490px;height:100%;margin:-14px 0 -4px -14px;border-radius:28px 0 0 0;overflow:hidden;isolation:isolate;background:#e3d3be}
#result-screen .wine-portrait .wine-vineyard-backdrop{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:40% center;opacity:.94;mix-blend-mode:normal}
#result-screen .wine-portrait::after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#f6f1e800 45%,#f6f1e8 100%),linear-gradient(0deg,#f6f1e8 0%,#f6f1e800 19%);pointer-events:none}
#result-screen .wine-portrait .wine-bottle{position:absolute;z-index:2;top:-1%;left:50%;transform:translateX(-50%);width:auto;height:112%;max-width:125%;max-height:none;object-fit:contain;mix-blend-mode:normal;filter:drop-shadow(9px 13px 9px #37241c47)}
#result-screen .wine-portrait>span{position:relative;z-index:2;align-self:center;padding:20px;color:var(--muted);font-size:13px}
#result-screen .wine-details{position:relative;z-index:2;min-width:0;padding:33px 24px 20px 0;align-self:start}
#result-screen .wine-details .eyebrow{margin:0 44px 13px 0;font-size:14px;letter-spacing:1.5px;color:#a38b6b;text-transform:uppercase}
#result-screen .wine-details h1{font:400 clamp(34px,4.1vw,52px)/1.06 Georgia,serif;letter-spacing:-1.25px;overflow-wrap:anywhere}
#result-screen .wine-category{margin:14px 0 21px;font-size:19px;line-height:1.4;color:#827971}
#result-screen .public-rating{margin:0 0 21px}
#result-screen .public-rating-badge{display:flex;align-items:center;gap:11px;width:max-content;max-width:100%;padding:0;background:transparent;border-radius:0}
#result-screen .public-rating-badge .rating-star{font-size:44px;line-height:1;color:#eba92e}
#result-screen .public-rating-badge strong{font-size:48px;line-height:1;font-weight:600;color:#1c1918}
#result-screen .public-rating-badge .rating-copy{display:grid;gap:2px;margin-left:3px}
#result-screen .public-rating-badge .rating-copy small{max-width:none;font-size:15px;line-height:1.25;color:#7e746b}
#result-screen .portrait-save{top:18px;right:18px;width:48px;height:48px;background:#fffdfb;color:var(--wine);box-shadow:0 4px 18px #48332d13}
#result-screen .portrait-save svg{width:23px;height:23px}
#result-screen .result-taste{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:15px 28px;align-items:center;margin:0;padding:20px 24px;border:2px solid #fffdfb;border-radius:25px;background:#fffdfbcc;backdrop-filter:blur(5px)}
#result-screen .taste-profile{margin:0;padding:0;border:0}
#result-screen .taste-profile-heading{display:flex;align-items:baseline;justify-content:space-between;flex-direction:row;gap:10px;margin:0 0 13px}
#result-screen .taste-profile-heading h2{margin:0;font:500 21px/1.2 var(--font)}
#result-screen .taste-profile-heading span{font-size:11px;white-space:nowrap;color:#958b82}
#result-screen .taste-row{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:15px;margin:12px 0;font-size:15px;color:#70665e}
#result-screen .taste-meter{position:relative;display:block;height:8px;border-radius:8px;background:linear-gradient(90deg,#e9a698,#f1d9cb);}
#result-screen .taste-meter i{position:absolute;top:50%;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:50%;background:#792c38;box-shadow:0 0 0 2px #fcf8f2}
#result-screen .tasting-notes{min-width:0;align-self:stretch;padding-left:24px;border-left:1px solid #d9cbbc}
#result-screen .tasting-notes h3{margin:0 0 8px;font-size:15px;font-weight:450;color:#76695e}
#result-screen .tasting-note-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:start}
#result-screen .tasting-note{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:#292321;font-size:11px;line-height:1.2}
:is(#result-screen,#compare-dialog) .note-illustration,:is(#result-screen,#compare-dialog) .tasting-note>img{display:block;width:58px;height:52px;object-fit:contain;background-image:url('/assets/wine-note-illustrations.webp');background-repeat:no-repeat;background-size:300% 300%}
:is(#result-screen,#compare-dialog) .note-illustration-strawberry{background-position:0 0}
:is(#result-screen,#compare-dialog) .note-illustration-raspberry{background-position:50% 0}
:is(#result-screen,#compare-dialog) .note-illustration-flower{background-position:100% 0}
:is(#result-screen,#compare-dialog) .note-illustration-peach{background-position:0 50%}
:is(#result-screen,#compare-dialog) .note-illustration-apple{background-position:50% 50%}
:is(#result-screen,#compare-dialog) .note-illustration-citrus{background-position:100% 50%}
:is(#result-screen,#compare-dialog) .note-illustration-almond{background-position:0 100%}
:is(#result-screen,#compare-dialog) .note-illustration-vanilla{background-position:50% 100%}
:is(#result-screen,#compare-dialog) .note-illustration-berries{background-position:100% 100%}
#result-screen .rating-combo{grid-column:1/-1;display:block;margin:0;padding:10px 0 0;border-top:1px solid #e6ddd2;border-radius:0;background:none}
#result-screen .user-rating{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px}
#result-screen .user-rating-cta{margin:0;padding:0;background:none;text-align:left;font-size:11px;color:#91877f}
#result-screen .rating-option{width:34px;height:38px}
#result-screen .rating-option .rating-icons,#result-screen .rating-option .rating-icon-glass,#result-screen .rating-option .rating-icon-wine{width:25px;height:30px}
#result-screen .wine-facts{grid-column:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;border:0}
#result-screen .wine-fact{min-width:0;min-height:88px;display:flex;align-items:flex-start;gap:11px;padding:14px;border:0;border-radius:19px;background:#fffdfbc9}
#result-screen .wine-fact-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:50%;background:#f8ede6;color:#812c38;font-size:22px}
#result-screen .wine-fact-icon svg{width:20px;height:20px;stroke-width:2}
#result-screen .wine-fact>div{min-width:0;display:grid;gap:3px}
#result-screen .wine-fact strong{font-size:19px;font-weight:550;line-height:1.2;overflow-wrap:anywhere}
#result-screen .wine-fact small{font-size:12px;line-height:1.3;color:#8b8179}
#result-screen .result-actions{margin:0;gap:12px}
#result-screen .result-actions .button{min-height:54px;font-size:15px;border-radius:20px;background:transparent;color:#792c38;border-color:#d8cabc}
#result-screen .result-actions .button:hover{background:#f6f1e8}
#result-screen .result-actions .button.primary,#result-screen .result-actions #compare-wine.is-selected{background:#792c38;color:#fff;border-color:#792c38}
#result-screen .result-actions .button svg,#result-screen .result-actions .icon-compare{width:21px;height:21px}
#result-screen .fit-card{margin:0}
#result-screen .dish-pairings{margin:0;padding:23px;border-radius:24px}
#result-screen .dish-pairings-heading{margin-bottom:14px}
#result-screen .dish-pairings-heading h2{font-size:26px}
#result-screen .wine-description{margin:0;padding:18px 20px;border:1px solid #e9e0d6;border-radius:20px;background:#fffdfb}
#result-screen .wine-description summary{cursor:pointer;font:400 21px/1.2 Georgia,serif;color:#302825}
#result-screen .wine-description .wine-summary{margin:12px 0 0;font-size:14px;line-height:1.7;color:#716861}
#result-screen .wine-description[open]{padding-bottom:22px}
#result-screen .after-search{margin-top:19px}
@media(max-width:720px){
  #result-screen .wine-hero{gap:10px;padding:9px;border-radius:22px}
  #result-screen .wine-main{grid-template-columns:minmax(0,.82fr) minmax(0,1fr);min-height:360px;column-gap:7px}
  #result-screen .wine-portrait{min-height:360px;margin:-9px 0 -3px -9px;border-radius:18px 0 0 0}
  #result-screen .wine-portrait .wine-vineyard-backdrop{object-position:35% center}
  #result-screen .wine-portrait::after{background:linear-gradient(90deg,#f6f1e800 25%,#f6f1e8 100%),linear-gradient(0deg,#f6f1e8 0%,#f6f1e800 20%)}
  #result-screen .wine-portrait .wine-bottle{height:111%;max-width:140%}
  #result-screen .wine-details{padding:25px 10px 12px 0}
  #result-screen .wine-details .eyebrow{margin:0 28px 8px 0;font-size:9px;letter-spacing:.9px}
  #result-screen .wine-details h1{font-size:clamp(24px,6vw,31px);letter-spacing:-.7px}
  #result-screen .wine-category{margin:9px 0 13px;font-size:12px;line-height:1.35}
  #result-screen .public-rating{margin-bottom:0}
  #result-screen .public-rating-badge{gap:5px;flex-wrap:wrap}
  #result-screen .public-rating-badge .rating-star{font-size:28px}
  #result-screen .public-rating-badge strong{font-size:32px}
  #result-screen .public-rating-badge .rating-copy{width:100%;margin:0 0 0 2px}
  #result-screen .public-rating-badge .rating-copy small{font-size:10px}
  #result-screen .portrait-save{top:7px;right:7px;width:34px;height:34px}
  #result-screen .portrait-save svg{width:17px;height:17px}
  #result-screen .result-taste{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:9px 10px;padding:13px 11px;border-radius:18px}
  #result-screen .taste-profile-heading{align-items:flex-start;flex-direction:column;gap:2px;margin-bottom:8px}
  #result-screen .taste-profile-heading h2{font-size:15px}
  #result-screen .taste-profile-heading span{font-size:8px}
  #result-screen .taste-row{grid-template-columns:1fr;gap:3px;margin:8px 0;font-size:10px}
  #result-screen .taste-meter{height:6px}
  #result-screen .taste-meter i{width:13px;height:13px}
  #result-screen .tasting-notes{padding-left:9px}
  #result-screen .tasting-notes h3{font-size:11px;margin:2px 0 5px}
  #result-screen .tasting-note-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 2px}
  #result-screen .tasting-note{font-size:9px;gap:1px}
  :is(#result-screen,#compare-dialog) .note-illustration,:is(#result-screen,#compare-dialog) .tasting-note>img{width:38px;height:34px}
  #result-screen .rating-combo{padding-top:6px}
  #result-screen .user-rating-cta{font-size:9px}
  #result-screen .rating-option{width:25px;height:32px;padding:1px}
  #result-screen .rating-option .rating-icons,#result-screen .rating-option .rating-icon-glass,#result-screen .rating-option .rating-icon-wine{width:20px;height:25px}
  #result-screen .wine-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  #result-screen .wine-fact{min-height:86px;flex-direction:column;gap:6px;padding:9px;border-radius:14px}
  #result-screen .wine-fact-icon{width:28px;height:28px;font-size:17px}
  #result-screen .wine-fact-icon svg{width:16px;height:16px}
  #result-screen .wine-fact strong{font-size:13px}
  #result-screen .wine-fact small{font-size:9px}
  #result-screen .result-actions{gap:7px}
  #result-screen .result-actions .button{min-height:46px;padding:8px 6px;font-size:11px;gap:5px;border-radius:14px}
  #result-screen .result-actions .button svg,#result-screen .result-actions .icon-compare{width:17px;height:17px}
  #result-screen .dish-pairings{padding:18px 15px;border-radius:20px}
  #result-screen .dish-pairings-heading h2{font-size:22px}
  #result-screen .wine-description{padding:15px}
  #result-screen .wine-description summary{font-size:18px}
}
#result-screen .wine-category{margin-bottom:15px}
#result-screen .wine-metadata{display:grid;gap:0;margin-top:17px;padding:4px 14px;border-radius:18px;background:#fffdfbcf}
#result-screen .wine-meta-item{min-width:0;display:grid;grid-template-columns:30px 46px minmax(0,1fr);gap:9px;align-items:center;padding:8px 0}
#result-screen .wine-meta-item+.wine-meta-item{border-top:1px solid #eee6dd}
#result-screen .wine-meta-icon{display:grid;place-items:center;width:28px;height:28px;color:#843541}
#result-screen .wine-meta-icon svg{width:21px;height:21px;stroke-width:2}
#result-screen .wine-meta-item>img{display:block;width:46px;height:46px;object-fit:cover;border-radius:13px}
#result-screen .wine-meta-item>div{min-width:0;display:grid;gap:1px}
#result-screen .wine-meta-item small{font-size:11px;color:#8b8179}
#result-screen .wine-meta-item strong{font-size:15px;font-weight:500;line-height:1.25;overflow-wrap:anywhere}
#result-screen .wine-facts{width:min(100%,840px);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));justify-self:center}
#result-screen .wine-fact{align-items:center}
@media(max-width:720px){
  #result-screen .wine-category{margin-bottom:10px;font-size:11px}
  #result-screen .wine-metadata{margin-top:10px;padding:3px 8px;border-radius:12px}
  #result-screen .wine-meta-item{grid-template-columns:19px 31px minmax(0,1fr);gap:5px;padding:6px 0}
  #result-screen .wine-meta-icon{width:19px;height:19px}
  #result-screen .wine-meta-icon svg{width:16px;height:16px}
  #result-screen .wine-meta-item>img{width:31px;height:31px;border-radius:8px}
  #result-screen .wine-meta-item small{font-size:8px}
  #result-screen .wine-meta-item strong{font-size:10px;line-height:1.15}
  #result-screen .wine-facts{width:100%;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}
}
#result-screen:focus{outline:none}
:is(#result-screen,#compare-dialog) .tasting-note>img{background:none}

/* The scanner uses the supplied wine-shelf scene as its live viewfinder backdrop. */
#scanner-screen .viewfinder{background:#4b3028}
#scanner-screen .scanner-shelf-background{position:absolute;inset:0;z-index:0;width:100%;max-width:none;height:100%;top:0;left:0;transform:none;object-fit:cover;object-position:center 50%;mix-blend-mode:normal;filter:none}
#scanner-screen .scan-frame{width:29%;height:66%;top:17%}
#scanner-screen .recent-scans{max-width:920px;margin:34px auto 0}
#scanner-screen .recent-scans-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:13px}
#scanner-screen .recent-scans-heading .eyebrow{margin:0 0 4px;font-size:9px;letter-spacing:1.5px}
#scanner-screen .recent-scans-heading h2{margin:0;font:400 29px/1.15 Georgia,serif;letter-spacing:-.5px}
#scanner-screen .recent-scans-heading>span{padding-bottom:3px;color:var(--muted);font-size:12px}
#scanner-screen .recent-scans-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#scanner-screen .recent-scan-card{min-width:0;min-height:130px;display:grid;grid-template-columns:66px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:1px solid #e9e1d7;border-radius:18px;background:linear-gradient(135deg,#faf7f1,#f4eee5);text-align:left;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
#scanner-screen .recent-scan-card:hover{transform:translateY(-2px);border-color:#cdbda9;box-shadow:0 8px 22px #48312210}
#scanner-screen .recent-scan-card>img,#scanner-screen .recent-scan-image-placeholder{display:grid;width:66px;height:102px;place-items:center;object-fit:contain;border-radius:12px;background:#fffdf9;color:#9a8d7d;font-size:10px}
#scanner-screen .recent-scan-copy{min-width:0;display:grid;gap:3px}
#scanner-screen .recent-scan-copy small,#scanner-screen .recent-scan-category{overflow:hidden;color:#847c73;font-size:10px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
#scanner-screen .recent-scan-copy strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font:400 17px/1.15 Georgia,serif;color:#302825}
#scanner-screen .recent-scan-rating{margin-top:4px;color:#a67e27;font-size:13px;font-weight:650}
#scanner-screen .recent-scan-rating small{margin-left:4px;color:#89827a;font-size:9px;font-weight:400}
#scanner-screen .recent-rating-missing{color:#89827a;font-size:10px;font-weight:400}
@media(max-width:720px){
  #scanner-screen .scan-frame{width:34%;height:60%;top:18%}
  #scanner-screen .recent-scans{margin:27px 0 0}
  #scanner-screen .recent-scans-heading{margin-bottom:10px}
  #scanner-screen .recent-scans-heading h2{font-size:23px}
  #scanner-screen .recent-scans-heading>span{font-size:10px}
  #scanner-screen .recent-scans-list{gap:6px}
  #scanner-screen .recent-scan-card{grid-template-columns:1fr;grid-template-rows:72px auto;gap:7px;min-height:0;padding:8px;border-radius:13px}
  #scanner-screen .recent-scan-card>img,#scanner-screen .recent-scan-image-placeholder{width:100%;height:72px;border-radius:8px}
  #scanner-screen .recent-scan-copy{gap:2px}
  #scanner-screen .recent-scan-copy small,#scanner-screen .recent-scan-category{font-size:8px}
  #scanner-screen .recent-scan-copy strong{font-size:12px;line-height:1.15}
  #scanner-screen .recent-scan-rating{font-size:11px}
  #scanner-screen .recent-scan-rating small{font-size:7px}
  #scanner-screen .recent-rating-missing{font-size:8px}
}

/* Mobile polish: nothing hidden under the compare tray, readable type, full-width wine metadata. */
body.has-compare-tray{padding-bottom:96px}
.alt-card .wine-thumb{display:block;width:46px;height:86px;overflow:hidden;isolation:isolate;border-radius:8px;background:#f4eee5}
.alt-card .wine-thumb img,.alt-card .wine-thumb .dish-placeholder{display:block;width:100%;height:100%;border-radius:0;background:transparent}
.alt-card .wine-thumb .dish-placeholder{display:grid}
.alt-card .wine-thumb img{mix-blend-mode:multiply}
.saved-item img,#scanner-screen .recent-scan-card>img,.dish-card img{background:transparent;mix-blend-mode:multiply}
.after-search .sommelier-heading,#result-screen .sommelier-panel{margin-top:30px;padding-top:26px;border-top:1px solid #e6dccf}
#result-screen .wine-description summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
#result-screen .wine-description summary::-webkit-details-marker{display:none}
#result-screen .wine-description summary svg{flex:none;width:22px;height:22px;color:var(--wine);transition:transform .2s}
#result-screen .wine-description[open] summary svg{transform:rotate(180deg)}
#result-screen .wine-main{grid-template-rows:auto 1fr}
#result-screen .wine-portrait{grid-row:1/span 2}
#result-screen .wine-details{grid-column:2;grid-row:1;padding-bottom:0}
#result-screen .wine-metadata{grid-column:2;grid-row:2;align-self:start;margin:17px 24px 20px 0}
#result-screen .wine-meta-item:not(.has-image)>div{grid-column:2/-1}
#result-screen .wine-meta-swatch{grid-column:2;display:block;width:46px;height:46px;border-radius:13px}
#result-screen .wine-meta-item>img,#result-screen .wine-meta-swatch{border:2px solid #fff;box-shadow:0 3px 10px #3b261a26}
#scanner-screen .recent-scan-time{margin-top:3px;color:#8b8179;font-size:11px}
#scanner-screen .public-scans-list{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:720px){
  body.has-compare-tray{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .compare-tray{left:auto;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:auto;padding:0;transform:none;border:0;border-radius:28px;background:none;box-shadow:0 10px 28px #4c302b40;backdrop-filter:none}
  .compare-tray>div{display:none}
  .compare-tray .button{min-height:52px;padding:0 20px;border-radius:28px;font-size:15px}


  #result-screen .wine-main{min-height:0;grid-template-rows:auto auto}
  #result-screen .wine-portrait{grid-row:1;min-height:320px;margin-bottom:0}
  #result-screen .wine-details{align-self:center;padding:18px 8px 18px 0}
  #result-screen .wine-details .eyebrow{font-size:10px}
  #result-screen .wine-category{font-size:13px}
  #result-screen .public-rating-badge .rating-copy small{font-size:11px}
  #result-screen .wine-metadata{grid-column:1/-1;grid-row:2;margin:10px 0 0;padding:4px 14px;border-radius:16px}
  #result-screen .wine-meta-item{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:9px 0}
  #result-screen .wine-meta-item.has-image .wine-meta-icon{display:none}
  #result-screen .wine-meta-item:not(.has-image)>div{grid-column:auto}
  #result-screen .wine-meta-icon{width:40px;height:40px}
  #result-screen .wine-meta-icon svg{width:19px;height:19px}
  #result-screen .wine-meta-item>img,#result-screen .wine-meta-swatch{grid-column:auto;width:40px;height:40px;border-radius:11px}
  #result-screen .wine-fact{min-height:0;flex-direction:row;align-items:center;gap:10px;padding:12px}
  #result-screen .wine-fact-icon{width:36px;height:36px}
  #result-screen .wine-fact-icon svg{width:18px;height:18px}
  #result-screen .wine-meta-item small{font-size:11px}
  #result-screen .wine-meta-item strong{font-size:14px;line-height:1.25;overflow-wrap:normal}

  #result-screen .result-taste{grid-template-columns:minmax(0,1fr);gap:14px;padding:16px}
  #result-screen .taste-profile-heading{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;margin-bottom:6px}
  #result-screen .taste-profile-heading h2{font-size:18px}
  #result-screen .taste-profile-heading span{font-size:11px}
  #result-screen .taste-row{grid-template-columns:108px minmax(0,1fr);gap:12px;margin:12px 0;font-size:13px}
  #result-screen .taste-meter{height:7px}
  #result-screen .taste-meter i{width:15px;height:15px}
  #result-screen .tasting-notes{padding:12px 0 0;border-left:0;border-top:1px solid #e6ddd2}
  #result-screen .tasting-notes h3{margin:0 0 8px;font-size:13px}
  #result-screen .tasting-note-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 4px}
  #result-screen .tasting-note{gap:3px;font-size:11px}
  :is(#result-screen,#compare-dialog) .note-illustration,:is(#result-screen,#compare-dialog) .tasting-note>img{width:46px;height:42px}
  #result-screen .rating-combo{padding-top:10px}
  #result-screen .user-rating-cta{font-size:12px}
  #result-screen .rating-option{width:32px;height:36px}
  #result-screen .rating-option .rating-icons,#result-screen .rating-option .rating-icon-glass,#result-screen .rating-option .rating-icon-wine{width:22px;height:27px}
  #result-screen .wine-fact strong{font-size:15px}
  #result-screen .wine-fact small{font-size:11px}
  #result-screen .result-actions .button{font-size:13px}

  #scanner-screen .recent-scans-list{display:flex;gap:10px;overflow-x:auto;margin:0 -18px;padding:2px 18px 10px;scroll-snap-type:x mandatory;scroll-padding-inline:18px;scrollbar-width:none}
  #scanner-screen .recent-scans-list::-webkit-scrollbar{display:none}
  #scanner-screen .recent-scan-card{flex:0 0 148px;grid-template-rows:108px auto;align-items:start;padding:10px;scroll-snap-align:start}
  #scanner-screen .recent-scan-card>img,#scanner-screen .recent-scan-image-placeholder{height:108px}
  #scanner-screen .recent-scan-copy small,#scanner-screen .recent-scan-category{font-size:11px}
  #scanner-screen .recent-scan-copy strong{font-size:15px}
  #scanner-screen .recent-scan-rating{font-size:13px}
  #scanner-screen .recent-scan-rating small{font-size:10px}
  #scanner-screen .recent-rating-missing{font-size:11px}
  #scanner-screen .recent-scans-heading .eyebrow{font-size:10px}
  #scanner-screen .recent-scans-heading{flex-direction:column;align-items:flex-start;gap:4px}
  #scanner-screen .recent-scans-heading>span{padding:0;font-size:12px}
}

/* Uploaded photo: a blurred copy of the same photo fills the square instead of black bars. */
.photo-backdrop{position:absolute;inset:-8%;z-index:0;background:var(--photo-url) center/cover no-repeat;filter:blur(26px) saturate(1.15) brightness(.72);transform:scale(1.08)}
#scanner-screen .photo-preview{background:transparent}
#dropzone:has(#photo-preview:not([hidden])) .scan-frame{display:none}

/* Processing: the photo, then the label outlined in light, then a wine glass filling up. */
.processing-overlay{container-type:size;justify-content:center;gap:clamp(10px,3.2cqh,22px);padding:18px 20px}
.scan-stage{display:flex;align-items:center;justify-content:center;width:100%;height:52cqh;min-height:0}
.label-cutout{position:relative;display:inline-block;margin:0;border-radius:14px;overflow:hidden;box-shadow:0 18px 40px #0000006b,0 0 0 1px #ffffff1f;animation:label-emerge .5s cubic-bezier(.2,.8,.2,1) both}
.label-cutout[hidden]{display:none}
.label-cutout img{display:block;width:auto;height:auto;max-width:84cqw;max-height:52cqh;transform-origin:50% 50%;transform:translate(var(--tx,0%),var(--ty,0%)) scale(var(--zoom,1));transition:transform .75s cubic-bezier(.2,.8,.2,1) .12s}
.label-trace{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;transform-origin:50% 50%;transform:translate(var(--tx,0%),var(--ty,0%)) scale(var(--zoom,1));transition:transform .75s cubic-bezier(.2,.8,.2,1) .12s}
.trace-dim{fill:#1d1115;opacity:0;transition:opacity .5s ease}
.trace-line{fill:none;stroke:#f7dca6;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0;filter:drop-shadow(0 0 4px #f7dca6) drop-shadow(0 0 10px #e9b56b88)}
.label-cutout.revealing .trace-dim{opacity:.64}
.label-cutout.revealing .trace-line{opacity:1;animation:trace-draw .7s cubic-bezier(.45,0,.2,1) forwards}
.label-cutout.revealing .scan-sweep{opacity:0}
.scan-sweep{position:absolute;left:0;right:0;top:0;height:22%;background:linear-gradient(180deg,transparent,#f9dba233 70%,#f9dba2cc 98%,transparent);border-bottom:1px solid #fbe3b6;animation:label-sweep 2.2s cubic-bezier(.45,0,.55,1) infinite;transition:opacity .25s;pointer-events:none}
@keyframes label-emerge{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}
@keyframes label-sweep{0%{transform:translateY(-100%)}100%{transform:translateY(460%)}}
@keyframes trace-draw{to{stroke-dashoffset:0}}

.scan-progress{--wine-liquid:#8e2c3d;display:flex;align-items:center;gap:14px;text-align:left;max-width:min(100%,380px)}
.wine-glass{flex:0 0 auto;width:clamp(44px,15cqh,64px);height:auto;overflow:visible}
.glass-outline{fill:none;stroke:#f7e9ea;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.glass-shine{fill:none;stroke:#ffffff8c;stroke-width:1.6;stroke-linecap:round}
.glass-level{transform:translateY(calc((1 - var(--fill)) * 42px));transition:transform .9s cubic-bezier(.3,.7,.2,1)}
.glass-wave{animation:glass-wave 1.6s linear infinite}
.glass-wave path{fill:var(--wine-liquid);transition:fill .45s ease}
.glass-bubble{fill:#fff6d6;opacity:0}
.scan-progress.sparkling .glass-bubble{animation:glass-bubble 1.4s ease-in infinite}
.scan-progress.sparkling .glass-bubble:nth-of-type(2){animation-delay:.45s}
.scan-progress.sparkling .glass-bubble:nth-of-type(3){animation-delay:.9s}
@keyframes glass-wave{from{transform:translateX(0)}to{transform:translateX(48px)}}
@keyframes glass-bubble{0%{opacity:0;transform:translateY(0)}20%{opacity:.9}100%{opacity:0;transform:translateY(-30px)}}
.scan-progress-copy{min-width:0}
.scan-progress-copy h2{margin:0 0 4px;font:400 clamp(19px,6cqh,26px)/1.15 Georgia,serif}
.scan-progress-copy p{margin:0;font-size:13px;color:#ecd3d8}
.scan-percent{display:block;margin-top:6px;font-size:11px;letter-spacing:1.4px;color:#f7dca6;font-variant-numeric:tabular-nums}
.processing-overlay .text-button.light{margin-top:0}
@container (max-height:340px){.scan-stage{height:46cqh}.label-cutout img{max-height:46cqh}.scan-progress-copy h2{display:none}.scan-progress-copy p{font-size:14px;color:#fff}.processing-overlay .text-button.light{padding:4px 0}}
@media(prefers-reduced-motion:reduce){.label-cutout,.scan-sweep,.glass-wave,.scan-progress.sparkling .glass-bubble{animation:none}.scan-sweep{display:none}.label-cutout img,.label-trace,.glass-level{transition:none}.label-cutout.revealing .trace-line{animation:none;stroke-dashoffset:0}}
