/* SIP IT journey screens: find / ideas / drink / cook / cookbook / cart. Prefixes: find- idea(s)- drink- cook- cb- cart- art- */
.pad-x { padding-left: var(--pad); padding-right: var(--pad); }
.find, .ideas, .cb, .cart, .cook { background: radial-gradient(520px 320px at 85% -40px, #5a1a1f55, transparent 70%), radial-gradient(420px 260px at -10% 38%, #2a181066, transparent 70%); min-height: 100%; padding-bottom: 28px; }
.find-lead { color: var(--muted); margin-top: 8px; font: italic 18px/26px var(--serif); }
.find-head .h1, .ideas-head .h1, .cb-head .h1, .cart-head .h1 { margin-top: 6px; }
.find-block { margin-top: 24px; }
.find-h { font: 400 21px/28px var(--serif); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.find-h::after { content: ""; flex: 1 1 24px; height: 1px; background: linear-gradient(90deg, #c9a24b88, transparent); order: 9; min-width: 24px; }
.find-h .badge { order: 2; }
.find-help { margin-top: 8px; }
.find-sub { font-weight: 600; margin-top: 18px; margin-bottom: 8px; }

/* scan card */
.find-scan { display: flex; gap: 14px; padding: 16px; position: relative; overflow: hidden; border-color: #c9a24b66; background: linear-gradient(135deg, #3a1014, #1A0F0C 70%); }
.find-scan.is-off { background: linear-gradient(135deg, #24120f, #150c09 70%); border-style: dashed; border-color: #6b5530; }
.find-scan.is-off .find-scan-ic { opacity: .55; }
.find-scan-ic { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #c9a24b99; color: var(--gold-hi); }
.find-scan-body { flex: 1; min-width: 0; }
.find-scan-body .find-h { margin-bottom: 4px; font-size: 19px; }
.find-scan-body .find-h::after { display: none; }
.find-scan-body .btn { margin-top: 12px; }
.find-file { position: relative; }
.find-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.find-file:focus-within { outline: 3px solid var(--text); outline-offset: 2px; }
.find-scan-status { margin-top: 10px; color: var(--gold-hi); } .find-scan-status:empty { display: none; } .find-scan-status.err { color: var(--error); }
[aria-busy="true"] > .find-scan-body .find-scan-status::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--gold); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* entry */
.find-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.find-combo { position: relative; display: flex; gap: 8px; }
.find-input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 12px; background: #120a07; border: 1.5px solid #6b5530; color: var(--text); font-size: 17px; width: 100%; }
.find-input::placeholder { color: #8d7f6a; }
.find-input:focus { border-color: var(--gold-hi); outline: 3px solid #f3e9d855; outline-offset: 1px; }
.find-add { flex: 0 0 52px; height: 52px; border-radius: 12px; border: 0; background: linear-gradient(180deg, #d6b25a, #b98f3b); color: #1A0F0C; display: grid; place-items: center; cursor: pointer; }
.find-sugg { position: absolute; z-index: 10; top: 58px; left: 0; right: 60px; background: #1d1109; border: 1px solid var(--gold); border-radius: 12px; box-shadow: 0 16px 40px #000c; overflow: hidden; }
.find-sugg li { min-height: 48px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; border-bottom: 1px solid #3b2a1c; }
.find-sugg li:last-child { border-bottom: 0; }
.find-sugg li:hover, .find-sugg li[aria-selected="true"] { background: #c9a24b30; }
.find-sugg li[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--gold-hi); }
.find-note { margin-top: 8px; color: var(--gold-hi); min-height: 18px; }
.find-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.find-chip { display: inline-flex; align-items: center; min-height: 48px; padding-left: 16px; border-radius: 24px; border: 1px solid var(--gold); background: linear-gradient(180deg, #c9a24b30, #c9a24b14); }
.find-chip.ign { border-style: dashed; border-color: #8d7f6a; background: #1a0f0c; color: var(--muted); }
.fc-t { display: flex; flex-direction: column; padding: 4px 0; }
.fc-n { font-size: 13px; line-height: 16px; color: var(--muted); }
.fc-x { width: 48px; height: 48px; border: 0; background: none; color: var(--gold-hi); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.fc-x svg { width: 18px; height: 18px; }
.find-ex { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.find-ex .chip, .find-grp-in .chip { min-height: 48px; }
.find-ex .chip svg { width: 16px; height: 16px; }

/* shelf groups */
.find-grp { border: 1px solid #3b2a1c; border-radius: 14px; margin-bottom: 8px; background: linear-gradient(180deg, #22130d, #170d09); }
.find-grp summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; cursor: pointer; font: 400 18px/24px var(--serif); }
.find-grp summary::-webkit-details-marker { display: none; }
.find-grp summary::after { content: "+"; color: var(--gold-hi); font: 400 24px/1 var(--sans); margin-left: 10px; }
.find-grp[open] summary::after { content: "–"; }
.find-grp summary > span:first-child { flex: 1; }
.find-grp-in { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 16px; }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, #d6b25a, #b98f3b); color: #1A0F0C; border-color: var(--gold-hi); font-weight: 600; }

/* switches */
.find-row { display: flex; flex-wrap: wrap; gap: 10px; }
.find-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px 0 10px; border-radius: 24px; border: 1px solid #6b5530; background: #170d09; cursor: pointer; }
.sw-track { width: 44px; height: 26px; border-radius: 13px; background: #3b2a1c; position: relative; flex: none; transition: background .2s; border: 1px solid #6b5530; }
.sw-dot { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.find-switch[aria-checked="true"] { border-color: var(--gold); background: #c9a24b1c; }
.find-switch[aria-checked="true"] .sw-track { background: var(--velvet); border-color: var(--gold); }
.find-switch[aria-checked="true"] .sw-dot { transform: translateX(18px); background: var(--gold-hi); }
.find-switch[aria-checked="true"] .sw-label::after { content: " · on"; color: var(--gold-hi); }

.find-cta { margin-top: 28px; text-align: center; }
.find-cta .btn { margin-bottom: 4px; }
.find-menu { display: inline-flex; align-items: center; margin-top: 6px; }

/* ideas */
.idea-back { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; margin: -12px 0 4px -8px; padding: 0 8px; color: var(--gold-hi); text-decoration: none; }
.idea-back svg { width: 20px; height: 20px; }
.ideas-head { padding-bottom: 8px; }
.idea-note { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--gold); background: #c9a24b14; color: var(--text); }
.idea-filter { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--muted); }
.idea-gh { font: 400 22px/28px var(--serif); margin: 22px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.idea-gh::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #c9a24b88, transparent); order: 2; }
.idea-ul, .idea-skels { display: grid; gap: 18px; }
.idea-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid #3b2a1c; background: linear-gradient(180deg, var(--wood2), var(--wood)); box-shadow: 0 14px 34px #0009; animation: ideain .42s ease-out both; }
@keyframes ideain { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.idea-link { display: block; position: relative; height: 168px; color: var(--text); text-decoration: none; }
.idea-link:focus-visible { outline-offset: -4px; }
.idea-card .idea-photo { position: absolute; inset: 0; }
.art-photo { position: relative; overflow: hidden; background: radial-gradient(circle at 30% 30%, #5a1a1f, #1a0f0c 75%); }
.art-photo img { transition: transform .5s; }
.idea-card:hover .art-photo img { transform: scale(1.04); }
.art-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #c9a24b88; }
.art-fallback svg { width: 40%; height: 40%; max-width: 64px; max-height: 64px; }
.idea-scrim { background: linear-gradient(to top, rgba(11,7,6,.92) 0%, rgba(11,7,6,.35) 55%, rgba(11,7,6,0) 100%); }
.idea-over { position: absolute; left: 16px; right: 72px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.idea-name { font: 400 26px/30px var(--serif); text-shadow: 0 2px 10px #000; }
.art-zero { background: #2a1810e6; border-color: var(--gold); color: var(--gold-hi); }
.art-zero svg { width: 14px; height: 14px; }
.art-save { position: absolute; top: 10px; right: 10px; }
.idea-body { padding: 12px 16px 16px; }
.idea-desc { color: #dccfba; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-sub { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--gold-hi); }
.idea-sub::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }
.idea-skel { height: 244px; border-radius: 18px; border: 1px solid #3b2a1c; background: linear-gradient(100deg, #1a0f0c 30%, #2f1b12 50%, #1a0f0c 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.idea-count { text-align: center; margin: 18px 0 0; color: var(--muted); }
.idea-empty { padding: 28px 20px; text-align: center; display: grid; gap: 12px; }
.idea-empty .link-btn { justify-self: center; }

/* drink detail */
.drink { padding-bottom: 20px; }
.drink-hero { position: relative; height: 360px; overflow: hidden; }
.drink-photo { position: absolute; inset: 0; }
.drink-back, .drink-save { position: absolute; top: max(14px, env(safe-area-inset-top)); z-index: 2; }
.drink-back { left: 14px; } .drink-save { right: 14px; }
.drink-hero-text { position: absolute; left: var(--pad); right: var(--pad); bottom: 20px; z-index: 1; }
.drink-kind { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/18px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 8px; }
.drink-kind svg { width: 16px; height: 16px; } .drink-kind.is-zero { color: #bff0d3; }
.drink-title { font-size: 38px; line-height: 42px; text-shadow: 0 2px 14px #000; }
.drink-desc { font: italic 19px/28px var(--serif); color: #e5d8c3; }
.drink-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.drink-facts .chip { cursor: default; min-height: 40px; } .drink-facts .chip svg { width: 18px; height: 18px; color: var(--gold-hi); }
.drink-h { font: 400 24px/30px var(--serif); margin: 28px 0 10px; display: flex; align-items: center; gap: 12px; }
.drink-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #c9a24b88, transparent); }
.drink-hint { margin-bottom: 8px; }
.drink-ings { border-top: 1px solid #3b2a1c; }
.drink-ing { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; min-height: 52px; padding: 8px 0; border-bottom: 1px solid #3b2a1c; }
.di-amt { color: var(--gold-hi); font-variant-numeric: tabular-nums; font-size: 15px; }
.di-st { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/18px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.di-st svg { width: 16px; height: 16px; }
.is-have .di-st { color: #bff0d3; } .is-missing .di-st { color: #f3b79d; }
.drink-cart { margin-top: 18px; } .drink-cart svg { width: 20px; height: 20px; }
.drink-cart-note { margin-top: 8px; text-align: center; }
.drink-steps { counter-reset: s; display: grid; gap: 16px; }
.drink-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.drink-steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font: 400 18px/1 var(--serif); color: var(--gold-hi); background: #c9a24b14; }
.drink-steps li span { padding-top: 5px; }
.drink-garnish { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #3a1014aa, #1a0f0c); border: 1px solid #5a1a1f; }
.drink-start { margin-top: 28px; }
.drink-missing .drink-actions { margin-top: 20px; }

/* cook mode */
.cook { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .cook { min-height: 100%; } }
.cook-top { display: flex; align-items: center; gap: 14px; padding: 16px var(--pad) 12px; }
.cook-title { font: 400 22px/28px var(--serif); }
.cook-bar { height: 4px; margin: 0 var(--pad); background: #3b2a1c; border-radius: 2px; overflow: hidden; }
.cook-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transition: width .35s ease-out; }
.cook-stage { flex: 1; padding: 36px var(--pad) 16px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cook-step { color: var(--gold-hi); outline: none; }
.cook-text { font: 400 30px/40px var(--serif); }
.cook-cheers { text-align: center; margin-top: 12px; padding: 22px 16px; border-radius: 18px; border: 1px solid #c9a24b66; background: radial-gradient(circle at 50% 0, #5a1a1f88, transparent 70%); }
.cook-glass { color: var(--gold-hi); display: block; } .cook-glass svg { width: 40px; height: 40px; margin: 0 auto; }
.cook-cheers-t { font: italic 40px/48px var(--serif); color: var(--gold-hi); }
.cook-ings { margin: 0 var(--pad) 12px; border: 1px solid #3b2a1c; border-radius: 12px; background: #150c09; }
.cook-ings summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; cursor: pointer; color: var(--gold-hi); }
.cook-ings ul { padding: 0 16px 12px; display: grid; gap: 6px; } .cook-ings li span { color: var(--gold-hi); display: inline-block; min-width: 70px; }
.cook-nav { display: grid; gap: 10px; padding: 0 var(--pad); }
.cook-nav:has(#next) { grid-template-columns: 1fr 1.4fr; }
.cook-nav svg { width: 20px; height: 20px; }

/* cookbook */
.cb-q { margin-bottom: 4px; }
.cb-list { display: grid; gap: 14px; margin-top: 12px; }
.cb-row { position: relative; display: flex; border: 1px solid #3b2a1c; border-radius: 16px; background: linear-gradient(180deg, var(--wood2), var(--wood)); overflow: hidden; }
.cb-link { flex: 1; min-width: 0; display: flex; gap: 14px; color: var(--text); text-decoration: none; padding: 10px 56px 10px 10px; min-height: 104px; }
.cb-link:focus-visible { outline-offset: -4px; }
.cb-photo { flex: 0 0 84px; height: 84px; border-radius: 12px; align-self: center; }
.cb-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; justify-content: center; }
.cb-name { font: 400 20px/26px var(--serif); }
.cb-desc { color: var(--muted); font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-rm { position: absolute; top: 4px; right: 4px; border: 0; background: transparent; backdrop-filter: none; }
.cb-all { text-align: right; } .cb-tools { display: block; }
.cb-emptybox, .cart-empty { padding: 32px 20px; text-align: center; display: grid; gap: 12px; margin-top: 12px; }
.cb-ic { color: var(--gold-hi); } .cb-ic svg { width: 40px; height: 40px; margin: 0 auto; }
.cb-foot, .cart-foot { margin-top: 28px; text-align: center; }
.cb-dialog { max-width: 340px; width: calc(100% - 40px); background: #1d1109; color: var(--text); border: 1px solid var(--gold); border-radius: 18px; padding: 24px; }
.cb-dialog::backdrop { background: #000a; }
.cb-dlg-btns { display: grid; gap: 10px; margin-top: 18px; }

/* cart */
.cart-gh { font: 600 13px/18px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.cart-ul { border-top: 1px solid #3b2a1c; }
.cart-row { display: flex; align-items: center; border-bottom: 1px solid #3b2a1c; }
.cart-lab { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 56px; cursor: pointer; position: relative; }
.cart-cb { position: absolute; opacity: 0; width: 48px; height: 48px; margin: 0; left: 0; cursor: pointer; }
.cart-box { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--gold); display: grid; place-items: center; color: transparent; flex: none; }
.cart-box svg { width: 18px; height: 18px; }
.cart-cb:checked + .cart-box { background: var(--gold); color: #1A0F0C; }
.cart-cb:focus-visible + .cart-box { outline: 3px solid var(--text); outline-offset: 2px; }
.cart-name { font-size: 17px; }
.is-done .cart-name { text-decoration: line-through; color: var(--muted); }
.cart-rm { border: 0; background: transparent; backdrop-filter: none; }
.cart-clear { margin-top: 24px; }
