/* DRINKD. design system — dark-first nightlife editorial */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --mid: #10131C; --mid-2: #161A25; --surface: #1B2030; --surface-2: #232A3D; --line: rgba(245, 243, 238, .09); --line-2: rgba(245, 243, 238, .16);
  --lime: #C8FA55; --lime-ink: #1a2405; --uv: #A789F5; --coral: #FA8168; --ivory: #F5F3EE; --grey: #9DA2AF; --grey-2: #6F7586;
  --r-sm: 12px; --r: 22px; --r-lg: 28px;
  --f-head: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tab-h: 74px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --ease: cubic-bezier(.2, .8, .2, 1); --dur: 200ms;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--mid); color: var(--ivory); font: 400 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .4em; }
h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--grey); } .small { font-size: .875rem; } .tiny { font-size: .75rem; } .block { display: block; } .warn { color: var(--coral); }
.center { text-align: center; display: flex; justify-content: center; } .center-text { text-align: center; align-items: center; }
.eyebrow { font: 500 .78rem/1.3 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--uv); margin: 0 0 .5em; display: flex; align-items: center; gap: 8px; }
.display { font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1; }
.display-sm { font-size: clamp(1.7rem, 6.5vw, 2.4rem); line-height: 1.05; }
.section-title { font-size: 1.1rem; margin: 28px 0 12px; color: var(--ivory); }
.ico { width: 22px; height: 22px; flex: none; } .ico-lg { width: 44px; height: 44px; }

/* ---------------------------------------------------------------- splash */
.splash { min-height: 100dvh; display: grid; place-items: center; }
.splash img { animation: pulse 1.4s var(--ease) infinite alternate; }
@keyframes pulse { from { opacity: .45; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.noscript { padding: 24px; text-align: center; }

/* ---------------------------------------------------------------- frame */
.frame { min-height: 100dvh; display: flex; flex-direction: column; }
.frame.has-tabs { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(16, 19, 28, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { height: 20px; width: auto; }
.topbar-title { font-size: 1rem; margin: 0; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; min-width: 40px; justify-content: flex-end; }
.main { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 24px; flex: 1; outline: none; }
.offline-bar { display: flex; gap: 8px; align-items: center; justify-content: center; background: rgba(250, 129, 104, .14); color: var(--coral); font-size: .85rem; padding: 8px 16px; }
.offline-bar .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- tabbar */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding: 8px 10px calc(8px + var(--safe-b)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(16, 19, 28, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--grey); text-decoration: none; font-size: .7rem; font-weight: 500; padding: 6px 0; min-height: 48px; justify-content: center; border-radius: 14px; }
.tab.is-active { color: var(--ivory); } .tab.is-active .ico { color: var(--lime); }
.tab-cam { justify-self: center; width: 62px; height: 62px; margin-top: -26px; border-radius: 22px; border: 0; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; box-shadow: 0 8px 26px rgba(200, 250, 85, .32), 0 0 0 6px var(--mid); transition: transform var(--dur) var(--ease); }
.tab-cam .ico { width: 28px; height: 28px; stroke-width: 2.1; }
.tab-cam:active { transform: scale(.94); }

.round-banner { position: fixed; z-index: 29; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); max-width: 736px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); }
.rb-main { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; color: var(--ivory); text-decoration: none; }
.rb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rb-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.rb-text small { color: var(--grey); font-size: .75rem; }
.round-banner .btn-ghost { display: none; }
@media (min-width: 520px) { .round-banner .btn-ghost { display: inline-flex; } }
.frame.has-tabs:has(.round-banner) { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 92px); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 250, 85, .6); animation: live 1.8s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(200, 250, 85, .55); } 70% { box-shadow: 0 0 0 9px rgba(200, 250, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 250, 85, 0); } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur); white-space: nowrap; }
.btn:active { transform: scale(.97); } .btn:disabled { opacity: .55; pointer-events: none; }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #d4ff70; }
.btn-ghost { background: rgba(245, 243, 238, .06); color: var(--ivory); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(245, 243, 238, .1); }
.btn-danger { background: var(--coral); color: #2a0c05; }
.btn-danger-text { color: var(--coral); }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 1.02rem; border-radius: 16px; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: .85rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 54px; min-height: 54px; padding: 0; border-radius: 18px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ivory); }
.icon-btn:hover { background: rgba(245, 243, 238, .08); }
.link-btn { background: none; border: 0; color: var(--lime); padding: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.row-actions.center { justify-content: center; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- form */
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > summary { font-size: .82rem; font-weight: 600; color: var(--grey); letter-spacing: .01em; }
.field small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=time], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--mid-2); color: var(--ivory); outline: none; transition: border-color var(--dur), box-shadow var(--dur); -webkit-appearance: none; appearance: none; }
textarea { min-height: 70px; resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 250, 85, .16); }
input[aria-invalid=true] { border-color: var(--coral); }
.field-error { color: var(--coral); font-size: .8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-cur { max-width: 130px; }
.field-row:has(.field-cur) { grid-template-columns: 1fr auto; }
.input-icon { position: relative; }
.input-icon > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--grey); width: 20px; height: 20px; pointer-events: none; }
.input-icon input { padding-left: 44px; }
.input-suffix { position: relative; }
.input-suffix em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--grey); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--lime); margin-top: 1px; flex: none; }
.switch { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; font-size: .95rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 46px; height: 28px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; flex: none; transition: background var(--dur); }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--grey); transition: transform var(--dur) var(--ease), background var(--dur); }
.switch input:checked + .switch-ui { background: rgba(200, 250, 85, .25); border-color: var(--lime); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: var(--lime); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--lime); outline-offset: 2px; }
.switch > span:last-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.switch .ico { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(245, 243, 238, .04); color: var(--ivory); font-size: .86rem; font-weight: 500; text-decoration: none; }
.chip small { color: var(--grey); font-size: .74rem; }
.chip.is-on, .chip[aria-checked=true] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.chip.is-on small { color: rgba(26, 36, 5, .7); }
.chip-ai { border-color: rgba(167, 137, 245, .5); }
.chip-danger { color: var(--coral); }
.chip .ico { width: 16px; height: 16px; }
.chip-sm { min-height: 24px; padding: 0 10px; font-size: .74rem; vertical-align: middle; margin-left: 6px; } .chip-sm.is-on { border-color: var(--lime); }

.seg { display: flex; background: var(--mid-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg-btn { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--grey); font-size: .84rem; font-weight: 600; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; position: relative; }
.seg-btn[aria-checked=true], .seg-btn:has(input:checked) { background: var(--surface-2); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg-btn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-sm { flex: none; } .seg-sm .seg-btn { min-height: 36px; padding: 0 10px; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden; }
.card h2 { display: flex; gap: 8px; align-items: center; }
.card-hero { padding: 26px 22px; background: radial-gradient(120% 140% at 100% 0%, rgba(167, 137, 245, .22), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(200, 250, 85, .14), transparent 55%), var(--surface); }
.card-hero .btn { margin-top: 6px; }
.card-active { display: block; color: var(--ivory); text-decoration: none; padding: 22px; background: linear-gradient(160deg, rgba(200, 250, 85, .16), transparent 60%), var(--surface); border-color: rgba(200, 250, 85, .35); }
.card-active .live-dot { position: absolute; top: 22px; right: 22px; }
.card-cta { margin-top: 12px; }
.card-link { display: flex; gap: 14px; align-items: center; color: var(--ivory); text-decoration: none; margin-top: 18px; }
.card-link > div { flex: 1; } .card-link p { margin: 0; }
.notice { background: rgba(167, 137, 245, .1); border: 1px solid rgba(167, 137, 245, .3); border-radius: 14px; padding: 12px 14px; font-size: .9rem; display: block; }
.notice.ok { background: rgba(200, 250, 85, .1); border-color: rgba(200, 250, 85, .35); }
.notice.fail, .notice-error { background: rgba(250, 129, 104, .1); border-color: rgba(250, 129, 104, .4); color: #ffc2b4; }
.notice-inline { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.notice-inline span { flex: 1; } .notice .ico { width: 18px; height: 18px; vertical-align: -4px; display: inline-block; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(245, 243, 238, .07); color: var(--ivory); font-size: .78rem; font-weight: 500; }
.badge .ico { width: 15px; height: 15px; }
.badge-live { background: rgba(200, 250, 85, .16); color: var(--lime); }
.badge-uv { background: rgba(167, 137, 245, .16); color: var(--uv); }
.badge-warn { background: rgba(250, 129, 104, .14); color: var(--coral); }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--grey); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* skeleton */
.skeleton-stack { display: flex; flex-direction: column; gap: 14px; }
.sk { border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.3s infinite; }
.sk-hero { height: 200px; } .sk-card { height: 110px; } .sk-photo { height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- landing */
.landing .main { max-width: 1080px; padding-top: 0; }
.hero { position: relative; text-align: center; padding: calc(56px + var(--safe-t)) 8px 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-glow { position: absolute; inset: -40px -20px auto; height: 520px; background: radial-gradient(40% 50% at 30% 30%, rgba(167, 137, 245, .28), transparent 70%), radial-gradient(40% 50% at 70% 60%, rgba(200, 250, 85, .18), transparent 70%); filter: blur(10px); pointer-events: none; z-index: -1; }
.hero-glow.sm { inset: 0; height: auto; z-index: 0; opacity: .6; }
.card-hero > *:not(.hero-glow) { position: relative; }
.hero-logo { width: min(520px, 92%); height: auto; margin-bottom: 26px; }
.hero .display { max-width: 12ch; margin: 0 auto 6px; }
.lead { font-size: 1.12rem; color: #cfd2da; max-width: 36ch; margin: 0 auto 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lang-switch { margin-top: 18px; display: flex; gap: 8px; }
.demo { padding: 24px 0; }
.demo .section-title { text-align: center; font-size: 1.6rem; margin-bottom: 22px; }
.demo-steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .demo-steps { grid-template-columns: repeat(3, 1fr); } }
.demo-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.demo-step h3 { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.demo-step p { color: var(--grey); font-size: .93rem; margin: 0; }
.num { width: 28px; height: 28px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); display: inline-grid; place-items: center; font-size: .9rem; }
.demo-phone { height: 250px; border-radius: 22px; background: var(--mid); border: 1px solid var(--line-2); padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; overflow: hidden; }
.mock-checkin { margin: auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--surface); border-radius: 16px; padding: 16px; }
.mock-checkin .ico { color: var(--lime); }
.mock-checkin small { color: var(--grey); }
.mock-btn { margin-top: 10px; background: var(--lime); color: var(--lime-ink); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: .85rem; align-self: stretch; text-align: center; }
.mock-photo, .mock-photo-a, .mock-photo-b, .mock-photo-c { border-radius: 14px; }
.mock-photo { position: absolute; inset: 0; border-radius: 0; }
.mock-photo-a { background: radial-gradient(30% 35% at 50% 45%, #ffb36b, #fa8168 40%, transparent 70%), radial-gradient(60% 50% at 50% 100%, #3a2a4f, transparent), linear-gradient(160deg, #2b2140, #121522); }
.mock-photo-b { background: radial-gradient(25% 40% at 50% 50%, #e7ffc0, #C8FA55 35%, transparent 70%), linear-gradient(200deg, #1e3326, #10131c); }
.mock-photo-c { background: radial-gradient(30% 40% at 50% 50%, #d6c8ff, #A789F5 40%, transparent 70%), linear-gradient(140deg, #251d3f, #10131c); }
.mock-confirm { position: relative; background: rgba(27, 32, 48, .92); border-radius: 16px; padding: 12px; backdrop-filter: blur(6px); }
.mock-confirm small { color: var(--uv); display: flex; align-items: center; gap: 6px; font-size: .75rem; }
.mock-confirm small .ico { width: 14px; height: 14px; }
.mock-chips { display: flex; gap: 6px; margin: 8px 0; }
.mock-chips span { border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 10px; font-size: .78rem; }
.mock-chips .on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.mock-row { display: flex; gap: 8px; font-size: .78rem; color: var(--grey); }
.mock-row span { background: var(--mid-2); padding: 3px 8px; border-radius: 8px; }
.demo-recap { justify-content: flex-start; }
.demo-recap strong { font-family: var(--f-head); font-size: 1.3rem; }
.demo-recap small { color: var(--lime); }
.mock-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 150px; }
.mock-grid i { border-radius: 12px; display: block; }
.mock-grid i:first-child { grid-row: span 2; }
.pillars { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 24px 0; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.pillar > .ico { color: var(--lime); width: 28px; height: 28px; margin-bottom: 10px; }
.pillar p { color: var(--grey); font-size: .93rem; }
.final-cta { text-align: center; padding: 20px 0 30px; display: flex; justify-content: center; }
.site-footer { text-align: center; padding: 28px 16px calc(28px + var(--safe-b)); border-top: 1px solid var(--line); margin-top: 20px; }
.site-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.site-footer a { color: var(--grey); font-size: .85rem; }
.example-recap { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px; }
.example-recap .mock-grid { width: 130px; height: 100px; flex: none; }
.example-recap strong { font-family: var(--f-head); font-size: 1.15rem; display: block; }

/* ---------------------------------------------------------------- auth */
.auth .main { max-width: 460px; padding-top: calc(28px + var(--safe-t)); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 20px; }
.auth-logo img { width: 210px; height: auto; margin: 0 auto 18px; }
.auth h1 { text-align: center; font-size: 1.5rem; margin-bottom: 18px; }

/* ---------------------------------------------------------------- rounds */
.round-list { display: flex; flex-direction: column; gap: 12px; }
.round-card { display: flex; gap: 14px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; color: var(--ivory); text-decoration: none; transition: border-color var(--dur); }
.round-card:hover { border-color: var(--line-2); }
.rc-mosaic { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; flex: none; display: grid; gap: 2px; background: var(--mid-2); }
.rc-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.rc-mosaic.m2 { grid-template-columns: 1fr 1fr; } .rc-mosaic.m3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .rc-mosaic.m3 img:first-child { grid-row: span 2; }
.rc-mosaic.m4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.rc-empty { display: grid; place-items: center; color: var(--grey-2); }
.rc-body { display: flex; flex-direction: column; min-width: 0; justify-content: center; gap: 2px; }
.rc-body strong { font-family: var(--f-head); font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-body .eyebrow { margin: 0; font-size: .7rem; }
.rc-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: .8rem; color: var(--grey); flex-wrap: wrap; }

.place-picker { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.option-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--ivory); }
.option-card > .ico { color: var(--lime); width: 26px; height: 26px; }
.option-card div { display: flex; flex-direction: column; }
.option-details { display: block; }
.option-details summary { display: flex; gap: 14px; align-items: center; list-style: none; cursor: pointer; }
.option-details summary::-webkit-details-marker { display: none; }
.option-details summary .ico { color: var(--lime); width: 26px; height: 26px; }
.option-details[open] summary { margin-bottom: 14px; }
.place-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.place-item { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--mid-2); color: var(--ivory); text-decoration: none; min-height: 60px; }
.place-item > .ico { color: var(--uv); }
.place-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.place-item strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist { color: var(--grey); font-size: .8rem; flex: none; }
.google-attr { font-size: .72rem; color: var(--grey); text-align: right; margin: 0 4px 6px; }
.venue-card { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.venue-card > .ico { color: var(--lime); width: 28px; height: 28px; }
.venue-card div { flex: 1; display: flex; flex-direction: column; }
.confirm-round form { margin-top: 6px; }

.round-head { margin-bottom: 18px; }
.round-head .muted { display: flex; align-items: center; gap: 6px; margin: 0; }
.round-head .muted .ico { width: 16px; height: 16px; }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.empty-frame { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 48px 20px; text-align: center; color: var(--grey); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.drink-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur); }
.drink-card:not([data-drink]) { cursor: default; }
.drink-card:hover { border-color: var(--line-2); }
.drink-card:active { transform: scale(.995); }
.dc-photo { width: 100%; max-height: 520px; overflow: hidden; background: var(--mid-2); }
.dc-photo img { width: 100%; height: 100%; object-fit: cover; }
.dc-body { padding: 14px 16px 16px; }
.dc-top { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--grey); }
.dc-top time { font-family: var(--f-head); font-weight: 500; color: var(--uv); letter-spacing: .04em; }
.dc-status { margin-left: auto; }
.dc-star { color: var(--lime); } .dc-star .ico { width: 16px; height: 16px; fill: currentColor; }
.drink-card h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: rgba(245, 243, 238, .07); font-size: .8rem; font-weight: 500; }
.pill .ico { width: 14px; height: 14px; }
.pill-lime { background: rgba(200, 250, 85, .15); color: var(--lime); }
.pill-est { border: 1px dashed rgba(167, 137, 245, .6); background: transparent; color: var(--uv); }
.pill-ghost { background: transparent; color: var(--grey); padding-left: 2px; }
.dc-note { margin: 10px 0 0; color: #d6d8de; font-size: .93rem; }
.dc-ai { margin: 8px 0 0; font-size: .74rem; color: var(--grey); display: flex; align-items: center; gap: 6px; }
.dc-ai .ico { width: 14px; height: 14px; color: var(--uv); }
.capture-bar { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); z-index: 10; display: flex; gap: 10px; align-items: center; justify-content: center; margin: 22px 0 10px; padding: 10px; border-radius: 24px; background: rgba(27, 32, 48, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.btn-cam { flex: 1; min-height: 58px; border-radius: 18px; font-size: 1.05rem; }
.btn-cam .ico { width: 24px; height: 24px; }
.round-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.round-actions .row-actions { justify-content: center; }

/* ---------------------------------------------------------------- sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .6); opacity: 0; transition: opacity var(--dur); }
.sheet { position: relative; width: 100%; max-width: 640px; max-height: 94dvh; display: flex; flex-direction: column; background: var(--mid-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0; transform: translateY(100%); transition: transform 240ms var(--ease); box-shadow: 0 -20px 50px rgba(0, 0, 0, .5); }
.sheet-wrap.in .sheet { transform: none; } .sheet-wrap.in .sheet-backdrop { opacity: 1; }
.sheet-grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px 20px; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 1.2rem; }
.sheet-body { padding: 8px 20px calc(20px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }
.sheet-dialog { max-width: 460px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 28px; border-bottom: 1px solid var(--line-2); transform: translateY(30px); opacity: 0; transition: transform 240ms var(--ease), opacity 200ms; } .sheet-wrap.in .sheet { opacity: 1; } }
.drink-form { display: flex; flex-direction: column; gap: 16px; }
.ds-photo { position: relative; border-radius: 20px; overflow: hidden; background: var(--mid); max-height: 300px; display: flex; justify-content: center; }
.ds-photo img { width: 100%; max-height: 300px; object-fit: cover; }
.ds-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .4); }
.ds-progress i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .2s; }
.ds-progress.done { opacity: 0; transition: opacity .6s .4s; } .ds-progress.failed i { background: var(--coral); width: 100% !important; }
.ds-rmphoto { position: absolute; right: 10px; bottom: 10px; background: rgba(16, 19, 28, .85); }
.ai-box, .ai-ask, .ai-loading { background: linear-gradient(140deg, rgba(167, 137, 245, .14), rgba(167, 137, 245, .04)); border: 1px solid rgba(167, 137, 245, .35); border-radius: 18px; padding: 12px 14px; }
.ai-head { display: flex; align-items: center; gap: 8px; color: var(--uv); font-size: .85rem; margin-bottom: 10px; }
.ai-head .ico, .ai-ask .ico { width: 18px; height: 18px; color: var(--uv); }
.ai-ask strong { display: flex; gap: 8px; align-items: center; }
.ai-loading { display: flex; align-items: center; gap: 8px; color: var(--uv); font-size: .9rem; }
.ai-loading .link-btn { margin-left: auto; font-size: .82rem; }
.ds-pick { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; border-radius: 14px; background: rgba(200, 250, 85, .1); border: 1px solid rgba(200, 250, 85, .4); }
.ds-pick .ico { color: var(--lime); } .ds-pick strong { flex: 1; font-size: 1.05rem; } .ds-pick small { color: var(--grey); }
.ds-results { display: flex; flex-direction: column; gap: 4px; }
.ds-results:empty { display: none; }
.ds-result { text-align: left; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; border: 0; background: var(--surface); color: var(--ivory); }
.ds-result small { color: var(--grey); }
.ds-result:hover, .ds-result:focus { background: var(--surface-2); }
.ds-custom { flex-direction: row; align-items: center; gap: 8px; color: var(--lime); }
.ds-abv-field.is-muted { opacity: .55; }
.ds-abv-src { color: var(--uv) !important; font-weight: 500 !important; }
.ds-details { border-top: 1px solid var(--line); padding-top: 10px; }
.ds-details summary { cursor: pointer; color: var(--grey); font-size: .85rem; font-weight: 600; }
.ds-nominal { margin-top: 10px; }
.sheet-actions { position: sticky; bottom: calc(-20px - var(--safe-b)); display: flex; gap: 10px; justify-content: space-between; background: linear-gradient(transparent, var(--mid-2) 30%); padding: 18px 0 calc(4px); margin-top: 4px; }
.sheet-actions .btn-primary { flex: 1; }

/* ---------------------------------------------------------------- recap */
.recap-cover { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background: radial-gradient(80% 90% at 90% 10%, rgba(167, 137, 245, .35), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(200, 250, 85, .22), transparent 60%), var(--surface); margin-bottom: 16px; }
.recap-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recap-cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 19, 28, .05) 30%, rgba(16, 19, 28, .92)); }
.rcv-inner { position: relative; z-index: 1; padding: 22px; }
.rcv-place { color: var(--lime); font-weight: 600; display: flex; align-items: center; gap: 6px; margin: 0; }
.rcv-place .ico { width: 18px; height: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 620px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--f-head); font-size: 1.6rem; line-height: 1.1; overflow-wrap: break-word; hyphens: auto; }
.stat-text strong { font-size: 1.15rem; }
.stat span { color: var(--grey); font-size: .8rem; }
.stat small { color: var(--grey-2); font-size: .7rem; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stats-strip div { background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.stats-strip strong { font-family: var(--f-head); font-size: 1.3rem; } .stats-strip span { font-size: .72rem; color: var(--grey); }
.memorable { display: flex; gap: 14px; align-items: center; border-color: rgba(200, 250, 85, .3); }
.memorable > .ico { color: var(--lime); fill: currentColor; width: 30px; height: 30px; }
.memorable strong { font-family: var(--f-head); font-size: 1.3rem; } .memorable p { margin: 0; }
.tried { margin-bottom: 16px; }
.studio h2 { margin-bottom: 16px; }
.studio-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .studio-grid { grid-template-columns: 300px 1fr; align-items: start; } .studio-preview { position: sticky; top: 76px; } }
.preview-frame { position: relative; margin: 0 auto; width: 100%; max-width: 300px; border-radius: 18px; overflow: hidden; background: var(--mid); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); border: 1px solid var(--line-2); }
.preview-frame canvas { width: 100%; height: auto; }
.preview-frame[data-fmt=story] { aspect-ratio: 9/16; } .preview-frame[data-fmt=portrait] { aspect-ratio: 4/5; } .preview-frame[data-fmt=square] { aspect-ratio: 1/1; }
.preview-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 19, 28, .5); opacity: 0; pointer-events: none; transition: opacity .2s; color: var(--lime); }
.preview-frame.busy .preview-busy { opacity: 1; }
.studio-controls { display: flex; flex-direction: column; gap: 16px; }
.studio-controls .switch { min-height: 40px; font-size: .9rem; }
.studio-actions { justify-content: stretch; } .studio-actions .btn { flex: 1; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.pp { position: relative; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--mid); opacity: .5; }
.pp img { width: 100%; height: 100%; object-fit: cover; }
.pp i { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: none; place-items: center; }
.pp i .ico { width: 14px; height: 14px; stroke-width: 3; }
.pp[aria-pressed=true] { border-color: var(--lime); opacity: 1; } .pp[aria-pressed=true] i { display: grid; }
.exclude-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
details.field summary { cursor: pointer; }
.copy-row { display: flex; gap: 8px; } .copy-row input { min-height: 42px; font-size: .85rem; }
.share-link h2 .ico { color: var(--uv); }
.timeline-compact ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline-compact li { display: grid; grid-template-columns: 52px 48px 1fr; gap: 12px; align-items: center; }
.timeline-compact time { font-family: var(--f-head); color: var(--uv); font-size: .9rem; }
.timeline-compact img, .tl-dot { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.tl-dot { display: grid; place-items: center; background: var(--surface); color: var(--grey); }
.timeline-compact li div { display: flex; flex-direction: column; min-width: 0; }

/* ---------------------------------------------------------------- history / profile */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.filter-row select { min-height: 44px; font-size: .88rem; }
.calendar { padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-wd { font-size: .7rem; color: var(--grey); padding: 4px 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .85rem; color: var(--grey); }
.cal-day.has { background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile-head h1 { margin: 0; } .profile-head p { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; } .profile-head .ico { width: 15px; height: 15px; }
.avatar { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--lime), var(--uv)); color: var(--mid); font: 700 1.8rem var(--f-head); flex: none; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-radius: var(--r); overflow: hidden; }
.mosaic a { aspect-ratio: 1; } .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.menu-list { display: flex; flex-direction: column; margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ivory); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .97rem; min-height: 56px; }
.menu-list > :last-child { border-bottom: 0; }
.menu-list span { flex: 1; } .menu-list .ico:first-child { color: var(--uv); }
.menu-list button { color: var(--coral); } .menu-list button .ico { color: var(--coral) !important; }

/* ---------------------------------------------------------------- library */
.lib-cats { margin: 12px 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
.lib-cats .chip { flex: none; }
.lib-list { display: flex; flex-direction: column; gap: 6px; }
.lib-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ivory); text-decoration: none; }
.lib-item div:not(.lib-glyph) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lib-item > .ico:last-child { color: var(--grey-2); }
.lib-glyph { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(167, 137, 245, .14); color: var(--uv); flex: none; }
.lib-glyph.lg { width: 76px; height: 76px; border-radius: 24px; margin-bottom: 14px; }
.g-cocktail, .g-longdrink { background: rgba(200, 250, 85, .14); color: var(--lime); }
.g-beer, .g-cider { background: rgba(245, 194, 107, .16); color: #F5C26B; }
.g-wine, .g-sparkling { background: rgba(250, 129, 104, .14); color: var(--coral); }
.g-mocktail, .g-non_alcoholic { background: rgba(157, 162, 175, .14); color: var(--ivory); }
.lib-hero { margin-bottom: 16px; }
.recipe-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.recipe-bar i { display: block; min-width: 4px; }
.ingredients { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.ingredients li { display: grid; grid-template-columns: 12px 1fr auto 52px; gap: 10px; align-items: center; font-size: .95rem; }
.ingredients small { text-align: right; }
.dotc { width: 10px; height: 10px; border-radius: 50%; }

/* ---------------------------------------------------------------- legal / install */
.legal h3 { margin-top: 20px; } .legal ul { padding-left: 20px; color: #d6d8de; } .legal li { margin-bottom: 8px; }
.steps { text-align: left; color: #d6d8de; padding-left: 20px; }
.app-icon { border-radius: 22px; margin: 0 auto; }

/* ---------------------------------------------------------------- admin */
.admin-card h2 { flex-wrap: wrap; }
.admin-card h2 .badge { margin-left: auto; font-family: var(--f-body); font-weight: 500; }
.mode-list { display: grid; gap: 8px; }
@media (min-width: 620px) { .mode-list { grid-template-columns: 1fr 1fr; } }
.mode-opt { padding: 12px 14px; cursor: pointer; align-items: flex-start; }
.mode-opt input { width: 18px; height: 18px; accent-color: var(--lime); margin-top: 3px; flex: none; }
.mode-opt:has(input:checked) { border-color: var(--lime); background: rgba(200, 250, 85, .08); }
.ok-text { color: var(--lime) !important; }
input[type=range] { width: 100%; accent-color: var(--lime); min-height: 32px; }
.test-out { white-space: pre-wrap; word-break: break-word; font-size: .78rem; background: var(--mid); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; max-height: 260px; overflow: auto; margin: 0; }
.test-out.ok { border-color: rgba(200, 250, 85, .5); } .test-out.fail { border-color: rgba(250, 129, 104, .6); }
.ai-box.is-local { background: linear-gradient(140deg, rgba(200, 250, 85, .1), rgba(200, 250, 85, .03)); border-color: rgba(200, 250, 85, .35); }
.ai-box.is-local .ai-head, .ai-box.is-local .ai-head .ico { color: var(--lime); }
.ai-head .badge { margin-left: auto; white-space: nowrap; }
.ai-more { margin-top: 10px; }

/* ---------------------------------------------------------------- toast */
#toast-root { position: fixed; z-index: 200; left: 0; right: 0; top: calc(12px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 520px; background: var(--surface-2); color: var(--ivory); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: .92rem; transform: translateY(-12px); opacity: 0; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.toast.in { transform: none; opacity: 1; }
.toast-ok { border-color: rgba(200, 250, 85, .5); } .toast-error { border-color: rgba(250, 129, 104, .6); }

/* ---------------------------------------------------------------- share page (server rendered) */
.share-page { background: var(--mid); }
.share { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.share-cover { position: relative; margin: 0 -16px 18px; min-height: 420px; display: flex; align-items: flex-end; background: radial-gradient(80% 90% at 90% 10%, rgba(167, 137, 245, .35), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(200, 250, 85, .22), transparent 60%), var(--surface); overflow: hidden; }
.share-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.share-cover.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 19, 28, .2), rgba(16, 19, 28, .95) 85%); }
.share-cover-inner { position: relative; z-index: 1; padding: 28px 22px; }
.share-cover h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1; }
.share-logo { height: 22px; width: auto; margin-bottom: 18px; }
.share-place { color: var(--lime); font-weight: 600; margin: 0; }
.share-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.share-memorable { background: var(--surface); border-radius: var(--r); padding: 18px; margin-bottom: 18px; border: 1px solid rgba(200, 250, 85, .3); }
.share-grid { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
.share-grid figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; } .share-grid img { width: 100%; height: 100%; object-fit: cover; }
.share-grid.g1 { grid-template-columns: 1fr; } .share-grid.g1 figure { aspect-ratio: 4/5; }
.share-grid.g3 figure:first-child { grid-column: span 2; aspect-ratio: 2/1; }
.share-timeline ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.share-timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.share-timeline time { font-family: var(--f-head); color: var(--uv); }
.share-timeline li div { display: flex; flex-direction: column; } .share-timeline p { margin: 4px 0 0; color: #d6d8de; }
.share-footer { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 36px; color: var(--grey); font-size: .9rem; }
.share-footer p { margin: 0; }
.share-empty { text-align: center; padding-top: 18vh; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ---------------------------------------------------------------- install page */
.install { max-width: 720px; margin: 0 auto; padding: 32px 16px; }
.install-logo { width: 260px; margin-bottom: 20px; }
.checks { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: .9rem; }
.checks td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.checks td:first-child { width: 28px; font-weight: 700; }
.checks .ok td:first-child { color: var(--lime); } .checks .fail td:first-child { color: var(--coral); } .checks .warn td:first-child { color: #F5C26B; }
.install .btn { margin: 4px 6px 4px 0; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@media (min-width: 1280px) { .main { max-width: 860px; } }

/* ---------------------------------------------------------------- system status */
.badge-fail { background: rgba(250, 129, 104, .18); color: var(--coral); }
.checks-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (min-width: 620px) { .checks-list { grid-template-columns: 1fr 1fr; } }
.checks-list li { display: grid; grid-template-columns: 12px auto 1fr; gap: 10px; align-items: center; font-size: .9rem; }
.checks-list li span.muted { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--lime); } .dot-warn { background: #F5C26B; } .dot-fail { background: var(--coral); }
.sys-cols { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 620px) { .sys-cols { grid-template-columns: 1fr 1fr; } }
.mini-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; }
.mini-list.errs li { flex-direction: column; gap: 0; }
