/* ═══════════ ARMR. theme v5 — "Ember & Ocean" ═══════════
   Matched to Luke's reference (focus-timer shots): colours sampled from the image.
   Warm screens: #3c0100 → #670300 → #b54f2d → #f46b0c → #ff9a2f
   Ocean screen: #111330 → #034fbe → #0e71e6 → #2393f4
   Black panels, white circular buttons, a floating pill tab bar, one clean sans (Inter Tight).
   Loaded after styles.css, so it wins. */

:root {
  --bg: #000;
  --ink: #fff; --ink-2: rgba(255, 255, 255, .84); --ink-3: rgba(255, 255, 255, .64); --ink-4: rgba(255, 255, 255, .34);
  --line: rgba(255, 255, 255, .16); --line-2: rgba(255, 255, 255, .26);
  --glass: rgba(255, 255, 255, .13); --glass-2: rgba(255, 255, 255, .2);
  --neon: #ff7a1a; --neon-hi: #ffc26c; --neon-glow: none;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Inter Tight", "Inter", system-ui, sans-serif;
  --warm: linear-gradient(180deg, #3c0100 0%, #670300 16%, #b54f2d 40%, #f46b0c 64%, #ff9a2f 100%);
  --ocean: linear-gradient(180deg, #111330 0%, #0b2a7a 20%, #034fbe 40%, #0e71e6 58%, #2393f4 76%, #57b6ff 100%);
  --mu-warm: #ffc26c;
  --mu-ocean: #a0c7fc;
  --mu: var(--mu-warm);
}

/* ── canvas: each screen sits on a full-bleed gradient ── */
.screen-glass, .phone { background: #000; }
.ambient { background: var(--warm); transition: background .5s; }
.ambient b, .ambient .grain { display: none !important; }
#app[data-tab="today"] .ambient, #app[data-tab="inbox"] .ambient, #app[data-tab="you"] .ambient, #app[data-tab="person"] .ambient { background: var(--ocean); }
#app[data-tab="chat"] .ambient { background: #000; }
#app[data-tab="today"], #app[data-tab="inbox"], #app[data-tab="you"], #app[data-tab="person"] { --mu: var(--mu-ocean); }
/* pushed screens share the canvas; the screen underneath steps out of the way */
.view.push { background: transparent; }
.views:has(> .view.push) > .view.base { visibility: hidden; }

/* ── type ── */
body, .view { font-family: var(--sans); }
.logo { font-family: "Archivo", "Arial Black", sans-serif; }
.logo span { color: #fff; text-shadow: none; }
.eyebrow { font: 500 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--mu); }
.hello h1, .profile-head h1, .person-head h1 { font: 700 34px/1.05 var(--display); letter-spacing: -.03em; }
.hello h1 em, .view em, .sheet em, .display em, h1 em, h2 em, h3 em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--mu); }
.display, .plan-card h3, .detail-hero h1, .session-card .ttl, .auth-title, .ob-title, .sec-title { font-family: var(--display) !important; font-stretch: 100% !important; text-transform: none !important; letter-spacing: -.035em !important; font-weight: 700 !important; }
.section-h h2, .card-h h3, .sheet h2, .meal-h > b { font: 600 22px/1.15 var(--display); letter-spacing: -.02em; }
.num, .tile .v, .val, .bpm, .clock, .kv b, .history-sum b, .person-counts b, .int, .meal-kcal { font-family: var(--display) !important; font-stretch: 100% !important; letter-spacing: -.02em; }
.note, .explain { color: var(--ink-3); }
.link, .section-h a { color: #fff; opacity: .86; }
.mention { color: var(--mu); }

/* ── surfaces: translucent glass on the gradients, near-black inside black panels ── */
.card, .card.flat, .tile, .feed-card, .meal-card, .chat-list, .plan-card, .mp, .plan-row, .board, .feature-board, .tip-card,
.score-plain .score-stats > div, .hr-live, .pblock, .dev-row, .list-card, .mod-row, .mod-reason, .empty-hero, .session-card, .sess-acc > summary,
.week-acc, .req-card, .ready-sensor, .food-row, .person-row.card {
  background: rgba(255, 255, 255, .13) !important; border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.card, .tile, .feed-card, .meal-card, .chat-list, .plan-card, .mp, .session-card, .hr-live { border-radius: 26px !important; }
.sleek::before, .sleek::after, .card.ice::before, .card.onyx::before, .card.onyx::after { display: none !important; }
.ghost-word, .feat .ghost-word { display: none !important; }
.section-sep { background: rgba(255, 255, 255, .14); }
.meal-card.empty-meal { background: transparent !important; border-style: dashed !important; }

/* ── buttons: white circles and pills, translucent secondaries ── */
.btn.neon, .btn.light { background: #fff !important; color: #000 !important; box-shadow: none !important; border: 0 !important; }
.btn.neon svg, .btn.light svg { color: #000; }
.btn.ghost { background: rgba(255, 255, 255, .16) !important; border: 0 !important; color: #fff; box-shadow: none !important; }
.btn.neon:active, .btn.ghost:active { transform: scale(.97); }
.icon-btn { background: rgba(255, 255, 255, .14) !important; border: 0 !important; color: #fff; box-shadow: none !important; }
.icon-btn.light, .icon-btn.neon-ring { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.more-btn { background: transparent !important; }
.seg { background: rgba(0, 0, 0, .28) !important; border: 0 !important; }
.seg button { color: rgba(255, 255, 255, .78); }
.seg button.on { background: #fff !important; color: #000 !important; }
.chip { background: rgba(255, 255, 255, .14) !important; border: 0 !important; color: #fff; }
.chip.on { background: #fff !important; color: #000 !important; }
.add-row button { background: rgba(255, 255, 255, .13) !important; border: 1px solid rgba(255, 255, 255, .22) !important; box-shadow: none !important; }
.add-row button svg { color: #fff !important; }
.add-row button:first-child { background: #fff !important; color: #000 !important; border: 0 !important; }
.add-row button:first-child svg { color: #000 !important; }
.meal-plus, .ex-how, .s-play { box-shadow: none !important; }
.meal-plus { background: #fff; color: #000 !important; }
.check-row .tick { border-color: rgba(255, 255, 255, .5); }
.check-row.on .tick { background: #fff; border-color: #fff; }
.cl-progress i, .mp-bar i { background: #fff !important; box-shadow: none !important; }
.band-pill { background: rgba(0, 0, 0, .22); border: 0; }
.auto-tag { background: rgba(255, 255, 255, .2); color: #fff; }
.unread, .tab-badge { background: #ff7a1a !important; box-shadow: none !important; color: #fff; }

/* ── floating pill tab bar; the current tab is a white circle ── */
.tabbar { background: rgba(14, 14, 16, .5) !important; border: 1px solid rgba(255, 255, 255, .16) !important;
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .7) !important; height: 66px !important; border-radius: 33px !important; }
.tabbar .tab { color: rgba(255, 255, 255, .88) !important; }
.tabbar .tab-lbl { display: none !important; }
.tabbar .tab.on .tab-ic { transform: translate(-50%, -50%) !important; color: #000; z-index: 1; }
.tabbar .tab.on .tab-ic svg { filter: none !important; }
.tabbar .tab.on::before { content: ""; position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: #fff; }
.tabbar .tab-go { align-self: center !important; margin-top: 0 !important; width: 50px !important; height: 50px !important;
  background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9) !important; }
.tabbar .tab-go svg { filter: none !important; }

/* ── Today: ocean hero + black sessions sheet ── */
.view.base:has(> .today) { padding-bottom: 0; }
.t-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 30px; }
.t-date { margin: 0; font: 600 30px/1.1 var(--display); letter-spacing: -.025em; }
.t-date span { color: var(--mu); }
.t-greet { margin: 0; font: 600 31px/1.2 var(--display); letter-spacing: -.028em; color: #fff; }
.t-greet .mu, .t-greet .hl { color: var(--mu); }
.t-ic { font-style: normal; display: inline-block; width: .82em; height: .82em; margin-right: .18em; vertical-align: -.06em; }
.t-ic svg { width: 100%; height: 100%; stroke-width: 2; }
.t-stats { display: flex; gap: 18px; margin: 30px 0 8px; font: 500 15px/1 var(--sans); color: var(--mu); }
.t-stats b { color: #fff; font-weight: 500; }
.t-hero .score-plain { margin-top: 26px; }
.t-hero .score-plain .score-stats > div { background: rgba(255, 255, 255, .12) !important; }
.t-sheet { position: relative; margin: 30px -22px 0; padding: 26px 22px calc(130px + var(--safe-bot)); background: #000; border-radius: 34px 34px 0 0; min-height: 60vh; }
.t-sheet .section-h:first-child { margin-top: 0; }
.t-sheet .card, .t-sheet .tile, .t-sheet .meal-card, .t-sheet .feed-card, .t-sheet .food-sum, .t-sheet .no-recovery { background: rgba(255, 255, 255, .07) !important; border-color: rgba(255, 255, 255, .1) !important; backdrop-filter: none; }
.t-sheet .eyebrow { color: rgba(255, 255, 255, .55); }
.s-row { display: grid; grid-template-columns: 1fr 58px; gap: 14px; align-items: center; padding: 14px 0; }
.s-row + .s-row { border-top: 1px solid rgba(255, 255, 255, .08); }
.s-txt { min-width: 0; cursor: pointer; }
.s-lbl { display: block; font: 500 14px/1.3 var(--sans); color: rgba(255, 255, 255, .55); }
.s-big { display: block; font: 600 29px/1.1 var(--display); letter-spacing: -.025em; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-meta { display: block; font-size: 13px; color: rgba(255, 255, 255, .45); margin-top: 6px; }
.s-play { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; transition: transform .15s; }
.s-play svg { width: 20px; height: 20px; margin-left: 2px; }
.s-play:active { transform: scale(.92); }
.s-play.done { background: rgba(255, 255, 255, .12); color: #3ee08a; }
.s-play.done svg { margin-left: 0; }
.s-row.is-done .s-big { color: rgba(255, 255, 255, .6); }
.s-empty { padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .07); }
.s-empty b { font: 600 20px var(--display); }
.s-empty .btn { margin-top: 12px; }

/* ── workout player: warm canvas + clock dial with an elapsed arc ── */
.player { background: var(--warm) !important; }
.player .bg { display: none; }
.player h1 { font: 700 30px/1.1 var(--display) !important; letter-spacing: -.03em; text-align: center; }
.player > .eyebrow { display: block; text-align: center; }
.dial { position: relative; width: 280px; height: 280px; margin: 24px auto 14px; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.d-ticks { fill: rgba(80, 0, 0, .22); stroke: rgba(255, 255, 255, .42); stroke-width: 22; stroke-dasharray: 1.4 5.8; }
.d-face { fill: #fff; }
.d-minor { fill: none; stroke: #1b0b06; stroke-width: 10; stroke-dasharray: 1.6 9.3; }
.d-arc { fill: none; stroke: #000; stroke-width: 22; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.d-center { position: absolute; inset: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #e2440c, #b72605 70%); }
.dial .clock { position: static !important; margin: 0 !important; text-align: center; font: 600 36px/1 var(--display) !important; color: #fff; }
.dial .clock small { display: block; margin-top: 6px; font: 500 12px var(--sans); color: rgba(255, 255, 255, .7); }
.player-ctrls { background: transparent !important; }
.live-pill { background: rgba(0, 0, 0, .25) !important; border: 0 !important; }
.set-dot { border-color: rgba(255, 255, 255, .5) !important; }
.set-dot.on { background: #fff !important; color: #000 !important; }

/* ── sheets, auth, onboarding ── */
.sheet { background: rgba(14, 14, 16, .97) !important; border-top: 1px solid rgba(255, 255, 255, .1) !important; }
.auth { background: var(--ocean) !important; --mu: var(--mu-ocean); }
.onboard { background: var(--warm) !important; }
.ob-plan.on { background: rgba(255, 255, 255, .14) !important; }
.ob-tick { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.ob-bar { background: rgba(0, 0, 0, .55) !important; }
.field input, .field textarea, .search input, .composer input { background: rgba(0, 0, 0, .28) !important; border-color: rgba(255, 255, 255, .2) !important; color: #fff; }
.auth-legal a, .auth-about { color: #fff !important; }

/* ── messages ── */
.msg-out .bubble, .msg.me .bubble { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.msg-in .bubble, .msg .bubble { background: rgba(255, 255, 255, .12); }
.composer { background: rgba(14, 14, 16, .6) !important; border: 1px solid rgba(255, 255, 255, .14) !important; }
.composer button[type="submit"] { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.chat-head { background: linear-gradient(180deg, #000 70%, rgba(0, 0, 0, 0)) !important; }

/* programme icons go white, like the reference's line icons */
.plan-card .glyph, .mp .g, .plan-row .g, .feed-glyph, .ready-g, .ob-g, .session-card .glyph, .dmc-g { filter: grayscale(1) brightness(2.4) contrast(.9); }
.plan-row .g, .ob-g, .dmc-g { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .2) !important; }
