/* Radiant app replica (phone only). From radiant-showcase/v2b-live-app/styles.css.
   Changes: page chrome removed; the device bezel removed (the portfolio draws it, see shared/radiant-app.css);
   the screen is designed at 356x776 and scaled by app.js (--s) to fill the frame. Real Radiant tokens kept. */
@font-face {
  font-family: "Inter";
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
html.embedded, html.embedded body { background: transparent; overflow: hidden; }
html.standalone body { background: #0B1018; color: #CBD5E1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100%; padding: 16px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone :focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; border-radius: 8px; }
.hidden { display: none !important; }

.note { display: none; }
.standalone .note { display: block; max-width: 34ch; font-size: 13px; line-height: 1.45; text-align: center; color: #94A3B8; }

/* the screen is 356x776 and scaled by JS (--s) */
.stage { position: relative; width: calc(356px * var(--s, 1)); height: calc(776px * var(--s, 1)); flex: none; }
.standalone .stage { border-radius: calc(44px * var(--s, 1)); overflow: hidden; box-shadow: 0 0 0 calc(10px * var(--s, 1)) #1D2633, 0 30px 80px rgba(0, 0, 0, 0.5); }
.phone {
  --bg: #F1F5FB; --surface: #F9FAFB; --card: #FFFFFF; --t1: #0F172A; --t2: #64748B; --t3: #94A3B8;
  --div: #E2E8F0; --border: #CBD5E1; --chip-on: #0F172A; --chip-on-t: #FFFFFF;
  --shadow: 0 2px 12px rgba(15, 23, 42, 0.08); --btn-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  --tile-blue: #E0F2FE; --tile-blue-ic: #BAE6FD; --tile-blue-t: #0284C7;
  --tile-lilac: #EDE9FE; --tile-lilac-ic: #DDD6FE; --tile-lilac-t: #7C3AED;
  --tile-cream: #FEFCE8; --tile-cream-ic: #FDE68A; --tile-cream-t: #B45309;
  --feel: #E0F2FE; --tab: #FFFFFF; --guide: #0B5A86; --track-off: #E2E8F0;
  --ok-bg: #FEF3C7; --ok-t: #D97706; --good-bg: #DCFCE7; --good-t: #16A34A; --bad-bg: #FEE2E2; --bad-t: #DC2626;
  position: absolute; top: 0; left: 0; width: 356px; height: 776px; overflow: hidden;
  zoom: var(--s, 1); /* re-lays out at the real size, so text stays sharp (transform:scale rasterised at 1x and looked soft) */
  background: var(--bg);
  font-family: "Inter", system-ui, sans-serif; color: var(--t1); line-height: 1.4;
  transition: background-color .35s ease;
}
.phone[data-theme="dark"] {
  --bg: #0B1C26; --surface: #0F2531; --card: #163544; --t1: #ECF8FF; --t2: #C3D5DF; --t3: #8096A3;
  --div: #1F3A45; --border: #1F3A45; --chip-on: #0EA5E9; --chip-on-t: #FFFFFF;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.35); --btn-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  --tile-blue: rgba(14, 165, 233, 0.14); --tile-blue-ic: rgba(14, 165, 233, 0.25); --tile-blue-t: #7DD3FC;
  --tile-lilac: rgba(139, 92, 246, 0.16); --tile-lilac-ic: rgba(139, 92, 246, 0.3); --tile-lilac-t: #C4B5FD;
  --tile-cream: rgba(251, 191, 36, 0.12); --tile-cream-ic: rgba(251, 191, 36, 0.26); --tile-cream-t: #FCD34D;
  --feel: #0F2531; --tab: #0F2531; --guide: #0A3140; --track-off: #1F3A45;
  --ok-bg: rgba(245, 158, 11, 0.18); --ok-t: #FBBF24; --good-bg: rgba(34, 197, 94, 0.16); --good-t: #4ADE80; --bad-bg: rgba(239, 68, 68, 0.18); --bad-t: #F87171;
}
.viewport::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50px; background: var(--bg); z-index: 4; pointer-events: none; transition: background-color .35s ease; }
.island { position: absolute; top: 10px; left: 50%; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #000; z-index: 9; }
.viewport { position: absolute; inset: 0 0 82px 0; overflow: hidden; background: var(--bg); transition: background-color .35s ease; }
.phone .tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 82px;
  background: var(--tab); border-top: 1px solid var(--div);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px 18px;
  transition: background-color .35s ease;
}
.tabbar button {
  font: inherit; font-size: 11px; font-weight: 500; color: var(--t3); background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; border-radius: 14px;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: #0EA5E9; }
.tabbar button[aria-current="page"] svg { stroke-width: 2.3; }

/* screens */
.scr {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  opacity: 0; visibility: hidden; transform: translateX(28px) scale(0.985);
  transition: opacity .32s ease, transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
  padding-bottom: 24px;
}
.scr:focus { outline: none; }
.scr::-webkit-scrollbar { display: none; }
.scr.on { opacity: 1; visibility: visible; transform: none; transition: opacity .32s ease, transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.scr.out-left { transform: translateX(-28px) scale(0.985); }
@media (prefers-reduced-motion: reduce) {
  .scr, .scr.on, .scr.out-left { transform: none; transition: opacity .01s; }
}
.pad { padding: 0 20px; }
.pad.top { padding-top: 64px; }
.scr-head { padding: 64px 20px 18px; border-bottom: 1px solid var(--div); margin-bottom: 18px; position: relative; }
.scr-head.plain { border-bottom: 0; margin-bottom: 4px; padding-bottom: 14px; }
.h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; color: var(--t1); }
.phone[data-theme="dark"] .h1, .phone[data-theme="dark"] .greet { text-shadow: 0 0 12px rgba(14, 165, 233, 0.35); }
.muted { color: var(--t2); font-size: 14px; margin-top: 4px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t2); margin: 18px 0 10px; }
.label.tight { margin: 0 0 2px; display: block; font-size: 10.5px; }
.label.dot { display: flex; align-items: center; gap: 8px; }
.label.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0EA5E9; }
.label.muted-dot::before { background: var(--t3); }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; transition: background-color .35s ease; }
.phone .ic { width: 15px; height: 15px; vertical-align: -2px; }
.back { position: absolute; left: 16px; top: 52px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--t1); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.back svg { width: 20px; height: 20px; }
.scr-head .back + .h1 { margin-top: 34px; }

/* today */
.date { display: flex; align-items: center; gap: 8px; color: var(--t2); font-size: 14px; }
.date .moon { color: #6366F1; fill: #6366F1; stroke: none; width: 16px; height: 16px; }
.greet { font-size: 32px; font-weight: 650; letter-spacing: -0.025em; margin: 8px 0 20px; color: var(--t1); line-height: 1.12; }
.greet em { color: #0EA5E9; font-style: italic; font-weight: 600; }
.week-card .h-week { font-size: 20px; font-weight: 650; }
.journey { height: 6px; border-radius: 6px; background: var(--track-off); margin-top: 14px; overflow: hidden; }
.journey span { display: block; height: 100%; background: linear-gradient(90deg, #06B6D4, #0EA5E9); border-radius: inherit; }
.feel { background: var(--feel); border-radius: 26px; padding: 22px 20px; margin-top: 14px; transition: background-color .35s ease; }
.h-feel { font-size: 20px; font-weight: 650; }
.pill-btn {
  margin-top: 16px; width: 100%; min-height: 52px; border-radius: 999px; border: 0; cursor: pointer;
  background: #0EA5E9; color: #fff; font: inherit; font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
  transition: transform .1s ease, background-color .2s ease;
}
.pill-btn:hover { background: #0B97D6; }
.pill-btn:active { transform: scale(0.97); }
.pill-btn svg { width: 18px; height: 18px; }
.pill-btn.wide { margin: 18px 0 8px; }
.pill-btn[disabled] { opacity: 0.8; cursor: progress; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.tile { font: inherit; font-size: 13px; font-weight: 500; color: var(--t2); border: 0; border-radius: 20px; padding: 16px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform .15s ease; }
.tile:hover { transform: translateY(-2px); }
.tile-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.tile-ic svg { width: 21px; height: 21px; }
.t-blue { background: var(--tile-blue); } .t-blue .tile-ic { background: var(--tile-blue-ic); color: var(--tile-blue-t); }
.t-lilac { background: var(--tile-lilac); } .t-lilac .tile-ic { background: var(--tile-lilac-ic); color: var(--tile-lilac-t); }
.t-cream { background: var(--tile-cream); } .t-cream .tile-ic { background: var(--tile-cream-ic); color: var(--tile-cream-t); }
.recent { margin-top: 14px; }
.recent .label { margin-top: 0; }
.recent-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.recent-row div { font-size: 11px; color: var(--t2); }
.recent-row b { display: block; font-size: 18px; color: var(--t1); }
.link-btn { margin-top: 12px; font: inherit; font-size: 14px; font-weight: 600; color: #0EA5E9; background: none; border: 0; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.link-btn svg { width: 16px; height: 16px; }

/* check-in sliders */
.sl { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 18px 20px 14px; margin-bottom: 12px; transition: background-color .35s ease; }
.sl-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sl-name { font-size: 17px; font-weight: 600; color: var(--t1); }
.sl-state { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sl-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; transition: background-color .2s, color .2s; }
.sl-of { font-size: 13px; color: var(--t2); margin: 0 0 4px; }
.sl-ends { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 500; color: var(--t3); }
.st-ok { color: var(--ok-t); } .bg-ok { background: var(--ok-bg); color: var(--ok-t); }
.st-good { color: var(--good-t); } .bg-good { background: var(--good-bg); color: var(--good-t); }
.st-bad { color: var(--bad-t); } .bg-bad { background: var(--bad-bg); color: var(--bad-t); }

.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer;
  --fill: 50%; --col: #FDE68A;
}
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--col) var(--fill), var(--track-off) var(--fill)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--col) var(--fill), var(--track-off) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid #CBD5E1; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18); transition: transform .1s ease; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #CBD5E1; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18); }
.range:active::-webkit-slider-thumb { transform: scale(1.2); }
.phone[data-theme="dark"] .range::-webkit-slider-thumb { border-color: #0EA5E9; }
.phone[data-theme="dark"] .range::-moz-range-thumb { border-color: #0EA5E9; }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.45); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.45); }
@media (prefers-reduced-motion: reduce) { .range:active::-webkit-slider-thumb { transform: none; } .tile:hover { transform: none; } }

/* tip */
.saved { display: inline-flex; align-items: center; gap: 8px; background: var(--good-bg); color: var(--good-t); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.saved svg { width: 16px; height: 16px; }
.tip-card { border-left: 4px solid #0EA5E9; }
.tip-domain { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #0EA5E9; }
.tip-title { font-size: 19px; font-weight: 650; margin: 4px 0 8px; color: var(--t1); }
.tip-body { font-size: 14px; color: var(--t2); line-height: 1.55; }
.tip-list { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--t1); line-height: 1.5; }
.tip-list li { margin-bottom: 4px; }
.tip-care { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--t1); background: var(--surface); padding: 10px 12px; border-radius: 12px; }
.tip-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--div); }
.sources-btn { font: inherit; font-size: 13px; font-weight: 600; color: #0EA5E9; background: rgba(14, 165, 233, 0.1); border: 0; border-radius: 999px; padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sources-btn svg { width: 15px; height: 15px; }
.edu { font-size: 11px; color: var(--t3); text-align: right; line-height: 1.3; max-width: 130px; }
.rec-audio { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; font: inherit; color: var(--t1); cursor: pointer; padding: 14px 16px; }
.rec-title { font-weight: 600; font-size: 15px; }
.ghost-btn { display: block; margin: 14px auto 0; font: inherit; font-weight: 600; font-size: 15px; color: #0EA5E9; background: none; border: 0; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.phone[data-theme="dark"] .ghost-btn { color: var(--t2); }

/* filters/chips */
.filters { display: flex; gap: 8px; padding: 0 20px 14px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--t2); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; height: 36px; cursor: pointer; transition: background-color .2s, color .2s; }
.chip.on { background: var(--chip-on); color: var(--chip-on-t); border-color: var(--chip-on); }
.sample { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #B45309; background: #FEF3C7; padding: 6px 10px; border-radius: 999px; }
.phone[data-theme="dark"] .sample { color: #FCD34D; background: rgba(251, 191, 36, 0.16); }

/* audio list */
.list { list-style: none; margin: 0; padding: 0 20px; }
.pad.list { padding: 0 20px 70px; }
#guideList { padding: 0; }
.phone.has-mini .scr { padding-bottom: 96px; }
.track { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--t1); border: 0; cursor: pointer; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 14px 14px; margin-bottom: 10px; transition: background-color .35s ease, box-shadow .2s ease; }
.track[aria-pressed="true"] { box-shadow: 0 0 0 2px #0EA5E9, var(--shadow); }
.play-dot { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #0EA5E9; color: #fff; display: grid; place-items: center; }
.play-dot svg { width: 20px; height: 20px; fill: #fff; stroke: none; margin-left: 2px; }
.play-dot.sm { width: 38px; height: 38px; }
.play-dot.sm svg { width: 16px; height: 16px; }
.tr-main { flex: 1; min-width: 0; }
.tr-title { display: block; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-meta { white-space: nowrap; overflow: hidden; display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--t3); margin-top: 3px; }
.tr-meta svg { width: 13px; height: 13px; }
.prem { align-self: flex-start; flex: none; font-size: 11px; font-weight: 600; color: #0284C7; background: #E0F2FE; padding: 3px 8px; border-radius: 999px; }
.phone[data-theme="dark"] .prem { color: #7DD3FC; background: rgba(14, 165, 233, 0.18); }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: #0EA5E9; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.track.playing .eq { display: inline-flex; }
.phone.paused .eq i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 10px; } }

/* mini player */
.mini { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: rgba(15, 23, 42, 0.92); color: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35); backdrop-filter: blur(10px); animation: rise .3s ease; }
.phone[data-theme="dark"] .mini { background: rgba(22, 53, 68, 0.96); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mini { animation: none; } }
.mini-play, .mini-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; }
.mini-play { background: #0EA5E9; color: #fff; }
.mini-play svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.mini-play .i-play { display: none; }
.phone.paused .mini-play .i-play { display: block; }
.phone.paused .mini-play .i-pause { display: none; }
.mini-x { background: transparent; color: rgba(255, 255, 255, 0.7); width: 32px; height: 32px; }
.mini-x svg { width: 16px; height: 16px; }
.mini-meta { flex: 1; min-width: 0; }
.mini-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); margin-top: 7px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; width: 0; background: #38BDF8; border-radius: inherit; }
.mini-time { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.75); flex: none; }

/* learn */
.hero-guide { background: var(--guide); color: #fff; border-radius: 26px; padding: 20px; position: relative; overflow: hidden; }
.hero-guide::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(125, 211, 252, 0.25), transparent 70%); }
.cur { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, 0.12); padding: 5px 12px; border-radius: 999px; }
.cur span { width: 6px; height: 6px; border-radius: 50%; background: #38BDF8; }
.hg-week { color: #7DD3FC; font-size: 15px; font-weight: 500; margin-top: 12px; }
.hero-guide h3 { font-size: 21px; font-weight: 650; margin: 4px 0 8px; line-height: 1.2; }
.hg-ex { font-size: 14px; color: rgba(255, 255, 255, 0.78); line-height: 1.5; }
.hg-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.hg-meta strong { color: #fff; margin-left: 10px; font-weight: 600; }
.guide { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 10px; transition: background-color .35s ease; }
.guide .g-w { font-size: 12.5px; font-weight: 600; color: var(--t3); }
.guide h4 { margin: 3px 0 4px; font-size: 16px; font-weight: 600; color: var(--t1); }
.guide p { font-size: 13px; color: var(--t2); line-height: 1.45; }
.guide .g-time { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--t3); }
.guide .g-time svg { width: 13px; height: 13px; }

/* more */
.menu { list-style: none; margin: 0; }
.menu li { margin-bottom: 8px; }
.menu button { width: 100%; display: flex; align-items: center; gap: 12px; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--t1); background: var(--card); border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; min-height: 56px; cursor: pointer; text-align: left; transition: background-color .35s ease; }
.menu button:disabled { cursor: default; opacity: 0.6; }
.m-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); color: var(--t2); flex: none; }
.m-ic svg { width: 18px; height: 18px; }
.m-ic.t-blue { color: var(--tile-blue-t); } .m-ic.t-lilac { color: var(--tile-lilac-t); } .m-ic.t-cream { color: var(--tile-cream-t); }
.chev { margin-left: auto; width: 18px; height: 18px; color: var(--t3); }
.m-val { margin-left: auto; font-size: 13px; color: var(--t3); }

/* trends */
.chart { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 16px 10px; margin-bottom: 10px; transition: background-color .35s ease; }
.chart-top { display: flex; justify-content: space-between; align-items: baseline; }
.chart-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.chart-name i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chart-avg { font-size: 12px; color: var(--t3); }
.chart svg { width: 100%; height: 70px; display: block; margin-top: 6px; overflow: visible; stroke: none; }
.chart .grid { stroke: var(--div); stroke-width: 1; }
.chart .ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .chart .ln.draw { animation: none; stroke-dashoffset: 0; } }
.chart .dt { stroke: var(--card); stroke-width: 2; }
.chart .today-dot { stroke: #0EA5E9; stroke-width: 2.5; fill: var(--card); }
.chart-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--t3); margin-top: 4px; }
.share-tip { font-size: 12.5px; color: var(--t2); background: var(--surface); border-radius: 16px; padding: 12px 14px; margin-top: 4px; }

/* sources */
.src-group { margin-bottom: 14px; }
.src-group h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t2); margin: 0 0 6px; }
.src-group.hl h4 { color: #0EA5E9; }
.src { font-size: 12.5px; line-height: 1.45; color: var(--t1); background: var(--card); border-radius: 14px; padding: 10px 12px; margin: 0 0 6px; box-shadow: var(--shadow); }
.src a { color: #0EA5E9; word-break: break-all; }
.src-note { font-size: 12.5px; color: var(--t2); margin-bottom: 12px; line-height: 1.45; }

/* sheet */
.sheet-wrap { position: absolute; inset: 0; z-index: 8; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); animation: fade .25s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 18px 16px; animation: up .32s cubic-bezier(.2, .8, .2, 1); }
.sheet h3 { font-size: 18px; margin: 8px 0 12px; color: var(--t1); }
.grab { width: 40px; height: 5px; border-radius: 5px; background: var(--border); margin: 0 auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-scrim { animation: none; } }

@supports not (zoom: 1) { .phone { transform: scale(var(--s, 1)); transform-origin: top left; } }

.scr, .filters, .sheet { cursor: grab; }
.dragging { cursor: grabbing; user-select: none; }
.dragging * { cursor: grabbing; }
button, .tile, .chip, a, .pill-btn { cursor: pointer; }
