/* Pastel loyalty — shared styles for the customer card and the staff app. */
:root {
  color-scheme: light;
  --accent: #e8889c;                 /* overridden from Settings → Theme colour */
  --accent-ink: color-mix(in oklab, var(--accent) 62%, #2b1830);
  --accent-strong: color-mix(in oklab, var(--accent) 72%, #4a1d44);  /* readable button colour */
  --accent-soft: color-mix(in oklab, var(--accent) 16%, white);
  --accent-softer: color-mix(in oklab, var(--accent) 8%, white);
  --brand-yellow: #f3ec77;          /* QI·You logo gradient */
  --brand-peach: #f2b99a;
  --brand-pink: #ee8a9e;
  --lavender: #f9e1e8;
  --peach: #ffe3d6;
  --mint: #d9f3e8;
  --sky: #dcecfb;
  --butter: #fff2c7;
  --bg: #fbf7fa;
  --surface: #ffffff;
  --ink: #36283b;
  --muted: #8b7e90;
  --line: #efe5ee;
  --ok: #3f9d78;
  --ok-soft: #dff4ea;
  --warn: #b7791f;
  --warn-soft: #fff4d6;
  --danger: #c2415d;
  --danger-soft: #fde6ec;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(80, 40, 80, .04), 0 8px 24px -8px rgba(120, 60, 110, .14);
  --shadow-lg: 0 24px 60px -20px rgba(120, 60, 110, .35);
  --font-display: 'Marcellus', 'Songti SC', 'STSong', serif;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 110% -10%, #fff3c4, transparent 60%),
    radial-gradient(900px 500px at -20% 10%, var(--peach), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }
.wrap.wide { max-width: 980px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--accent-soft), var(--lavender));
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.brand-logo:has(img) { background: #fefff1; box-shadow: 0 0 0 1px rgba(226, 180, 120, .35), 0 4px 12px -4px rgba(120, 80, 40, .25); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo svg { width: 24px; height: 24px; color: var(--accent-ink); }
.brand-name { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.langs { display: inline-flex; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; backdrop-filter: blur(8px); }
.langs button {
  border: 0; background: transparent; padding: 5px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; min-width: 36px;
}
.langs button[aria-pressed="true"] { background: var(--accent-strong); color: #fff; box-shadow: 0 2px 8px -2px var(--accent); }

/* ---------- stamp card ---------- */
.stamp-card {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 22px 20px 20px;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(255,255,255,.65), transparent 70%),
    linear-gradient(135deg, #fdf5c4 0%, #fbdcc9 48%, #f8c5d1 100%);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.stamp-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.2px, transparent 1.3px);
  background-size: 14px 14px; mask-image: linear-gradient(160deg, black, transparent 60%);
}
.stamp-card > * { position: relative; z-index: 1; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); opacity: .85; }
.card-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: .01em; margin-top: 2px; line-height: 1.2; }
.card-count { text-align: right; flex: none; }
.card-count b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.card-count span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stamps.small { gap: 6px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: rgba(255,255,255,.55);
  border: 2px dashed color-mix(in oklab, var(--accent) 45%, white);
  color: color-mix(in oklab, var(--accent) 55%, #9c8aa2);
  font-weight: 700; font-size: .85rem;
}
.stamps.small .stamp { font-size: .65rem; border-width: 1.5px; }
.stamp svg { width: 58%; height: 58%; }
.stamp.filled {
  border: 0; color: #fff;
  background: radial-gradient(circle at 30% 22%, #fff1ad, color-mix(in oklab, var(--accent) 70%, var(--brand-peach)) 45%, var(--accent) 72%, color-mix(in oklab, var(--accent) 82%, #6b2b55));
  box-shadow: 0 4px 10px -3px color-mix(in oklab, var(--accent) 70%, transparent), inset 0 -3px 6px rgba(0,0,0,.08);
  transform: rotate(var(--rot, 0deg));
}
.stamp.filled.pop { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.2) rotate(-40deg); opacity: 0; } 100% { transform: scale(1) rotate(var(--rot, 0deg)); opacity: 1; } }
.stamp.gift { border-style: solid; background: rgba(255,255,255,.8); color: var(--accent-ink); }
.stamp.gift.filled { background: radial-gradient(circle at 30% 25%, #fff6d8, #ffd98a 70%); color: #8a5a00; box-shadow: 0 0 0 4px rgba(255, 217, 138, .45), 0 6px 14px -4px rgba(200, 140, 20, .5); }
.stamp.gift.claimed { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.stamp.gift.filled:not(.claimed) { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(255, 217, 138, .25), 0 6px 14px -4px rgba(200, 140, 20, .5); } }
.stamp .tag {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--accent-ink); font-size: .6rem; font-weight: 800;
  padding: 1px 6px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.08); white-space: nowrap;
}
.stamps.small .stamp .tag { display: none; }

.progress { margin-top: 18px; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.6); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f0d56a, var(--brand-peach), var(--accent)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.progress p { margin: 8px 0 0; font-size: .9rem; font-weight: 600; }
.card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: .75rem; color: var(--muted); font-weight: 600; }

/* ---------- panels & lists ---------- */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: 16px; }
.panel h2, .panel h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel h2 > svg, .panel h3 > svg { width: 20px; height: 20px; flex: none; color: var(--accent-ink); }
.panel h2 .count { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 700; }
.panel .hint { font-size: .82rem; color: var(--muted); margin: -4px 0 12px; }
.section-title { font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 22px 4px 8px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 2px; }
.row:last-child { padding-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: .8rem; color: var(--muted); }
.icon-bubble { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.icon-bubble svg { width: 20px; height: 20px; }
.icon-bubble.ok { background: var(--ok-soft); color: var(--ok); }
.icon-bubble.gold { background: var(--butter); color: #8a5a00; }
.icon-bubble.muted { background: #f4eff4; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #f4eff4; color: var(--muted); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.gold { background: var(--butter); color: #8a5a00; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip svg { width: 14px; height: 14px; }

.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.notice > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.gold { background: var(--butter); color: #7a5000; }
.notice.warn { background: var(--warn-soft); color: #7a5000; }
.notice.info { background: #fdece4; color: #8a4b35; }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.demo { background: repeating-linear-gradient(135deg, var(--butter), var(--butter) 10px, #fff7dc 10px, #fff7dc 20px); color: #7a5000; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
  background: #f4eff4; color: var(--ink); transition: transform .12s, filter .12s, background .12s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--accent-strong); color: #fff; box-shadow: 0 6px 16px -6px var(--accent); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent-ink); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.gold { background: #ffd98a; color: #5c3b00; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.wa { background: #25d366; color: #fff; }
.btn.big { min-height: 58px; font-size: 1.05rem; border-radius: 18px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: .8rem; border-radius: 10px; }
.btn.icon { padding: 0; width: 44px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; outline: none; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.lg { min-height: 54px; font-size: 1.05rem; border-radius: 16px; }
.input-affix { position: relative; }
.input-affix > .affix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.input-affix > .input { padding-left: 46px; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search .input { padding-left: 46px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 14px; cursor: pointer; }
.check > input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.radio-card:has(> input:checked) { border-color: var(--accent); background: var(--accent-softer); }
.radio-card > input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.radio-card .grow { flex: 1; }
.radio-card .sub-fields { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .val { min-width: 48px; text-align: center; font-size: 1.4rem; font-weight: 800; }

/* ---------- staff layout ---------- */
.staff-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 4px; padding: 6px; border-radius: 22px; z-index: 20;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.bottom-nav button {
  border: 0; background: transparent; cursor: pointer; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 18px;
  font-size: .72rem; font-weight: 700; color: var(--muted); min-width: 84px;
}
.bottom-nav button svg { width: 22px; height: 22px; }
.bottom-nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

.toolbar { display: flex; gap: 10px; align-items: center; }
.toolbar .search { flex: 1; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

.cust-list .row { cursor: pointer; padding: 12px 8px; margin: 0 -8px; border-radius: 14px; border-top-color: transparent; }
.cust-list .row + .row { border-top: 1px solid var(--line); border-radius: 0; }
.cust-list .row:hover { background: var(--accent-softer); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-soft), var(--lavender)); }
.avatar.lg { width: 56px; height: 56px; font-size: 1.3rem; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.kpi span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.kpi:nth-child(5n+1) { background: linear-gradient(135deg, #fff, var(--accent-softer)); }
.kpi:nth-child(5n+2) { background: linear-gradient(135deg, #fff, #f6f2ff); }
.kpi:nth-child(5n+3) { background: linear-gradient(135deg, #fff, #fff6ef); }
.kpi:nth-child(5n+4) { background: linear-gradient(135deg, #fff, #eefaf4); }
.kpi:nth-child(5n+5) { background: linear-gradient(135deg, #fff, #eef6fe); }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav b { min-width: 120px; text-align: center; }

.dash-cols { display: grid; gap: 0 16px; }
@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-cols { grid-template-columns: 1fr 1fr; }
  .settings-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
}

.reward-edit { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.reward-edit.inactive { opacity: .6; }
.reward-edit .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.reward-edit .head .grow { flex: 1; font-weight: 800; }
.logo-edit { display: flex; align-items: center; gap: 12px; }
.logo-edit .brand-logo { width: 64px; height: 64px; border-radius: 18px; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.color-row input[type=color] { width: 40px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer; }
.savebar {
  position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 15; margin-top: 16px;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem;
}
.savebar span { flex: 1; }

/* ---------- dialog / sheet ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 94dvh;
  border-radius: 28px 28px 0 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2, .9, .3, 1); }
dialog.sheet::backdrop { background: rgba(54, 40, 59, .35); backdrop-filter: blur(3px); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 28px; max-height: 88dvh; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.08rem; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-body .panel:first-child { margin-top: 0; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
dialog.alert { border: 0; border-radius: 24px; padding: 22px; max-width: 380px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.alert::backdrop { background: rgba(54, 40, 59, .35); }
dialog.alert p { margin: 0 0 18px; font-size: .98rem; font-weight: 600; white-space: pre-line; }
.qr-box { background: #fff; border-radius: 20px; padding: 16px; display: grid; place-items: center; margin: 0 auto; max-width: 260px; }
.qr-box svg { width: 100%; height: auto; display: block; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top)); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toasts[popover] { margin: 0; border: 0; padding: 0; background: transparent; overflow: visible; inset: auto; top: calc(12px + env(safe-area-inset-top)); left: 50%; height: auto; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 14px 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; animation: drop .25s ease-out; }
.toast.ok { background: #2f7d5f; }
.toast.err { background: var(--danger); }
.toast span { flex: 1; }
.toast button { border: 0; background: rgba(255,255,255,.2); color: #fff; border-radius: 10px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- review prompt ---------- */
.stars { color: #e7b53c; letter-spacing: 2px; font-size: 1.05rem; line-height: 1.2; margin-top: 2px; }
.panel.review-hot { background: linear-gradient(135deg, #fffaf0, #fff3d6); box-shadow: 0 0 0 1.5px #f3d9a0, var(--shadow); }

/* ---------- misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: .92rem; }
.empty svg { width: 44px; height: 44px; color: color-mix(in oklab, var(--accent) 50%, white); margin-bottom: 8px; }
.hero { text-align: center; padding: 36px 20px; }
.hero .art { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 36px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--lavender)); box-shadow: var(--shadow); }
.hero .art svg { width: 64px; height: 64px; color: var(--accent-ink); }
.hero h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.hero p { margin: 0 auto; color: var(--muted); max-width: 340px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-box { display: flex; gap: 8px; align-items: center; background: #f7f2f7; border-radius: 12px; padding: 8px 8px 8px 12px; font-size: .8rem; word-break: break-all; }
.link-box code { flex: 1; }
.greet { margin: 4px 2px 16px; }
.greet h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .01em; }
.greet p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 480px) { .hide-sm { display: none; } .reward-edit .grid2 { grid-template-columns: 1fr; gap: 14px; } .toolbar .btn.big { width: 58px; padding: 0; } }

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