.collection-dialog{--collection-green:#315b49;color:#171c19!important;background:#f2f2f7!important;width:min(680px,calc(100vw - 24px))!important;max-height:92dvh!important;border:1px solid #d9dfdb!important;border-radius:24px!important;padding:0!important;box-shadow:0 24px 80px #14241c30!important}
.collection-dialog::backdrop{background:#18221c66;backdrop-filter:blur(4px)}
.collection-dialog>article{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;max-height:90dvh!important;margin:0!important;padding:0!important}
.collection-dialog header{display:flex!important;align-items:center;justify-content:space-between;background:#fff;padding:22px!important;border-bottom:1px solid #ddd}
.collection-dialog header small{color:#315b49;font-size:11px;letter-spacing:.12em;font-weight:700}.collection-dialog h2{font-size:26px!important;margin:5px 0 0!important}.collection-dialog header button{font-size:28px!important}
.collection-dialog header button.mtc-icon-button{position:static!important;flex-shrink:0;margin-left:16px;background:#315b49!important;color:#fff!important}.collection-dialog header button.mtc-icon-button::after{display:none!important}.collection-dialog header button.mtc-icon-button svg{display:block!important;stroke:#fff!important}
.collection-dialog main{overflow:auto!important;padding:24px!important;min-height:180px;line-height:1.5;color:#262d29}.collection-dialog h3{font-size:22px;margin:4px 0 22px}.collection-step{font-size:13px;color:#526558}
.collection-dialog footer{padding:16px 24px!important;display:flex!important;justify-content:space-between!important;gap:12px!important;border-top:1px solid #ddd;background:#fff}
.collection-dialog button,.collection-panel button{min-height:48px;border-radius:13px;padding:12px 16px;font-size:16px;line-height:1.3;cursor:pointer}
.collection-dialog button{color:#315b49!important;background:#e6eee9!important;border:0!important;box-shadow:none!important}.collection-dialog footer button:last-child{background:#315b49!important;color:#fff!important}.collection-dialog button:disabled{opacity:.55;cursor:wait}
.collection-dialog .ios-row{background:#fff!important;border-radius:16px!important;padding:16px!important;min-height:64px!important;display:grid!important;grid-template-columns:minmax(100px,35%) minmax(0,1fr)!important;gap:14px!important}
.collection-dialog input,.collection-dialog select{font:inherit!important;color:#202822!important;background:#fff!important;min-width:0;max-width:100%;min-height:44px;border:1px solid #ccd7ce!important;border-radius:8px!important;padding:8px!important;box-sizing:border-box}
.collection-dialog input:focus-visible,.collection-dialog select:focus-visible,.collection-dialog button:focus-visible,.collection-panel button:focus-visible{outline:3px solid #6a9e81!important;outline-offset:3px}
.collection-dialog dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;margin:0;background:#fff;border-radius:16px;padding:20px}.collection-dialog dd{margin:0;overflow-wrap:anywhere}.collection-dialog dt{color:#5c695f}
.collection-dialog [data-error],.collection-dialog [data-scan-error]{color:#79442d;font-size:15px;min-height:24px}.collection-dialog video{display:block;width:100%;max-height:34dvh;object-fit:cover;background:#15251c;border-radius:18px}.collection-camera-actions{display:flex;flex-wrap:wrap;gap:10px}.collection-dialog [data-manual]{display:grid;gap:12px;margin-top:24px}.collection-dialog [data-manual] label{display:grid;gap:8px}
.collection-result ul{list-style:none;padding:0;display:grid;gap:10px}.collection-result li button{width:100%;text-align:left;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}.collection-result>button{margin:8px 8px 0 0}.collection-success{color:#315b49;font-weight:700}
.collection-test-banner{padding:10px 14px;border-radius:12px;background:#edf1d8;color:#46522b;font-size:13px}.collection-tools{margin:18px 0}.collection-panel .collection-tools button,.collection-empty button{background:#315b49;color:#fff}.collection-panel .cellar-item{text-align:left}.collection-panel .cellar-item small{color:#315b49}.collection-empty{padding:28px;background:#fff;border:1px solid #dce3dc;border-radius:22px}
.collection-bottle .collection-instance{padding:24px;background:#e9f0eb;border-bottom:1px solid #d6e1d8;color:#243f31}.collection-instance h3{font-size:24px!important;overflow-wrap:anywhere;margin:6px 0}.collection-instance button{background:#315b49;color:white;min-height:48px;border-radius:12px;padding:12px}.collection-instance p{margin:10px 0}.collection-instance small{font-size:11px;letter-spacing:.08em}
@media(max-width:450px){.collection-dialog main{padding:18px!important}.collection-dialog header{padding:18px!important}.collection-dialog .ios-row{grid-template-columns:1fr!important}.collection-dialog footer{padding:14px 18px!important}.collection-dialog h2{font-size:23px!important}.collection-dialog dl{grid-template-columns:1fr;gap:5px}.collection-dialog dd{margin-bottom:14px}.collection-instance h3{font-size:20px!important}}
.collection-tools{display:flex;flex-wrap:wrap;gap:10px}.collection-panel [hidden]{display:none!important}
body[data-hub-route="collection"] .collection-panel .collection-search-tools{display:flex!important;gap:9px}
body[data-hub-route="collection"] .collection-panel .collection-library-controls{display:block!important;margin:12px 0 18px;overflow-x:auto;padding-bottom:4px}
.collection-panel .wine-filter-chips{max-width:none}.collection-panel .wine-filter-chips button{white-space:nowrap;min-height:44px;font-size:14px;color:#526658}.collection-panel .wine-filter-chips button.active{color:#254d38;font-weight:700}
.collection-panel .wine-search{display:flex;align-items:center;gap:8px;padding:0 16px;min-width:0}.collection-panel .wine-search input{width:100%;min-width:0;background:transparent;border:0;font:inherit;color:#202723;outline-offset:5px}
.collection-panel .wine-sort-icon{min-width:52px;color:#315b49}.collection-panel .wine-sort-caption{font-size:13px;color:#667069;margin-top:8px}.collection-list{display:grid;gap:12px}
.collection-panel .wine-group-head{border-radius:0;padding:15px 0!important;font-size:16px!important}.collection-panel .wine-group.collapsed .wine-group-body{display:none}.collection-panel .wine-group.collapsed .wine-group-tail i{transform:rotate(-90deg)}
.collection-bottle-row:focus-visible{outline:3px solid #6a9e81;outline-offset:3px;border-radius:10px}.collection-bottle-row .wine-card-rail{display:flex;flex-direction:column;align-items:center}.collection-rail-volume{font-size:11px;font-weight:650;line-height:1.3;color:#66736b;white-space:nowrap}
.collection-bottle-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12px;color:#54695a;margin-top:8px}.collection-bottle-meta b{font-variant-numeric:tabular-nums;color:#315b49;font-size:14px;letter-spacing:.03em}.collection-bottle-meta span+span:before{content:'·';margin-right:9px}
.collection-panel .wine-card-badges:empty{display:none}.collection-panel .personal-pill{font-size:11px}.collection-panel [data-catalog-count]{font-size:12px;color:#788078;margin-bottom:12px}.collection-panel .collection-condition{background:#edf3ee;color:#315b49}
.collection-used-row .wine-card-rail,.collection-used-row .wine-card-badges,.collection-used-row .wine-personal-meta{opacity:.74}.collection-used-row .wine-card-copy,.collection-used-row .wine-card-copy :is(strong,b,span,small){color:#7d827e!important}.collection-used-row .wine-verified-dot{display:none}.collection-used-row .collection-condition{background:#e8eae8!important;color:#666d67!important}.collection-panel .wine-archive-toggle{min-height:44px;font-size:13px;padding:4px 0;border-radius:0}.collection-panel .wine-archive-list .wine-v4-row{padding:15px}
.collection-bottle .collection-instance{display:flex;justify-content:space-between;gap:18px;border-radius:18px}.collection-instance-facts{display:grid;gap:6px;align-content:center;text-align:right;font-size:14px}.collection-bottle .detail-heading>small{color:#315b49!important}.collection-bottle .detail-actions [data-collection-settings]{background:#ececef!important;color:#555!important}.collection-used-detail .collection-instance{background:#eceeec;color:#69716b}
.collection-menu{display:grid;gap:8px}.collection-menu>button,.collection-draft-row>button:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;text-align:left;background:#fff!important}.collection-menu button span{font-size:13px;color:#6a766e}.collection-draft-row{display:flex;gap:8px;align-items:center}.collection-history{list-style:none;padding:0;display:grid;gap:18px}.collection-history li{display:grid;gap:5px}.collection-history time{font-size:13px;color:#6a766e}.collection-filter-note{padding:18px;border-radius:16px;background:#edf2ec;font-size:14px;color:#526658}
@media(max-width:450px){.collection-bottle .collection-instance{flex-direction:column}.collection-instance-facts{text-align:left}.collection-bottle-row{grid-template-columns:44px minmax(0,1fr)}.collection-panel .wine-title-line strong{font-size:15px!important}.collection-tools button{font-size:14px}.collection-panel .wine-filter-chips{gap:2px}}
.collection-photo-inputs{display:grid;gap:16px}.collection-photo-inputs label{display:grid;gap:7px}.collection-photo-inputs small{color:#66736a;overflow-wrap:anywhere}.collection-result-photos{margin-top:24px;padding:16px;background:#f3f6f2;border-radius:16px}.collection-result-photos>div{display:grid;gap:5px;margin:14px 0;overflow-wrap:anywhere}.collection-result-photos span{font-size:13px}.collection-photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:24px}.collection-photo-gallery>div{display:grid;gap:6px;overflow-wrap:anywhere}.collection-photo-gallery img{max-width:100%;max-height:320px;object-fit:contain;border-radius:12px}.collection-drinking p{font-size:14px;line-height:1.5}.collection-drinking a{color:#315b49;text-decoration:underline}.collection-drinking small{color:#758077}
.collection-invoice-lines{display:grid;gap:20px;margin:24px 0}.collection-invoice-lines>section{padding:18px;background:#fff;border:1px solid #d8e2da;border-radius:18px}.collection-invoice-lines label{display:grid;gap:6px;margin-top:14px;font-size:14px}.collection-invoice-lines h3{font-size:18px}.collection-invoice-lines [hidden]{display:none!important}.collection-invoice-lines .collection-invoice-confirm{display:flex;align-items:center;gap:12px;font-weight:700}.collection-invoice-confirm input{width:22px!important;min-height:22px!important;accent-color:#315b49}.collection-invoice-lines [data-new-wine]{padding:10px;background:#f5f7f3;border-radius:10px}

.collection-dialog [hidden]{display:none!important}
.collection-primary-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 22px}.collection-primary-actions button{min-height:48px;border:0;border-radius:13px;padding:12px 18px;background:#315b49;color:#fff;font:inherit;font-weight:650;cursor:pointer}.collection-primary-actions [data-instance-action="gift"]{background:#e6eee9;color:#315b49}.collection-primary-actions [data-instance-action="discard"]{background:#f5e9e5;color:#8a4638}.collection-primary-actions button:focus-visible{outline:3px solid #6a9e81;outline-offset:3px}
.collection-primary-actions:has([data-taste-bottle]){display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:6px}
.collection-primary-actions:has([data-taste-bottle]) button{min-width:0;padding:12px 6px;font-size:14px;line-height:1.2;white-space:nowrap}
@media(max-width:360px){.collection-primary-actions:has([data-taste-bottle]) button{font-size:13px}}
.collection-instance .collection-reserve-action{justify-self:start;min-height:36px;padding:6px 12px;border:0;border-radius:10px;background:#e6eee9;color:#315b49;font-size:12px;cursor:pointer}
.collection-reserve-action:disabled{opacity:.6;cursor:default}
.wine-personal-meta .collection-reserve-badge{order:3;align-self:center;flex:none;background:#80283e!important;color:#fff!important;padding:5px 8px;font-size:10px;font-weight:750;letter-spacing:.06em}
.collection-remainder{font-size:20px;font-weight:700;color:#315b49;margin:16px 0 8px}.collection-reservation{padding:12px 16px;background:#f0efd9;border-radius:13px;color:#635d34}.collection-action-context{padding:16px;background:#e9f0eb;border-radius:16px;margin-bottom:20px}.collection-action-context p{margin:6px 0;font-size:14px}.collection-action-note{display:grid;gap:8px;padding:16px;background:#fff;border-radius:16px}.collection-action-note textarea{font:inherit;resize:vertical;min-height:100px;min-width:0;width:100%;box-sizing:border-box;padding:10px;border:1px solid #ccd7ce;border-radius:8px;color:#202822;background:#fff}.collection-portion-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.collection-action-state{padding:12px;background:#f5f7f3;border-radius:12px}.collection-history p{margin:3px 0}.collection-history small{font-size:12px;color:#6a766e}

.collection-storage-list{display:grid;gap:10px;margin:22px 0}.collection-storage-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:#fff;border:1px solid #dae3dc;border-radius:15px;margin-left:calc(var(--depth)*14px)}.collection-storage-row>div:first-child{min-width:0;display:grid;gap:5px}.collection-storage-row small{font-size:12px;color:#6a766e;overflow-wrap:anywhere}.collection-storage-buttons{display:flex;gap:6px;flex-shrink:0}.collection-storage-buttons button{font-size:13px;padding:9px 12px;min-height:44px}.collection-storage-help{font-size:13px;color:#6a766e}.collection-action-details summary{cursor:pointer;color:#315b49;padding:12px 0;font-weight:600}.collection-action-details:not([open]){margin:6px 0 12px}
@media(max-width:520px){.collection-storage-row{align-items:flex-start;flex-direction:column;margin-left:calc(var(--depth)*9px)}.collection-storage-buttons{align-self:flex-end}.collection-primary-actions button{flex:1}}
/* A single tasting across owned bottles and wines tasted elsewhere. */
.tasting-wizard{--collection-green:#765145}.tasting-wizard header small{color:#765145!important}
.tasting-steps{display:flex;gap:8px;margin-bottom:20px}.tasting-steps button{flex:1;border:0;border-bottom:2px solid #ddd;background:transparent;border-radius:0;padding:12px 4px;color:#777}.tasting-steps [aria-current=step]{border-color:#765145;color:#765145;font-weight:600}
.tasting-wizard .wine-filter-chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.tasting-wizard [aria-pressed=true]{background:#eee4dc!important;color:#67493e!important;border-color:#bba292!important}
.tasting-selected>div,.tasting-pick-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e3e2e7}.tasting-selected span,.tasting-pick-row span{flex:1;min-width:0}.tasting-selected small,.tasting-pick-row small{display:block;color:#757575;font-size:13px;line-height:1.5;margin-top:5px}.tasting-pick-row input[type=checkbox]{width:24px!important;height:24px!important;flex:0 0 24px;accent-color:#765145}.tasting-wizard .wine-search{margin:16px 0}.tasting-wizard .wine-search input{width:100%;box-sizing:border-box}.tasting-impressions>section{padding:14px 0}.tasting-impressions h3{font-size:17px;line-height:1.4;margin:0 0 7px}.tasting-impressions>section>small{color:#757575;line-height:1.5}.tasting-impressions .wine-extra{margin-top:12px}.tasting-save-explanation{font-size:13px;color:#747474;line-height:1.5;margin-top:24px}
.tasting-selection-bar{position:sticky;top:8px;z-index:3;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#eef4ef;border:1px solid #b9cdbd;border-radius:16px;padding:12px;margin:14px 0;box-shadow:0 4px 12px #0001}.tasting-selection-bar[hidden]{display:none}.collection-bottle-row{position:relative}.tasting-selection-check{position:absolute;left:8px;top:10px;color:#2d6548;background:white;border-radius:50%;font-size:22px;line-height:1}.tasting-bottle-selected{outline:2px solid #4d8060;outline-offset:-2px;background:#f0f6f1!important}
.tasting-session-list{display:grid;gap:18px;margin-top:20px}.tasting-session-card{background:#fff;border:1px solid #e2ddd7;border-radius:20px;padding:24px}.tasting-session-card>small{font-size:11px;letter-spacing:.09em;color:#83685b}.tasting-session-card h2{font-size:22px;margin:12px 0}.tasting-session-card p{line-height:1.6;color:#666}.tasting-session-card ul{padding:0;list-style:none}.tasting-session-card li{border-top:1px solid #ece8e3;padding:14px 0}.tasting-session-card li small{display:block;margin-top:6px;color:#777}.tasting-session-card li p{margin-bottom:0;white-space:pre-wrap}
@media(max-width:600px){.tasting-steps{font-size:13px}.tasting-session-card{padding:20px}.tasting-selection-bar button{font-size:13px;padding:10px}.tasting-wizard footer{flex-wrap:wrap}.tasting-wizard footer button{flex:1;min-width:130px}}
.tasting-wizard.collection-dialog header .collection-close,.tasting-wizard.collection-dialog footer button:last-child{background:#765145!important;color:#fff!important}.tasting-wizard.collection-dialog footer button:first-child:not(:last-child){color:#765145!important}.tasting-wizard.collection-dialog .tasting-steps{position:static;background:none;padding:0}.tasting-wizard.collection-dialog .tasting-steps button{border-radius:0;background:none!important;color:#777!important}.tasting-wizard.collection-dialog .tasting-steps [aria-current=step]{color:#765145!important}

.tasting-pick-unavailable{background:#f1f1f2!important;color:#777!important;opacity:.65;cursor:not-allowed}.collection-primary-actions button:disabled{opacity:.5;cursor:not-allowed}
/* Collection controls follow the Wine forms, in the cellar palette. */
.collection-tools[hidden],.collection-hidden-control[hidden]{display:none!important}
.collection-header-scan{width:48px!important;height:48px!important;background:#e8e9ec!important;border:0!important;color:#3e5148!important;border-radius:50%!important}
body[data-hub-route=collection] #hub-section>.hero{padding-right:120px!important}
.collection-library-controls .wine-filter-chips button{min-height:0!important;height:auto!important;line-height:normal!important;padding:7px 5px!important}
.collection-dialog header{position:relative!important;display:block!important;padding:25px 82px 20px 24px!important;min-height:76px;box-sizing:border-box}
.collection-dialog header button.mtc-icon-button{position:absolute!important;right:20px!important;top:20px!important;margin:0!important}
.collection-dialog header h2{text-align:left!important;margin:0!important}
.collection-dialog button.collection-choice-row{display:grid!important;grid-template-columns:minmax(90px,38%) minmax(0,1fr) 14px!important;min-height:64px!important;padding:0 16px!important;border-radius:0!important;border:0!important;border-bottom:1px solid #e5e5ea!important;background:white!important;color:#172b21!important;text-align:left}
.collection-choice-row>b{text-align:right;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.collection-choice-row>i{font-style:normal;color:#98a49e}
.collection-dialog .ios-form-group{border-radius:20px;overflow:hidden;background:#fff}
.collection-options button,.companion-directory-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #e3e9e6;padding:16px;background:#fff;text-align:left;color:#28563e}
.collection-options i{font-style:normal}.collection-field-sheet article{grid-template-rows:auto 1fr auto!important}
.collection-calendar-head{display:grid;grid-template-columns:48px 1fr 48px;gap:4px;margin-bottom:18px}
.collection-calendar-head button{border:0;background:#e5eee8;border-radius:12px;color:#28563e;text-transform:capitalize}
.collection-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}
.collection-calendar-grid button{padding:4px!important;min-height:44px;border:0;border-radius:50%;background:#fff;color:#234a37;aspect-ratio:1}
.collection-calendar-grid button[aria-pressed=true]{background:#285c43;color:#fff}
.collection-calendar-grid button[aria-current=date]{box-shadow:inset 0 0 0 2px #88aa95}
.collection-calendar-grid small{padding:10px 0;color:#7b8880}
.collection-calendar-jump>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:14px}
.collection-calendar-jump button{border:0;border-radius:12px;background:#e5eee8;color:#28563e;text-transform:capitalize;padding:10px 4px!important}
.collection-calendar-jump input{width:100%;padding:14px;border:1px solid #c3d4c9;border-radius:12px;background:white}
.collection-purchase dd small{display:block;font-size:12px;color:#778278;margin-top:5px}
.tasting-sliders{display:grid;gap:16px;padding:18px;background:#fff;border-radius:18px}.tasting-slider-label{display:flex;justify-content:space-between;gap:10px}.tasting-sliders input[type=range]{width:100%;accent-color:#397256;min-height:36px;padding:0;border:0;background:transparent}.tasting-sliders output{white-space:nowrap;color:#397256;font-size:13px}.tasting-sliders button[data-clear-score]{min-height:30px;padding:2px 8px;font-size:12px;background:transparent;color:#7b8580;border:0}.tasting-voice{padding:12px 16px}.tasting-voice small{display:block;color:#78847c;margin-top:8px}.tasting-save-state{padding:10px 14px;border-radius:12px;background:#e5eee8;color:#31523e}.tasting-session-card.tasting-today{border:2px solid #719b7d;background:#f7fbf6}.tasting-today>small:first-child{color:#2c6741;font-weight:750}.tasting-past{margin-top:26px}.tasting-companions{padding:16px}.tasting-companions label{display:flex;align-items:center;gap:10px;margin:12px 0}.tasting-companions input[type=checkbox]{width:20px;min-height:20px;accent-color:#397256}.tasting-companions input[type=text]{width:100%;box-sizing:border-box;padding:12px;border:1px solid #d8e1dc;border-radius:12px}.tasting-draft-note{font-size:13px;color:#58705f}
.tasting-session-card.tasting-live{background:#f6e9ec!important;border:1px solid #d6a9b4!important}.tasting-live-badge{display:inline-block;margin-bottom:10px;padding:5px 9px;border-radius:7px;background:#80283e;color:white;font-size:11px;letter-spacing:.09em;font-weight:800}.tasting-card-open{cursor:pointer}.tasting-card-open:focus-visible{outline:2px solid #80283e;outline-offset:5px}.tasting-live-controls [data-rate]{background:#80283e!important;color:white!important}.tasting-live-controls [data-stop-live]{background:#ead4db;color:#80283e;min-width:44px}.collection-dialog header button.tasting-settings{right:70px!important}.tasting-past [data-past-list]{margin-top:16px}.tasting-past .wine-archive-toggle{color:#8b8d91!important;border:0;border-bottom:1px dashed #9a9c9f!important;background:transparent;border-radius:0;padding:4px 0!important;min-height:30px}
.collection-dialog{background:#f2f5f2!important;max-height:calc(100dvh - 12px)!important;color:#17271e!important}.collection-dialog>article{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;height:100%;min-height:0}.collection-dialog header,.collection-dialog footer{background:#f2f5f2!important}.collection-dialog main{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding:18px 22px 26px!important;width:auto!important}.collection-dialog footer{flex-wrap:wrap}.collection-dialog footer button{height:auto!important;min-height:48px;white-space:normal;line-height:1.25;padding:12px 14px!important;flex:1 1 130px}.collection-dialog header h2{overflow-wrap:anywhere;line-height:1.2}.collection-dialog:has(.tasting-settings) header{padding-right:124px!important}.collection-form-skeleton{min-height:360px;padding:12px 0}.collection-form-skeleton i{display:block;height:24px;max-width:100%;background:linear-gradient(100deg,#e0e7e1 25%,#f3f6f3 45%,#e0e7e1 65%);background-size:220% 100%;border-radius:9px;animation:collection-skeleton-shimmer 1.6s ease-in-out infinite}.collection-form-skeleton .skeleton-title{width:62%;height:28px;margin-bottom:15px}.collection-form-skeleton .skeleton-caption{width:82%;height:15px;margin-bottom:20px}.collection-form-skeleton section{padding:18px;background:#fff;border-radius:20px;margin:20px 0}.collection-form-skeleton section i{height:35px;margin:12px 0}.collection-form-skeleton .skeleton-large{height:82px}.collection-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes collection-skeleton-shimmer{to{background-position:-220% 0}}@media(prefers-reduced-motion:reduce){.collection-form-skeleton i{animation:none}}@media(max-width:480px){.collection-dialog{width:100%!important;max-width:100%!important}.collection-dialog main{padding:14px 16px 24px!important}.collection-dialog header{padding:24px 74px 18px 20px!important}.collection-dialog header button.mtc-icon-button{right:16px!important;top:18px!important}.collection-calendar-grid{gap:2px}.collection-calendar-grid button{min-height:38px!important}}
.collection-dialog main{background:#f2f5f2!important}.collection-dialog .ios-row input{border:0!important;background:transparent!important;box-shadow:none!important}.collection-dialog:has(.tasting-settings) header h2{font-size:24px!important}.collection-dialog .tasting-live-controls [data-rate]{background:#80283e!important;color:#fff!important}
.companion-directory-row[hidden],.tasting-companions label[hidden]{display:none!important}.companion-invite-qr{display:block;max-width:100%;height:auto;margin:20px auto;border-radius:18px}.collection-field-sheet form{display:grid;gap:16px;margin:18px 0}.collection-field-sheet input{box-sizing:border-box;max-width:100%;width:100%;padding:12px;border:1px solid #d6ded8;border-radius:12px;background:white}.collection-field-sheet label{display:block}.collection-field-sheet main>[data-copy],.collection-field-sheet main>[data-share],.collection-field-sheet main>[data-revoke]{margin:6px}
.collection-time-options{display:grid;gap:4px;padding:6px 0}.collection-time-options button{width:100%;min-height:50px;background:white!important;border-radius:10px!important;color:#365b45!important;font-variant-numeric:tabular-nums}.collection-time-options button[aria-pressed=true]{background:#365b45!important;color:#fff!important}.collection-time-options button[data-time="19:00"]{box-shadow:inset 0 0 0 1px #a8c2b0!important}
.tasting-panel .wine-search,.tasting-panel .wine-sort-icon,.tasting-panel .wine-filter-chips{background:#f0e8eb!important}.tasting-panel .wine-filter-chips{border-color:#e2d0d6!important}.tasting-panel .wine-filter-chips button{color:#78293e!important}.tasting-panel .wine-filter-chips button.active{background:#78293e!important;color:#fff!important}.tasting-panel .wine-sort-icon{color:#78293e!important}.tasting-panel .tasting-today:not(.tasting-live){border-color:#c69ca9;background:#fcf8fa}.tasting-today>small:first-child{color:#78293e}.tasting-panel .wine-sort-caption b{color:#78293e}
.tasting-live-badge{margin-right:10px}.tasting-sliders>label{position:relative}.tasting-sliders output{padding-right:26px}.tasting-sliders button[data-clear-score]{position:absolute;right:0;top:0;width:24px;min-height:24px!important;padding:0!important;background:transparent!important;font-size:20px!important}.tasting-sliders{gap:10px}.tasting-wizard .tasting-sliders input[type=range]{accent-color:#80283e}.tasting-wizard .tasting-sliders output{color:#80283e}.tasting-wizard.collection-dialog header .collection-close,.tasting-wizard.collection-dialog footer button:last-child,.tasting-field-sheet.collection-dialog header button.mtc-icon-button,.tasting-field-sheet.collection-dialog footer button:last-child{background:#80283e!important;color:white!important}.tasting-wizard.collection-dialog footer button:first-child:not(:last-child),.tasting-wizard header small,.tasting-wizard.collection-dialog .tasting-steps [aria-current=step]{color:#80283e!important}.tasting-wizard .tasting-save-state{background:#f0e5e9;color:#713248}.tasting-wizard main,.tasting-wizard header,.tasting-wizard footer,.tasting-field-sheet main,.tasting-field-sheet header,.tasting-field-sheet footer{background:#f7f2f4!important}.tasting-field-sheet .collection-calendar-head button,.tasting-field-sheet .collection-calendar-jump button{background:#eee0e5!important;color:#80283e!important}.tasting-field-sheet .collection-calendar-grid button[aria-pressed=true],.tasting-field-sheet .collection-time-options button[aria-pressed=true]{background:#80283e!important;color:white!important}.tasting-field-sheet .collection-options button,.tasting-field-sheet .collection-time-options button{color:#80283e!important}.tasting-field-sheet .collection-calendar-grid button[aria-current=date]{box-shadow:inset 0 0 0 2px #c29ca8}.tasting-wizard .collection-form-skeleton i,.tasting-field-sheet .collection-form-skeleton i{background-image:linear-gradient(100deg,#e9dce1 25%,#f8f4f6 45%,#e9dce1 65%)}
body[data-hub-route=tastings] .tasting-panel .wine-tools{display:flex!important}body[data-hub-route=tastings] .tasting-panel .wine-library-controls{display:block!important}
.collection-dialog>article{max-height:none!important}.collection-dialog footer:empty{display:none!important}.collection-dialog .tasting-companions button[hidden]{display:none!important}
/* Tasting samples share the Wine form structure with the tasting palette. */
.tasting-organizer section{padding:16px 0;border-top:1px solid #e5d8dd}.tasting-sample-heading{display:flex;align-items:center;gap:12px}.tasting-sample-heading>b{overflow-wrap:anywhere;flex:1}.tasting-sample-heading button{flex-shrink:0;min-width:64px;background:#f2e4e9!important;color:#80283e!important}.tasting-supply-button{margin-top:12px;text-align:left;white-space:normal}.tasting-reveal-fields{border:0;padding:14px 0 0;display:flex;flex-wrap:wrap;gap:12px 18px}.tasting-reveal-fields legend{padding-top:16px;font-size:13px;color:#7e6770}.tasting-reveal-fields label{display:flex;align-items:center;gap:7px;font-size:14px}.tasting-reveal-fields input{width:20px;min-height:20px;accent-color:#80283e}.tasting-revealed,.tasting-guess-result{background:#f5e9ed;border-radius:14px;padding:14px;margin:16px 0}.tasting-revealed p{display:flex;justify-content:space-between;gap:18px;margin:8px 0;font-size:14px}.tasting-revealed p b{text-align:right;overflow-wrap:anywhere}.tasting-revealed>small,.tasting-sample-number{color:#80283e;letter-spacing:.07em;font-weight:700;font-size:11px}.tasting-known-set ul{padding-left:20px}.tasting-known-set li{margin:10px 0;line-height:1.5}.tasting-guess{margin:18px 0}.tasting-guess h4{margin-bottom:12px}.tasting-guess p,.tasting-educational p{font-size:13px;color:#78666c}.tasting-educational{background:#fff9f4;border:1px solid #e7d8cb;border-radius:16px;padding:16px;margin:18px 0}.tasting-educational>button{background:#80283e!important;color:white!important}.tasting-educational .wine-card-badges{display:flex;flex-wrap:wrap;gap:8px}.tasting-supply{margin:16px 0 24px}.tasting-size-presets{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.tasting-session-card{transition:background-color .3s,border-color .3s}.tasting-wizard .collection-choice-row>b{white-space:normal;line-height:1.35;padding:12px 0}.tasting-past [data-past-list][hidden]{display:none!important}.tasting-past [data-past-list]{display:grid;gap:18px}.tasting-session-card [data-session-status]:empty{display:none}@media(prefers-reduced-motion:reduce){.tasting-session-card{transition:none}}
body[data-hub-route=collection] .hub-top-actions{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important}
body[data-hub-route=collection] .hub-top-actions>.collection-header-scan{flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;margin:0!important}
body[data-hub-route=collection] .hub-top-actions>.hub-top-plus{flex:0 0 48px;margin:0!important}

/* Keep autosave acknowledgements from moving the active score control. */
.tasting-wizard .tasting-save-state{box-sizing:border-box;line-height:1.5;min-height:calc(3em + 20px)}
.tasting-wizard .tasting-slider-label output{min-width:calc(10ch + 26px);flex-shrink:0;text-align:right;font-variant-numeric:tabular-nums}


/* Mobile release hardening: a dialog is a self-contained viewport, never a
   document-height sheet.  Keep its actions visible while the form itself
   scrolls. */
.collection-dialog{
  box-sizing:border-box!important;
  height:min(860px,calc(100dvh - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  margin:auto!important;
  overflow:hidden!important;
}
.collection-dialog>article{
  height:100%!important;
  max-height:none!important;
  min-height:0!important;
}
.collection-dialog header,.collection-dialog footer{flex:0 0 auto!important}
.collection-dialog main{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch}
.collection-dialog footer{padding-bottom:max(14px,env(safe-area-inset-bottom))!important}

/* A physical bottle has three separate facts.  On narrow screens they must
   not collapse into one unreadable string. */
.collection-bottle-row .collection-bottle-meta{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr)!important;
  align-items:baseline!important;
  gap:3px 10px!important;
  min-width:0!important;
}
.collection-bottle-row .collection-bottle-meta>b{grid-column:1 / -1!important}
.collection-bottle-row .collection-bottle-meta span{min-width:0!important;overflow-wrap:anywhere!important}
.collection-bottle-row .collection-bottle-meta span+span:before{content:none!important;margin:0!important}

@media(max-width:480px){
  .collection-dialog{width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:24px!important}
  .collection-dialog header{padding:20px 72px 16px 18px!important}
  .collection-dialog main{padding:16px 18px 22px!important}
  .collection-dialog footer{padding:12px 18px max(14px,env(safe-area-inset-bottom))!important}
  .collection-bottle-row .collection-bottle-meta{grid-template-columns:1fr!important;gap:2px!important}
  .collection-bottle-row .collection-bottle-meta>b{grid-column:auto!important}
}

/* Tasting experience: quiet surfaces, one primary action, deliberate keyboard focus. */
.tasting-panel .tasting-session-card{border:1px solid #e2dfdc!important;background:#fff!important;border-radius:24px!important;box-shadow:0 4px 18px #22201b04;padding:20px!important}
.tasting-panel .tasting-session-card.tasting-today{border-color:#d9cccf!important}
.tasting-panel .tasting-session-card.tasting-live{background:#f8eff1!important;border-color:#d9bfc7!important}
.tasting-panel .tasting-session-card.tasting-finished{opacity:.58;filter:none!important}
.tasting-card-open{outline:none!important;border:0!important;box-shadow:none!important;border-radius:14px;padding:0!important;cursor:pointer}
.tasting-card-open:focus-visible{outline:2px solid #916a77!important;outline-offset:7px!important}
.tasting-panel .tasting-card-open h2{font-size:clamp(21px,4vw,27px);line-height:1.2;margin:10px 0}
.tasting-panel .tasting-card-open>small{font-size:12px;line-height:1.5;color:#7b7675}
.tasting-panel .collection-tools{margin-top:18px;gap:10px}
.tasting-panel .collection-tools>button,.tasting-wizard .collection-tools>button{background:#7c2d44!important;color:#fff!important;border:0;border-radius:18px;min-height:44px;padding:12px 18px;font-size:14px}
.tasting-panel .collection-tools .mtc-icon-button{background:#ece5e7!important;color:#7c2d44!important;width:44px!important;height:44px!important;min-width:44px!important}
.tasting-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0;color:#716b69;font-size:14px}
.tasting-meta>span{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
.tasting-meta svg,.tasting-wine-preview svg{width:17px;height:17px;flex:none;color:#93717d}
.tasting-wine-preview{display:grid;gap:7px;margin:16px 0;padding:14px 0;border-block:1px solid #ece8e6;font-size:14px;color:#3e3538}
.tasting-wine-preview>span,.tasting-secret{display:flex;gap:8px;align-items:start;line-height:1.4}
.tasting-wine-preview small{color:#8b8183;padding-left:25px}
.tasting-live-badge{display:inline-block;background:#7c2d44!important;color:white!important;font-size:10px;letter-spacing:.12em;padding:5px 9px;border-radius:7px;margin:0 8px 0 0}
.tasting-session-card [data-session-status]:empty{display:none}
.tasting-wizard>article>header{position:relative!important;min-height:94px;padding:22px 76px 18px 22px!important;background:#fff!important;border-bottom:1px solid #ece8e6!important}
.tasting-wizard>article>header:has(.tasting-settings){padding-right:128px!important}
.tasting-wizard>article>header [data-close]{position:absolute!important;display:grid!important;top:18px!important;right:18px!important;width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;opacity:1!important;visibility:visible!important;transform:none!important;z-index:3}
.tasting-wizard>article>header .tasting-settings{position:absolute!important;right:70px!important;top:18px!important;width:44px!important;height:44px!important;min-width:44px!important;background:#eeeef0!important;color:#65656b!important;border-radius:50%!important}
.tasting-wizard>article>header small{font-size:10px;letter-spacing:.12em;color:#9a7b84}
.tasting-wizard>article>header h2{font-size:clamp(20px,5vw,26px)!important;margin:7px 0 0!important;line-height:1.2}
.tasting-wizard main{background:#f7f6f7!important}
.tasting-wizard main>h3{font-size:24px;line-height:1.25}
.tasting-wizard .tasting-impressions>section{background:white;border:1px solid #eee9e8;border-radius:22px;padding:18px;margin:14px 0;box-shadow:none}
.tasting-wizard .tasting-impressions h3{font-size:20px;line-height:1.35}
.tasting-wizard .tasting-sample-number{color:#9d7e89;font-size:11px;letter-spacing:.08em}
.tasting-result-scores{display:grid;gap:12px;margin:20px 0}
.tasting-result-scores label{display:block!important;margin:0!important;padding:0!important}
.tasting-result-scores label>span{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#74676c}
.tasting-result-scores b{color:#7c2d44;font-variant-numeric:tabular-nums}
.tasting-result-scores small{font-weight:400;color:#a49a9e}
.tasting-result-scores input[type=range]{display:block!important;width:100%!important;margin:8px 0 0!important;accent-color:#9a6275;opacity:1!important;filter:none!important;pointer-events:none;min-height:18px;padding:0}
.tasting-wizard .tasting-resume-results,.tasting-wizard .tasting-cancel-link{display:block;width:max-content;max-width:100%;padding:8px 0!important;margin:22px 0 0;background:transparent!important;color:#8b757b!important;border:0!important;border-radius:0!important;text-decoration:underline dashed;text-underline-offset:5px;font-size:13px;box-shadow:none!important}
.tasting-wizard.tasting-info-finished .tasting-summary{opacity:.72}
.tasting-wizard .tasting-steps{display:flex;gap:8px;margin:0 0 20px;padding:0;border:0}
.tasting-wizard .tasting-steps button{flex:1;background:#ede9ea;color:#94868b;border:0;border-radius:12px;padding:9px;font-size:12px}
.tasting-wizard .tasting-steps button[aria-current=step]{background:#e7dce0;color:#7c2d44;font-weight:650}
.tasting-wizard .tasting-supply-button{color:#7c2d44!important;background:transparent!important;padding:8px 0!important;border:0!important;min-height:36px;text-align:left;font-size:12px}
.tasting-wizard .tasting-companions>p,.tasting-wizard .tasting-save-explanation{font-size:12px;line-height:1.5;color:#91858a}
.tasting-wizard .wine-extra{background:#fff;border:1px solid #ece8e9;border-radius:20px;overflow:hidden}
.tasting-wizard footer button{font-size:14px!important;min-height:46px!important}
.tasting-wizard footer button:first-child:not(:only-child){background:#eee9eb!important;color:#786c70!important}
.tasting-wizard footer button:last-child{background:#7c2d44!important;color:#fff!important}
.tasting-wizard .collection-tools{display:flex;gap:10px;align-items:center}
.bottle-settings-wizard>article{grid-template-rows:auto minmax(0,1fr)!important}
.collection-dialog.bottle-settings-wizard header{padding:25px 76px 18px 28px!important;min-height:0!important;background:#fff!important}
.collection-dialog.bottle-settings-wizard header small{display:block;margin:0 0 11px!important;color:#315b49!important;font-size:11px!important;font-weight:850!important;letter-spacing:.15em!important}
.collection-dialog.bottle-settings-wizard header h2{margin:0!important;font-size:30px!important;line-height:1.08!important;letter-spacing:-.03em!important}
.bottle-settings-main{display:grid;align-content:start;gap:22px;background:#f7f8f7!important}
.bottle-settings-section,.bottle-settings-danger-zone{display:grid;gap:8px}
.bottle-settings-section>small,.bottle-settings-danger-zone>small{padding-left:4px;color:#78847e;font-size:10px;font-weight:850;letter-spacing:.14em}
.bottle-settings-list{overflow:hidden;border:1px solid #e2e7e3;border-radius:20px;background:#fff}
.bottle-settings-row{box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;min-height:68px!important;padding:14px 16px!important;border:0!important;border-bottom:1px solid #ecefed!important;border-radius:0!important;background:#fff!important;color:#273a31!important;text-align:left!important}
.bottle-settings-row:last-child{border-bottom:0!important}.bottle-settings-row[hidden]{display:none!important}
.bottle-settings-row>span{display:grid;gap:4px;min-width:0}.bottle-settings-row b{font-size:15px;line-height:1.3}.bottle-settings-row small{color:#7c8680;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.bottle-settings-row>i{align-self:center;color:#a5aea8;font-size:27px;font-style:normal;font-weight:300;line-height:1}
.bottle-settings-danger{box-sizing:border-box;width:100%;min-height:52px!important;padding:13px 16px!important;border:1px solid #ead7d2!important;border-radius:17px!important;background:#fff8f6!important;color:#93493d!important;text-align:left!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important}
.bottle-settings-note{margin:0 4px;font-size:12px;color:#8f9792;line-height:1.5}
@media(max-width:600px){.collection-dialog.bottle-settings-wizard header{padding:24px 72px 18px 20px!important}.collection-dialog.bottle-settings-wizard header h2{font-size:29px!important}.bottle-settings-main{gap:18px}}
@media(pointer:coarse){.tasting-card-open:focus-visible{outline:none!important}}
.trip-with-sharing{position:relative;border:1px solid #2a3832;border-radius:22px;background:#17251f;overflow:hidden}.trip-with-sharing>.trip{width:100%;border:0!important;box-shadow:none!important;border-radius:0!important}.trip-share-actions{position:absolute;top:16px;right:16px}.trip-received{background:#f7f7f2!important}
.trip-sharing-dialog{--collection-accent:#537460}.trip-sharing-dialog main{background:#f6f6f3}.trip-share-step{font-size:10px;letter-spacing:.1em;color:#8d988f;margin:0 0 18px}.trip-share-hint{color:#858b83;font-size:13px;line-height:1.55}.trip-sharing-dialog header h2{font-size:24px!important}.trip-companion-list{display:grid;gap:8px;margin:18px 0}.trip-companion-list>button{display:flex;flex-direction:column;gap:6px;align-items:start;text-align:left;background:white!important;color:#353e37!important;border:1px solid #e7e9e4;border-radius:17px;padding:16px}.trip-companion-list small{font-size:11px;color:#8a938b}.trip-companion-list>button:disabled{opacity:.45}.trip-share-mode{display:flex;gap:8px}.trip-share-mode button{flex:1;background:#e9ece5!important;color:#859083!important;font-size:13px;padding:12px 8px;border-radius:14px}.trip-share-mode button[aria-pressed=true]{background:#587761!important;color:white!important}.trip-edit-permission{display:flex;gap:10px;align-items:center;font-size:13px;padding:12px 0}.trip-edit-permission input{accent-color:#537460}.trip-share-timeline{position:relative;display:grid;gap:6px}.trip-share-timeline h4{font-size:13px;color:#708074;margin:20px 0 7px 0}.trip-sharing-dialog .trip-range-event{display:grid;grid-template-columns:20px 64px minmax(0,1fr);gap:10px;align-items:center;padding:13px 12px;text-align:left;border-radius:14px;background:#fff!important;color:#4c544d!important;border:1px solid #e8eae3!important;font-size:13px;line-height:1.4}.trip-range-event i{font-style:normal;display:grid;place-items:center;border:1px solid #d0d9ce;border-radius:50%;width:20px;height:20px;font-size:12px}.trip-range-event time{font-size:11px;color:#929b8d}.trip-sharing-dialog .trip-range-event.is-selected{background:#e9efe7!important;border-color:#d1dccd!important}.trip-range-event.is-selected i{background:#648368;border-color:#648368;color:white}.trip-sharing-dialog .trip-range-event.is-anchor{border:2px solid #6d8c70!important}.trip-ranges{display:flex;flex-wrap:wrap;gap:6px}.trip-ranges>div{display:flex;align-items:center;gap:5px;background:#e7ede3;border-radius:12px;padding:3px 8px;font-size:11px;color:#687b60}.trip-ranges button{background:none!important;color:#6b8067!important;min-height:32px;padding:5px}.trip-range-prompt{font-size:12px;color:#75906f}.trip-share-summary{display:flex;flex-direction:column;gap:8px;border-radius:20px;background:white;padding:22px;margin:20px 0}.trip-share-summary span{color:#91998a;font-size:13px}.trip-sharing-dialog .trip-revoke{background:none!important;color:#987d80!important;font-size:13px;padding:12px 0;text-decoration:underline dashed;text-underline-offset:5px}.trip-shared-timeline>h3{font-size:15px;margin:24px 0 10px;color:#7a8b72}.trip-shared-timeline article{background:white;border:1px solid #e4e8df;border-radius:20px;padding:18px;margin:10px 0}.trip-shared-timeline h4{font-size:18px;margin:8px 0}.trip-shared-timeline p{font-size:14px;line-height:1.6;white-space:pre-line}.trip-shared-timeline small,.trip-event-place{color:#8e9786}.trip-shared-timeline article button{background:none!important;padding:6px 0;color:#8e9c80!important;font-size:12px}.trip-event-editor{display:grid;gap:20px}.trip-event-editor label{display:grid;gap:8px;font-size:13px;color:#7a8574}.trip-event-editor input,.trip-event-editor textarea{width:100%;box-sizing:border-box;background:white;border:1px solid #dfe5d9;border-radius:14px;padding:13px;color:#384131;font:inherit;font-size:16px}.trip-sharing-dialog footer button:first-child:not(:only-child){background:#e8ece3;color:#7c8972}
.trip-with-sharing .trip-owner-settings{position:absolute;top:16px;right:16px;z-index:2;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;border:1px solid #fff!important;border-radius:50%!important;background:#315b49!important;color:#fff!important;box-shadow:none!important}.trip-share-actions .trip-owner-settings{position:static}.trip-owner-settings svg{stroke:#fff;fill:none}.trip-with-sharing>.trip{padding-right:74px!important;height:100%}
.tasting-place-find{display:block;margin:0 14px 10px!important;background:transparent!important;color:#967384!important;font-size:12px;padding:8px!important;text-align:left}.tasting-place-results{display:grid;gap:6px;margin:12px 0}.tasting-place-results>button{background:#fff!important;color:#4c3b43!important;text-align:left;border-radius:12px;padding:14px}.google-maps-attribution{display:block;font:400 12px sans-serif;white-space:nowrap;color:#5e5e5e;margin:12px 0}.tasting-place-details{padding:12px 0}.tasting-place-details p{font-size:13px}.tasting-place-details a{font-size:12px;color:#856b74}.tasting-place-details small{display:block}.tasting-live-place{padding:8px 14px;border:1px solid #e8e3e5;border-radius:14px;background:white}
.tasting-wizard .ios-form-group>label.ios-row:not([hidden]){display:grid!important;grid-template-columns:minmax(80px,34%) minmax(0,1fr)!important;gap:12px;align-items:center!important}
.tasting-wizard .ios-form-group>label.ios-row>input{width:100%!important;min-width:0!important;text-align:right!important;margin:0!important}
.tasting-info-finished .tasting-impressions>section{background:#fdfcfc}.tasting-result-scores input[type=range]::-webkit-slider-thumb{background:#a47486}.tasting-result-scores input[type=range]::-webkit-slider-runnable-track{background:#e7dce0;border-radius:6px}
/* Trip constructor: quiet surfaces, compact vertical itinerary and explicit review. */
.trip-constructor{--trip-accent:#8f753c}.trip-constructor-tabs{display:flex;gap:6px;overflow-x:auto;position:sticky;top:0;background:#f7f7f2;padding:6px 0 12px;z-index:2}.trip-constructor-tabs button{flex:1;white-space:nowrap;background:#eaece5!important;color:#737e6d!important;font-size:12px;padding:10px!important;border-radius:14px}.trip-constructor-tabs button[aria-pressed=true]{background:#e5ddcd!important;color:#766039!important}.trip-builder-day{min-height:70px;margin:25px 0}.trip-builder-day h3{font-size:14px;color:#8d805e;margin:12px 0}.trip-builder-event{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;padding:15px 12px;background:#fff;border:1px solid #e7e8df;border-radius:20px;margin:9px 0}.trip-builder-event>[data-handle]{background:none!important;color:#b7b49f!important;padding:0!important;font-size:28px;cursor:grab;align-self:start;min-height:42px}.trip-builder-event h4{font-size:17px;margin:5px 0 8px;line-height:1.35}.trip-builder-event small{font-size:11px;color:#8e957f}.trip-builder-event p{font-size:13px;color:#858a7e;line-height:1.5;margin:8px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.trip-inline-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}.trip-inline-actions button{padding:6px 0!important;background:none!important;color:#8f815d!important;font-size:12px}.trip-detail-groups details{background:white;border:1px solid #e8e9e0;border-radius:20px;padding:16px;margin:12px 0}.trip-detail-groups summary{font-weight:600;color:#56604b;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.trip-detail-groups summary span{font-size:12px;color:#9b9e90}.trip-detail-groups details>button{display:grid;grid-template-columns:1fr 15px;width:100%;text-align:left;background:none!important;color:#5c644f!important;padding:12px 0!important;border-bottom:1px solid #efefe8!important;border-radius:0;font-size:13px}.trip-detail-groups small{grid-column:1;color:#969b8b;font-size:11px;font-weight:400;margin-top:5px}.trip-detail-groups i{grid-column:2;grid-row:1/3;align-self:center;font-style:normal}.trip-upload{display:block;background:#e7e5d9;color:#817047;text-align:center;border-radius:15px;padding:13px;cursor:pointer}.trip-upload input{display:block;font-size:12px;width:100%;margin-top:8px}.trip-documents>div{display:flex;gap:10px;justify-content:space-between;padding:15px 0;border-bottom:1px solid #e9e9df;font-size:12px;align-items:center}.trip-documents span{overflow-wrap:anywhere}.trip-documents button{background:#e9ecdf!important;color:#727f54!important;font-size:11px;padding:9px}.trip-prompt-chips{display:flex;gap:6px;flex-wrap:wrap}.trip-prompt-chips button{background:#efede2!important;color:#93835e!important;font-size:11px;padding:8px 10px}.trip-prompt-label{display:grid;gap:8px;margin:20px 0;font-size:13px;color:#79806e}.trip-prompt-label textarea,.trip-event-editor select{width:100%;box-sizing:border-box;border:1px solid #e0e5d7;background:#fff;border-radius:15px;padding:13px;font:inherit;font-size:16px;color:#424b34}.trip-ai-consent{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.5;color:#929383;margin:16px 0}.trip-ai-consent input,.trip-proposal>input,.trip-ai-companions input{accent-color:#8f8357;width:20px;height:20px;flex:none}.trip-proposal{display:flex;gap:10px;align-items:flex-start;padding:18px 12px;background:#fff;border:1px solid #e5e8dd;border-radius:18px;margin:14px 0;font-size:13px}.trip-proposal p{font-size:12px;color:#8c917d;line-height:1.5}.trip-change{margin:10px 0;display:grid;gap:5px;overflow-wrap:anywhere}.trip-change small{color:#9c9d8e}.trip-change s{color:#a7aa9b;text-decoration-color:#bfc5b5}.trip-ai-warning{font-size:12px;line-height:1.5;color:#a18653;background:#f2edde;padding:12px;border-radius:12px}.trip-history-entry{background:white;border-radius:18px;padding:18px;margin:12px 0}.trip-history-entry time{font-size:11px;color:#99a08e}.trip-history-entry h4{font-size:14px;line-height:1.4}.trip-ai-companions label{display:flex;justify-content:space-between;gap:15px;align-items:center;background:white;border-radius:15px;margin:9px 0;padding:16px;font-size:14px}.trip-ai-companions label[hidden]{display:none}.trip-constructor footer button{font-size:13px;line-height:1.3;padding:12px!important;min-width:0}.trip-constructor .ios-row{background:white!important;color:#657051!important}.trip-constructor .ios-row span{font-size:12px}.trip-constructor .ios-row b{font-size:14px}.trip-constructor main{overflow-x:hidden}.trip-constructor h3{font-size:17px}.trip-constructor button:focus:not(:focus-visible){outline:none;box-shadow:none}

.trip-builder-day h3{display:flex;align-items:center;justify-content:space-between;gap:12px}.trip-builder-day h3 button{font-size:12px;color:#7b7770;background:transparent;border:0;padding:8px;font-weight:500}

/* Trip dialogs also open from #app, whose page canvas otherwise narrows main. */
body:has(#app:not([hidden])) .trip-constructor>article>main{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;margin:0!important;padding:20px!important;
}
.trip-constructor,.trip-constructor>article,.trip-constructor .trip-constructor-tabs{background:#f2f5f2!important}
.trip-constructor .trip-settings-share{margin:4px 0 18px!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 14px!important}
.trip-builder-event{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.trip-builder-event>[data-handle]{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.trip-builder-event.is-dragging{opacity:.35}
.trip-constructor .trip-drag-preview{position:fixed;margin:0;z-index:4;pointer-events:none;opacity:.92;overflow:hidden;border-color:#8f9f8e;box-shadow:none}
.trip-drop-indicator{position:fixed;height:4px;border-radius:2px;background:#537460;z-index:5;pointer-events:none}
.trip-drop-indicator::before,.trip-drop-indicator::after{content:'';position:absolute;top:-2px;width:8px;height:8px;border-radius:50%;background:inherit}
.trip-drop-indicator::before{left:0}.trip-drop-indicator::after{right:0}

/* Keep the two select controls hidden behind their single iOS choice row. */
.tasting-wizard .ios-form-group>.collection-hidden-control{display:none!important}
.tasting-wizard .ios-form-group>button.collection-choice-row{grid-template-columns:minmax(0,42%) minmax(0,1fr) 14px!important;column-gap:8px!important;align-items:center!important}
.tasting-wizard .collection-choice-row>b{justify-self:stretch!important;text-align:right!important;min-width:0!important;margin:0!important;overflow-wrap:anywhere}
.tasting-wizard .collection-choice-row>i{justify-self:end!important;margin:0!important}

/* Size the sample itself, not just the dialog's clipping viewport. */
.tasting-wizard [data-step-content],.tasting-wizard .tasting-organizer,.tasting-wizard .tasting-sample-card,
.tasting-wizard .tasting-sample-heading,.tasting-wizard .tasting-reveal-fields{
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;
}
.tasting-wizard .tasting-organizer>p{margin:14px 16px;overflow-wrap:anywhere}
.tasting-wizard .tasting-sample-card{padding:16px;margin:0;border-top:1px solid #e5d8dd}
.tasting-wizard .tasting-sample-heading{align-items:flex-start}
.tasting-wizard .tasting-sample-heading>b{min-width:0;white-space:normal;overflow-wrap:anywhere}
.tasting-wizard .tasting-sample-card>small{display:block;margin-top:10px;line-height:1.5}
.tasting-wizard .tasting-sample-card>small,.tasting-wizard .tasting-supply-button,
.tasting-wizard .tasting-reveal-fields legend,.tasting-wizard .tasting-reveal-fields label{
  box-sizing:border-box;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;
}
.tasting-wizard .tasting-reveal-fields{margin:0}
.tasting-wizard .tasting-reveal-fields input{flex:none}
.tasting-wizard .tasting-selected b,.tasting-wizard .tasting-pick-row b{overflow-wrap:anywhere}
.tasting-wizard .tasting-selected small,.tasting-wizard .tasting-pick-row small{overflow-wrap:anywhere}

/* Catalog pickers use the loaded-list silhouette instead of raw loading text. */
.collection-catalog-skeleton{box-sizing:border-box;width:100%;padding:6px 0 12px;overflow:hidden}
.collection-catalog-skeleton>div{display:grid;gap:8px}
.collection-catalog-skeleton-row{box-sizing:border-box;width:100%;min-width:0;display:grid;grid-template-columns:18px minmax(0,1fr) 14px;gap:12px;align-items:center;padding:15px 16px;border-radius:18px;background:#fff}
.collection-catalog-skeleton-row>i,.collection-catalog-skeleton-row>em,.collection-catalog-skeleton-row b{display:block;background:linear-gradient(100deg,#e0e7e1 25%,#f3f6f3 45%,#e0e7e1 65%);background-size:220% 100%;animation:collection-skeleton-shimmer 1.6s ease-in-out infinite}
.collection-catalog-skeleton-row>i{width:18px;height:18px;border-radius:50%}
.collection-catalog-skeleton-row>em{width:10px;height:18px;border-radius:6px;justify-self:end}
.collection-catalog-skeleton-row>span{display:grid;gap:7px;min-width:0}
.collection-catalog-skeleton-row b{height:14px;width:var(--w,65%);max-width:100%;border-radius:7px}
.collection-catalog-skeleton-row b+ b{height:10px;opacity:.8}
.ios-picker-sheet [data-options],.collection-field-sheet .collection-options{box-sizing:border-box;min-width:0;padding-left:0!important;padding-right:0!important}
.ios-picker-sheet [data-options]>p,.collection-options>p{box-sizing:border-box;margin:12px 0;padding:16px 18px;border-radius:16px;background:#fff;line-height:1.45;overflow-wrap:anywhere}
.tasting-field-sheet .collection-catalog-skeleton-row,.tasting-wizard .collection-catalog-skeleton-row{background:#fffafa}
.tasting-field-sheet .collection-catalog-skeleton-row>i,.tasting-field-sheet .collection-catalog-skeleton-row>em,.tasting-field-sheet .collection-catalog-skeleton-row b,.tasting-wizard .collection-catalog-skeleton-row>i,.tasting-wizard .collection-catalog-skeleton-row>em,.tasting-wizard .collection-catalog-skeleton-row b{background-image:linear-gradient(100deg,#eadde2 25%,#faf6f8 45%,#eadde2 65%)}
@media(prefers-reduced-motion:reduce){.collection-catalog-skeleton-row>i,.collection-catalog-skeleton-row>em,.collection-catalog-skeleton-row b{animation:none}}

/* Final modal polish: icon buttons never acquire browser focus rings. */
.collection-dialog button.mtc-icon-button:is(:focus,:focus-visible,:active),
.wine-critic-dialog button.mtc-icon-button:is(:focus,:focus-visible,:active),
.trip-sharing-dialog button.mtc-icon-button:is(:focus,:focus-visible,:active){outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}
.tasting-wizard .tasting-settings{background:#f7f2f4!important;color:#80283e!important;border:1.5px solid #80283e!important}
.tasting-wizard .tasting-settings svg{stroke:#80283e!important}
.trip-with-sharing .trip-owner-settings{background:#17251f!important;color:#fff!important;border:1px solid #fff!important}
.trip-with-sharing .trip-owner-settings svg{stroke:#fff!important}
.tasting-sample-sort{display:grid;gap:12px;min-width:0}
.tasting-sample-card{position:relative}
.tasting-sample-drag{display:flex!important;align-items:center!important;gap:8px!important;min-width:78px!important;padding:8px 10px!important;border-radius:13px!important;background:#f2e6ea!important;color:#80283e!important;touch-action:none;cursor:grab}
.tasting-sample-drag span{font-size:18px;line-height:1}.tasting-sample-drag b{white-space:nowrap}.tasting-sample-drag:disabled{cursor:default;opacity:.62}
.tasting-sample-heading{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:12px!important}.tasting-sample-heading strong{min-width:0;overflow-wrap:anywhere;line-height:1.35}
.tasting-sample-card.is-dragging{opacity:.32}
.tasting-sample-drag-preview{position:fixed!important;z-index:9999!important;margin:0!important;pointer-events:none!important;opacity:.94!important;overflow:hidden!important;box-shadow:0 10px 34px #0002!important;background:#fffafa!important}
.tasting-sample-drop-indicator{position:fixed;z-index:10000;height:4px;border-radius:999px;background:#80283e;pointer-events:none}
.tasting-sample-drop-indicator::before,.tasting-sample-drop-indicator::after{content:'';position:absolute;top:-2px;width:8px;height:8px;border-radius:50%;background:#80283e}.tasting-sample-drop-indicator::before{left:0}.tasting-sample-drop-indicator::after{right:0}
.tasting-transfer-manager{background:#f1e6ea!important;color:#80283e!important}.tasting-danger-delete{background:transparent!important;color:#8b3348!important;border:1px solid #d8aeb9!important}
.collection-dialog>article,.trip-sharing-dialog>article,.trip-constructor>article{overflow:hidden!important;border-radius:inherit!important;background:#f2f5f2!important}
.collection-dialog>article>main,.trip-sharing-dialog>article>main,.trip-constructor>article>main{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;background:#f2f5f2!important;padding:20px!important}
.trip-sharing-dialog .wine-search,.collection-field-sheet .wine-search{box-sizing:border-box;margin:8px 0 18px;padding:0!important;border-radius:18px;background:#eef1ed!important}
.trip-sharing-dialog .wine-search input,.collection-field-sheet .wine-search input{box-sizing:border-box;width:100%;min-height:54px;padding:0 16px!important;border:1px solid #cfdbd2!important;border-radius:18px!important;background:#fff!important}
.trip-companion-list{padding:0!important}.trip-companion-list>p,.catalog-empty{box-sizing:border-box;margin:12px 0;padding:18px;border-radius:18px;background:#fff;line-height:1.5}
.collection-field-sheet .collection-options{display:grid!important;gap:8px!important}.collection-field-sheet .collection-options>button{box-sizing:border-box;border:0!important;border-radius:18px!important;margin:0!important;padding:17px 18px!important;background:#e7eee9!important}
.trip-event-editor{gap:18px!important}.trip-event-editor label{gap:9px!important}.trip-event-editor input,.trip-event-editor textarea{border-radius:20px!important;padding:16px 18px!important;background:#fff!important}
.collection-choice-row{border-radius:18px!important;overflow:hidden}

.tasting-sample-drag{min-height:44px!important}

.tasting-policy-note{margin:14px 0;padding:12px 14px;border-radius:16px;background:#f4ecef;color:#6f2639;line-height:1.4}.tasting-pending-actions{display:flex;flex-wrap:wrap;gap:10px}.tasting-pending-actions>button{min-height:44px}

/* Unified mobile spacing and four-column filter bars for Tastings + Collection. */
body[data-hub-route=tastings] .tasting-panel .collection-library-controls,
body[data-hub-route=collection] .collection-panel .collection-library-controls{
  margin-top:10px!important;
  margin-bottom:20px!important;
  padding-bottom:0!important;
  overflow:visible!important;
}
body[data-hub-route=tastings] .tasting-panel .wine-sort-caption,
body[data-hub-route=collection] .collection-panel .wine-sort-caption{
  margin-top:10px!important;
  margin-bottom:7px!important;
}
body[data-hub-route=tastings] .tasting-panel .wine-filter-chips,
body[data-hub-route=collection] .collection-panel .wine-filter-chips{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;
  max-width:none!important;
  gap:3px!important;
  padding:3px!important;
  box-sizing:border-box!important;
}
body[data-hub-route=tastings] .tasting-panel .wine-filter-chips button,
body[data-hub-route=collection] .collection-panel .wine-filter-chips button{
  min-width:0!important;
  width:100%!important;
  padding:8px 4px!important;
  font-size:12.5px!important;
  white-space:nowrap!important;
}
@media(max-width:360px){
 body[data-hub-route=tastings] .tasting-panel .wine-filter-chips button,
 body[data-hub-route=collection] .collection-panel .wine-filter-chips button{font-size:11.5px!important;padding-left:2px!important;padding-right:2px!important}
}

/* Collaborative tasting status + participant feedback. */
.tasting-participant-progress{margin:14px 0;padding:14px 16px;border-radius:17px;background:#f5ecef;color:#6f2d40}
.tasting-participant-progress>b{display:block;margin-bottom:9px}
.tasting-participant-progress>div{display:grid;gap:7px}
.tasting-participant-progress span{display:flex;align-items:center;gap:8px;font-size:13px}
.tasting-participant-progress span i,.tasting-participant-list span::before{content:'';width:8px;height:8px;border-radius:50%;background:#aa9ea2;display:inline-block;flex:none}
.tasting-participant-progress [data-state=submitted] i,.tasting-participant-list [data-state=submitted]::before{background:#42755d}
.tasting-participant-progress [data-state=in_progress] i,.tasting-participant-list [data-state=in_progress]::before{background:#b68443}
.tasting-participant-list{display:grid;gap:8px;margin:16px 0}
.tasting-participant-list>div{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;background:#fff}
.tasting-participant-list span{display:flex;align-items:center;gap:7px;color:#7c6069;font-size:13px}

.tasting-participant-feedback{margin-top:22px;padding:18px;border-radius:20px;background:#fff}
.tasting-participant-feedback>h3{margin:0 0 8px;color:#80283e}
.tasting-feedback-state{margin:0 0 16px;color:#7b6d72;font-size:13px;line-height:1.45}
.tasting-feedback-sample{padding:16px 0;border-top:1px solid #eadfe2}
.tasting-feedback-sample:first-of-type{border-top:0}
.tasting-feedback-sample>small{display:block;margin-bottom:12px;color:#80283e;letter-spacing:.07em;font-weight:700}
.tasting-feedback-sample>label:not(.wine-text-row){display:block;position:relative;margin:14px 0}
.tasting-feedback-sample>label>span{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px}
.tasting-feedback-sample output{padding-right:26px;color:#80283e;font-variant-numeric:tabular-nums}
.tasting-feedback-sample input[type=range]{width:100%;min-height:36px;accent-color:#80283e}
.tasting-feedback-sample [data-feedback-clear]{position:absolute;right:0;top:-4px;width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;background:transparent!important;color:#8b7b80!important;font-size:20px!important}

/* Sorting panels: same information architecture as Wines. */
.collection-panel .wine-sort-caption{display:flex;align-items:center;gap:4px;margin-top:5px!important;margin-bottom:4px!important;padding:0 3px}
.collection-panel .wine-sort-caption .wine-reset{margin-left:auto;border:0!important;background:transparent!important;color:#8b8d91!important;min-height:28px!important;height:auto!important;padding:2px 0!important;font-size:12px!important}
.collection-panel .collection-library-controls{margin-top:0!important}
.collection-sort-facets{margin:18px 0 0;padding:16px;border:1px solid #d8e1dc;border-radius:20px;background:#f8fbf8}
.tasting-wizard .collection-sort-facets{border-color:#e4d4d9;background:#fff9fb}
.collection-sort-facets h3{margin:10px 0 8px;color:#829087;font-size:13px}
.collection-sort-facets h3:first-child{margin-top:0}
.collection-sort-facets>div{display:flex;flex-wrap:wrap;gap:8px 14px}
.collection-sort-check{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;padding:6px 0!important;font-size:14px!important}
.collection-sort-check input{width:20px!important;height:20px!important;min-height:20px!important;margin:0!important;accent-color:#4f7b65}
.tasting-wizard .collection-sort-check input{accent-color:#80283e}

/* Compact completed-tasting actions. */
.tasting-post-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 2px}
.tasting-post-actions .tasting-resume-results,.tasting-post-actions .tasting-cancel-link{
  margin:0!important;min-height:36px!important;padding:6px 0!important
}
.tasting-post-actions .tasting-transfer-manager{margin:0!important}
.tasting-draft-delete{display:block!important;width:max-content!important;max-width:100%;margin:20px 0 0!important;padding:7px 0!important;min-height:34px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8b3348!important;text-decoration:underline;text-underline-offset:4px;font-size:13px!important}

.collection-drink-wide{display:block!important;width:100%!important;min-height:52px!important;margin:12px 0 0!important;border-radius:18px!important;background:#2f6653!important;color:#fff!important;font-weight:700!important}
.collection-drink-wide:disabled{opacity:.45!important}
.collection-drink-return{display:grid;gap:6px;margin:12px 0 0}
.collection-drink-return>button{width:100%!important;min-height:50px!important;border-radius:18px!important;background:#eef4ef!important;color:#315d4d!important;font-weight:700!important}
.collection-drink-return>small{padding:0 4px;color:#77817c}

.collection-primary-actions .collection-permanent-delete{grid-column:1/-1;width:100%;margin-top:8px!important}

.wine-passport-tried{margin-top:0;padding-top:15px}
.wine-passport-tried input:disabled{opacity:.55}
.tasting-participant-dialog header{align-items:flex-start!important}
.tasting-participant-kicker{display:block;margin:2px 0 6px;color:#8a3148;font-size:11px;font-weight:800;letter-spacing:.16em}
.tasting-participant-context{margin:0 0 18px;padding:14px 16px;border-radius:18px;background:#f5ecef}
.tasting-participant-context h3{margin:0 0 6px}
.tasting-participant-context p{margin:0 0 5px}
.tasting-participant-context small{color:#867980}
.tasting-participant-feedback{margin:0;padding:0;background:transparent}
.tasting-feedback-state:empty{display:none}
.tasting-feedback-sample{margin:0 0 18px;padding:18px;border:1px solid #eadfe2;border-radius:22px;background:#fff}
.tasting-feedback-sample h3{margin:5px 0 18px}
.tasting-score-required{outline:2px solid #8a3148;outline-offset:2px}
.tasting-participant-dialog footer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.tasting-participant-dialog footer button{min-height:52px!important;white-space:normal!important}
.tasting-feedback-later{background:#f3ebee!important;color:#7d2b42!important}
.tasting-session-card{position:relative}
.tasting-stop-top{position:absolute;top:18px;right:18px;z-index:2;border:0;background:transparent;color:#8a3148;font-size:11px;font-weight:800;letter-spacing:.08em;padding:8px 0}
.tasting-session-card.tasting-live .tasting-card-open{padding-top:54px}
@media(max-width:360px){.tasting-participant-dialog footer{grid-template-columns:1fr!important}}

.tasting-save-state{height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;visibility:hidden!important}

/* Unified tasting rating card */
.tasting-note-tags{margin:16px 0 20px;padding:14px 15px;border-radius:18px;background:#fff8fa;border:1px solid #eadde1}
.tasting-note-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:10px}
.tasting-note-heading>b{color:#7c263d;font-size:14px}.tasting-note-heading small{color:#9a8d91;font-size:11px;text-align:right}
.tasting-note-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 10px}
.tasting-note-chip{display:inline-flex!important;align-items:center;gap:7px!important;min-height:32px!important;padding:6px 10px!important;border:0!important;border-radius:999px!important;background:#f2e8eb!important;color:#713248!important;font-size:12px!important}
.tasting-note-chip i{font-style:normal;opacity:.55}
.tasting-note-input{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px}
.tasting-note-input input{box-sizing:border-box;width:100%;height:42px;border:0;border-radius:13px;background:#fff;padding:0 13px;color:#262126;font:inherit;outline:none}
.tasting-note-input button{width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:13px!important;background:#7c263d!important;color:#fff!important;font-size:22px!important}

.tasting-sliders-unified{display:grid;gap:4px}
.tasting-score-control{position:relative;display:block!important;margin:0!important;padding:17px 0 15px!important;border-bottom:1px solid #eee2e5}
.tasting-score-control:last-child{border-bottom:0}
.tasting-slider-label{display:flex!important;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px!important}
.tasting-slider-label>b{font-size:14px;color:#30262a}.tasting-slider-label output{font-size:12px;color:#7c263d;font-variant-numeric:tabular-nums;text-align:right}
.tasting-score-control input[type=range]{display:block;width:100%;min-height:36px;accent-color:#7c263d;margin:0}
.tasting-scale-ends{display:flex;justify-content:space-between;gap:10px;margin-top:-4px;color:#a19599;font-size:10px;line-height:1.25}
.tasting-scale-ends span:last-child{text-align:right}
.tasting-score-current{box-sizing:border-box;min-height:78px;margin-top:8px;padding:10px 12px;border-radius:13px;background:#faf6f7;color:#76686e;font-size:12px;line-height:1.42}
.tasting-score-current b{display:block;color:#7c263d;font-size:13px;margin-bottom:3px}
.tasting-score-current span{display:block}
.tasting-score-clear{position:absolute;right:0;top:12px;width:25px!important;height:25px!important;min-height:25px!important;padding:0!important;border:0!important;background:transparent!important;color:#a7989d!important;font-size:20px!important}
.tasting-rating-summary{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;margin:15px 0 20px;padding:14px 15px;border-radius:16px;background:#f1e5e9;color:#6f2a40}
.tasting-rating-summary:empty{display:none}
.tasting-rating-summary>span{font-size:12px;font-weight:700}.tasting-rating-summary>b{font-size:18px;font-variant-numeric:tabular-nums}
.tasting-rating-summary>small{grid-column:1/-1;color:#8b737b;font-size:11px;line-height:1.4}
.tasting-score-required{outline:2px solid #963e55!important;outline-offset:2px}

/* Participant progress: inline, expandable, no extra modal. */
.tasting-participant-progress{padding:0!important;overflow:hidden}
.tasting-participant-progress>b{display:block;padding:14px 16px 10px;margin:0!important}
.tasting-participant-rows{display:block!important}
.tasting-participant-row{margin:0;padding:0 16px;border-top:1px dashed #dbc9cf}
.tasting-participant-row summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;cursor:pointer}
.tasting-participant-row summary::-webkit-details-marker{display:none}
.tasting-participant-row summary>span{display:flex;align-items:center;gap:8px;min-width:0}
.tasting-participant-row summary>span i{display:block;width:8px;height:8px;border-radius:50%;background:#a9a0a3;flex:none}
.tasting-participant-row[data-state=submitted] summary>span i{background:#42755d}
.tasting-participant-row[data-state=in_progress] summary>span i{background:#b68443}
.tasting-participant-row[data-state=exempt] summary>span i{background:#958a90}
.tasting-participant-row summary b{overflow-wrap:anywhere}
.tasting-participant-row summary em{font-style:normal;color:#8b737b;font-size:12px;white-space:nowrap}
.tasting-participant-rating-list{padding:2px 0 14px}
.tasting-participant-rating{padding:12px 0;border-top:1px solid #eee4e7}.tasting-participant-rating:first-child{border-top:0}
.tasting-participant-rating h4{margin:4px 0 10px}.tasting-participant-rating>small{color:#8a3148;font-size:10px;letter-spacing:.08em}.tasting-my-feedback{margin-top:10px;min-height:40px;padding:9px 14px;border:1px solid #b98695;border-radius:999px;background:#fff;color:#7f2942;font-weight:800}
.tasting-participant-empty{margin:0 0 12px;color:#95898e;font-size:12px}

/* LIVE card header */
.tasting-card-statusline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
.tasting-card-statusline>div{display:flex;align-items:center;gap:8px;min-width:0}.tasting-card-statusline small{color:#806f75;font-size:11px}
.tasting-stop-inline{flex:none!important;min-height:28px!important;padding:4px 0!important;border:0!important;background:transparent!important;color:#8a3148!important;font-size:10px!important;font-weight:800!important;letter-spacing:.09em!important}
.tasting-session-card.tasting-live .tasting-card-open{padding-top:0!important}

/* Settings and passport controls */
.tasting-settings.mtc-icon-button{background:transparent!important;color:#80283e!important;border:1px solid rgba(128,40,62,.26)!important;box-shadow:none!important}
.tasting-settings-actions{display:grid;gap:0;margin-top:16px;border-top:1px solid #eadde1}
.tasting-settings-actions .tasting-cancel-link{width:100%;margin:0!important;padding:13px 0!important;border:0!important;border-bottom:1px dashed #dcc9cf!important;border-radius:0!important;background:transparent!important;color:#8a3148!important;text-align:left!important}
.tasting-owner-no-rate>span{white-space:normal!important;display:grid;gap:3px}.tasting-owner-no-rate small{color:#8e8488;font-size:11px;line-height:1.35}
.tasting-wine-passport-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:10px 0 4px!important;border:1px solid #e3d4d9!important;border-radius:50%!important;background:#fff8fa!important;color:#80283e!important}
.tasting-educational .tasting-wine-passport-icon{background:#fff8fa!important;color:#80283e!important}
.tasting-card-skeleton{padding:6px 0}.tasting-card-skeleton>i,.tasting-card-skeleton section i{display:block;border-radius:8px;background:linear-gradient(100deg,#eadfe2 25%,#f8f4f5 45%,#eadfe2 65%);background-size:220% 100%;animation:collection-skeleton-shimmer 1.6s ease-in-out infinite}
.tasting-card-skeleton .skeleton-kicker{width:34%;height:12px;margin-bottom:13px}.tasting-card-skeleton .skeleton-title{width:68%;height:26px;margin-bottom:15px}
.tasting-card-skeleton .skeleton-line{width:92%;height:14px;margin:9px 0}.tasting-card-skeleton .skeleton-line.short{width:58%}
.tasting-card-skeleton section{margin-top:20px;padding:16px;border-radius:18px;background:#fff}.tasting-card-skeleton section i{height:18px;margin:10px 0}

.tasting-result-scores{display:grid;gap:9px;margin-top:12px}.tasting-result-tags{display:flex;flex-wrap:wrap;gap:6px}
.tasting-result-score{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:9px 0;border-top:1px solid #eee5e7}
.tasting-result-score>span{font-size:12px;color:#74666b}.tasting-result-score>b{font-size:12px;color:#6e2a40;text-align:right}
.tasting-result-score>small{grid-column:1/-1;color:#94868b;font-size:11px;line-height:1.35}
.tasting-result-total{display:grid;gap:3px;margin-top:5px;padding:11px 12px;border-radius:13px;background:#f1e5e9}.tasting-result-total>b{color:#702b40}.tasting-result-total small{color:#8b737b;font-size:11px}

/* 2026-09-24 tasting ergonomics */
.tasting-sample-tabs{position:sticky;top:-1px;z-index:4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0 14px;padding:9px 0 10px;background:#f7f6f7;border-bottom:1px solid #eadfe2}
.tasting-sample-tabs button{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:5px!important;min-width:0!important;min-height:42px!important;padding:7px 5px!important;border:1px solid #e5d9dd!important;border-radius:12px!important;background:#fff!important;color:#806f75!important;font-size:11px!important}
.tasting-sample-tabs button b{font-size:14px}.tasting-sample-tabs button.active{background:#7c2d44!important;border-color:#7c2d44!important;color:#fff!important}
.tasting-impressions [data-sample-panel][hidden]{display:none!important}
@media(max-width:380px){.tasting-sample-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}

.tasting-wine-subrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:1px 0 10px;min-height:34px}
.tasting-wine-subrow>small{flex:1;min-width:0;color:#7b7376;font-size:13px;line-height:1.4}
.tasting-wine-subrow .tasting-wine-passport-icon{flex:none!important;width:32px!important;height:32px!important;min-height:32px!important;margin:0!important}

.tasting-note-tags{width:100%;box-sizing:border-box;margin:20px 0!important}
.tasting-note-heading>b{font-size:16px!important}.tasting-note-heading small{font-size:12px!important}
.tasting-sliders-unified{display:grid!important;gap:0!important;width:100%!important}
.tasting-score-control{box-sizing:border-box;width:100%!important;margin:0!important;padding:20px 0 18px!important}
.tasting-slider-label{display:grid!important;grid-template-columns:minmax(82px,1fr) minmax(120px,1.45fr);align-items:start!important;gap:14px!important;min-height:36px;margin:0 0 10px!important}
.tasting-slider-label label{display:block!important;margin:0!important;padding:0!important}
.tasting-slider-label label b{font-size:16px!important;line-height:1.28!important;color:#30262a!important}
.tasting-slider-value{display:flex;align-items:flex-start;justify-content:flex-end;gap:12px;min-width:0}
.tasting-slider-value output{font-size:14px!important;line-height:1.3!important;color:#7c263d!important;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.tasting-score-clear{position:static!important;display:grid!important;place-items:center!important;flex:0 0 28px!important;width:28px!important;height:28px!important;min-height:28px!important;margin:-3px 0 0!important;padding:0!important;border:1px solid #dbe5df!important;border-radius:50%!important;background:#f1f5f2!important;color:#567160!important;font-size:17px!important;font-weight:500!important;line-height:1!important}
.tasting-score-clear:hover,.tasting-score-clear:active{background:#e9f0eb!important}
.tasting-range-wrap{box-sizing:border-box;width:auto;margin:0 12px;overflow:visible}
.tasting-range-wrap input[type=range]{display:block!important;width:calc(100% + 24px)!important;margin:0 0 0 -12px!important;min-height:38px!important;padding:0!important;accent-color:#7c263d}
.tasting-scale-ends{margin-top:-3px!important;font-size:11px!important}
.tasting-score-current{box-sizing:border-box;width:100%!important;min-height:88px!important;margin-top:10px!important;padding:13px 14px!important;border-radius:15px!important;font-size:14px!important;line-height:1.45!important}
.tasting-score-current b{font-size:16px!important;margin-bottom:4px!important}
.tasting-sliders-overall .tasting-score-control{border-top:1px solid #eee2e5}
.tasting-score-control[data-rating-control=overall] .tasting-slider-label label b{display:block;min-height:41px}.tasting-overall-label{display:block;width:11ch;max-width:100%;white-space:normal}
.tasting-rating-summary{width:100%;box-sizing:border-box}
@media(max-width:350px){.tasting-slider-label{grid-template-columns:minmax(78px,.85fr) minmax(112px,1.15fr);gap:8px}.tasting-slider-value{gap:7px}.tasting-slider-value output{font-size:13px!important}}

.tasting-cancelled-actions{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:18px}
.tasting-cancelled-actions button{display:block!important;width:max-content!important;min-height:32px!important;margin:0!important;padding:5px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8b757b!important;font-size:13px!important;text-decoration:underline dashed;text-underline-offset:5px}

/* Exact slider endpoints: the painted rail runs between the thumb centres. */
.tasting-range-wrap{margin:0!important;overflow:visible!important}
.tasting-range-wrap input[type=range]{
 -webkit-appearance:none!important;appearance:none!important;display:block!important;width:100%!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;
 background:linear-gradient(to right,#8a2e47 0 var(--score-position),#dedde0 var(--score-position) 100%) center/ calc(100% - 28px) 5px no-repeat!important;
}
.tasting-range-wrap input[type=range]::-webkit-slider-runnable-track{height:5px;background:transparent;border:0}
.tasting-range-wrap input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-11.5px;border:1px solid #e1dfe1;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002}
.tasting-range-wrap input[type=range]::-moz-range-track{height:5px;background:transparent;border:0}
.tasting-range-wrap input[type=range]::-moz-range-progress{height:5px;background:transparent}
.tasting-range-wrap input[type=range]::-moz-range-thumb{width:28px;height:28px;border:1px solid #e1dfe1;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002}
.tasting-scale-ends{padding:0 14px!important}

/* Bottle action hierarchy */
.collection-drink-wide{width:min(260px,56%)!important;min-height:46px!important;margin:14px auto 10px!important;border-radius:15px!important;padding:9px 18px!important;font-size:15px!important}
.collection-archive-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
.collection-archive-actions>button{height:64px!important;min-height:64px!important;margin:0!important;padding:8px 6px!important;display:grid!important;place-items:center!important;line-height:1.18!important;white-space:normal!important}
.collection-archive-actions .collection-permanent-delete{grid-column:auto!important;width:auto!important;margin:0!important}
.collection-purchase{margin-bottom:20px!important}
.collection-purchase>h3{margin-bottom:8px!important}
.collection-purchase-facts{overflow:hidden;border:1px solid #e4e9e5;border-radius:17px;background:#fff}
.collection-purchase-facts>div{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:14px;align-items:center;min-height:54px;padding:11px 14px;border-top:1px solid #edf0ee}
.collection-purchase-facts>div:first-child{border-top:0}
.collection-purchase-facts span{color:#7a847e;font-size:12px;line-height:1.35}
.collection-purchase-facts b{min-width:0;color:#293a32;font-size:14px;line-height:1.35;text-align:right;overflow-wrap:anywhere}
.collection-purchase-facts b>small{display:block;margin-top:3px;color:#8c948f;font-size:11px;font-weight:500;line-height:1.3}
@media(max-width:360px){.collection-purchase-facts>div{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px;padding-inline:12px}}
@media(max-width:360px){.collection-drink-wide{width:min(250px,64%)!important}.collection-archive-actions>button{font-size:13px!important}}

/* Unrated sliders show an exact visual midpoint, independent of the discrete scale step. */
.tasting-range-wrap{position:relative}
.tasting-range-wrap.is-unrated input[type=range]::-webkit-slider-thumb{opacity:0}
.tasting-range-wrap.is-unrated input[type=range]::-moz-range-thumb{opacity:0}
.tasting-range-wrap.is-unrated::after{
 content:'';position:absolute;left:50%;top:50%;width:28px;height:28px;transform:translate(-50%,-50%);
 border:1px solid #e1dfe1;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;pointer-events:none;box-sizing:border-box
}

/* Sample reset and completed-tasting action layout. */
.tasting-sample-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.tasting-reset-sample{flex:none!important;width:max-content!important;min-height:28px!important;margin:0!important;padding:3px 0!important;border:0!important;border-bottom:1px dashed currentColor!important;border-radius:0!important;background:transparent!important;color:#88a99a!important;font-size:12px!important;font-weight:500!important;line-height:1.2!important;text-transform:none!important}
.tasting-post-actions{display:grid!important;justify-items:start!important;gap:0!important;margin:14px 0 2px!important}
.tasting-post-actions .tasting-resume-results,.tasting-post-actions .tasting-cancel-link{display:block!important;margin:0!important}

/* Tasting single-flow setup */
.tasting-setup-shell{display:grid;gap:14px}
.tasting-setup-card,.tasting-advanced{box-sizing:border-box;background:#fff;border:1px solid #e5e8e5;border-radius:20px;padding:16px}
.tasting-setup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#233a30;font-weight:800}
.tasting-setup-heading>b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:999px;background:#e7efe9;color:#315b49;font-size:12px}
.tasting-setup-wines .tasting-selected:empty::before{content:'Добавьте хотя бы одно вино';display:block;padding:10px 0;color:#8b918d;font-size:13px}
.tasting-wine-picker{margin:12px 0 0!important}
.tasting-wine-picker>summary,.tasting-advanced>summary{font-size:15px;font-weight:750;color:#315b49}
.tasting-wine-picker .tasting-source{margin-top:14px}
.tasting-secondary-link{margin-top:10px!important;padding:8px 0!important;border:0!important;background:transparent!important;color:#7c2633!important;text-align:left!important;font-size:13px!important}
.tasting-advanced{margin:0!important}
.tasting-format-hint,.tasting-reserve-note{font-size:12px;line-height:1.45;color:#7c827e}
.tasting-wizard footer [data-tasting-primary]{background:#315b49!important;color:#fff!important;font-weight:800}
.tasting-wizard footer [data-close-setup]{background:#fff!important;color:#315b49!important}
@media(max-width:480px){.tasting-setup-card,.tasting-advanced{padding:14px;border-radius:18px}.tasting-wizard footer [data-tasting-primary]{flex:1.4 1 160px}}

/* Tasting: characteristic labels and clear controls. */
.tasting-score-control .tasting-slider-label{grid-template-columns:minmax(0,1fr)!important;gap:7px!important;min-height:0}
.tasting-score-control .tasting-score-clear{margin:0!important}
.tasting-score-control .tasting-score-clear[hidden]{display:none!important}
.collection-dialog.tasting-wizard .tasting-reset-sample,.collection-dialog.tasting-participant-wizard .tasting-reset-sample{background:transparent!important;box-shadow:none!important;border:0!important;color:#526d5f!important;text-decoration-line:underline;text-decoration-style:dashed;text-decoration-color:currentColor;text-underline-offset:4px}
.collection-dialog.tasting-wizard .tasting-wine-passport-icon,.collection-dialog.tasting-participant-wizard .tasting-wine-passport-icon{display:inline-grid!important;flex:none!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;vertical-align:middle}
.collection-dialog.tasting-wizard .tasting-wine-passport-icon svg,.collection-dialog.tasting-participant-wizard .tasting-wine-passport-icon svg{width:28px!important;height:28px!important}
.tasting-wine-title-tail{display:inline-block;white-space:nowrap;vertical-align:middle}

/* Keep the description above the thumb, with a stable height for every score. */
.tasting-score-control .tasting-score-panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr);margin:0 0 12px!important}
.tasting-score-panel-content,.tasting-score-panel-sizer{grid-area:1 / 1;min-width:0;align-self:start;overflow-wrap:anywhere}
.tasting-score-panel-sizer{visibility:hidden;pointer-events:none;user-select:none}
.tasting-score-panel .tasting-score-panel-title{box-sizing:border-box;display:block;min-height:28px;padding-right:38px;margin:0 0 4px;font-size:16px!important;line-height:1.4!important;font-weight:700;color:#7c263d!important;font-variant-numeric:tabular-nums;text-align:left;white-space:normal}
.tasting-score-control .tasting-score-panel .tasting-score-clear{position:absolute!important;right:14px;top:13px;margin:0!important}

/* About tasting: compact overview and primary action in the fixed header. */
.collection-dialog.tasting-wizard>article>header button.tasting-settings.mtc-icon-button{background:transparent!important;color:#80283e!important;border:1px solid #c5a4af!important;box-shadow:none!important}
.collection-dialog.tasting-wizard>article>header button.tasting-settings.mtc-icon-button svg{color:#80283e!important;stroke:#80283e!important;fill:none!important}
.tasting-info-dialog>article>header{z-index:5;overflow:visible!important}
.tasting-info-action{position:static;max-width:100%;z-index:6}
.tasting-info-action .collection-tools{display:block!important;margin:0!important;padding:0!important}
.collection-dialog.tasting-info-dialog>article>header .tasting-info-action button{position:static!important;display:block!important;width:auto!important;height:auto!important;min-height:44px;max-width:100%;padding:12px 17px!important;border:0!important;border-radius:22px!important;background:#80283e!important;color:#fff!important;font-size:14px!important;line-height:1.25;white-space:normal;box-shadow:0 5px 16px #57243626!important}
.tasting-info-dialog>article>footer:empty{display:none!important}
.tasting-info-summary{margin:0 0 12px}
.tasting-info-summary h3{margin:0 0 5px!important;font-size:21px!important;line-height:1.2!important}
.tasting-info-summary time{display:block;font-size:12px;color:#7d7478}
.tasting-info-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:9px;color:#786870;font-size:12px}
.tasting-info-summary p{font-size:13px!important;line-height:1.4!important;margin:7px 0 0!important}
.tasting-info-notes{white-space:pre-line}
.tasting-info-place{margin-top:8px;font-size:13px}
.tasting-info-dialog .tasting-participant-progress{margin:12px 0 16px}
.tasting-info-dialog .tasting-participant-progress>b{font-size:14px;padding:12px 14px 9px}
.tasting-info-dialog .tasting-participant-row{padding:0 14px}
.tasting-info-dialog .tasting-participant-row summary{padding:10px 0;gap:8px;min-height:44px;box-sizing:border-box}
.tasting-info-dialog .tasting-participant-row summary em{font-size:12px;flex-shrink:0}
.tasting-info-dialog .tasting-impressions{gap:12px}
.tasting-info-dialog .tasting-impressions>section{padding:16px!important;border-radius:20px!important}
.tasting-info-dialog .tasting-impressions h3{font-size:18px!important;line-height:1.35!important;margin:5px 0 6px!important}
.tasting-info-dialog .tasting-impressions section>p{margin:6px 0 0!important;font-size:14px!important;line-height:1.4}
.tasting-info-dialog .tasting-sample-number{font-size:10px!important}
.tasting-sliders-overall .tasting-score-control:first-child{border-top:0;padding-top:10px!important}
/* The primary action must not inherit the generic wizard close glyph. */
.collection-dialog.tasting-info-dialog>article>header .tasting-info-action button::after,.collection-dialog.tasting-info-dialog>article>header .tasting-info-action button::before{content:none!important;display:none!important}

.collection-dialog.tasting-wizard.tasting-info-dialog.has-tasting-info-action>article>header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px auto;gap:4px 8px;padding:14px 18px!important}
.tasting-info-dialog.has-tasting-info-action>article>header>div:first-child{display:contents}
.tasting-info-dialog.has-tasting-info-action>article>header>div:first-child>small{grid-area:1 / 1;align-self:center}
.collection-dialog.tasting-wizard.tasting-info-dialog.has-tasting-info-action>article>header h2{grid-area:2 / 1 / 3 / -1;align-self:center;min-width:0;margin:0!important;font-size:clamp(18px,5vw,22px)!important}
.tasting-info-summary h3{overflow-wrap:anywhere}

.tasting-info-toolbar{grid-area:1 / 2;display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.tasting-info-toolbar>*{order:0!important;flex:none}
.collection-dialog.tasting-wizard.tasting-info-dialog.has-tasting-info-action>article>header .tasting-info-toolbar>button.mtc-icon-button{position:static!important;margin:0!important;inset:auto!important}
@media(max-width:360px){.tasting-info-dialog.has-tasting-info-action>article>header>div:first-child>small{display:none}.tasting-info-dialog.has-tasting-info-action .tasting-info-toolbar{grid-column:1 / -1}}

/* Companion wizard language: Wine is the reference shell for cellar and tasting setup. */
.collection-dialog.collection-add-wizard>article,.collection-dialog.tasting-wizard.companion-wizard:not(.tasting-info-dialog)>article{grid-template-rows:auto auto minmax(0,1fr) auto!important}
.collection-dialog.collection-add-wizard header,.collection-dialog.tasting-wizard.companion-wizard:not(.tasting-info-dialog) header{padding:25px 76px 18px 28px!important;min-height:0!important}
.collection-dialog.collection-add-wizard header small,.collection-dialog.tasting-wizard.companion-wizard:not(.tasting-info-dialog) header small{display:block;margin:0 0 11px!important;font-size:11px!important;font-weight:850!important;letter-spacing:.15em!important}
.collection-dialog.collection-add-wizard header h2,.collection-dialog.tasting-wizard.companion-wizard:not(.tasting-info-dialog) header h2{margin:0!important;font-size:30px!important;line-height:1.08!important;letter-spacing:-.03em!important}
.collection-dialog.collection-add-wizard .companion-stepbar,.collection-dialog.tasting-wizard.companion-wizard .companion-stepbar{height:3px;background:#dedee3}
.collection-dialog.collection-add-wizard .companion-stepbar i{display:block;height:100%;background:#315b49;transition:width .25s}
.collection-dialog.tasting-wizard.companion-wizard .companion-stepbar i{display:block;height:100%;background:#80283e;transition:width .25s}
.companion-wizard-lead{margin:0 0 20px;color:#6f7471;font-size:15px;line-height:1.5}
.collection-wizard-links{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.collection-wizard-links button{min-height:42px!important;padding:9px 13px!important;font-size:13px!important}
.collection-add-extra{margin:18px 0 0}
.collection-add-extra summary{padding:14px 4px;color:#315b49;font-weight:700;cursor:pointer}
.collection-add-summary{display:grid;gap:5px;margin-top:18px;padding:16px;border-radius:18px;background:#fff}
.collection-add-summary small{color:#315b49;font-size:10px;font-weight:850;letter-spacing:.12em}
.collection-add-summary b{font-size:16px;line-height:1.35}
.collection-add-summary span{color:#69746e;font-size:13px}
.collection-add-wizard footer>button:only-child,.tasting-wizard.companion-wizard footer>button:only-child{width:100%;flex:1 1 100%!important}
.tasting-wizard.companion-wizard .tasting-setup-people .tasting-companions{padding:0}
.tasting-wizard.companion-wizard .tasting-setup-people .tasting-companions>b{display:none}
@media(max-width:600px){.collection-dialog.collection-add-wizard header,.collection-dialog.tasting-wizard.companion-wizard:not(.tasting-info-dialog) header{padding:24px 72px 18px 20px!important}.collection-dialog.collection-add-wizard header h2,.collection-dialog.tasting-wizard.companion-wizard:not(.tasting-info-dialog) header h2{font-size:29px!important}}

/* Main search controls follow the Wines reference, including reset hitbox height. */
#hub-section .wine-sort-caption{box-sizing:border-box;margin:2px 0 7px!important;padding:0 0 0 3px!important;line-height:normal!important}
#hub-section .wine-sort-icon{flex:0 0 52px!important;width:52px!important;box-sizing:border-box}
#hub-section .wine-sort-caption .wine-reset{display:flex;justify-content:center;flex:0 0 52px;box-sizing:border-box;width:52px!important;min-width:52px!important;margin-left:auto;white-space:nowrap;min-height:auto!important;height:auto!important;padding:4px 0!important;font-size:12px!important;font-weight:400!important;line-height:normal!important}
#hub-section .wine-library-controls{margin:0 0 20px!important;padding:0!important;overflow:visible!important}
#hub-section .wine-filter-chips{display:flex!important;gap:2px!important;padding:3px!important}
#hub-section .wine-filter-chips button{flex:1 1 0!important;min-width:0!important;min-height:auto!important;width:auto!important;height:auto!important;padding:7px 3px!important;font-size:11.5px!important;line-height:normal!important}
.profile-edit-logout{margin-top:24px;padding-top:18px;border-top:1px solid #ddd}
.profile-edit-logout .profile-danger{margin-top:0;width:100%}

/* Bottle detail polish: one stable skeleton, stronger instance hierarchy, cleaner actions. */
.collection-bottle-loading>article:not(.collection-bottle-loading-card){visibility:hidden!important}
.collection-bottle-loading-card{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;height:100%!important;background:#f7f7f9!important}
.collection-bottle-skeleton-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:0 14px!important;padding:calc(18px + env(safe-area-inset-top)) 20px 18px!important;background:#fff!important}
.collection-bottle-skeleton-identity{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.collection-bottle-skeleton-identity i,.collection-bottle-skeleton-identity b,.collection-bottle-skeleton-identity em,
.collection-bottle-skeleton-instance i,.collection-bottle-skeleton-instance b,.collection-bottle-skeleton-instance em,.collection-bottle-skeleton-instance span,
.collection-bottle-skeleton-actions i,.collection-bottle-skeleton-drink,.collection-bottle-skeleton-map,.collection-bottle-skeleton-section i,.collection-bottle-skeleton-section b{
 display:block;border-radius:999px;background:linear-gradient(100deg,#e4ebe6 20%,#f3f6f4 42%,#e4ebe6 64%);background-size:220% 100%;animation:wine-loading-shimmer 1.15s linear infinite
}
.collection-bottle-skeleton-identity i{width:86px;height:10px}
.collection-bottle-skeleton-identity b{width:min(520px,88%);height:30px;border-radius:10px}
.collection-bottle-skeleton-identity em{width:min(360px,62%);height:18px}
.collection-bottle-skeleton{display:grid!important;align-content:start;gap:12px;padding:16px!important;background:#f7f7f9}
.collection-bottle-skeleton-instance{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;padding:22px;border:1px solid #d8e3db;border-radius:22px;background:#edf4ef}
.collection-bottle-skeleton-instance>div{display:grid;gap:9px}
.collection-bottle-skeleton-instance i{width:90px;height:10px}
.collection-bottle-skeleton-instance b{width:150px;height:28px;border-radius:9px}
.collection-bottle-skeleton-instance em{width:76px;height:38px;align-self:start}
.collection-bottle-skeleton-instance span{grid-column:1/-1;height:15px}.collection-bottle-skeleton-instance span:last-child{width:72%}
.collection-bottle-skeleton-actions{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:8px}.collection-bottle-skeleton-actions i{height:52px;border-radius:15px}
.collection-bottle-skeleton-drink{height:54px;border-radius:16px!important}
.collection-bottle-skeleton-map{height:190px;border-radius:20px!important;background:linear-gradient(135deg,#dfe9dc,#f0e8d1 48%,#d8e3d6)!important}
.collection-bottle-skeleton-section{display:grid;gap:13px;padding:19px;border-radius:18px;background:#fff}.collection-bottle-skeleton-section i{width:110px;height:11px}.collection-bottle-skeleton-section b{height:14px}.collection-bottle-skeleton-section b:last-child{width:70%}

.collection-bottle .collection-instance{display:grid!important;gap:18px!important;margin:0 0 10px!important;padding:20px 22px!important;border:1px solid #d2dfd6!important;border-radius:22px!important;background:linear-gradient(180deg,#edf4ef 0%,#e7efe9 100%)!important;color:#243f31!important;box-shadow:inset 0 1px 0 #fff9}
.collection-instance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.collection-instance-code{min-width:0}.collection-instance-code small{display:block;color:#728078!important;font-size:10px!important;font-weight:750;letter-spacing:.12em}.collection-instance-code h3{margin:5px 0 0!important;font-size:24px!important;line-height:1.12!important;letter-spacing:.01em}
.collection-instance-facts{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:7px 16px!important;align-items:center!important;text-align:left!important;font-size:14px!important}
.collection-instance-volume{font-size:18px!important;line-height:1.2}.collection-instance-condition{color:#315b49!important;font-weight:650}.collection-instance-location{grid-column:1/-1;color:#68756e!important;line-height:1.35}
.collection-instance .collection-reserve-action{flex:none!important;justify-self:auto!important;min-height:38px!important;padding:7px 12px!important;border:1px solid #aac0b1!important;border-radius:12px!important;background:#fff!important;color:#315b49!important;font-size:12px!important;font-weight:750!important;box-shadow:0 1px 0 #fff8!important}
.collection-instance .collection-reserve-action[data-instance-action="unreserve"]{background:#dce9e0!important;border-color:#8cab98!important}
.collection-instance .collection-reserve-action:disabled{background:#eef1ef!important;border-color:#d4ddd7!important;color:#849088!important;opacity:1!important}
.collection-reservation{margin:0 0 10px!important;padding:11px 14px!important;border-radius:13px!important}

.collection-primary-actions{margin:8px 0 8px!important}
.collection-primary-actions:has([data-taste-bottle]){gap:8px!important}
.collection-primary-actions:has([data-taste-bottle]) button{min-height:52px!important;border-radius:15px!important;padding:10px 7px!important}
.collection-drink-wide{display:block!important;width:100%!important;min-height:54px!important;margin:0 0 20px!important;padding:10px 18px!important;border-radius:16px!important;background:#2f6653!important;color:#fff!important;font-size:16px!important;font-weight:750!important}
.collection-drink-wide:disabled{opacity:.45!important}
.collection-drink-return{margin:0 0 20px!important}

@media(max-width:450px){
 .collection-bottle-skeleton-header{padding-left:17px!important;padding-right:17px!important}
 .collection-bottle .collection-instance{padding:18px!important}
 .collection-instance-head{align-items:center}
 .collection-instance-code h3{font-size:21px!important}
 .collection-instance-facts{grid-template-columns:auto minmax(0,1fr)!important}
}

/* Overall remains mandatory via validation/aria-required; keep its visible label quiet and compact. */
.tasting-score-control[data-rating-control=overall] .tasting-slider-label label b{min-height:0!important}
.tasting-overall-label{display:inline!important;width:auto!important;max-width:none!important;white-space:normal}

/* Tasting info: keep passport action out of the wine title so long names use full width. */
.tasting-info-dialog .tasting-info-sample-toolbar{min-height:36px;margin:0 0 3px;align-items:center}
.collection-dialog.tasting-info-dialog .tasting-info-sample-toolbar .tasting-wine-passport-icon{display:grid!important;place-items:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid #d9e6de!important;border-radius:50%!important;background:#eef5f0!important;color:#315b49!important;box-shadow:none!important}
.collection-dialog.tasting-info-dialog .tasting-info-sample-toolbar .tasting-wine-passport-icon svg{width:22px!important;height:22px!important;color:#315b49!important;stroke:currentColor!important}
.tasting-info-dialog .tasting-info-sample-toolbar+h3{margin:2px 0 4px!important}
.tasting-info-dialog .tasting-info-sample-toolbar+h3+p{margin-top:4px!important}
