/* User app theme: Instagram-style, flat and clean. Light by default; dark is chosen in More → Appearance.
   (The admin and VJ panels keep the dark base theme.) */
:root, :root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #efefef;
  --line: #dbdbdb;
  --text: #000000;
  --muted: #737373;
  --accent: #0095f6;
  --accent-2: #0095f6;
  --ok: #00a35c;
  --warn: #e67700;
  --bad: #ed4956;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: var(--font);
  --brand: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  --chrome: rgba(255, 255, 255, 0.92);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #262626;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --accent: #0095f6;
  --accent-2: #4cb5f9;
  --ok: #2ecc71;
  --warn: #ffb020;
  --bad: #ff5a65;
  --chrome: rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); font-size: 14px; transition: background .2s, color .2s; }
main { max-width: 600px; margin: 0 auto; padding: 12px 16px 16px; }
h1, h2, h3 { font-family: var(--font); letter-spacing: 0; font-weight: 700; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }

/* flat controls */
.btn { border-radius: 8px; font: 600 14px var(--font); padding: 10px 16px; }
.btn.small { border-radius: 8px; padding: 7px 12px; }
.btn.ghost { background: var(--surface-2); border: 0; }
.btn.ok { color: #fff; }
.card { border-radius: var(--radius); }
input, textarea, select { border-radius: 8px; font-size: 14px; }
.chip { border-radius: 10px; }
.toast { background: #262626; color: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.sheet-wrap { background: rgba(0, 0, 0, 0.5); }
.sheet { border-radius: 16px 16px 0 0; }
.pill { background: transparent; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px; min-height: 52px;
  background: var(--chrome); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font: 700 23px "Space Grotesk", var(--font); letter-spacing: .04em; flex: 1;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand b { font-weight: 700; }
.back { background: none; border: 0; color: var(--text); font-size: 30px; line-height: 1; padding: 0 6px 4px 0; cursor: pointer; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--text); cursor: pointer;
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 24px; height: 24px; }
.coins-pill {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px;
  background: var(--surface-2); padding: 6px 12px; border-radius: 999px;
}

/* bottom tab bar: a floating "dynamic island" pill; icons only, profile tab shows your initial */
.tabbar {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 420px); height: 62px; padding: 7px;
  display: flex; gap: 4px; border-radius: 999px;
  background: rgba(16, 16, 18, 0.9); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
}
:root[data-theme="dark"] .tabbar { background: rgba(38, 38, 40, 0.88); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.tabbar a {
  flex: 1; display: grid; place-items: center; border-radius: 999px; color: rgba(255, 255, 255, 0.62);
  text-decoration: none; transition: background .25s, color .25s, transform .15s;
}
.tabbar a:active { transform: scale(0.92); }
.tabbar a.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.on svg { stroke-width: 2.3; }
.tabbar a.on .fillable { fill: currentColor; }
.tabbar .me {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px var(--font); background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8);
}
.tabbar a.on .me { background: #fff; color: #000; }
.toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* stories row (home shortcuts) */
.stories { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px 14px; padding: 4px 16px 2px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 70px; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--text); font-size: 12px; }
.story .ring { width: 66px; height: 66px; border-radius: 50%; padding: 2.5px; background: var(--brand); }
.story .ring span {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 27px;
  background: var(--surface-2); border: 3px solid var(--bg);
}
.story b { font-weight: 400; max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* event posts (home feed) */
.post { margin: 0 -16px 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.post header { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: var(--brand); flex: none; }
.avatar i {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font: 700 12px "Space Grotesk", var(--font);
  font-style: normal; background: var(--bg); color: var(--text); border: 2px solid var(--bg);
}
.post header b { font-size: 14px; }
.post .poster { aspect-ratio: 3 / 4; }
.post .actions { display: flex; align-items: center; gap: 4px; padding: 6px 10px 0; }
.post .actions .grow { flex: 1; }
.post .caption { padding: 6px 16px 0; font-size: 14px; }
.post .caption .muted { font-size: 13px; margin-top: 2px; }
.post .btn.small { font-size: 13px; }

/* appearance switch */
.seg { display: flex; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); font: 600 14px var(--font); padding: 9px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
:root[data-theme="dark"] .seg button.on { background: #3a3a3a; }

/* login */
.login { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
.login .logo { font: 700 clamp(30px, 10vw, 52px) var(--display); letter-spacing: 0.14em; white-space: nowrap; }
.login .logo b { color: var(--accent); }
.glow { position: fixed; inset: -20% -20% auto; height: 70vh; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent),
              radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent); }

/* membership card */
.mcard {
  border-radius: 20px; padding: 18px; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--tier, #555), color-mix(in srgb, var(--tier, #555) 30%, #000));
  border: 1px solid color-mix(in srgb, var(--tier) 60%, transparent); min-height: 150px;
}
.mcard.light { color: #111; }
.mcard .tier { font: 700 24px var(--display); letter-spacing: 0.06em; }
.mcard .bal { font: 700 34px var(--display); margin-top: 18px; }
.mcard::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.12);
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px;
}
.tile .ic { font-size: 28px; }
.tile b { font-family: var(--display); font-size: 16px; }
.tile span { color: var(--muted); font-size: 12px; }

/* home: banner carousel */
.carousel { position: relative; margin: 0 -16px; }
.carousel .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 16px; gap: 10px; scroll-padding: 0 16px;
}
.carousel .track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2.1 / 1; border-radius: 18px; overflow: hidden;
  display: flex; align-items: flex-end; text-decoration: none; color: #fff; position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.28), transparent 45%),
              linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 30%, #000));
}
.slide.img { background: #000 center / cover; }
.slide .cap { width: 100%; padding: 14px 16px; }
.slide.img .cap { background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.slide .cap b { display: block; font: 700 21px/1.15 var(--display); max-width: 85%; }
.slide .cap span { display: block; font-size: 13px; opacity: .9; margin-top: 4px; }
.carousel .dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.carousel .dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .2s, background .2s; }
.carousel .dots i.on { width: 18px; background: var(--accent); }

/* home: category icons */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.cats a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text);
  font-size: 12px; font-weight: 600; text-align: center; padding: 12px 4px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.cats span { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }

/* event posters */
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.evcard {
  flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.evbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.evbody .when { color: var(--accent-2); font-weight: 600; font-size: 12px; }
.evbody .from { margin-top: 4px; font-size: 13px; color: var(--muted); }
.evbody .from b { color: var(--text); }
.poster { aspect-ratio: 3 / 4; background: #000 center / cover; }  /* event posters are 3:4 portrait */
.poster.none {
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(250, 126, 30, .45), transparent 55%),
              linear-gradient(135deg, #d62976, #962fbf 55%, #2a0b3d);
}
.poster.none span { font: 700 40px var(--display); }
.poster.none small { font: 600 14px var(--display); text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.evfull { padding: 0; overflow: hidden; }
.evfull > :not(.poster) { margin-left: 16px; margin-right: 16px; }
.evfull > :last-child { margin-bottom: 16px; }
.tkt { padding: 0; overflow: hidden; }
.tkt .ticket { padding: 16px; }
.tkt-img { aspect-ratio: 3.2 / 1; background: center / cover; }

.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }

/* photo flow */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--accent); }
.datecard { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.datebox {
  width: 56px; height: 60px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center;
  text-align: center; line-height: 1.1; font-family: var(--display); border: 1px solid var(--line);
}
.datebox b { font-size: 22px; display: block; }
.datebox small { font-size: 11px; color: var(--muted); text-transform: uppercase; }

.cam { position: relative; border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .ring {
  position: absolute; inset: 12% 14%; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.45); transition: border-color 0.2s;
}
.cam .prompt {
  position: absolute; left: 12px; right: 12px; bottom: 14px; text-align: center; font: 700 18px var(--display); color: #fff;
  background: rgba(0, 0, 0, 0.6); padding: 10px; border-radius: 14px;
}
.cam .dots { position: absolute; top: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.cam .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.cam .dots i.on { background: var(--ok); }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pgrid button {
  position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer;
  background: var(--surface-2);
}
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgrid .lock {
  position: absolute; right: 5px; bottom: 5px; font-size: 11px; font-weight: 700; padding: 3px 7px;
  border-radius: 999px; background: rgba(0, 0, 0, 0.7); color: #fff;
}
.pgrid .lock.open { background: var(--ok); color: #fff; }
.viewer img { width: 100%; border-radius: 14px; display: block; background: #000; }

/* screen */
.upload {
  display: grid; place-items: center; border: 2px dashed var(--line); border-radius: var(--radius);
  aspect-ratio: 16 / 9; cursor: pointer; overflow: hidden; color: var(--muted); text-align: center;
}
.upload img { width: 100%; height: 100%; object-fit: cover; }
.preview169 {
  aspect-ratio: 16 / 9; border-radius: 12px; background: #000 center / cover; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.preview169 span { color: #fff; width: 100%; padding: 10px; font: 700 15px var(--display); background: linear-gradient(transparent, rgba(0,0,0,.8)); }

/* tickets */
.ev { display: flex; flex-direction: column; gap: 10px; }
.ev .when { color: var(--accent-2); font-weight: 600; font-size: 13px; }
.tt { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ticket { display: flex; gap: 14px; align-items: center; }
.ticket .qr { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; width: 92px; height: 92px; flex: none; }
.ticket .qr img, .ticket .qr svg { width: 100%; height: 100%; }
.code { font: 700 18px var(--display); letter-spacing: 0.1em; }

/* store */
.prod { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.prod .em { font-size: 54px; text-align: center; padding: 14px 0; background: var(--surface-2); border-radius: 12px; }
.prod s { color: var(--muted); font-size: 12px; }

/* membership */
.tiercard { border-left: 4px solid var(--tier); }
.perk { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.perk:last-child { border: 0; }

.txn { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.txn .amt { font-weight: 700; white-space: nowrap; }
.txn .amt.plus { color: var(--ok); }

.list-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.chip:disabled { opacity: .6; cursor: not-allowed; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid; animation: noticeIn .3s ease; }
.notice > span { font-size: 22px; line-height: 1.1; }
.notice.warn { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.notice.info { background: color-mix(in srgb, var(--accent-2) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); }
@keyframes noticeIn { from { opacity: 0; transform: translateY(-4px); } }
.post a, .section-h a, .row.spread > a.small { text-decoration: none; }
.section-h a, .row.spread > a.small { font-weight: 600; }

/* story circles: thumbnails, seen state, shortcuts */
.story .ring span img, .story .ring span video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.story .ring span { overflow: hidden; }
.story.seen .ring { background: var(--line); padding: 1.5px; }
.story.seen .ring span { border-width: 4px; }
.story.shortcut .ring { background: var(--line); padding: 1px; }
.story.shortcut .ring span { border-width: 4px; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* full-screen story viewer (9:16) */
.sv { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; animation: svIn .18s ease; touch-action: none; }
@keyframes svIn { from { opacity: 0; transform: scale(.96); } }
.sv-frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); background: #111; overflow: hidden; color: #fff; }
@media (min-width: 600px) { .sv-frame { border-radius: 12px; height: min(96dvh, calc(100vw * 16 / 9)); width: min(100vw, calc(96dvh * 9 / 16)); } }
.sv-media, .sv-media img, .sv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-bars { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sv-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.sv-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.sv-head { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; padding: 0 8px 0 12px; display: flex; align-items: center; gap: 8px; z-index: 3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.sv::before { content: ""; }
.sv-frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 110px; z-index: 2; background: linear-gradient(rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.sv-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: 2; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.sv-head .avatar { width: 32px; height: 32px; }
.sv-head .avatar i { background: #111; color: #fff; border-color: #111; }
.sv-title { font-size: 14px; }
.sv-ago { font-size: 13px; opacity: .75; }
.sv-btn { background: none; border: 0; color: #fff; font-size: 20px; width: 38px; height: 38px; cursor: pointer; }
.sv-tap { position: absolute; top: 70px; bottom: 90px; z-index: 2; }
.sv-tap.left { left: 0; width: 32%; }
.sv-tap.right { right: 0; width: 68%; }
.sv-cta { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; justify-content: center; z-index: 3; }
.sv-go { border: 0; border-radius: 999px; background: #fff; color: #000; font: 700 15px var(--font); padding: 12px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); cursor: pointer; display: flex; align-items: center; gap: 6px; animation: ctaIn .35s ease .15s both; }
.sv-go span { font-size: 20px; line-height: 1; }
@keyframes ctaIn { from { opacity: 0; transform: translateY(10px); } }
.sv.held .sv-bars, .sv.held .sv-head, .sv.held .sv-cta { opacity: 0; transition: opacity .2s; }
.terms { gap: 10px; color: var(--text); font-size: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.terms input { width: 18px; height: 18px; flex: none; }
.terms a { font-weight: 600; text-decoration: none; }
.terms-list { padding-left: 20px; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }

/* club coin image (replaces the coin emoji) */
img.coin { height: 1.25em; width: auto; vertical-align: -0.28em; display: inline-block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.coins-pill { display: inline-flex; align-items: center; gap: 5px; }
.coins-pill img.coin { height: 20px; vertical-align: 0; }
.story .ring span img.coin { width: 72%; height: 72%; border-radius: 0; object-fit: contain; }

/* sold-out events */
.poster { position: relative; }
.so-badge {
  position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 8px; font: 800 13px var(--font);
  letter-spacing: .08em; color: #fff; background: #ed4956; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transform: rotate(3deg);
}
.btn.soldout { background: var(--surface-2); color: var(--muted); cursor: default; pointer-events: none; }
.so-note { font-size: 13px; color: var(--bad); font-weight: 600; text-align: center; padding: 4px 0 2px; }

/* cart */
.cart-btn { position: relative; color: var(--text); }
.cart-btn .badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #ed4956; color: #fff; font: 700 11px/18px var(--font); text-align: center; border: 2px solid var(--bg);
}
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }
.citem { display: flex; gap: 12px; align-items: flex-start; position: relative; padding: 12px; }
.citem.bad { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.ci-img { width: 72px; height: 72px; border-radius: 10px; flex: none; background: var(--surface-2) center / cover; display: grid; place-items: center; font-size: 34px; }
.ci-ev { background: linear-gradient(135deg, #d62976, #962fbf 60%, #2a0b3d); }
.ci-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px; }
.citem b { padding-right: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: none; color: var(--text); width: 34px; height: 30px; font-size: 18px; cursor: pointer; }
.qty button:disabled { color: var(--muted); opacity: .4; cursor: not-allowed; }
.qty b { min-width: 22px; text-align: center; padding: 0; }

/* screen time slots */
.slots { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.slots::-webkit-scrollbar { display: none; }
.slot {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 92px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: 13px var(--font); cursor: pointer;
}
.slot b { font-size: 14px; }
.slot span { font-size: 12px; color: var(--muted); }
.slot small { font-size: 11px; font-weight: 600; color: var(--ok); margin-top: 2px; }
.slot small.full { color: var(--bad); }
.slot small.paused { color: var(--warn); }
.slot.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: 0 0 0 1px var(--accent); }
.slot:disabled { opacity: .5; cursor: not-allowed; }
