/* ==========================================================================
   Top 1% — Design System
   Mobile-first. Dark by default, light theme supported.
   ========================================================================== */

:root {
  /* palette — dark (default) */
  --bg:          #0a0e13;
  --bg-2:        #10161e;
  --surface:     #161e28;
  --surface-2:   #1d2733;
  --surface-3:   #26323f;
  --line:        #2a3644;
  --line-soft:   #202a36;

  --text:        #eef3f8;
  --text-2:      #9fb0c2;
  --text-3:      #6b7d90;

  --accent:      #2f6fe0;
  --accent-ink:  #ffffff;
  --accent-dim:  #2563eb;

  --hot:         #f43f5e;
  --cool:        #4cc9f0;
  --violet:      #a78bfa;
  --good:        #34d399;
  --warn:        #fbbf24;
  --bad:         #f87171;

  --shadow:      0 8px 28px rgba(0,0,0,.45);
  --shadow-sm:   0 2px 10px rgba(0,0,0,.3);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --nav-h: 66px;
  /* Desktop pe bhi ek aaram se padhne wali single column — app jaisa lagta hai,
     stretched dashboard jaisa nahi. */
  --maxw: 880px;

  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-num: 'Inter', ui-monospace, 'SF Mono', Menlo, monospace;
}

[data-theme="light"] {
  --bg:        #f4f6f9;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f0f3f7;
  --surface-3: #e4e9f0;
  --line:      #dde3ea;
  --line-soft: #eaeff4;
  --text:      #10161e;
  --text-2:    #55657a;
  --text-3:    #8394a8;
  --accent:    #1d4ed8;
  --accent-ink:#ffffff;
  --accent-dim:#2563eb;
  --shadow:    0 8px 28px rgba(20,32,48,.10);
  --shadow-sm: 0 2px 10px rgba(20,32,48,.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- layout ---------- */
.app { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
/* Wordmark: "TOP" plain, "1%" gradient chip mein — naam hi logo hai */
.brand { display: flex; align-items: center; gap: 6px; font-weight: 850; font-size: 16px; letter-spacing: .06em; }
.brand-mark {
  padding: 2px 8px; border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--cool));
  color: var(--accent-ink); font-size: 16px; font-weight: 900; letter-spacing: -.02em;
}
.spacer { flex: 1; }

/* Onboarding welcome — a quiet hero moment built from the same wordmark, not a separate logo */
.ob-hero { position: relative; text-align: center; padding: 28px 0 4px; overflow: hidden; }
.ob-hero-glow {
  position: absolute; left: 50%; top: -40px; width: 340px; height: 340px; margin-left: -170px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%,
              color-mix(in srgb, var(--cool) 12%, transparent) 45%, transparent 72%);
  pointer-events: none; z-index: 0;
}
.ob-badge {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 900; font-size: 26px; letter-spacing: .05em; color: var(--text);
}
.ob-badge .brand-mark { font-size: 26px; padding: 3px 12px; border-radius: 11px; box-shadow: var(--shadow-sm); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-size: 16px;
  transition: .15s;
}
.icon-btn:hover { background: var(--surface-2); }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-in {
  max-width: 560px; margin: 0 auto; height: var(--nav-h);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 10.5px; font-weight: 600; transition: .15s; position: relative;
}
.nav-item .ni { font-size: 20px; line-height: 1; }
.nav-item.on { color: var(--accent); }
.nav-item.on::before {
  content: ''; position: absolute; top: 0; width: 26px; height: 3px;
  background: var(--accent); border-radius: 0 0 4px 4px;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 12px; }
.card-pad-0 { padding: 0; overflow: hidden; }

/* Clickable cards (Learn's tool tiles, etc.) get a tactile lift on hover/press */
button.card, a.card {
  width: 100%; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
button.card:hover, a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--surface-3); }
button.card:active, a.card:active { transform: translateY(0); }

.sec { margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.sec h2 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.sec .sub { font-size: 12px; color: var(--text-3); font-weight: 500; }

h1 { font-size: 24px; font-weight: 900; letter-spacing: -.03em; line-height: 1.18; text-wrap: balance; }
h3 { font-size: 14px; font-weight: 750; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.tiny { font-size: 12px; }
.mono { font-family: var(--ff-num); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 22px; font-size: 15.5px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.pill-accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pill-hot    { background: color-mix(in srgb, var(--hot) 18%, transparent); color: var(--hot); }
.pill-cool   { background: color-mix(in srgb, var(--cool) 18%, transparent); color: var(--cool); }
.pill-good   { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.pill-violet { background: color-mix(in srgb, var(--violet) 18%, transparent); color: var(--violet); }
.pill-dim    { background: var(--surface-2); color: var(--text-3); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  outline: none; transition: .15s; font-size: 15px;
}
.input:focus { border-color: var(--accent); background: var(--surface-3); }
select.input { appearance: none; background-image: linear-gradient(45deg,transparent 50%,var(--text-3) 50%),linear-gradient(135deg,var(--text-3) 50%,transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

.opt-grid { display: grid; gap: 8px; }
.opt {
  padding: 13px 14px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--surface-2); text-align: left; transition: .15s ease; display: flex; gap: 11px; align-items: center;
}
.opt:hover { border-color: var(--surface-3); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.opt:active { transform: translateY(0); }
.opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); box-shadow: 0 0 0 1px var(--accent) inset; }
.opt .oi { font-size: 21px; }
.opt .ot { font-weight: 750; font-size: 14px; }
.opt .od { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px,1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat .v { font-size: 21px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .l { font-size: 10.5px; color: var(--text-3); font-weight: 650; margin-top: 2px; }

/* ---------- progress ---------- */
.bar { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s cubic-bezier(.22,1,.36,1); }
.bar.thin { height: 5px; }

.ring { display: block; }
.ring circle { fill: none; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }

/* ---------- hero / today ---------- */
.hero {
  border-radius: var(--r-lg); padding: 20px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.hero::after {
  content: ''; position: absolute; right: -70px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%);
  pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; left: -50px; bottom: -80px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cool) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }

/* ---------- exercise list ---------- */
.ex-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft); transition: .15s; width: 100%; text-align: left;
}
.ex-item:last-child { border-bottom: none; }
.ex-item:hover { background: var(--surface-2); }
.ex-num {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); font-size: 12px; font-weight: 800; color: var(--text-2);
}
.ex-item.done .ex-num { background: var(--accent); color: var(--accent-ink); }
.ex-body { flex: 1; min-width: 0; }
.ex-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-meta { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

/* ---------- exercise demo ---------- */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px 12px 10px; margin-top: 12px;
}
.demo-stage {
  max-width: 240px; margin: 0 auto;
  background: radial-gradient(ellipse at 50% 82%, var(--surface-2), transparent 68%);
  border-radius: 12px;
}
.demo-bar { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.demo-scrub {
  width: 100%; height: 22px; appearance: none; background: transparent; cursor: pointer; margin-top: 2px;
}
.demo-scrub::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: var(--surface-3); }
.demo-scrub::-moz-range-track { height: 5px; border-radius: 99px; background: var(--surface-3); }
.demo-scrub::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: none; margin-top: -6.5px;
}
.demo-scrub::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: none; }
.demo-scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* list mein chhota demo thumbnail */
.ex-thumb {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--surface-2); overflow: hidden; display: grid; place-items: center;
}
.ex-thumb svg { width: 100%; height: 100%; }

/* ---------- set logger ---------- */
.set-row { display: grid; grid-template-columns: 30px 1fr 1fr 44px; gap: 8px; align-items: center; margin-bottom: 8px; }
.set-row .sn { font-size: 12px; font-weight: 800; color: var(--text-3); text-align: center; }
.set-in {
  width: 100%; padding: 10px 8px; border-radius: 10px; text-align: center; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); outline: none; font-variant-numeric: tabular-nums;
}
.set-in:focus { border-color: var(--accent); }
.set-ok { width: 44px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; }
.set-ok.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- timer ---------- */
.timer-wrap {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 45;
  padding: 10px 16px;
}
.timer {
  max-width: 560px; margin: 0 auto; background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.timer .t { font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-width: 76px; }
.timer.ring-done { animation: pulse .5s ease 3; }
@keyframes pulse { 50% { background: var(--accent); color: var(--accent-ink); } }

/* ---------- calendar heatmap ---------- */
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); display: block; }
.heat i[data-l="1"] { background: color-mix(in srgb, var(--accent) 30%, var(--surface-2)); }
.heat i[data-l="2"] { background: color-mix(in srgb, var(--accent) 62%, var(--surface-2)); }
.heat i[data-l="3"] { background: var(--accent); }
.heat i[data-l="r"] { background: var(--surface-2); opacity: .45; }
.heat i.today { outline: 2px solid var(--cool); outline-offset: 1px; }

/* ---------- week strip ---------- */
.week { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.wd { border-radius: 12px; padding: 9px 2px; text-align: center; background: var(--surface-2); border: 1px solid transparent; }
.wd.today { border-color: var(--accent); }
.wd.rest { opacity: .55; }
.wd .d { font-size: 10px; color: var(--text-3); font-weight: 700; }
.wd .n { font-size: 14px; font-weight: 800; margin-top: 1px; }
.wd .dot { width: 5px; height: 5px; border-radius: 50%; margin: 4px auto 0; background: var(--surface-3); }
.wd.done .dot { background: var(--accent); }

/* ---------- meal ---------- */
.meal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); }
.meal-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.meal-item:last-child { border-bottom: none; }

/* ---------- macro bars ---------- */
.macro { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.macro .mn { width: 62px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.macro .bar { flex: 1; }
.macro .mv { width: 78px; text-align: right; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }

/* ---------- modal / sheet ---------- */
.sheet-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } }
.sheet {
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: none;
  border-radius: 22px 22px 0 0; width: 100%; max-width: 560px;
  max-height: 88dvh; overflow-y: auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  animation: up .26s cubic-bezier(.22,1,.36,1);
}
@keyframes up { from { transform: translateY(100%) } }
.sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: var(--surface-3); margin: 8px auto 14px; }
.sheet h2 { font-size: 18px; font-weight: 820; letter-spacing: -.02em; margin-bottom: 4px; }

/* ---------- misc ---------- */
.list-line { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; align-items: flex-start; }
.list-line:last-child { border-bottom: none; }
.list-line .b { color: var(--accent); flex: none; font-weight: 800; }

.empty { text-align: center; padding: 34px 18px; color: var(--text-3); }
.empty .e { font-size: 40px; margin-bottom: 8px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 26px); z-index: 200;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text);
  padding: 11px 18px; border-radius: 13px; font-size: 13.5px; font-weight: 650;
  box-shadow: var(--shadow); animation: up .2s ease; max-width: 90vw;
}
.toast.good { border-color: var(--accent); }

.scroll-x { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex: none; }

.acc { border-bottom: 1px solid var(--line-soft); }
.acc:last-child { border-bottom: none; }
.acc summary { padding: 13px 2px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: '+'; color: var(--accent); font-weight: 800; font-size: 17px; width: 14px; }
.acc[open] summary::before { content: '−'; }
.acc .acc-body { padding: 0 2px 14px 24px; font-size: 13.5px; color: var(--text-2); }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px,1fr)); gap: 10px; }
.badge { text-align: center; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); opacity: .38; filter: grayscale(1); transition: .2s; }
.badge.on { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.badge .bi { font-size: 26px; }
.badge .bn { font-size: 11.5px; font-weight: 750; margin-top: 4px; }
.badge .bd { font-size: 10px; color: var(--text-3); line-height: 1.3; margin-top: 2px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px,1fr)); gap: 8px; }
.photo-grid figure { border-radius: 12px; overflow: hidden; background: var(--surface-2); position: relative; }
.photo-grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.photo-grid figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 7px 5px; font-size: 10.5px; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }

.hidden { display: none !important; }

/* ---------- desktop ---------- */
@media (min-width: 860px) {
  body { padding-bottom: 30px; }
  .nav {
    position: sticky; top: 0; bottom: auto; border-top: none; border-bottom: 1px solid var(--line);
    background: transparent; backdrop-filter: none;
  }
  .nav-in { max-width: var(--maxw); height: 54px; grid-template-columns: repeat(5, max-content); gap: 6px; padding: 0 16px; margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
  .stat .v { font-size: 24px; }
  .badge-grid { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); }
  .nav-item { flex-direction: row; gap: 8px; font-size: 13.5px; padding: 0 16px; border-radius: 11px; }
  .nav-item .ni { font-size: 16px; }
  .nav-item.on { background: var(--surface); }
  .nav-item.on::before { display: none; }
  .cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
  .cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  h1 { font-size: 30px; }
  .timer-wrap { bottom: 20px; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--line); max-height: 82dvh; }
  .toast { bottom: 26px; }
}

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

@media print {
  .nav, .topbar, .timer-wrap { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .card { break-inside: avoid; border-color: #ccc; box-shadow: none; }
}
