/* ==========================================================================
   MealHive — app design system
   Honey + ink, a floating dark dock, big numbers, big touch targets.
   Colours and fonts come from Console → Settings (see App\Support\Theme).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[lang="bn"] body { font-family: var(--font-bangla); font-size: 15.5px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 .75em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { letter-spacing: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 10px; }
::selection { background: var(--honey); color: #1C1B22; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.shell { min-height: 100vh; min-height: 100dvh; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.mess-switch { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-align: left; padding: 4px 6px 4px 0; border-radius: 16px; }
.mess-switch .hex { flex: none; }
.mess-switch__text { min-width: 0; }
.mess-switch__name { display: flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.15; }
.mess-switch__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mess-switch__name .icon { width: 16px; height: 16px; color: var(--muted); }
.mess-switch__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.round-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.round-btn:active { transform: scale(.94); }
.round-btn .dot {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--due); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--canvas); line-height: 1;
}

.screen { width: 100%; max-width: 1120px; margin: 0 auto; padding: 4px 16px calc(118px + env(safe-area-inset-bottom)); }
.screen--narrow { max-width: 640px; }

/* Screen header */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.head > div:first-child { min-width: 0; flex: 1 1 220px; }
.head h1 { font-size: 28px; }
.head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.head__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin: 6px 0 2px; padding: 6px 0; }
.back .icon { width: 18px; height: 18px; }

/* The dock: a dark floating pill with a honey "+" */
.dock {
  position: fixed; z-index: 50; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px)); height: 68px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 0 6px; border-radius: 24px;
  background: var(--dock); color: #fff;
  box-shadow: 0 18px 40px -16px rgba(10, 10, 14, .55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.dock__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 56px; border-radius: 18px; color: rgba(255,255,255,.58); font-size: 11px; font-weight: 600; letter-spacing: .01em;
  transition: color .15s ease, background .15s ease;
}
.dock__item .icon { width: 22px; height: 22px; }
.dock__item.is-active { color: var(--honey); }
.dock__item.is-active::after { content: ""; width: 4px; height: 4px; border-radius: 99px; background: var(--honey); margin-top: -1px; }
.dock__item.is-active span { display: none; }
.dock__add {
  justify-self: center; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 19px;
  background: var(--honey); color: #1C1B22;
  box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--honey) 70%, transparent);
  transition: transform .15s ease;
}
.dock__add .icon { width: 26px; height: 26px; stroke-width: 2.6; }
.dock__add:active { transform: scale(.92) rotate(90deg); }

/* --------------------------------------------------------------------------
   Brand marks
   -------------------------------------------------------------------------- */
.hex {
  --size: 40px;
  width: var(--size); height: calc(var(--size) * 1.08);
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  background: var(--honey); color: #1C1B22;
  font-family: var(--font-display); font-weight: 800; font-size: calc(var(--size) * .36); letter-spacing: -.02em;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo svg { width: 36px; height: 36px; }

/* --------------------------------------------------------------------------
   Cards & grid
   -------------------------------------------------------------------------- */
.card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; position: relative; }
.card + .card, .stack > * + * { margin-top: 12px; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card__head h2 { font-size: 17px; }
.card__head .link { font-size: 13.5px; }
.card__foot { border-top: 1px solid var(--line); margin: 14px -18px -18px; padding: 12px 18px; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.link { color: var(--honey-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link .icon { width: 16px; height: 16px; }
.eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
html[lang="bn"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h2 { font-size: 18px; }

@media (max-width: 899px) { .dash > * + * { margin-top: 12px; } }
@media (min-width: 900px) {
  .screen { padding-left: 28px; padding-right: 28px; }
  .dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .dash > * { margin: 0 !important; }
  .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
  .head h1 { font-size: 32px; }
}

/* --------------------------------------------------------------------------
   Buttons, chips, badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 16px;
  font-weight: 700; font-size: 15px; line-height: 1.1; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, opacity .15s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn--honey { background: var(--honey); color: #1C1B22; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--honey) 80%, #000); }
.btn--honey:hover { background: color-mix(in srgb, var(--honey) 90%, #000); }
.btn--ink { background: var(--ink); color: var(--canvas); }
.btn--soft { background: var(--canvas-2); color: var(--ink); }
.btn--card { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn--ghost { color: var(--ink); }
.btn--due { background: var(--due-soft); color: var(--due-ink); }
.btn--credit { background: var(--credit-soft); color: var(--credit-ink); }
.btn--sm { min-height: 38px; padding: 0 13px; border-radius: 12px; font-size: 13.5px; }
.btn--xs { min-height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; gap: 5px; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 16.5px; border-radius: 18px; }
.btn .icon { width: 18px; height: 18px; }
.btn--icon { width: 44px; padding: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px;
  border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, box-shadow .15s, color .15s;
}
.chip .icon { width: 16px; height: 16px; }
.chip.is-on, .chip:has(input:checked) { background: var(--ink); color: var(--canvas); box-shadow: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip--honey.is-on, .chip--honey:has(input:checked) { background: var(--honey); color: #1C1B22; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips--scroll::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--canvas-2); color: var(--ink-2); white-space: nowrap; }
.badge--honey { background: var(--honey-soft); color: var(--honey-ink); }
.badge--credit { background: var(--credit-soft); color: var(--credit-ink); }
.badge--due { background: var(--due-soft); color: var(--due-ink); }
.badge--ink { background: var(--ink); color: var(--canvas); }
.badge .icon { width: 12px; height: 12px; stroke-width: 2.6; }

.amount { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; }
.amount--credit { color: var(--credit-ink); }
.amount--due { color: var(--due-ink); }
.pill-amount { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; white-space: nowrap; background: var(--canvas-2); }
.pill-amount--credit { background: var(--credit-soft); color: var(--credit-ink); }
.pill-amount--due { background: var(--due-soft); color: var(--due-ink); }

/* Avatars: squircles in the member's colour */
.avatar {
  --size: 42px;
  width: var(--size); height: var(--size); flex: none;
  border-radius: 34%; display: grid; place-items: center; overflow: hidden;
  background: var(--c, var(--honey)); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: calc(var(--size) * .38); letter-spacing: -.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { --size: 32px; }
.avatar--xs { --size: 26px; font-size: 10px; }
.avatar--lg { --size: 64px; }
.avatar--xl { --size: 88px; border-radius: 30%; }
.avatar--me { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 5px var(--honey); }
.avatar--fund { background: var(--ink); color: var(--honey); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--card); }
.avatar-stack .avatar + .avatar { margin-left: -8px; }

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 64px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 72px; right: 18px; border-top: 1px solid var(--line); }
.card--flush .row:first-child { padding-top: 14px; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 6px; min-width: 0; }
.row__title > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__main > span { display: block; }
.row__main > .row__title { display: flex; }
.row__sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
a.row:active, button.row:active { background: var(--canvas-2); }
.row--link::after { content: ""; }
.row .chev { color: var(--faint); width: 18px; height: 18px; }
.row-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--canvas-2); color: var(--ink); flex: none; }
.row-icon--honey { background: var(--honey-soft); color: var(--honey-ink); }
.row-icon--credit { background: var(--credit-soft); color: var(--credit-ink); }
.row-icon--due { background: var(--due-soft); color: var(--due-ink); }
.row-icon--ink { background: var(--ink); color: var(--honey); }
.list-group-title { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 14px 18px 4px; display: flex; justify-content: space-between; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.form > *, .grid > *, .field > * { min-width: 0; }
.field { display: grid; gap: 7px; }
.field > label, .label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .error, .error-text { font-size: 13px; color: var(--due-ink); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 16px;
  background: var(--field); border: 1.5px solid transparent; outline: 0;
  font-size: 16px; line-height: 1.35; transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--honey); background: var(--card); box-shadow: 0 0 0 4px var(--honey-wash); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-left: 46px; }
.input-wrap .toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 12px; }
.input-wrap .toggle-pass .icon { position: static; transform: none; }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.is-invalid { border-color: var(--due) !important; }

/* Huge amount input */
.money-input { display: block; text-align: center; padding: 18px 12px 8px; cursor: text; }
.money-input__box { display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; max-width: 100%; }
.money-input__cur { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--muted); }
.money-input input {
  width: 7ch; min-width: 3ch; max-width: 100%; border: 0; outline: 0; background: transparent; text-align: left;
  font-family: var(--font-display); font-size: 56px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  padding: 0; line-height: 1.1; caret-color: var(--honey);
}
.money-input input::placeholder { color: var(--line-2); }
.money-input__line { display: block; width: 160px; height: 4px; border-radius: 4px; margin: 6px auto 0; background: var(--honey); }

/* Switch */
.switch { position: relative; display: inline-flex; flex: none; width: 50px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.3,.7,.4,1.2); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--honey); }
.setting-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.setting-row + .setting-row { border-top: 1px solid var(--line); }
.setting-row__text { flex: 1; min-width: 0; }
.setting-row__text strong { display: block; font-weight: 700; }
.setting-row__text span { display: block; font-size: 13px; color: var(--muted); }

/* Segmented control */
.segmented { display: flex; padding: 4px; gap: 4px; border-radius: 16px; background: var(--canvas-2); overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a, .segmented button, .segmented label { flex: 1; min-height: 40px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; position: relative; }
.segmented .is-on, .segmented label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0,0,0,.12); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

/* Sticky action bar at the bottom of forms (sits above the dock) */
.form-actions { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 10px; padding: 12px 0 4px; background: linear-gradient(to top, var(--canvas) 70%, transparent); }
.form-actions .btn { flex: 1; }
.no-dock .form-actions { bottom: env(safe-area-inset-bottom); }

/* --------------------------------------------------------------------------
   Sheets, dialogs, toasts
   -------------------------------------------------------------------------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(12, 11, 16, .45); opacity: 0; transition: opacity .2s ease; }
.sheet {
  position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 28px 28px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  box-shadow: var(--shadow-lg);
}
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 12px; }
.sheet.is-open { transform: none; }
.sheet-backdrop.is-open { opacity: 1; }
.sheet__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet__title h2 { font-size: 20px; }
.sheet__close { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--canvas-2); }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(520px, calc(100% - 40px)); border-radius: 28px; transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease; padding-bottom: 20px; }
  .sheet::before { display: none; }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
}

.add-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.add-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--canvas-2); min-height: 112px; text-align: left; transition: transform .12s; }
.add-tile:active { transform: scale(.97); }
.add-tile .row-icon { width: 44px; height: 44px; }
.add-tile strong { font-weight: 700; font-size: 15px; line-height: 1.2; }
.add-tile span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.toasts { position: fixed; z-index: 120; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); display: grid; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--dock); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
  animation: toast-in .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast__icon { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--honey); flex: none; }
.toast__icon .icon { width: 18px; height: 18px; }
.toast--error .toast__icon { color: #FF8B8B; }
.toast--success .toast__icon { color: #5FE0A6; }
.toast__text { flex: 1; min-width: 0; line-height: 1.35; }
.toast__action { color: var(--honey); font-weight: 700; padding: 6px 8px; border-radius: 10px; }
.toast.is-leaving { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

.banner { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 20px; background: var(--honey-soft); color: var(--ink); margin-bottom: 12px; }
.banner .icon { color: var(--honey-ink); }
.banner__text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.banner__text strong { display: block; }
.banner--ink { background: var(--ink); color: var(--canvas); }
.banner--ink .icon { color: var(--honey); }
.banner--due { background: var(--due-soft); }
.banner--due .icon { color: var(--due-ink); }
.banner--credit { background: var(--credit-soft); }
.banner--credit .icon { color: var(--credit-ink); }

.empty { text-align: center; padding: 30px 20px 26px; }
.empty .art { width: 150px; height: auto; margin: 0 auto 12px; }
.empty h3 { font-size: 18px; margin-bottom: 4px; }
.empty p { color: var(--muted); max-width: 320px; margin: 0 auto 14px; font-size: 14px; }

.offline-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 60; background: var(--due); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; box-shadow: var(--shadow-lg); }

/* --------------------------------------------------------------------------
   Home — the rate card
   -------------------------------------------------------------------------- */
.rate-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 20px 20px 16px;
  background: var(--honey); color: #1C1B22; box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--honey) 90%, #000);
  isolation: isolate;
}
.rate-card::before {
  content: ""; position: absolute; z-index: -1; right: -40px; top: -30px; width: 260px; height: 260px; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33zm0-2 26-15V18L28 3 2 18v31zM28 98 0 82V66l2 1v14l26 15 26-15V67l2-1v16z' fill='%231C1B22'/%3E%3C/svg%3E") repeat;
  background-size: 42px 73px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
}
.rate-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(28,27,34,.1); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
html[lang="bn"] .live { letter-spacing: 0; text-transform: none; font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #1C1B22; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(28,27,34,.45); } 70% { box-shadow: 0 0 0 7px rgba(28,27,34,0); } 100% { box-shadow: 0 0 0 0 rgba(28,27,34,0); } }
.month-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; background: #1C1B22; color: var(--honey); font-size: 12.5px; font-weight: 700; }
.month-chip .icon { width: 14px; height: 14px; }
.rate-card__label { margin-top: 16px; font-weight: 700; font-size: 14px; opacity: .72; }
.rate-card__value { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rate-card__value .num { font-size: clamp(46px, 14vw, 64px); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.rate-card__value small { font-size: 15px; font-weight: 700; opacity: .7; margin-bottom: 8px; }
.delta { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(28,27,34,.1); font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.delta .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.rate-card__spark { height: 54px; margin: 10px -4px 0; color: #1C1B22; }
.rate-card__spark svg { width: 100%; height: 100%; }
.rate-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed rgba(28,27,34,.2); }
.rate-card__stats div { min-width: 0; }
.rate-card__stats b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate-card__stats span { font-size: 12px; font-weight: 600; opacity: .7; }

/* My balance */
.balance-card { display: grid; gap: 12px; }
.balance-card__amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.balance-card__amount .num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.balance-card__state { font-weight: 700; font-size: 14px; }
.state-credit { color: var(--credit-ink); }
.state-due { color: var(--due-ink); }
.meter { height: 10px; border-radius: 99px; background: var(--canvas-2); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 13.5px; }
.breakdown div { display: flex; justify-content: space-between; gap: 8px; }
.breakdown span { color: var(--muted); }
.breakdown b { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* Today card */
.today-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.my-meal {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; border-radius: 20px;
  background: var(--canvas-2); text-align: left; transition: background .2s, color .2s, transform .12s; overflow: hidden;
}
.my-meal:active { transform: scale(.97); }
.my-meal__icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--card); color: var(--c, var(--ink)); flex: none; transition: background .2s, color .2s; }
.my-meal__text { min-width: 0; line-height: 1.2; }
.my-meal__text strong { display: block; font-weight: 700; }
.my-meal__text span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.my-meal.is-on { background: var(--c, var(--ink)); color: #fff; }
.my-meal.is-on .my-meal__icon { background: rgba(255,255,255,.2); color: #fff; }
.my-meal.is-on .my-meal__text span { color: rgba(255,255,255,.82); }
.my-meal.is-locked { cursor: not-allowed; }
.my-meal .lock { position: absolute; top: 8px; right: 9px; opacity: .55; }
.my-meal .lock .icon { width: 14px; height: 14px; }
.type-breakfast { --c: #14A0B4; }
.type-lunch { --c: #F2711C; }
.type-dinner { --c: #5458E0; }
.type-other { --c: #7A5AF8; }

.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-tile { background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 6px; min-width: 0; }
.stat-tile .row-icon { width: 36px; height: 36px; border-radius: 12px; }
.stat-tile .row-icon .icon { width: 18px; height: 18px; }
.stat-tile b { font-family: var(--font-display); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (min-width: 560px) { .stat-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Member hisab table (desktop) */
.table-wrap { overflow-x: auto; margin: 0 -18px -18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[lang="bn"] .table th { font-size: 13px; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: var(--canvas-2); }
.table th:first-child, .table td:first-child { padding-left: 18px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }
.table tfoot td { font-weight: 800; background: var(--canvas-2); border-bottom: 0; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* --------------------------------------------------------------------------
   Meals screen
   -------------------------------------------------------------------------- */
.day-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 8px; margin: 0 -16px; scroll-snap-type: x proximity; }
.day-strip::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 58px; height: 76px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; scroll-snap-align: center;
  position: relative; transition: background .15s, color .15s, transform .12s;
}
.day:active { transform: scale(.95); }
.day small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
html[lang="bn"] .day small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.day b { font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.1; }
.day em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.day.is-today::after { content: ""; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--honey); }
.day.is-selected { background: var(--ink); color: var(--canvas); }
.day.is-selected small, .day.is-selected em { color: color-mix(in srgb, var(--canvas) 70%, transparent); }
.day.is-future { opacity: .72; }
.day.is-outside { opacity: .35; pointer-events: none; }

.meal-summary { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meal-count { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }
.meal-count i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.meal-count i .icon { width: 15px; height: 15px; }
.meal-count b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

.sheet-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; min-height: 70px; position: relative; }
.sheet-row + .sheet-row { border-top: 1px solid var(--line); }
.sheet-row.is-me { background: linear-gradient(90deg, var(--honey-wash), transparent 70%); }
.sheet-row__who { flex: 1; min-width: 0; }
.sheet-row__who strong { display: flex; align-items: center; gap: 6px; font-weight: 700; line-height: 1.25; }
.sheet-row__who strong span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-row__who small { display: block; font-size: 12.5px; color: var(--muted); }
.meal-toggles { display: flex; gap: 7px; }
.mt {
  position: relative; width: 52px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--canvas-2); color: var(--faint); transition: background .18s, color .18s, transform .12s, box-shadow .18s;
}
.mt .icon { width: 22px; height: 22px; }
.mt:active { transform: scale(.9); }
.mt.is-on { background: var(--c, var(--ink)); color: #fff; box-shadow: 0 6px 14px -8px var(--c, var(--ink)); }
.mt.is-locked { cursor: not-allowed; }
.mt.is-locked::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px; border-radius: 4px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round'%3E%3Crect width='16' height='11' x='4' y='11' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 9px no-repeat; }
.mt__count { position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--ink); color: var(--canvas); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--card); }
.mt.is-busy { animation: busy 1s infinite; }
@keyframes busy { 50% { opacity: .5; } }
.meal-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.meal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.meal-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 20px; background: var(--canvas-2); }
.stepper button { width: 52px; height: 52px; border-radius: 16px; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); }
.stepper output { font-family: var(--font-display); font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Month calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.cal__day { aspect-ratio: 1; border-radius: 12px; background: var(--canvas-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 700; position: relative; min-width: 0; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--honey); }
.cal__day.is-empty { background: transparent; }
.cal__day.is-future { color: var(--faint); }
.cal__dots { display: flex; gap: 3px; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.cal__dots i.on { background: var(--c); }
.cal__day.heat-0 { background: var(--canvas-2); }
.cal__day.heat-1 { background: var(--honey-wash); }
.cal__day.heat-2 { background: var(--honey-soft); }
.cal__day.heat-3 { background: var(--honey); color: #1C1B22; }

/* --------------------------------------------------------------------------
   Money screens
   -------------------------------------------------------------------------- */
.settle { display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.settle + .settle { border-top: 1px solid var(--line); }
.settle__people { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.settle__arrow { color: var(--faint); flex: none; }
.settle__names { min-width: 0; font-size: 14px; line-height: 1.3; }
.settle__names b { font-weight: 700; }
.fund-chip { display: inline-flex; align-items: center; gap: 6px; }

.entry-amount { font-family: var(--font-display); font-weight: 800; font-size: 16.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-thumb { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; background: var(--canvas-2); }
.photo-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 2px dashed var(--line-2); cursor: pointer; position: relative; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.photo-pick__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--canvas-2); color: var(--muted); }

.who-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 6px; }
.who-pick::-webkit-scrollbar { display: none; }
.who-pick label { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; padding: 8px 4px; border-radius: 18px; cursor: pointer; position: relative; font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.who-pick input { position: absolute; opacity: 0; pointer-events: none; }
.who-pick label:has(input:checked) { background: var(--honey-soft); }
.who-pick label:has(input:checked) .avatar { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 5px var(--honey); }
.who-pick label span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Member profile, report, charts, activity
   -------------------------------------------------------------------------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head h1 { font-size: 26px; }
.profile-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-ui); font-size: 11px; fill: var(--muted); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: var(--honey); opacity: .22; }
.chart .line { fill: none; stroke: var(--honey-deep); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--card); stroke: var(--honey-deep); stroke-width: 2.5; }
.chart .bar-lunch { fill: #F2711C; }
.chart .bar-dinner { fill: #5458E0; }
.chart .bar-breakfast { fill: #14A0B4; }
.chart .bar-bazar { fill: var(--ink); }
.chart .bar { fill: var(--honey); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.hbar { display: grid; gap: 10px; }
.hbar__row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hbar__track { height: 12px; border-radius: 99px; background: var(--canvas-2); overflow: hidden; }
.hbar__track i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--honey)); }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut svg { width: 140px; height: 140px; flex: none; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: flex; gap: 12px; padding: 12px 18px; position: relative; }
.tl + .tl { border-top: 1px solid var(--line); }
.tl__icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--canvas-2); }
.tl__icon .icon { width: 18px; height: 18px; }
.tl--meals .tl__icon { background: #FFEADB; color: #B4520E; }
.tl--bazar .tl__icon { background: var(--honey-soft); color: var(--honey-ink); }
.tl--money .tl__icon { background: var(--credit-soft); color: var(--credit-ink); }
.tl--members .tl__icon { background: #E6E7FC; color: #3D41B8; }
.tl--month .tl__icon { background: var(--ink); color: var(--honey); }
.tl--mess .tl__icon { background: var(--canvas-2); color: var(--ink); }
:root[data-theme="dark"] .tl--meals .tl__icon { background: #3A2618; color: #FFB27A; }
:root[data-theme="dark"] .tl--members .tl__icon { background: #25264A; color: #A5A8FF; }
.tl__body { flex: 1; min-width: 0; }
.tl__text { font-size: 14px; line-height: 1.4; }
.tl__meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.tl.is-unread::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--honey-deep); }
.changes { margin-top: 6px; display: grid; gap: 4px; }
.change { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.change em { font-style: normal; color: var(--muted); font-weight: 600; min-width: 64px; }
.change s { color: var(--due-ink); text-decoration-thickness: 1.5px; }
.change b { color: var(--credit-ink); }

.code-card { text-align: center; padding: 22px 18px; }
.code { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 11vw, 48px); letter-spacing: .04em; line-height: 1; }
.qr { width: 190px; height: 190px; margin: 14px auto; padding: 10px; background: #fff; border-radius: 20px; }
.qr svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Welcome, auth and setup (no dock)
   -------------------------------------------------------------------------- */
.bare { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bare__top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 20px 8px; gap: 10px; }
.bare__main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--canvas-2); }
.lang-toggle button { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang-toggle button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.welcome-hero { position: relative; margin: 8px -20px 0; padding: 0 20px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 100%; scroll-snap-align: center; padding: 0 20px; }
.slide__art { aspect-ratio: 1 / .86; border-radius: 32px; background: var(--honey); display: grid; place-items: center; overflow: hidden; position: relative; }
.slide__art svg { width: 86%; height: auto; }
.slide h1 { font-size: 30px; margin: 22px 0 8px; letter-spacing: -.02em; }
.slide p { color: var(--muted); font-size: 16px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 18px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .25s, background .25s; }
.dots i.is-on { width: 24px; background: var(--ink); }
.welcome-actions { display: grid; gap: 10px; margin-top: auto; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; font-weight: 600; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }

.auth-title { margin: 12px 0 22px; }
.auth-title h1 { font-size: 30px; letter-spacing: -.02em; }
.auth-title p { color: var(--muted); margin: 6px 0 0; }
.choice { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); text-align: left; width: 100%; }
.choice + .choice { margin-top: 12px; }
.choice__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.choice__icon .icon { width: 26px; height: 26px; }
.choice strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.choice span { font-size: 13.5px; color: var(--muted); }
.code-input { text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-display); font-weight: 800; font-size: 26px; text-align: center; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--line-2); }
.steps i.is-on { background: var(--ink); }
.name-list { display: grid; gap: 8px; }
.name-list .input-wrap .remove { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }

.demo-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.demo-bar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--canvas); padding: 9px 16px; font-size: 13px; }
.demo-bar b { color: var(--honey); }
.demo-bar a { margin-left: auto; color: var(--honey); font-weight: 700; white-space: nowrap; }

.loading-screen { position: fixed; inset: 0; z-index: 200; background: var(--honey); color: #1C1B22; display: grid; place-items: center; text-align: center; padding: 20px; }
.loading-screen svg.logo-spin { width: 84px; height: 84px; margin: 0 auto 18px; animation: spin-hex 1.6s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes spin-hex { 0% { transform: rotate(0); } 50% { transform: rotate(180deg) scale(.92); } 100% { transform: rotate(360deg); } }
.loading-screen h2 { font-size: 22px; }

/* Utility */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; }
.center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; } .w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danger-zone { border: 1.5px solid var(--due-soft); }
.divider-line { border-top: 1px solid var(--line); margin: 14px 0; }
.kbd { font-family: ui-monospace, monospace; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--canvas-2); }

/* Page transitions for swapped content */
.fade-in { animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.flash-update { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: var(--honey-soft); } 100% { background: transparent; } }

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

/* Print (report) */
@media print {
  .topbar, .dock, .toasts, .no-print, .demo-bar { display: none !important; }
  body { background: #fff; }
  .screen { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

@media (min-width: 700px) { .export-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Responsive helpers */
.only-desktop { display: none !important; }
@media (min-width: 900px) {
  .only-desktop { display: block !important; }
  table.only-desktop { display: table !important; }
  .only-mobile { display: none !important; }
}
