/* Coach Dr Fauzan: sistem reka bentuk. Gelap secara lalai ikut sistem, boleh ditukar di Profil. */
:root {
  --bg: #f2f4f7; --surface: #ffffff; --surface-2: #eef1f5; --line: #e0e5ec; --ink: #0d131d; --muted: #5c6979;
  --brand: #00a36c; --brand-ink: #ffffff; --brand-soft: #dff5ec;
  --kcal: #f26a1b; --protein: #2f7de1; --move: #00a36c; --water: #0c9fc4; --gold: #c98a00;
  --warn: #9a5b00; --warn-bg: #fff1d6; --bad: #c0392b; --bad-bg: #fde8e6;
  --hero-a: #0b3b2e; --hero-b: #0d1f2b; --hero-ink: #f3fbf8; --hero-muted: #9fc4b7;
  --shadow: 0 1px 2px rgba(13, 19, 29, .06), 0 8px 24px rgba(13, 19, 29, .06);
  --r: 18px; --r-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090c11; --surface: #121821; --surface-2: #1a222e; --line: #232d3b; --ink: #f1f4f8; --muted: #8c99ab;
    --brand: #1fe0a0; --brand-ink: #04241a; --brand-soft: #0f2c24;
    --kcal: #ff8b3d; --protein: #55a7ff; --move: #1fe0a0; --water: #3cd3f3; --gold: #ffc857;
    --warn: #ffc857; --warn-bg: #2e2410; --bad: #ff7b6e; --bad-bg: #2f1614;
    --hero-a: #0c3a2e; --hero-b: #101a26; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090c11; --surface: #121821; --surface-2: #1a222e; --line: #232d3b; --ink: #f1f4f8; --muted: #8c99ab;
  --brand: #1fe0a0; --brand-ink: #04241a; --brand-soft: #0f2c24;
  --kcal: #ff8b3d; --protein: #55a7ff; --move: #1fe0a0; --water: #3cd3f3; --gold: #ffc857;
  --warn: #ffc857; --warn-bg: #2e2410; --bad: #ff7b6e; --bad-bg: #2f1614;
  --hero-a: #0c3a2e; --hero-b: #101a26; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 560px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); }
h1 { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 0; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; gap: 10px; align-items: center; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.rise { animation: rise .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* bar atas */
.appbar { position: sticky; top: 0; z-index: 6; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.appbar > div { max-width: 560px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.wordmark i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); }
.wordmark i .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); }
.chip .icon { width: 16px; height: 16px; } .chip.fire { color: var(--kcal); }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; min-height: 0; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 14px; display: grid; place-items: center; cursor: pointer; }

/* butang dan borang */
button, .btn { font: inherit; font-weight: 600; cursor: pointer; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 16px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .12s ease, background .15s ease, opacity .15s ease; }
button:active { transform: scale(.975); }
button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
button.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
button.quiet { background: var(--surface-2); border-color: transparent; }
button.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: 0 10px; min-height: 40px; }
button.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
button.wide { width: 100%; } button.sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
button:disabled { opacity: .5; cursor: default; transform: none; }
button.iconbtn { width: 40px; min-height: 40px; padding: 0; border-radius: 12px; border-color: transparent; background: transparent; color: var(--muted); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input, select, textarea { font: inherit; width: 100%; padding: 12px 14px; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.field { margin: 0 0 14px; }
.choice { display: grid; gap: 8px; }
.choice button { justify-content: flex-start; text-align: left; height: auto; min-height: 52px; padding: 10px 16px; }
.choice button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { min-height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; padding: 0 8px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* kad */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.card > header .link { font-size: 13px; font-weight: 700; color: var(--brand); border: 0; background: none; min-height: 0; padding: 4px 0; }
.note { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; margin: 0 0 12px; background: var(--surface-2); color: var(--ink); white-space: pre-line; }
.note.warn { background: var(--warn-bg); color: var(--warn); } .note.bad { background: var(--bad-bg); color: var(--bad); } .note.ok { background: var(--brand-soft); color: var(--ink); }
.note ul { margin: 6px 0; padding-left: 18px; }

/* hero dan cincin */
.hero { border-radius: 24px; padding: 20px; margin: 4px 0 14px; color: var(--hero-ink); background: radial-gradient(120% 140% at 0% 0%, var(--hero-a), var(--hero-b)); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 224, 160, .22), transparent); pointer-events: none; }
.hero .label { color: var(--hero-muted); } .hero .muted { color: var(--hero-muted); }
.hero h1 { color: var(--hero-ink); }
.rings { display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: center; margin-top: 14px; }
.ring-track { opacity: .18; } .ring-arc { transition: stroke-dasharray .9s cubic-bezier(.2, .8, .2, 1); }
.legend { display: grid; gap: 12px; }
.legend div { display: grid; grid-template-columns: 10px 1fr; gap: 2px 10px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; }
.legend b { font-size: 19px; font-weight: 800; line-height: 1.1; } .legend b small { font-size: 12px; font-weight: 600; opacity: .7; }
.legend span { font-size: 12px; color: var(--hero-muted); }
.level { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; }
.level .track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.level .track i { display: block; height: 6px; border-radius: 3px; background: var(--gold); transition: width .9s cubic-bezier(.2, .8, .2, 1); }

/* matlamat */
.why { border-radius: var(--r); padding: 18px; margin: 0 0 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); }
.why .link { font-size: 13px; font-weight: 700; color: var(--gold); border: 0; background: none; min-height: 0; padding: 4px 0; }
.why .quote { font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 10px 0 12px; overflow-wrap: anywhere; }
.why .spark { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: auto; min-height: 38px; padding: 8px 14px; border-radius: 999px; text-align: left; font-weight: 600; }
.chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips .chip { height: auto; min-height: 30px; padding: 5px 12px; white-space: normal; }
textarea { min-height: 88px; resize: vertical; }

/* tindakan pantas */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; }
.quick button { flex-direction: column; gap: 6px; min-height: 76px; padding: 10px 4px; font-size: 12px; font-weight: 700; border-radius: 16px; box-shadow: var(--shadow); }
.quick button span.ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }

/* statistik */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; } .kpi b small { font-size: 13px; font-weight: 600; color: var(--muted); }
.big { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.04em; } .big small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.delta { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.delta.up { background: var(--warn-bg); color: var(--warn); }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 8px; border-radius: 4px; background: var(--brand); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.bmiwrap { position: relative; margin: 16px 0 8px; }
.bmi { display: grid; grid-template-columns: 3.5fr 4.5fr 4.5fr 5fr 7.5fr; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.bmi i:nth-child(1) { background: #5aa9f5; } .bmi i:nth-child(2) { background: #22c58b; } .bmi i:nth-child(3) { background: #f5b83d; } .bmi i:nth-child(4) { background: #f2793a; } .bmi i:nth-child(5) { background: #e0483e; }
.pin { position: absolute; top: -5px; width: 6px; height: 20px; margin-left: -3px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); }

.meter { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); margin: 26px 0 0; }
.meter i { display: block; height: 14px; border-radius: 7px; background: var(--kcal); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.meter i.over { background: var(--bad); }
.meter .mark { position: absolute; top: -5px; width: 3px; height: 24px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); }
.meter .mark em { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }

/* senarai */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 0; } .list li:last-child { padding-bottom: 0; }
.list .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bubble { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.bubble.kcal { background: color-mix(in srgb, var(--kcal) 16%, transparent); color: var(--kcal); }
.bubble.protein { background: color-mix(in srgb, var(--protein) 16%, transparent); color: var(--protein); }
.bubble.move { background: color-mix(in srgb, var(--move) 16%, transparent); color: var(--move); }
.bubble.water { background: color-mix(in srgb, var(--water) 16%, transparent); color: var(--water); }
.bubble.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.tag { display: inline-flex; align-items: center; height: 20px; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-left: 6px; vertical-align: middle; }
details { border-top: 1px solid var(--line); } details:first-of-type { border-top: 0; }
details summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px; }
details[open] summary::after { transform: rotate(-135deg); }
details > :not(summary) { margin-bottom: 12px; }

/* makanan */
.foods { max-height: 300px; overflow: auto; border-radius: 14px; background: var(--surface-2); }
.foods button { display: flex; justify-content: space-between; width: 100%; min-height: 56px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; padding: 8px 14px; font-weight: 500; }
.foods button:first-child { border-top: 0; }
.scroller { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; } .scroller::-webkit-scrollbar { display: none; }
.scroller button { flex: none; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 58px; max-width: 200px; padding: 8px 14px; font-size: 13px; background: var(--surface-2); border-color: transparent; }
.scroller button b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 172px; }
.drops { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 12px 0; }
.drops span { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--line); }
.drops span.on { background: color-mix(in srgb, var(--water) 18%, transparent); color: var(--water); }
.scan { border: 1.5px dashed var(--line); border-radius: 16px; padding: 18px; text-align: center; background: var(--surface-2); }
.scan input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.scan .thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }

/* carta */
.chart text { fill: var(--muted); font-size: 11px; font-weight: 600; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 110px; }
.bars div { background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 3px; opacity: .9; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.bars div.over { background: var(--kcal); } .bars div.dim { opacity: .35; }
.barlabels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; margin-top: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal span.on { background: var(--brand); color: var(--brand-ink); } .cal span.now { box-shadow: 0 0 0 2px var(--ink); }
.cal .dow { background: none; aspect-ratio: auto; font-size: 10px; letter-spacing: .08em; }

/* lencana dan cabaran */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { border-radius: 16px; padding: 14px 8px; text-align: center; background: var(--surface-2); font-size: 12px; font-weight: 700; line-height: 1.25; }
.badge .medal { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #ffd66b, #e59a00); color: #3a2600; box-shadow: 0 4px 12px rgba(229, 154, 0, .35); }
.badge.locked { color: var(--muted); font-weight: 600; } .badge.locked .medal { background: var(--line); color: var(--muted); box-shadow: none; }
.challenge { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); } .challenge:first-of-type { border-top: 0; padding-top: 0; }
.challenge.done .bar i { background: var(--gold); }

/* sembang */
.chatlog { display: grid; gap: 8px; margin: 12px 0; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; white-space: pre-line; }
.msg.me { justify-self: end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; }
.msg.ai { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 6px; }

/* navigasi bawah dan FAB */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar > div { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar button { flex-direction: column; gap: 3px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; min-height: 60px; padding: 6px 0; }
.tabbar button[aria-current="page"] { color: var(--brand); }
.tabbar button span.pill { width: 46px; height: 28px; border-radius: 14px; display: grid; place-items: center; transition: background .2s; }
.tabbar button[aria-current="page"] span.pill { background: var(--brand-soft); }
.fab { position: fixed; right: max(16px, calc(50% - 264px)); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 7; width: 58px; height: 58px; min-height: 0; padding: 0; border-radius: 20px; border: 0; background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 45%, transparent); }
.fab .icon { width: 26px; height: 26px; stroke-width: 2.6; }

/* helaian bawah */
.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(4, 8, 14, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2, .8, .2, 1) both; }
.sheet.full { height: 100vh; max-height: 100vh; border-radius: 0; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid4 button { flex-direction: column; gap: 8px; min-height: 96px; font-weight: 700; background: var(--surface-2); border-color: transparent; }

.easy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.easy button { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; text-align: left; min-height: 96px; padding: 12px 14px; background: var(--surface-2); border-color: transparent; position: relative; }
.easy button .plus { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 800; color: var(--move); }
.dots { display: flex; gap: 8px; margin-top: 8px; }
.dots span { flex: 1; max-width: 56px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); opacity: .55; }
.dots span.on { opacity: 1; }
.dots span.on { background: var(--move); color: var(--brand-ink); }
.phase { display: inline-block; margin: 6px 0 10px; padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.phase.fast { background: var(--kcal); color: #2a1200; } .phase.slow { background: var(--surface-2); color: var(--ink); }

/* sesi senaman */
.session { text-align: center; padding-top: 8px; }
.clock { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; margin: 18px 0 6px; }
.sets { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.sets span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.sets span.on { background: var(--brand); color: var(--brand-ink); }

/* log masuk */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.auth .mark { width: 64px; height: 64px; border-radius: 20px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 22px; }
.auth .mark .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.auth h1 { font-size: 38px; } .auth .lead { font-size: 17px; color: var(--muted); margin: 12px 0 26px; }
.feature { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-weight: 600; }
.steps { display: flex; gap: 6px; margin: 16px 0 22px; } .steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); } .steps i.on { background: var(--brand); }
#gbtn { min-height: 44px; display: flex; justify-content: center; }
.code { font: 700 17px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: var(--brand); }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); max-width: 528px; margin: 0 auto; z-index: 30; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 14px 16px; font-size: 14px; font-weight: 600; white-space: pre-line; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); animation: up .25s both; }
.skeleton { border-radius: var(--r); height: 150px; margin-bottom: 14px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
