:root {
  /* Sáng: nền kem + cam kiểu iPhone 17 Pro Cosmic Orange */
  --bg: #f8f3ea; --card: #fffcf6; --card2: #f1e9dc; --text: #2b2118; --muted: #8a7b68; --line: #e8dccb;
  --acc: #f26a1b; --acc-ink: #fff; --acc-soft: #fde3cf; --good: #2f9e55; --warn: #d9480f; --bad: #d64545;
  --shadow: 0 1px 2px rgba(92,60,20,.06), 0 8px 24px rgba(92,60,20,.07);
  --edge: linear-gradient(160deg, rgba(255,255,255,1), rgba(255,255,255,.3) 35%, rgba(214,190,160,.35) 70%, rgba(255,255,255,.8)); /* viền bắt sáng */
  --glow: .45;
  --display: 'Cal Sans', 'Be Vietnam Pro', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring-lin: linear(0, 0.062, 0.212, 0.402, 0.596, 0.771, 0.913, 1.017, 1.083, 1.117, 1.126, 1.117, 1.098, 1.074, 1.049, 1.027, 1.01, 0.997, 0.989, 0.985, 0.984, 0.986, 0.989, 0.992, 0.996, 1); /* lò xo thật: nảy nhẹ rồi dừng */ --spring: cubic-bezier(.34,1.56,.64,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f12; --card: #17191e; --card2: #20232a; --text: #f2f3f5; --muted: #8b92a1; --line: #262a32;
    --acc: #c6f432; --acc-ink: #0e0f12; --acc-soft: #2a3310; --good: #3ddc84; --warn: #ffb224; --bad: #ff6369;
    --shadow: none; color-scheme: dark;
    --edge: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 35%, rgba(255,255,255,.02) 65%, rgba(255,255,255,.12)); --glow: .6;
  }
}
:root[data-theme="dark"] {
  --edge: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 35%, rgba(255,255,255,.02) 65%, rgba(255,255,255,.12)); --glow: .6;
  --bg: #0e0f12; --card: #17191e; --card2: #20232a; --text: #f2f3f5; --muted: #8b92a1; --line: #262a32;
  --acc: #c6f432; --acc-ink: #0e0f12; --acc-soft: #2a3310; --good: #3ddc84; --warn: #ffb224; --bad: #ff6369;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 'Be Vietnam Pro', system-ui, sans-serif; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; }

#app { max-width: 520px; margin: 0 auto; min-height: 100%; position: relative; }
#top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 14px) 20px 12px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
#top h1 { font: 400 30px/1.3 var(--display); letter-spacing: .01em; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#back { display: none; margin-left: -8px; }
body.deep #back { display: grid; }
body.deep #top h1 { font-size: 22px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#sync { width: 8px; height: 8px; border-radius: 50%; background: var(--good); transition: background .3s; }
#sync.pending { background: var(--warn); animation: pulse 1s infinite; }
#sync.off { background: var(--muted); }
#sync.err { background: var(--bad); }

#screen { padding: 4px 20px calc(120px + env(safe-area-inset-bottom)); view-transition-name: screen; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:active { background: var(--card2); }
.card .icon-btn, .card > .between > svg:last-child { color: var(--acc); }

/* Tabs */
#tabs {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); view-transition-name: tabs;
}
#tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; color: var(--muted); cursor: pointer; position: relative; z-index: 1; transition: color .25s; }
#tabs button b { font-size: 12px; font-weight: 600; }
#tabs button.on { color: var(--acc); }
:root:not([data-theme="light"]) #tabs button.on b { color: var(--text); }
#tabs button.on svg { animation: pop .35s var(--spring); }
#tab-ind { position: absolute; top: 8px; height: 56px; width: calc((100% - 16px) / 5); left: 8px; border-radius: 18px; background: var(--acc-soft); transition: transform .4s var(--spring); }

#fab {
  position: fixed; z-index: 9; right: max(20px, calc(50% - 240px)); bottom: calc(96px + env(safe-area-inset-bottom));
  height: 58px; min-width: 58px; padding: 0 22px; border: 0; border-radius: 20px; font-size: 16px; background: var(--acc); color: var(--acc-ink);
  display: flex; align-items: center; gap: 6px; font-weight: 700; box-shadow: 0 8px 24px color-mix(in srgb, var(--acc) 40%, transparent);
  cursor: pointer; view-transition-name: fab;
}
#fab span:empty { display: none; }
#fab.hide { transform: scale(0); opacity: 0; pointer-events: none; }
#fab { transition: transform .55s var(--spring-lin), opacity .2s !important; }
#fab:active { transform: scale(.9); transition-duration: .08s; }

/* View transitions: đẩy trang vào / ra, đổi tab */
::view-transition-old(screen), ::view-transition-new(screen) { animation-duration: .38s; animation-timing-function: var(--ease); }
.push::view-transition-old(screen) { animation-name: out-left; }
.push::view-transition-new(screen) { animation-name: in-right; }
.pop::view-transition-old(screen) { animation-name: out-right; }
.pop::view-transition-new(screen) { animation-name: in-left; }
.tab::view-transition-old(screen) { animation: fade-out .15s ease both; }
.tab::view-transition-new(screen) { animation: rise .35s var(--ease) both; }
@keyframes in-right { from { transform: translateX(40%); opacity: 0; } }
@keyframes out-left { to { transform: translateX(-20%); opacity: 0; } }
@keyframes in-left { from { transform: translateX(-20%); opacity: 0; } }
@keyframes out-right { to { transform: translateX(40%); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes pop { 40% { transform: scale(1.25); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Chữ hiện dần từng ký tự: mờ nhòe + trượt lên (kiểu kites.design) */
.bi .w { white-space: nowrap; }
.bi .c { display: inline-block; padding-top: .08em; animation: blurin .75s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes blurin { from { opacity: 0; filter: blur(10px); transform: translateY(35%); } }

/* Danh sách xuất hiện so le */
.stagger > * { animation: rise .45s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; }
.stagger > *:nth-child(4) { animation-delay: .12s; } .stagger > *:nth-child(5) { animation-delay: .16s; }
.stagger > *:nth-child(6) { animation-delay: .2s; } .stagger > *:nth-child(n+7) { animation-delay: .24s; }

/* Card & bố cục */
.card { background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; border: 1px solid transparent; border-radius: 24px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }

/* Vẽ lại tại chỗ (bấm nút) → không chạy lại hiệu ứng xuất hiện, hết giật */
#screen.still .stagger > *, #screen.still .check, #screen.still .banner { animation: none; }
#screen.still .chart path.l { animation: none; stroke-dashoffset: 0; }
#screen.still .chart path.a { animation: none; opacity: 1; }

/* Phát sáng nhẹ kiểu iPhone */
.btn:not(.ghost):not(.soft):not(.danger) { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 22px -6px color-mix(in srgb, var(--acc) calc(var(--glow) * 100%), transparent); }
.btn.soft { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 28%, transparent); }
#fab { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px color-mix(in srgb, var(--acc) 60%, transparent), 0 10px 34px -4px color-mix(in srgb, var(--acc) calc(var(--glow) * 110%), transparent) !important; }
#tabs { border-top: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -10px 30px rgba(0,0,0,.12); }
#tab-ind { box-shadow: 0 0 22px color-mix(in srgb, var(--acc) 30%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent); }
.in:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.ring .fg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--acc) 70%, transparent)); }
.bar i { box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 60%, transparent); }
.chart path.l { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--acc) 60%, transparent)); }
.pill.acc { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent); }
.coach { border-left: 0 !important; background: linear-gradient(color-mix(in srgb, var(--acc) 7%, var(--card)), var(--card)) padding-box, linear-gradient(160deg, color-mix(in srgb, var(--acc) 70%, transparent), transparent 60%) border-box !important; }

/* Nước */
.glass { position: relative; width: 44px; height: 60px; border-radius: 8px 8px 14px 14px; border: 2px solid color-mix(in srgb, #3ba7ff 60%, var(--line)); overflow: hidden; }
.glass i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--k) * 100%); background: linear-gradient(#6cc4ff, #2a8cff); box-shadow: 0 0 14px #3ba7ff; transition: height .8s var(--spring-lin); }
.glass i::before { content: ''; position: absolute; left: -50%; top: -6px; width: 200%; height: 12px; border-radius: 45%; background: #6cc4ff; animation: wave 2.4s linear infinite; }
@keyframes wave { to { transform: translateX(25%); } }
.water .bar i { background: #3ba7ff; }
/* Tick thực phẩm bổ sung */
.tick { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; transition: all .45s var(--spring-lin); }
.tick svg { width: 16px; height: 16px; stroke-width: 3; }
.tick.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 50%, transparent); }
.card.tap { cursor: pointer; }
/* Nhấn kiểu animate-ui: lún nhanh 80ms, thả ra bật lại theo lò xo */
.btn, .card.tap, .seg button, .chips button, .icon-btn, .x, #fab, .list .item[onclick] { transition: transform .55s var(--spring-lin), background-color .25s, color .25s, border-color .25s; }
.card.tap:active, .list .item[onclick]:active { transform: scale(.97); transition-duration: .08s; }
.btn:active, .seg button:active, .chips button:active, .icon-btn:active, .x:active { transition-duration: .08s; }
.seg button:active, .chips button:active, .icon-btn:active, .x:active { transform: scale(.92); }
#fab { overflow: hidden; }
.btn, .card.tap, .seg button, .chips button, #tabs button, .list .item[onclick], .icon-btn { position: relative; overflow: hidden; -webkit-user-select: none; user-select: none; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; pointer-events: none; transform: scale(0); animation: ripple .65s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.spark { position: fixed; z-index: 70; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--acc); pointer-events: none; animation: spark .8s cubic-bezier(.15,.8,.3,1) forwards; }
.spark.gold { background: #ffb224; box-shadow: 0 0 8px #ff8a3d; }
@keyframes spark { 0% { transform: translate(0, 0) scale(var(--s)); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.theme-vt #screen, .theme-vt #tabs, .theme-vt #fab { view-transition-name: none; }
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-vt::view-transition-old(root) { z-index: 1; } .theme-vt::view-transition-new(root) { z-index: 2; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid2 > .card { margin: 0; }
.label { font-size: 14px; color: var(--muted); font-weight: 500; }
.big { font-family: var(--display); font-size: 40px; font-weight: 400; letter-spacing: .01em; line-height: 1.2; margin-top: 4px; }
.big small { font-family: 'Be Vietnam Pro', sans-serif; font-size: 15px; margin-left: 4px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.row > .grow { flex: 1; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec { font: 400 20px/1.3 var(--display); letter-spacing: .01em; color: var(--text); margin: 26px 4px 12px; }
.up { color: var(--good); } .down { color: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--card2); color: var(--muted); }
.pill.acc { background: var(--acc-soft); color: var(--acc); font-weight: 700; }
.pill.good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty svg { width: 44px; height: 44px; opacity: .4; margin-bottom: 8px; }

/* Thanh tiến độ & vòng */
.bar { height: 10px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--acc); transition: width .9s var(--ease); }
.bar.over i { background: var(--warn); }
.ring { width: 128px; height: 128px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { stroke-width: 10; fill: none; }
.ring .bg { stroke: var(--card2); }
.ring .fg { stroke: var(--acc); transition: stroke-dashoffset 1s var(--ease); }
.macro { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; font-size: 14px; margin: 10px 0; }

/* Ngày trong tuần */
.week { display: grid; gap: 12px; }
.day { display: flex; align-items: center; gap: 14px; }
.day .dnum { width: 54px; height: 54px; border-radius: 16px; background: var(--card2); display: grid; place-items: center; font-weight: 800; flex: none; line-height: 1; text-align: center; font-size: 13px; }
.day .dnum small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.day.today .dnum { background: var(--acc); color: var(--acc-ink); }
.day.today .dnum small { color: inherit; opacity: .7; }
.check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; flex: none; animation: pop .4s var(--spring); }
.check svg { width: 16px; height: 16px; stroke-width: 3; }

/* Bài tập */
.ex { display: flex; gap: 14px; align-items: center; }
.thumb { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: linear-gradient(90deg, var(--card2), var(--line), var(--card2)) 0 0/200% 100%; animation: shimmer 1.2s linear infinite; flex: none; }
.thumb.ok { animation: none; }
.ex b { display: block; font-weight: 700; }
.ex .x { margin-left: auto; }
.anim { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; background: #fff; margin-bottom: 12px; }
.anim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.anim img + img { animation: frame 2.4s steps(1) infinite; }
@keyframes frame { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
.anim.smooth img + img { animation: xfade 2.4s ease-in-out infinite; }
@keyframes xfade { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
ol.steps { padding-left: 20px; margin: 8px 0 0; color: var(--muted); }
ol.steps li { margin: 6px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; color: var(--acc); }
details summary::after { content: '＋'; float: right; color: var(--muted); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }

/* Set logger */
.sets { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sets th { font-size: 13px; color: var(--muted); text-align: left; padding: 4px 6px; font-weight: 600; }
.sets td { padding: 12px 6px; font-size: 16px; border-top: 1px solid var(--line); }
.sets tr.new td { animation: flash 1s var(--ease); }
@keyframes flash { from { background: var(--acc-soft); } }
.logger { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
.logger label { font-size: 13px; color: var(--muted); font-weight: 600; }
.coach { border-left: 4px solid var(--acc); }

/* Form */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.in { width: 100%; min-height: 52px; padding: 13px 16px; font-size: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card2); outline: none; transition: border-color .2s; }
.in:focus { border-color: var(--acc); }
input.in[type=number] { font-variant-numeric: tabular-nums; }
.btn { border: 0; border-radius: 16px; min-height: 54px; padding: 14px 20px; font-size: 16px; font-weight: 700; background: var(--acc); color: var(--acc-ink); cursor: pointer; transition: transform .15s, filter .2s; width: 100%; }
.btn:active { transform: scale(.95); }
.btn.ghost { background: var(--card2); color: var(--text); }
.btn.soft { background: var(--acc-soft); color: var(--acc); }
.btn.danger { background: none; color: var(--bad); }
.btn.sm { width: auto; min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 14px; }
.seg { display: flex; background: var(--card2); border-radius: 16px; padding: 4px; margin-bottom: 16px; position: relative; isolation: isolate; }
.seg .knob { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 12px; background: var(--acc); box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 30%, transparent); transform: translateX(calc(var(--i) * 100%)); animation: segslide .55s var(--spring-lin) both; }
@keyframes segslide { from { transform: translateX(calc(var(--from) * 100%)); } }
.seg button { flex: 1; z-index: 1; border: 0; background: none; min-height: 42px; padding: 9px 6px; border-radius: 12px; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--muted); cursor: pointer; transition: color .2s, background .25s; }
.seg button.on { color: var(--acc-ink); transition: color .3s .1s; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -20px 12px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips button { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.chips button.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.list > .item:first-child { border-top: 0; }
.item > .grow { flex: 1; min-width: 0; }
.x { border: 0; background: none; color: var(--muted); padding: 10px; cursor: pointer; border-radius: 10px; }
.x svg { width: 18px; height: 18px; }

/* Bottom sheet */
#sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0); pointer-events: none; transition: background .3s; }
#sheet-wrap.open { background: rgba(0,0,0,.45); pointer-events: auto; }
#sheet {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--card); border-radius: 24px 24px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 100%); transition: transform .42s var(--ease);
}
#sheet-wrap.open #sheet { transform: translate(-50%, 0); }
#sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
#sheet h2 { margin: 4px 0 18px; font: 400 26px/1.3 var(--display); letter-spacing: .01em; }
#sheet.tall { height: 92vh; }

#toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); z-index: 60; transform: translate(-50%, -150%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  transition: transform .45s var(--spring); max-width: 90vw; text-align: center;
}
#toast.show { transform: translate(-50%, 0); }
#toast.pr { background: linear-gradient(135deg, #ffb224, #ff5f6d); color: #fff; }

.chart { width: 100%; height: 180px; display: block; }
.chart path.l { stroke: var(--acc); stroke-width: 2.5; fill: none; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s var(--ease) forwards; }
.chart path.a { fill: url(#g); stroke: none; opacity: 0; animation: fadein .8s .5s forwards; }
.chart text { fill: var(--muted); font-size: 10px; }
.chart line { stroke: var(--line); }
.chart circle { fill: var(--acc); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: var(--card2); }

.banner { border-radius: 22px; padding: 16px 20px; margin-bottom: 14px; background: color-mix(in srgb, var(--warn) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); animation: rise .5s var(--ease); }
.login { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.logo { width: 72px; height: 72px; border-radius: 22px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; margin-bottom: 18px; animation: pop .6s var(--spring); }
.logo svg { width: 40px; height: 40px; stroke-width: 2.5; }
.timer { font-family: var(--display); font-size: 44px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
