/* Rapto Cafe — charcoal, brass and bone. Quiet, warm, expensive-looking. */

:root {
  --bg:        #F3F1EC;   /* bone — warm, not white                   */
  --bg-tint:   #EDEAE1;
  --surface:   #FFFFFF;
  --ink:       #17150F;   /* near-black, warm undertone               */
  --soft:      #6A6459;
  --line:      #E3DFD5;

  --char:       #1B1913;   /* charcoal — buttons, header, cart bar     */
  --char-up:    #2C2921;   /* gradient / hover                         */
  --tint:  #EDEAE1;   /* tint                                     */
  --on-dark:   #F6F2E7;   /* ivory text on charcoal                   */
  --brass:  #7A5A22;   /* brass — links and small text on white    */

  --gold:      #C9A75E;   /* light brass — accents, chips, CTA        */
  --gold-pale: #F5EDDC;
  --gold-ink:  #4A3712;

  --chili:     #A6392A;
  --chili-pale:#F7E7E3;

  --veg:       #3F7A46;
  --nonveg:    #A6392A;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;

  --lift:  0 2px 8px -2px rgba(23,21,15,.10);
  --lift2: 0 12px 28px -14px rgba(23,21,15,.42);

  --sans: 'Karla', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Yatra One', var(--sans);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
button:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--char); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.muted { color: var(--soft); }
.tiny { font-size: 12.5px; }

/* ---------------------------------------------------------- animations */

@keyframes pop     { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes bump    { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-5px) scale(1.05); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise    { from { opacity: .4; transform: translateY(26px); } }
@keyframes shimmer { to { background-position: 220% 0; } }
@keyframes thump   { from { transform: rotate(-11deg) scale(2.4); opacity: 0; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes ring    { 0% { box-shadow: 0 0 0 0 rgba(201,167,94,.5); } 100% { box-shadow: 0 0 0 12px rgba(201,167,94,0); } }
@keyframes scoot   { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* -------------------------------------------------------------- shell */

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(150deg, var(--char-up), var(--char) 65%);
  color: var(--on-dark);
  border-radius: 0 0 var(--r-l) var(--r-l);
  box-shadow: var(--lift2);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 62px; }
.mark { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--on-dark); }
.mark span { color: var(--gold); }
.topbar .spacer { flex: 1; }

.icon-btn {
  color: var(--on-dark); background: rgba(246,242,231,.14);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 700;
}
.icon-btn:hover { background: rgba(246,242,231,.24); }

.avatar {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink);
  font-size: 12px; font-weight: 700; margin-right: 2px;
}

.menu-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 14px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-m);
  margin-bottom: 10px; font-size: 15.5px; font-weight: 600;
  transition: transform .14s, border-color .14s;
}
.menu-row:hover { transform: translateY(-2px); border-color: var(--char); }
.menu-row .ico { display: grid; place-items: center; width: 26px; color: var(--brass); }
.ic { display: block; flex: none; }
.menu-row .arrow { margin-left: auto; color: var(--soft); }
.menu-row.danger { color: var(--chili); }

.shop-state {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.shop-state.open { background: var(--gold); color: var(--gold-ink); }
.shop-state.closed { background: var(--chili); color: #FFF0EC; }

.screen { padding: 20px 0 130px; animation: fadeUp .28s ease both; }

/* ---------------------------------------------------------- typography */

h1 { font-size: 27px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.015em; }
h2 { font-size: 18px; margin: 0 0 4px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px;
}
.lede { color: var(--soft); margin: 0 0 22px; }

/* -------------------------------------------------------------- forms */

label.field { display: block; margin-bottom: 14px; }
label.field > span {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 6px;
}
input[type=text], input[type=tel], input[type=number], input[type=url],
input[type=password], select, textarea {
  width: 100%; padding: 13px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--char); box-shadow: 0 0 0 4px var(--tint); outline: none;
}
textarea { min-height: 76px; resize: vertical; }

.phone-row { display: flex; gap: 8px; }
.phone-row .cc {
  display: flex; align-items: center; padding: 0 15px;
  background: var(--gold-pale); border: 1.5px solid var(--line); border-radius: var(--r-m);
  font-family: var(--mono); font-weight: 700; color: var(--gold-ink);
}
.phone-row input { flex: 1; font-family: var(--mono); font-size: 18px; letter-spacing: .1em; }

.otp-input {
  font-family: var(--mono); font-size: 27px; letter-spacing: .5em;
  text-align: center; padding: 15px 0 15px 15px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 18px;
  background: var(--char); color: var(--on-dark);
  border-radius: var(--r-m); font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(27,25,19,.8);
  transition: background .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--char-up); box-shadow: 0 10px 22px -10px rgba(27,25,19,.9); }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--brass); border: 1.5px solid var(--char); box-shadow: none; }
.btn.gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 16px -8px rgba(201,167,94,.9); }
.btn.slim { width: auto; padding: 10px 16px; font-size: 14px; }
.btn.danger { background: var(--chili-pale); color: var(--chili); box-shadow: none; }

.link-btn {
  color: var(--brass); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; font-size: 14.5px;
}

.err {
  background: var(--chili-pale); color: #8E2A18;
  border-left: 4px solid var(--chili); padding: 11px 13px;
  border-radius: 0 var(--r-s) var(--r-s) 0; margin-bottom: 14px; font-size: 14.5px;
  animation: fadeUp .2s ease both;
}

/* -------------------------------------------------------------- cards */

.card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-l); padding: 18px; box-shadow: var(--lift);
  margin-bottom: 16px;
}

/* -------------------------------------------------- location screen */

.gps-btn {
  width: 100%; display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 16px; margin-bottom: 16px;
  background: var(--gold-pale); border: 1.5px dashed var(--gold);
  border-radius: var(--r-l); color: var(--gold-ink);
  transition: transform .12s;
}
.gps-btn:hover { transform: translateY(-2px); }
.gps-btn strong { display: block; font-size: 15.5px; }
.gps-btn small { color: #8A6A16; }
.gps-dot {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center;
  color: var(--gold-ink); animation: ring 2s infinite;
}

.saved-addr {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); margin-bottom: 9px;
  transition: border-color .15s, background .15s;
}
.saved-addr:hover { border-color: var(--char); }
.saved-addr.sel { border-color: var(--char); background: var(--tint); }
.saved-addr .tag {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .1em; background: var(--gold-pale); color: var(--gold-ink);
  padding: 3px 8px; border-radius: 999px; flex: none;
}

/* ------------------------------------------------------- menu screen */

.hello { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hello h1 { font-size: 24px; margin: 0; }
.hello .sub { color: var(--soft); font-size: 14px; }

.addr-strip {
  display: flex; gap: 10px; align-items: center;
  background: var(--tint); border-radius: var(--r-m);
  padding: 11px 14px; margin-bottom: 14px; font-size: 14px;
}
.addr-strip .pin { display: grid; place-items: center; color: var(--brass); }
.addr-strip .txt { flex: 1; min-width: 0; color: #4B463B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.searchbox { position: relative; margin-bottom: 6px; }
.searchbox input { padding-left: 42px; border-radius: 999px; }
.searchbox .mag { position: absolute; left: 14px; top: 13px; color: var(--soft); }

.cat-rail {
  position: sticky; top: 62px; z-index: 30;
  background: linear-gradient(var(--bg) 78%, transparent);
  margin: 0 -16px; padding: 12px 16px 14px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 15px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: all .16s;
}
.chip.on {
  background: var(--gold); border-color: var(--gold); color: var(--gold-ink);
  box-shadow: 0 6px 14px -8px rgba(201,167,94,1);
}

.cat-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; scroll-margin-top: 128px; }
.cat-head h2 { font-size: 20px; }
.cat-head .count {
  font-family: var(--mono); font-size: 11px; color: var(--gold-ink);
  background: var(--gold-pale); padding: 2px 8px; border-radius: 999px;
}
.cat-head::after { content: ''; flex: 1; height: 1.5px; background: var(--line); border-radius: 2px; }

/* dish cards */
.dish {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-l); padding: 14px; margin-bottom: 12px;
  box-shadow: var(--lift); transition: transform .16s, box-shadow .16s;
}
.dish:hover { transform: translateY(-2px); box-shadow: var(--lift2); }
.dish .body { flex: 1; min-width: 0; }
.dish h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.dish p { margin: 4px 0 10px; font-size: 13.5px; color: var(--soft); }
.dish .price { font-family: var(--mono); font-weight: 700; font-size: 16px; }

.veg-dot {
  display: inline-grid; place-items: center; width: 14px; height: 14px;
  border: 2px solid var(--veg); border-radius: 3px; margin-right: 7px; vertical-align: 1px;
}
.veg-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--veg); }
.veg-dot.non { border-color: var(--nonveg); }
.veg-dot.non::after { background: var(--nonveg); }

.shot {
  width: 104px; height: 104px; flex: none; border-radius: var(--r-m);
  object-fit: cover; background: var(--gold-pale); display: block;
}
.shot-none {
  width: 104px; height: 104px; flex: none; border-radius: var(--r-m);
  background: linear-gradient(145deg, var(--gold-pale), var(--tint));
  display: grid; place-items: center;
  font-family: var(--display); font-size: 30px; color: rgba(27,25,19,.28);
}

.portions { display: flex; flex-direction: column; gap: 8px; }
.portion {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-s);
  padding: 7px 8px 7px 12px; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.portion.on { border-color: var(--char); background: var(--tint); }
.portion .pn { font-weight: 700; font-size: 14px; }
.portion .pp { font-family: var(--mono); font-size: 13.5px; color: var(--soft); }
.portion .stepper, .portion .add-btn { margin-left: auto; }
.portion .add-btn { padding: 6px 16px; }
.portion .stepper button { padding: 6px 11px; }

.add-btn {
  border: 1.5px solid var(--char); color: var(--brass); background: var(--surface);
  border-radius: var(--r-s); padding: 9px 22px; font-weight: 700; font-size: 14px;
  letter-spacing: .04em; transition: background .15s, color .15s;
}
.add-btn:hover { background: var(--char); color: var(--on-dark); border-color: var(--char); }
.stepper {
  display: inline-flex; align-items: center; border-radius: var(--r-s);
  overflow: hidden; background: var(--char); color: var(--on-dark);
  animation: pop .22s cubic-bezier(.2,1.5,.4,1);
  box-shadow: 0 6px 14px -8px rgba(27,25,19,1);
}
.stepper button { padding: 8px 14px; color: inherit; font-size: 17px; line-height: 1; }
.stepper button:hover { background: rgba(246,242,231,.16); }
.stepper .n { font-family: var(--mono); font-weight: 700; min-width: 24px; text-align: center; }

/* skeletons while the menu loads */
.skel {
  background: linear-gradient(100deg, var(--line) 20%, #F7F8F2 40%, var(--line) 60%);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-m);
}
.skel-dish { display: flex; gap: 14px; padding: 14px; margin-bottom: 12px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-l); }
.skel-dish .l { flex: 1 }
.skel-dish .l div { height: 12px; margin-bottom: 9px; }

/* ----------------------------------------------------------- cart bar */

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2,1.3,.4,1);
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
}
.cartbar.up { transform: none; }
.cartbar .wrap {
  display: flex; align-items: center; gap: 14px; height: 66px;
  background: linear-gradient(150deg, var(--char-up), var(--char) 70%);
  color: var(--on-dark); border-radius: var(--r-l); padding: 0 10px 0 20px;
  box-shadow: var(--lift2); max-width: 620px;
}
.cartbar .n { font-family: var(--mono); font-size: 12.5px; opacity: .85; }
.cartbar .amt { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.cartbar .amt.bump { animation: bump .35s ease; }
.cartbar .go {
  margin-left: auto; background: var(--gold); color: var(--gold-ink);
  padding: 13px 20px; border-radius: var(--r-m); font-weight: 700;
}

/* -------------------------------------------------------------- sheet */

.sheet-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(23,21,15,.6);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.sheet {
  background: var(--bg); width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto;
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 8px 16px calc(28px + env(safe-area-inset-bottom));
  animation: rise .26s cubic-bezier(.2,1.2,.4,1);
}
.sheet-grip { width: 46px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 16px; }
.sheet-head { display: flex; align-items: center; margin-bottom: 14px; }
.sheet-head h2 { flex: 1; }

/* ------------------------------- SIGNATURE: the ledger bill / slip */

.slip {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-m) var(--r-m) 0 0; padding: 18px 18px 22px;
  position: relative;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(23,21,15,.045) 27px 28px);
}
.slip::after {
  content: ''; position: absolute; left: -1px; right: -1px; bottom: -11px; height: 12px;
  background: radial-gradient(circle at 6px 0, transparent 0 6px, var(--surface) 6px) repeat-x 0 0 / 12px 12px;
  filter: drop-shadow(0 1px 0 var(--line));
}
.slip-title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-ink);
  display: flex; justify-content: space-between; margin-bottom: 12px;
}
.slip-line, .slip-total { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; padding: 4px 0; }
.slip .slip-line:has(.cart-step) { align-items: center; padding: 8px 0; }
.slip-line .qty { font-family: var(--mono); color: var(--soft); min-width: 30px; }

/* quantity control inside the bill */
.cart-step {
  display: inline-flex; align-items: center; flex: none;
  border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); overflow: hidden;
}
.cart-step button {
  padding: 4px 9px; font-size: 15px; line-height: 1; color: var(--char);
}
.cart-step button:hover { background: var(--tint); }
.cart-step b {
  font-family: var(--mono); font-size: 13px; min-width: 20px; text-align: center;
  border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line);
  padding: 4px 0;
}
.slip-line .rm {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  color: var(--soft); font-size: 17px; line-height: 1;
  display: grid; place-items: center;
}
.slip-line .rm:hover { background: var(--chili-pale); color: var(--chili); }
.slip-line .nm { flex: 1; min-width: 0; }
.slip-line .amt, .slip-total .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.slip-rule { border-top: 1.5px dashed var(--line); margin: 10px 0; }
.slip-total { font-weight: 700; font-size: 17.5px; padding-top: 6px; }
.slip-total .nm { flex: 1; }

.stamp {
  position: absolute; right: 16px; bottom: 22px;
  border: 2.5px solid var(--chili); color: var(--chili);
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 5px;
  transform: rotate(-11deg); opacity: .8;
  animation: thump .32s cubic-bezier(.2,1.6,.4,1);
}
.stamp.green { border-color: var(--brass); color: var(--brass); }

.pay-row {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-m);
  padding: 14px; background: var(--surface); margin: 20px 0 16px;
}
.pay-row .cash {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--gold-pale); color: var(--gold-ink);
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.menu-row .arrow { font-size: 13px; }

/* ------------------------------------------------------ order tracker */

.hero-ok { text-align: center; padding: 6px 0 4px; }
.hero-ok svg { width: 72px; height: 72px; }
.hero-ok circle, .hero-ok path {
  fill: none; stroke: var(--brass); stroke-width: 3.4; stroke-linecap: round;
  stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw .7s ease forwards;
}
.hero-ok path { animation-delay: .35s; }

.track { list-style: none; margin: 18px 0 0; padding: 0 0 0 28px; position: relative; }
.track::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 14px; width: 2.5px; background: var(--line); border-radius: 2px; }
.track li { position: relative; padding: 0 0 22px; }
.track li::before {
  content: ''; position: absolute; left: -28px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--line);
}
.track li.done::before { background: var(--char); border-color: var(--char); }
.track li.now::before { background: var(--gold); border-color: var(--gold); animation: ring 1.8s infinite; }
.track li.now .t { color: var(--gold-ink); }
.track .t { font-weight: 700; font-size: 15px; }
.track .at { font-family: var(--mono); font-size: 12px; color: var(--soft); }
.scoot { display: inline-block; animation: scoot 1.4s ease-in-out infinite; }

.order-row {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m);
  padding: 15px; margin-bottom: 11px; box-shadow: var(--lift);
  transition: transform .14s;
}
.order-row:hover { transform: translateY(-2px); }
.order-row .no { font-family: var(--mono); font-size: 13px; color: var(--gold-ink); }
.badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--gold-pale); color: var(--gold-ink);
}
.badge.live { background: var(--char); color: var(--on-dark); }
.badge.done { background: var(--tint); color: var(--brass); }
.badge.dead { background: var(--chili-pale); color: var(--chili); }

/* -------------------------------------------------------------- misc */

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  background: var(--ink); color: #F4F8FB; padding: 12px 20px;
  border-radius: 999px; font-size: 14.5px; z-index: 90;
  box-shadow: var(--lift2); animation: rise .22s ease;
}

.empty { text-align: center; padding: 52px 20px; color: var(--soft); }
.empty .big { display: inline-grid; place-items: center; margin-bottom: 12px; color: var(--line); }
.empty .big svg { stroke: var(--soft); opacity: .5; }

.spin {
  width: 18px; height: 18px; border: 2.5px solid rgba(246,242,231,.3);
  border-top-color: var(--on-dark); border-radius: 50%; animation: spin .7s linear infinite;
}

/* ======================================================== ADMIN PANEL */

.adm-top {
  background: linear-gradient(150deg, var(--char-up), var(--char) 65%); color: var(--on-dark);
  border-radius: 0 0 var(--r-l) var(--r-l); box-shadow: var(--lift2);
}
.adm-top .wrap { max-width: 1100px; display: flex; align-items: center; gap: 12px; height: 62px; }
.adm-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 80px; }

.tabs { display: flex; gap: 6px; margin: 4px 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 18px; font-weight: 700; font-size: 14.5px; white-space: nowrap;
  color: var(--soft); border-radius: 999px; background: var(--surface);
  border: 1.5px solid var(--line); transition: all .15s;
}
.tab.on { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-m); padding: 15px; box-shadow: var(--lift);
}
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.stat .v { font-family: var(--mono); font-size: 25px; font-weight: 700; margin-top: 5px; }

table { width: 100%; border-collapse: collapse; background: var(--surface); }
th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--soft); padding: 11px 12px; border-bottom: 1.5px solid var(--line);
}
td { padding: 12px; border-bottom: 1.5px solid var(--line); font-size: 14.5px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.thumb { width: 46px; height: 46px; border-radius: var(--r-s); object-fit: cover; display: block; background: var(--gold-pale); }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.switch input {
  appearance: none; width: 40px; height: 23px; border-radius: 999px;
  background: var(--line); position: relative; transition: background .18s;
}
.switch input::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked { background: var(--char); }
.switch input:checked::after { transform: translateX(17px); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* photo picker */
.picker { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.picker .preview {
  width: 92px; height: 92px; border-radius: var(--r-m); flex: none;
  border: 1.5px dashed var(--line); background: var(--gold-pale);
  display: grid; place-items: center; overflow: hidden; color: var(--soft); font-size: 12px; text-align: center;
}
.picker .preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .shot, .shot-none { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
