/* Trail Treats by Haley Levato
   Layout idea: every surface is one of Haley's jar labels — cream stock, a gold double keyline, ink type. */
:root {
  --cream: #FBF8F1;
  --paper: #FFFFFF;
  --linen: #F2EADB;
  --gold: #C4A882;
  --gold-deep: #B2925F;
  --bronze: #463714;
  --bronze-2: #5C4A1F;
  --ink: #1A1A1A;
  --ink-2: #463F35;
  --line: #E0D4BD;
  --ok: #24572F;
  --ok-bg: #DDEDDB;
  --wait: #6B4306;
  --wait-bg: #F5E3BE;
  --off: #3F392F;
  --off-bg: #E9E1D2;
  --danger: #9C261C;
  --danger-bg: #F8E3DF;
  --display: 'Belleza', 'Optima', 'Candara', 'Segoe UI', sans-serif;
  --script: 'Great Vibes', 'Snell Roundhand', 'Brush Script MT', cursive;
  --body: 'Figtree', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(70, 55, 20, .08), 0 10px 28px rgba(70, 55, 20, .10);
  color-scheme: light;
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
.tt *, .tt *::before, .tt *::after { box-sizing: border-box; }
.tt { min-height: 60vh; overflow-wrap: break-word; }
:where(.tt) :where(h1, h2, h3) { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
:where(.tt) p { margin: 0; }
[hidden] { display: none !important; }
:where(.tt) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.tt) a { color: var(--bronze); text-underline-offset: 3px; }
:where(.tt) img { display: block; max-width: 100%; }
:where(.tt) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.tt :focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- brand ---------- */
.brand-word { display: inline-flex; align-items: baseline; gap: 10px; line-height: 1; white-space: nowrap; }
.brand-name { font-family: var(--display); font-size: 28px; letter-spacing: .01em; color: var(--ink); }
.brand-by { font-family: var(--script); font-size: 26px; color: var(--bronze); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.tt-logo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; background: #fff; box-shadow: 0 10px 34px rgba(60, 50, 30, .20); overflow: hidden; }
.tt-logo.logo-sm { width: 58px; flex: none; box-shadow: 0 2px 8px rgba(60, 50, 30, .22); transition: width .25s ease; }
.tt-logo.logo-md { width: 168px; }
.head.shrunk .tt-logo.logo-sm { width: 46px; }
.tt-logo .l-biz { font-family: 'Belleza', sans-serif; font-size: 72px; letter-spacing: 1px; fill: #1a1a1a; text-transform: uppercase; }
.tt-logo .l-by { font-family: 'Great Vibes', cursive; font-size: 41px; fill: #33312c; }
.tt-logo .l-tag { font-family: 'Belleza', sans-serif; font-size: 17px; letter-spacing: 5px; fill: #8a8275; text-transform: uppercase; }
.tt-logo .g { fill: none; stroke: #A88A44; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tt-logo .gt { fill: none; stroke: #A88A44; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.tt-logo .gh { fill: none; stroke: #A88A44; stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.tt-logo .gf { fill: #A88A44; stroke: none; }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 24px; border: 2px solid transparent; border-radius: 12px; font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(70, 55, 20, .22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.tt .btn-primary { background: var(--bronze); color: #FFFDF8; }
.tt .btn-primary:hover { background: var(--bronze-2); }
.tt .btn-dark { background: var(--ink); color: #FFFDF8; }
.tt .btn-ghost { background: var(--paper); color: var(--bronze); border-color: var(--bronze); }
.tt .btn-danger { background: var(--danger); color: #fff; }
.btn-small { min-height: 44px; padding: 9px 16px; font-size: 16px; border-radius: 10px; }
.btn-wide { display: flex; width: 100%; justify-content: space-between; }
.btn-center { justify-content: center; }
.btn.busy { opacity: .7; }
.link-btn { background: none; border: 0; padding: 10px 2px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn.danger { color: var(--danger); }
.ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: ripple .6s ease-out forwards; }
.card .ripple { background: rgba(196, 168, 130, .5); }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* ---------- preview strip ---------- */
.preview { background: var(--ink); color: #FBF8F1; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.preview-txt { font-size: 16px; min-width: 0; flex: 1 1 260px; }
.preview-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.preview-lbl { font-size: 16px; font-weight: 600; }
.segs { display: inline-flex; border: 2px solid #FBF8F1; border-radius: 10px; overflow: hidden; }
.seg { background: transparent; color: #FBF8F1; border: 0; padding: 9px 12px; min-height: 44px; font-size: 16px; font-weight: 700; cursor: pointer; }
.seg + .seg { border-left: 2px solid #FBF8F1; }
.seg.on { background: #FBF8F1; color: var(--ink); }
.tt .preview .btn-dark { background: var(--gold); color: var(--ink); }
@media (max-width: 640px) { .preview-lbl { display: none; } .preview-ctl { flex-wrap: nowrap; width: 100%; justify-content: space-between; } .preview .btn-small { padding-inline: 12px; } }

/* ---------- storefront frame ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--bronze); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(16px, calc((100% - 1120px) / 2)); background: rgba(251, 248, 241, .0); transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease; }
.head.shrunk { padding-block: 8px; background: rgba(251, 248, 241, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.head .brand { text-decoration: none; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 10px 12px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav a:hover { background: var(--linen); }
@media (max-width: 640px) { .nav a:nth-child(3) { display: none; } .nav a { padding: 10px 8px; } .head .brand-name { display: none; } }

main, .foot { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sec { padding-block: 34px; }
.sec-title { font-size: clamp(32px, 6vw, 46px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.sec-sub, .lede { font-size: 18px; color: var(--ink-2); }

/* ---------- hero: the label ---------- */
.hero { padding-block: 8px 10px; display: grid; gap: 24px; }
.hero-main { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 6px 8px; }
.hero-main > :not(.hero-dust) { position: relative; z-index: 1; }
.tt h1.hero-logo { width: min(540px, 88%); margin: 0; animation: settle .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-main .hero-intro { margin-block: 4px 4px; }
.hero-label { position: relative; background: var(--paper); border: 2px solid var(--gold-deep); border-radius: 6px; padding: 7px; box-shadow: var(--shadow); animation: settle .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-label-in { position: relative; z-index: 1; border: 1px solid var(--gold-deep); border-radius: 3px; padding: clamp(28px, 6vw, 60px) clamp(18px, 5vw, 56px); text-align: center; display: grid; justify-items: center; gap: 6px; }
.hero-kicker { font-family: var(--display); font-size: clamp(18px, 3.4vw, 22px); letter-spacing: .04em; color: var(--bronze); }
.tt h1.hero-name { font-size: clamp(60px, 15vw, 132px); line-height: .95; letter-spacing: .005em; margin-top: 6px; }
.hero-by { font-family: var(--script); font-size: clamp(38px, 8vw, 68px); line-height: 1; color: var(--bronze); margin-top: -4px; }
.hero-intro { max-width: 34em; font-size: clamp(18px, 2.6vw, 20px); color: var(--ink-2); margin-block: 14px 18px; }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-cover { margin: 0; border: 2px solid var(--gold-deep); border-radius: 6px; padding: 7px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.hero-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 3px; will-change: transform; }
@media (min-width: 900px) { .hero.has-cover { grid-template-columns: 1fr 1fr; align-items: center; } }
@keyframes settle { from { transform: translateY(14px) scale(.985); } }

/* ---------- this week ---------- */
.sec-status { padding-top: 22px; }
.status { display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.status-main { padding: clamp(20px, 4vw, 36px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.status h2 { font-size: clamp(30px, 5.4vw, 44px); }
.status-none { padding: clamp(20px, 4vw, 36px); gap: 14px; justify-items: start; }
.status-none .btn { margin-top: 6px; }
.pill { justify-self: start; display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 16px; }
.pill-open { background: var(--ok-bg); color: var(--ok); }
.pill-open::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s ease-in-out infinite; }
.pill-wait { background: var(--wait-bg); color: var(--wait); }
.pill-closed { background: var(--off-bg); color: var(--off); }
@keyframes pulse { 50% { opacity: .35; } }
.count { margin-top: 6px; }
.count-label { font-weight: 700; font-size: 17px; color: var(--ink-2); margin-bottom: 8px; }
.count-row { display: grid; grid-template-columns: repeat(4, minmax(0, 88px)); gap: 10px; }
.count-box { padding: 12px 4px 10px; border-radius: 12px; background: var(--bronze); color: #FFFDF8; text-align: center; overflow: hidden; }
.count-num { display: block; font-family: var(--display); font-size: clamp(34px, 10vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.count-num.flip { animation: flip .35s ease; }
.count-unit { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: #F1E6D2; }
@keyframes flip { from { transform: translateY(-45%); opacity: .2; } }
.week-note { padding: 12px 16px; border-left: 4px solid var(--gold-deep); background: var(--cream); font-size: 18px; border-radius: 0 8px 8px 0; }
.pickup { padding: clamp(20px, 4vw, 36px); background: var(--linen); display: grid; gap: 12px; align-content: start; min-width: 0; }
.pickup h3 { font-size: 30px; }
.pickup-date { font-family: var(--display); font-size: 24px; }
.pickup-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pickup-times li { padding: 8px 14px; background: var(--paper); border: 2px solid var(--bronze); border-radius: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.pickup-times .full { color: var(--danger); margin-left: 6px; }
.pickup-how, .pickup-where { font-size: 17px; color: var(--ink); }
.pickup-rule { font-weight: 700; font-size: 17px; color: var(--bronze); }
@media (min-width: 860px) { .status:not(.status-none) { grid-template-columns: 1.3fr 1fr; } }
.mine { width: 100%; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; background: var(--ok-bg); border: 2px solid var(--ok); border-radius: var(--r); text-align: left; cursor: pointer; font-size: 17px; color: var(--ink); }
.mine-no { font-family: var(--display); font-size: 24px; color: var(--ok); }
.mine-txt { flex: 1 1 200px; font-weight: 600; }
.mine-go { font-weight: 800; text-decoration: underline; color: var(--ok); }

/* ---------- menu ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; -webkit-tap-highlight-color: transparent; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-deep); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { display: grid; gap: 4px; padding: 12px 14px 16px; }
.card-name { font-family: var(--display); font-size: clamp(19px, 3.2vw, 23px); line-height: 1.15; color: var(--ink); }
.card-size { font-size: 16px; color: var(--ink-2); }
.card-price { font-weight: 800; font-size: 19px; color: var(--ink); margin-top: 2px; white-space: nowrap; }
.card.is-out .card-media { filter: grayscale(.7); opacity: .7; }
.badge { position: absolute; top: 10px; left: 10px; padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: 15px; }
.badge-out { background: var(--ink); color: #fff; }
.badge-low { background: var(--wait-bg); color: var(--wait); border: 1px solid var(--wait); }
.in-cart { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px; background: var(--bronze); color: #FFFDF8; font-weight: 800; font-size: 16px; text-align: center; }
.label-art { position: absolute; inset: 0; display: block; padding: 9px; background: var(--cream); }
.label-art-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; border: 2px solid var(--gold-deep); outline: 1px solid var(--gold-deep); outline-offset: -7px; border-radius: 4px; background: var(--paper); }
.label-art-by { font-family: var(--script); font-size: clamp(22px, 4.5vw, 40px); line-height: 1; color: var(--bronze); }
.label-art-name { font-family: var(--display); font-size: clamp(17px, 3.6vw, 30px); line-height: 1.12; color: var(--ink); text-wrap: balance; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 8px; align-content: start; }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold-deep); font-family: var(--display); font-size: 26px; color: var(--bronze); background: var(--cream); }
.steps h3 { font-size: 25px; }
.steps p { color: var(--ink-2); font-size: 17px; }

/* ---------- footer ---------- */
.foot { margin-top: 30px; padding-block: 30px 40px; border-top: 2px solid var(--gold-deep); display: grid; gap: 12px; justify-items: center; text-align: center; }
.foot-contact { display: grid; gap: 4px; font-size: 18px; }
.foot-law { max-width: 36em; font-size: 16px; color: var(--ink-2); }
.foot-small { font-size: 16px; }

/* ---------- cart bar ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(251, 248, 241, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: center; }
.cartbar-btn { width: min(560px, 100%); justify-content: space-between; min-height: 58px; font-size: 18px; }
.cartbar-count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: #FFFDF8; color: var(--bronze); font-weight: 800; }
.cartbar.bump .cartbar-btn { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.04); } }
body.has-cartbar .foot { padding-bottom: 120px; }

/* ---------- sheets ---------- */
body.sheet-open { overflow: hidden; }
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-shade { position: absolute; inset: 0; background: rgba(26, 22, 12, .62); opacity: 0; transition: opacity .25s ease; }
.sheet { position: relative; width: min(580px, 100%); max-height: 94%; overflow-y: auto; overscroll-behavior: contain; background: var(--cream); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); transform: translateY(40px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet:focus { outline: none; }
.sheet-wrap.in .sheet-shade { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; opacity: 1; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; max-height: 90%; } }
.sheet-x { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.sheet-body { padding: 0; }
.item-photo { background: var(--linen); }
.item-photo img { width: 100%; height: auto; max-height: 46vh; object-fit: contain; }
.item-photo-label { position: relative; aspect-ratio: 16 / 10; }
.item-photo-label .label-art-by { font-size: 36px; }
.item-photo-label .label-art-name { font-size: 30px; }
.item-photo-label .label-art-in { padding: 14px 34px; }
.item-info { padding: 22px 20px 24px; display: grid; gap: 12px; }
.item-info h2 { font-size: 34px; padding-right: 8px; }
.item-meta { font-weight: 800; font-size: 20px; }
.item-meta .dot { color: var(--gold-deep); margin-inline: 4px; }
.item-meta .low { color: var(--wait); }
.item-desc { font-size: 18px; color: var(--ink); }
.item-fine { font-size: 16px; color: var(--ink-2); }
.item-allergen { color: var(--ink); }
.item-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.item-buy .btn-wide { flex: 1 1 220px; width: auto; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--wait-bg); color: var(--wait); font-weight: 700; font-size: 17px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--bronze); border-radius: 12px; background: var(--paper); overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 26px; font-weight: 700; color: var(--bronze); cursor: pointer; }
.stepper button:disabled { color: #B9AE9B; cursor: default; }
.stepper-n { min-width: 36px; text-align: center; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }

.co, .done { padding: 24px 20px 26px; display: grid; gap: 14px; }
.co h2, .done h2 { font-size: 36px; }
.co h3 { font-size: 26px; margin-top: 10px; }
.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.line-txt { display: grid; min-width: 0; }
.line-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.line-each { font-size: 16px; color: var(--ink-2); }
.line-sum { font-weight: 800; min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.line-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--off-bg); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 460px) { .line { grid-template-columns: minmax(0, 1fr) auto; } .line-txt { grid-column: 1 / -1; } .line .stepper { grid-column: 1; justify-self: start; } .line-sum { grid-column: 2; grid-row: 2; align-self: center; margin-right: 50px; } .line-x { grid-column: 2; grid-row: 2; justify-self: end; } }
.co-total, .ticket-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; padding-top: 4px; }
.co-total strong, .ticket-total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.slot-day { font-family: var(--display); font-size: 22px; margin-top: 4px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.slot { position: relative; display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot-face { display: grid; gap: 2px; place-items: center; min-height: 64px; padding: 12px; background: var(--paper); border: 2px solid var(--gold-deep); border-radius: 12px; text-align: center; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.slot-time { font-weight: 800; font-size: 18px; }
.slot-note { font-size: 16px; font-weight: 600; }
.slot input:checked + .slot-face { background: var(--bronze); border-color: var(--bronze); color: #FFFDF8; transform: scale(1.02); }
.slot input:focus-visible + .slot-face { outline: 3px solid var(--ink); outline-offset: 2px; }
.slot.is-full { cursor: default; }
.slot.is-full .slot-face { background: var(--off-bg); border-color: var(--line); color: var(--off); }
.field { display: grid; gap: 6px; }
.field > span, .when legend, .photo-lbl { font-weight: 700; font-size: 17px; color: var(--ink); }
.field em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.tt input[type=text], .tt input[type=tel], .tt input[type=email], .tt input[type=url], .tt input[type=password], .tt input[type=number], .tt input[type=date], .tt input[type=time], .tt select, .tt textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--paper); border: 2px solid #A99A7E; border-radius: 10px; font-size: 17px; color: var(--ink); }
.tt textarea { min-height: 0; resize: vertical; line-height: 1.45; }
.tt input:focus, .tt select:focus, .tt textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(196, 168, 130, .55); }
.tt ::placeholder { color: #7C7264; opacity: 1; }
.pay-note { padding: 12px 16px; background: var(--linen); border-radius: 12px; font-weight: 700; font-size: 17px; }
.error { color: var(--danger); font-weight: 700; font-size: 17px; }
.co .error { padding: 12px 16px; background: var(--danger-bg); border-radius: 12px; }
.error:empty { display: none; }

.done { justify-items: center; text-align: center; }
.done-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); position: relative; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.done-check::after { content: ''; position: absolute; left: 23px; top: 14px; width: 16px; height: 28px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
@keyframes pop { from { transform: scale(.3); } }
.ticket { width: 100%; background: var(--paper); border: 2px solid var(--gold-deep); border-radius: 6px; padding: 7px; text-align: center; }
.ticket-in { border: 1px solid var(--gold-deep); border-radius: 3px; padding: 22px 18px; display: grid; gap: 4px; }
.ticket-lbl { font-weight: 700; font-size: 16px; color: var(--ink-2); margin-top: 10px; }
.ticket-lbl:first-child { margin-top: 0; }
.ticket-no { font-family: var(--display); font-size: 52px; line-height: 1; letter-spacing: .04em; color: var(--bronze); }
.ticket-when { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.ticket-where { font-size: 18px; font-weight: 600; }
.ticket-lines { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--gold-deep); display: grid; gap: 6px; text-align: left; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.ticket-lines li span:last-child, .line-sum, .order-total, .tile-n { white-space: nowrap; flex: none; }
.ticket-total { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--gold-deep); }
.done .pay-note { width: 100%; }
.done-fine { font-size: 16px; color: var(--ink-2); }

/* ---------- loading and reveal ---------- */
.loading { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px 16px; text-align: center; font-size: 18px; color: var(--ink-2); }
.reveal { transform: translateY(26px) scale(.985); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.shown { transform: none; }

/* ---------- owner side ---------- */
.tt-admin { background: var(--linen); min-height: 100vh; }
.adm-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--cream); border-bottom: 2px solid var(--gold-deep); }
.adm-title { width: min(880px, 100% - 32px); margin-inline: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { width: min(880px, 100%); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px 0; }
.tab { position: relative; min-height: 52px; padding: 10px 4px; background: none; border: 0; border-bottom: 4px solid transparent; font-weight: 700; font-size: 17px; color: var(--ink-2); cursor: pointer; }
.tab.on { color: var(--ink); border-bottom-color: var(--bronze); }
.tab-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--bronze); color: #fff; font-size: 15px; }
@media (max-width: 420px) { .tab { font-size: 16px; } .tab-n { margin-left: 3px; } }
.adm-main { width: min(880px, 100% - 32px); margin-inline: auto; padding-block: 18px 120px; display: grid; gap: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; min-width: 0; }
.panel h2 { font-size: 28px; }
.panel .h2-gap { margin-top: 12px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hint { font-size: 16px; color: var(--ink-2); }
.empty { padding: 16px; background: var(--cream); border: 1px dashed var(--gold-deep); border-radius: 12px; font-size: 17px; color: var(--ink-2); }
.panel-status { border-width: 2px; }
.panel-status.st-open { border-color: var(--ok); }
.panel-status.st-hidden { border-color: var(--wait); background: #FFFBF1; }
.status-line { font-size: 19px; font-weight: 600; }
.status-count { font-size: 17px; color: var(--ink-2); }
.status-count strong { font-family: var(--display); font-size: 30px; color: var(--ink); margin-right: 4px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.two { display: grid; gap: 14px; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } }
.when { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; min-width: 0; }
.tt input[type=date], .tt input[type=time] { padding-inline: 10px; font-size: 16px; min-width: 0; }
.when legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; }
.slot-rows { display: grid; gap: 12px; }
.slot-row { display: grid; gap: 10px; padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; align-items: end; }
.slot-row-times { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; font-weight: 700; }
.slot-row .link-btn { justify-self: start; }
.slot-row-cap { display: grid; gap: 4px; font-weight: 700; font-size: 16px; }
.slot-row-note { font-weight: 700; color: var(--ok); align-self: center; }
@media (min-width: 720px) { .slot-row { grid-template-columns: 1fr 2.1fr .7fr auto; } }
.wk-items { display: grid; gap: 10px; }
.wk-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.wk-item.on { background: var(--paper); border-color: var(--gold-deep); }
.wk-item-txt { display: grid; min-width: 0; }
.wk-item-name { font-weight: 700; font-size: 18px; line-height: 1.25; }
.wk-item-sub { font-size: 16px; color: var(--ink-2); }
.needs { color: var(--danger); font-weight: 800; }
.wk-item.no-price { border-style: dashed; }
.wk-item-sold { font-size: 16px; font-weight: 800; color: var(--ok); }
.wk-item-ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.wk-item-ctl label:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.tt .wk-item-ctl input[type=number] { width: 104px; min-height: 46px; }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--linen); border: 1px solid var(--line); }
.thumb-lg { width: 76px; height: 76px; border-radius: 10px; flex: none; }
.thumb-none { display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.1; }
.switch { position: relative; display: inline-block; width: 58px; height: 34px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: #A59B8A; transition: background-color .2s ease; }
.switch-ui::after { content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(24px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--bronze); }
.check-lg { font-size: 17px; }
.confirm { padding: 14px; border: 2px solid var(--wait); border-radius: 12px; background: #FFFBF1; display: grid; gap: 10px; font-weight: 600; }
.confirm-inline { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(251, 248, 241, .96); border-top: 2px solid var(--gold-deep); }
.savebar-txt { font-weight: 700; font-size: 16px; color: var(--ink-2); }
.savebar.dirty { background: #FFF3D6; border-top-color: var(--wait); }
.savebar.dirty .savebar-txt { color: var(--wait); }
.cat { display: grid; gap: 10px; }
.cat-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.cat-row:hover { border-color: var(--bronze); transform: translateX(3px); }
.cat-txt { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.cat-name { font-weight: 700; font-size: 18px; line-height: 1.25; }
.cat-sub { font-size: 16px; color: var(--ink-2); }
.cat-go { font-weight: 800; color: var(--bronze); text-decoration: underline; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--off-bg); color: var(--off); font-weight: 700; font-size: 15px; }
.chip-on, .chip-ready, .chip-paid { background: var(--ok-bg); color: var(--ok); }
.chip-new { background: var(--wait-bg); color: var(--wait); }
.chip-cancelled { background: var(--danger-bg); color: var(--danger); }
.photo-pick { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.photo-prev { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); }
.photo-prev-logo_url { object-fit: contain; padding: 8px; }
.photo-none { display: grid; place-items: center; border: 2px dashed var(--gold-deep); font-weight: 600; font-size: 16px; color: var(--ink-2); text-align: center; }
.file-btn { cursor: pointer; margin-right: 10px; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 16px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); display: grid; gap: 2px; }
.tile-n { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-l { font-weight: 700; font-size: 16px; color: var(--ink-2); }
.bake { display: grid; gap: 6px; }
.bake li { display: flex; gap: 12px; align-items: baseline; font-size: 18px; padding: 8px 12px; background: var(--cream); border-radius: 8px; }
.bake strong { min-width: 36px; font-family: var(--display); font-size: 26px; color: var(--bronze); }
.slot-h { display: grid; gap: 2px; }
.slot-h span { font-family: var(--body); font-size: 17px; font-weight: 700; color: var(--ink-2); }
.orders { display: grid; gap: 12px; }
.order { padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--cream); display: grid; gap: 10px; }
.order.st-new { border-color: var(--gold-deep); background: var(--paper); }
.order.st-ready { border-color: var(--ok); background: var(--paper); }
.order.st-cancelled { opacity: .75; }
.order-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.order-no { font-family: var(--display); font-size: 26px; letter-spacing: .03em; }
.order-total { margin-left: auto; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.order-who { font-size: 18px; }
.order-who a { margin-left: 8px; font-weight: 700; }
.order-lines { display: grid; gap: 2px; font-size: 18px; }
.order-lines strong { display: inline-block; min-width: 26px; }
.order-note { padding: 10px 12px; background: var(--wait-bg); border-radius: 8px; font-size: 17px; }
.signin { width: min(440px, 100% - 32px); margin: 8vh auto 0; padding: 26px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 14px; }
.signin .tt-logo, .loading .tt-logo { justify-self: center; }
.signin h1 { font-size: 36px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; transform: translate(-50%, 16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: none; text-align: center; }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast-bad { background: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tt *, .tt *::before, .tt *::after { animation: none !important; transition: none !important; }
  .reveal { transform: none; }
}
