/* =========================================================
   KAIRO v2 showcase — tabs, dashboards, explore, social,
   assistant, ads and device mocks. Builds on app.css tokens.
   ========================================================= */
#screen { --tabbar-h: 62px; --tab-gap: max(10px, calc(var(--safe-bot) - 12px)); --ad-space: 0px; }
#screens { --tab-space: calc(var(--tabbar-h) + var(--tab-gap) + 10px); }
#screen.ads-on { --ad-space: 62px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: var(--tab-gap); height: var(--tabbar-h); z-index: 40;
  border-radius: 26px; display: flex; align-items: center; justify-content: space-around; padding: 0 6px;
  transform: translateY(calc(100% + 40px)); transition: transform .45s var(--spring), opacity .3s; opacity: 0;
  background: linear-gradient(180deg, rgba(36,36,58,.78), rgba(16,16,28,.88));
}
.tabs-on .tabbar { transform: none; opacity: 1; }
.tab { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; transition: color .25s; position: relative; }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.tab.on { color: var(--text); }
.tab.on svg { stroke: url(#tabgrad); transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 0 8px rgba(139,92,246,.6)); }
.tab.on::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--grad); }
.tab:active svg { transform: scale(.85); }

/* tab screen scaffolding */
.tab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 22px 10px; }
.tab-head h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.tab-sub { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 4px; }
.tabs-on .tab-scroll { padding-bottom: calc(var(--tab-space) + var(--ad-space) + 14px); }
.tabs-on .screen-home .fab { bottom: calc(var(--tab-space) + var(--ad-space) + 2px); }
.tabs-on .screen-home .bottom-fade { display: none; }
.tabs-on .screen-home .reorder-bar { bottom: calc(var(--tab-space) + 2px); }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 22px 10px; gap: 10px; }
.sec-h h2 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.sec-h .link { color: var(--text-2); font-size: 13px; font-weight: 600; }
.sec-h .link:active { opacity: .6; }
.px { margin-left: 20px; margin-right: 20px; }
.card { border-radius: 24px; padding: 16px; position: relative; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 20px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.demo-chip { display: inline-block; font: 700 9px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 3px 5px; border-radius: 5px; background: rgba(255,255,255,.1); color: var(--muted); vertical-align: 2px; margin-left: 4px; }
.badge-sim { display: inline-flex; align-items: center; gap: 5px; font: 700 10px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid var(--stroke); }
.btn-small { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid var(--stroke); }
.btn-small.grad { background: var(--grad); color: #0a0a12; border: 0; }
.btn-small svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-small:active { transform: scale(.95); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #0a0a12; flex: none; position: relative; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { border-radius: 20px; padding: 14px; min-width: 0; }
.kpi .k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .v.ok, .ok-t { color: var(--ok); }
.kpi .v.late, .late-t { color: #ffb86b; }

/* charts */
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg text { fill: var(--muted); font: 500 10px var(--font); }
.chart-svg .gl { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* heatmap */
.heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.06); }
.heat i.l1 { background: rgba(139,92,246,.32); } .heat i.l2 { background: rgba(139,92,246,.6); }
.heat i.l3 { background: rgba(236,72,153,.8); } .heat i.l4 { background: #22d3ee; box-shadow: 0 0 6px rgba(34,211,238,.5); }
.heat i.fut { background: transparent; border: 1px dashed rgba(255,255,255,.06); }
.heat i.today { outline: 1.5px solid #fff; outline-offset: 1px; }
.heat-key { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); justify-content: flex-end; margin-top: 8px; }
.heat-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* wide screens (tablet, unfolded foldables, desktop preview) */
@container screen (min-width: 600px) {
  #screens { --tab-space: 18px; }
  .tabbar { left: 10px; right: auto; top: calc(var(--safe-top) + 10px); bottom: calc(var(--safe-bot) + 10px); width: 78px; height: auto; flex-direction: column; justify-content: center; gap: 14px; padding: 12px 0; transform: translateX(calc(-100% - 30px)); }
  .tab { height: auto; flex: none; padding: 8px 0; width: 100%; }
  .tab.on::after { bottom: auto; left: 4px; top: 50%; margin-top: -2px; }
  .tabs-on .screen.tabbed { padding-left: 96px; }
  .wide-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4px; align-items: start; }
  .kpi-grid.wide-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- ad dock / ad formats ---------- */
.ad-dock { position: absolute; left: 12px; right: 12px; bottom: calc(var(--tab-gap) + var(--tabbar-h) + 8px); z-index: 39; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.ad-dock.show { opacity: 1; transform: none; pointer-events: auto; }
.ad-banner { height: 54px; border-radius: 16px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: rgba(250,250,255,.94); color: #15142a; position: relative; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.8); }
.ad-tag { font: 800 9px/1 var(--font); letter-spacing: .06em; padding: 3px 5px; border-radius: 4px; background: #f5c542; color: #2a2100; flex: none; }
.ad-banner .ad-tag { position: absolute; top: 5px; left: 5px; }
.ad-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex: none; }
.ad-banner .ad-logo { margin-left: 16px; }
.ad-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-txt b { font-size: 13px; }
.ad-txt small { font-size: 11px; color: #55546e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-cta { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: #15142a; color: #fff; flex: none; }
@container screen (min-width: 600px) { .ad-dock { left: 106px; bottom: calc(var(--safe-bot) + 12px); } }
.ad-native { border-radius: 22px; padding: 14px; }
.ad-native b { font-size: 14px; }
.ad-native-art { height: 120px; border-radius: 16px; margin-top: 12px; display: grid; place-items: center; font-size: 52px; }
.ad-video { position: absolute; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 6px) 18px calc(var(--safe-bot) + 14px); gap: 14px; animation: inFade .3s var(--ease); }
.ad-video.out { opacity: 0; transition: opacity .3s; }
.adv-top { display: flex; align-items: center; gap: 10px; }
.adv-count { flex: 1; font-size: 13px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.adv-close { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 16px; }
.adv-art { flex: 1; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; animation: advPulse 3s ease-in-out infinite alternate; }
.adv-art span { font-size: 90px; }
.adv-art b { font-family: var(--display); font-size: 26px; }
.adv-art small { color: rgba(255,255,255,.85); font-size: 15px; }
@keyframes advPulse { to { filter: saturate(1.4) brightness(1.1); transform: scale(1.01); } }
.adv-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.adv-bar i { display: block; height: 100%; width: 0; background: #f5c542; transition: width .2s linear; }
.adv-foot { text-align: center; font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- Today ---------- */
.ai-btn svg { stroke: url(#tabgrad) !important; }
.ask-pill { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; padding: 0 16px; color: var(--muted); font-size: 14px; width: calc(100% - 40px); margin-bottom: 14px; }
.ask-pill svg { width: 18px; height: 18px; stroke: url(#tabgrad); fill: none; stroke-width: 2; flex: none; }
.hero-card { border-radius: 28px; padding: 18px; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(var(--glow, 139,92,246), .35), transparent 60%); pointer-events: none; }
.hc-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 6px; position: relative; }
.hc-emo { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; font-size: 26px; background: rgba(255,255,255,.08); border: 1px solid var(--stroke); flex: none; }
.hc-n { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.hc-s { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.hc-s b { color: var(--text); }
.hc-play { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px -8px rgba(var(--glow, 139,92,246), .9); }
.hc-play svg { width: 20px; height: 20px; fill: #0a0a12; margin-left: 2px; }
.hc-play:active { transform: scale(.9); }
.hc-time { font-weight: 300; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hc-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: var(--text-2); position: relative; }
.hc-note svg { width: 15px; height: 15px; flex: none; stroke: url(#tabgrad); fill: none; stroke-width: 2; margin-top: 1px; }
.today-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ts { border-radius: 18px; padding: 10px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ts b { display: block; font-family: var(--display); font-size: 16px; font-variant-numeric: tabular-nums; }
.ts small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.ts-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); flex: none; }
.ts-ico svg { width: 16px; height: 16px; stroke: var(--text-2); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-ico.flame svg { stroke: #fb923c; fill: rgba(251,146,60,.25); }
.td-block { margin: 0 20px 12px; }
.td-bh { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 4px 6px 8px; }
.td-list { border-radius: 22px; overflow: hidden; }
.td-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 58px; position: relative; cursor: pointer; }
.td-item + .td-item::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: rgba(255,255,255,.07); }
.td-t { font-weight: 600; font-size: 15px; }
.td-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.td-mark { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: rgba(255,255,255,.07); flex: none; }
.td-routine.done .td-mark { background: var(--grad); }
.td-routine.done .td-mark svg { width: 18px; height: 18px; stroke: #0a0a12; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.td-routine.missed { opacity: .55; }
.td-pill { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.08); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.td-pill.ok { color: var(--ok); background: rgba(60,242,168,.1); }
.td-pill.late { color: #ffb86b; background: rgba(255,184,107,.12); }
.td-pill.miss { color: var(--muted); }
.td-pill.live { color: var(--text); background: rgba(var(--glow, 139,92,246), .25); }
.r-play.sm { width: 38px; height: 38px; }
.r-play.sm svg { width: 15px; height: 15px; }
.td-event .td-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--ev); margin: 2px 15px; flex: none; }
.td-cal svg { width: 16px; height: 16px; stroke: var(--faint); fill: none; stroke-width: 2; }
.td-check { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.td-check svg { width: 24px; height: 24px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.td-todo.done .td-check svg { stroke: var(--ok); }
.td-todo.done .td-t { text-decoration: line-through; color: var(--muted); }
.td-todo .btn-small svg { width: 11px; height: 11px; }
.quick button.on { background: var(--grad); color: #0a0a12; }
.bud { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; }
.bud-ring { position: relative; width: 58px; height: 58px; display: grid; place-items: center; }
.bud-ring svg { position: absolute; inset: 0; }
.bud-ring .avatar { width: 44px; height: 44px; font-size: 14px; }
.bud-live { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #0b0b16; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--stroke); }
.bud-n { font-size: 12px; font-weight: 600; }
.bud-s { font-size: 10.5px; color: var(--muted); margin-top: -3px; }
.cal-cta { border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cal-cta b { display: block; font-size: 14px; }
.cal-cta small { display: block; font-size: 12px; color: var(--muted); }
.cal-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--text); animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Insights ---------- */
.screen-today, .screen-insights, .screen-rinsights, .screen-calendar, .screen-explore, .screen-you, .screen-template, .screen-account, .screen-paywall, .screen-onboarding, .screen-assistant { overflow: hidden; }
.seg.px { width: auto; }
.kpi .d { font-weight: 600; }
.heat-months { display: grid; font-size: 10px; color: var(--muted); margin-bottom: 4px; height: 12px; }
.heat-months span { white-space: nowrap; }
.heat i { cursor: pointer; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.hb-l b { display: block; font-size: 13.5px; }
.hb-l small { display: block; font-size: 11px; color: var(--muted); }
.hb-t { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #fb923c, #f43f5e); }
.hb-t i.neg { background: var(--ok); }
.hb-v { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.link-btn { color: var(--text-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-btn svg { width: 15px; height: 15px; stroke: url(#tabgrad); fill: none; stroke-width: 2; }
.ri-step { padding: 8px 0; }
.ri-step + .ri-step { border-top: 1px solid rgba(255,255,255,.06); }
.ri-step b { font-size: 14px; font-weight: 600; }
.ri-bar { position: relative; height: 16px; margin-top: 6px; }
.ri-bar i { position: absolute; left: 0; border-radius: 4px; }
.ri-bar i.plan { top: 0; height: 6px; background: rgba(255,255,255,.2); }
.ri-bar i.real { top: 9px; height: 6px; background: var(--grad); }
.ri-bar i.real.over { background: linear-gradient(90deg, #fb923c, #f43f5e); }

/* ---------- Calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav b { font-family: var(--display); font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 2px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.cal-day svg { position: absolute; width: 38px; height: 38px; max-width: 100%; }
.cal-day span { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; }
.cal-day.today span { color: #fff; }
.cal-day.today::before { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cal-day.future { opacity: .35; }
.cal-day .ot { position: absolute; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--ok); }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 2px solid rgba(255,255,255,.15); }
.cal-legend i.full { border-color: #a78bfa; background: rgba(167,139,250,.3); }
.cal-legend i.part { border-color: #a78bfa; border-right-color: rgba(255,255,255,.15); border-bottom-color: rgba(255,255,255,.15); }

/* share card preview */
.card-preview { display: grid; place-items: center; }
.card-preview img { width: 100%; max-width: 300px; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); }

/* ---------- Explore ---------- */
.collection { width: 250px; height: 150px; border-radius: 26px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; position: relative; overflow: hidden; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 30px -14px rgba(0,0,0,.8); }
.collection b { font-family: var(--display); font-size: 18px; line-height: 1.15; position: relative; }
.collection small { font-size: 12px; opacity: .85; position: relative; margin-top: 3px; }
.col-emo { position: absolute; right: -6px; top: -10px; font-size: 76px; opacity: .9; transform: rotate(10deg); }
.col-n { position: absolute; left: 16px; top: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.25); padding: 4px 8px; border-radius: 999px; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container screen (min-width: 600px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tpl-card { border-radius: 22px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.tpl-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 120%; height: 100%; background: radial-gradient(closest-side, rgba(var(--glow), .3), transparent); pointer-events: none; }
.tpl-card:active { transform: scale(.97); }
.tpl-emo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.08); margin-bottom: 8px; }
.tpl-emo.big { width: 76px; height: 76px; border-radius: 24px; font-size: 40px; background: var(--grad); box-shadow: 0 16px 40px -14px rgba(var(--glow), .9); }
.tpl-n { font-family: var(--display); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-s, .tpl-by { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-k { font-family: var(--display); font-weight: 800; letter-spacing: .2em; font-size: 10px; color: var(--text-2); }
.tpl-hero h1 { font-family: var(--display); font-size: 30px; margin: 14px 0 6px; letter-spacing: -.02em; }
.tpl-hero p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 10px 0 0; }
.tpl-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.chips-row { padding-top: 2px; }
.cat-chip { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid var(--stroke); color: var(--text-2); }
.cat-chip.on { background: var(--grad); color: #0a0a12; border-color: transparent; }
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-item { border-radius: 22px; padding: 14px; }
.feed-item.mine { border-color: rgba(139,92,246,.4); }
.feed-body { font-size: 14px; color: var(--text-2); margin: 8px 0 10px 38px; line-height: 1.45; }
.feed-body b { color: var(--text); }
.feed-tpl { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.06); cursor: pointer; }
.feed-tpl > span:first-child { font-size: 22px; }
.feed-tpl b { display: block; font-size: 14px; }
.feed-tpl small { display: block; font-size: 11.5px; color: var(--muted); }
.feed-acts { display: flex; align-items: center; gap: 6px; margin-left: 38px; }
.react { height: 30px; min-width: 40px; border-radius: 15px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); font-size: 15px; transition: transform .2s var(--spring); }
.react.on { background: rgba(139,92,246,.3); border-color: rgba(167,139,250,.6); transform: scale(1.08); }
.bud-list { padding: 6px 14px; }
.bud-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.bud-row + .bud-row { border-top: 1px solid rgba(255,255,255,.06); }
.bud-row .bud-ring { width: 48px; height: 48px; flex: none; }
.bud-row .bud-ring .avatar { width: 36px; height: 36px; font-size: 12px; }
.bud-row b { font-size: 14.5px; }
.streak { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: #fb923c; }
.streak svg { width: 13px; height: 13px; stroke: #fb923c; fill: rgba(251,146,60,.25); stroke-width: 2; }
.bud-slots { display: flex; gap: 3px; margin-top: 6px; }
.bud-slots i { height: 4px; flex: 1; max-width: 40px; border-radius: 2px; background: rgba(255,255,255,.1); }
.bud-slots i.done { background: var(--grad); }
.bud-slots i.running { background: linear-gradient(90deg, var(--c2), rgba(255,255,255,.1)); animation: blink 1.4s ease-in-out infinite; }
.bud-slots i.skipped { background: rgba(255,184,107,.35); }
.share-row { border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.share-row b { display: block; font-size: 14px; }
.share-row small { display: block; font-size: 12px; color: var(--muted); }
.invite-link { border-radius: 14px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; display: flex; }

/* ---------- editor additions ---------- */
.ed-stats { grid-auto-rows: auto; }
.learn-banner { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 10px 10px 10px 14px; font-size: 12.5px; color: var(--text-2); }
.learn-banner > svg { width: 16px; height: 16px; flex: none; stroke: url(#tabgrad); fill: none; stroke-width: 2; }
.learn-banner b { color: var(--text); }
.rb-calc { margin: 12px 2px 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: 13px; color: var(--text-2); }
.rb-calc b { color: var(--text); }
.late-t { color: #ffb86b; } .ok-t { color: var(--ok); }
.stat .v.late-t { color: #ffb86b; }

/* ---------- player additions ---------- */
.pl-spare { margin: 6px auto 0; width: max-content; max-width: calc(100% - 40px); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid var(--stroke); background: rgba(255,255,255,.06); }
.pl-spare.ok { color: var(--ok); background: rgba(60,242,168,.08); border-color: rgba(60,242,168,.25); }
.pl-spare.late { color: #ffb86b; background: rgba(255,184,107,.1); border-color: rgba(255,184,107,.3); }
.pl-chips { flex-wrap: wrap; padding: 0 12px; }
.screen-player.focus .pl-top .icon-btn, .screen-player.focus .pl-steps, .screen-player.focus .pl-controls, .screen-player.focus .pl-chips, .screen-player.focus .pl-queue, .screen-player.focus .pl-spare { opacity: 0; pointer-events: none; transition: opacity .4s; }
.screen-player .pl-top .icon-btn, .screen-player .pl-steps, .screen-player .pl-controls, .screen-player .pl-chips, .screen-player .pl-queue { transition: opacity .4s; }
.screen-player.focus .pl-stage { transform: translateY(12vh) scale(1.12); transition: transform .6s var(--ease); cursor: pointer; }
.screen-player .pl-stage { transition: transform .6s var(--ease); }
.screen-player.focus .pl-stage::after { content: "Tap to exit focus"; position: absolute; bottom: -54px; font-size: 12px; color: var(--muted); }
.mre { display: flex; flex-direction: column; gap: 8px; }
.mre-row { display: flex; align-items: center; gap: 6px; border-radius: 16px; padding: 10px 10px 10px 14px; }
.mre-b { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); flex: none; }
.mre-b svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mre-b.danger { color: var(--danger); }
.mre-b[disabled] { opacity: .3; }
.mre-add { margin-top: 6px; }
.mre-add .quick { margin-top: 8px; }
.sum-dl { margin-top: 10px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.sum-dl.ok { color: var(--ok); background: rgba(60,242,168,.1); }
.sum-dl.late { color: #ffb86b; background: rgba(255,184,107,.12); }
.sum-actions .btn-ghost svg { margin-right: 6px; }
.voice-list .menu-item { justify-content: space-between; }
.voice-list .menu-item small { color: var(--muted); font-size: 11px; }
.voice-list .menu-item.on { background: rgba(139,92,246,.2); }

/* ---------- You / account / paywall ---------- */
.profile { border-radius: 24px; padding: 14px; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pf-n { font-family: var(--display); font-weight: 700; font-size: 18px; }
.pf-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.plus-card { border-radius: 22px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(236,72,153,.25)); border: 1px solid rgba(167,139,250,.4); }
.plus-card b { display: block; font-size: 15px; }
.plus-card small { display: block; font-size: 12px; color: var(--text-2); }
.plus-badge { display: inline-flex; align-items: center; gap: 4px; font: 800 10px/1 var(--display); letter-spacing: .14em; padding: 7px 9px; border-radius: 10px; background: var(--grad); color: #0a0a12; flex: none; }
.plus-badge svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.you-foot { text-align: center; color: var(--faint); font-size: 12px; line-height: 1.8; margin: 10px 0 0; }
.sync-card { border-radius: 22px; padding: 14px; margin-bottom: 8px; }
.sync-card b { display: block; font-size: 15px; }
.sync-card small { display: block; font-size: 12px; color: var(--muted); }
.sync-card.off { opacity: .85; }
.sync-ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); flex: none; }
.sync-ico svg { width: 20px; height: 20px; stroke: #0a0a12; fill: none; stroke-width: 2.2; }
.sync-ico.spinning svg { animation: spin 1.2s linear infinite; }
.menu-item.auth { gap: 12px; }
.auth-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.12); flex: none; }
.pw-hero { text-align: center; padding: 6px 30px 18px; }
.pw-hero h1 { font-family: var(--display); font-size: 34px; margin: 14px 0 8px; letter-spacing: -.03em; }
.pw-hero p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0; }
.pw-crown { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto; display: grid; place-items: center; background: var(--grad); box-shadow: 0 20px 50px -16px rgba(139,92,246,.9); }
.pw-crown svg { width: 36px; height: 36px; fill: #0a0a12; stroke: none; }
.pw-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pw-list div { display: flex; align-items: center; gap: 10px; }
.pw-list svg { width: 18px; height: 18px; stroke: var(--ok); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.pw-plan { border-radius: 20px; padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; text-align: center; }
.pw-plan.on { border-color: rgba(236,72,153,.7); box-shadow: 0 0 0 1px rgba(236,72,153,.5), 0 16px 34px -16px rgba(236,72,153,.7); }
.pw-l { font-size: 12px; font-weight: 700; color: var(--text-2); }
.pw-p { font-family: var(--display); font-weight: 800; font-size: 26px; }
.pw-p small { display: block; font: 500 11px var(--font); color: var(--muted); }
.pw-n { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.pw-save { position: absolute; top: -9px; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: var(--grad); color: #0a0a12; }
.pw-fine { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 12px; }

/* ---------- onboarding ---------- */
.screen-onboarding { padding-bottom: var(--safe-bot); }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); transition: background .3s, width .3s; }
.ob-dots i.on { width: 34px; background: var(--grad); } .ob-dots i.done { background: rgba(255,255,255,.45); }
.ob-body { flex: 1; overflow-y: auto; padding: 10px 22px; scrollbar-width: none; }
.ob-foot { padding: 12px 22px 18px; }
.ob-foot .btn-primary { width: 100%; }
.ob-hero { text-align: center; padding-top: 4vh; }
.ob-hero h1 { font-family: var(--display); font-size: 32px; letter-spacing: -.03em; margin: 26px 0 12px; line-height: 1.1; }
.ob-hero p { color: var(--text-2); font-size: 16px; line-height: 1.5; margin: 0; }
.ob-ring { position: relative; width: 180px; height: 180px; margin: 0 auto; display: grid; place-items: center; animation: obspin 8s linear infinite; }
.ob-ring svg { position: absolute; inset: 0; }
.ob-ring span svg { position: static; width: 54px; height: 54px; stroke: var(--text); fill: none; stroke-width: 1.6; animation: obspin 8s linear infinite reverse; }
@keyframes obspin { to { transform: rotate(360deg); } }
.ob-h { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 6px 0 8px; }
.ob-p { color: var(--text-2); margin: 0 0 16px; font-size: 15px; }
.ob-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ob-opt { border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; text-align: left; transition: transform .2s var(--spring), border-color .2s; }
.ob-opt > span:first-child { font-size: 24px; }
.ob-opt b { display: block; } .ob-opt small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.ob-opt.on { border-color: rgba(236,72,153,.7); box-shadow: 0 0 0 1px rgba(236,72,153,.5); }
.ob-opt:active { transform: scale(.98); }
.ob-calc { border-radius: 20px; padding: 14px; display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.ob-calc > svg { width: 22px; height: 22px; stroke: url(#tabgrad); fill: none; stroke-width: 2; flex: none; }
.ob-calc b { display: block; font-size: 16px; } .ob-calc small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ob-perm { border-radius: 24px; padding: 20px 16px 0; text-align: center; overflow: hidden; margin-top: 10px; }
.ob-perm-ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; }
.ob-perm-ico svg { width: 26px; height: 26px; stroke: #0a0a12; fill: none; stroke-width: 2.2; }
.ob-perm b { display: block; font-size: 15px; } .ob-perm small { display: block; color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.ob-perm-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--stroke); margin: 0 -16px; }
.ob-perm-btns button { height: 46px; color: #64a8ff; font-weight: 600; font-size: 15px; }
.ob-perm-btns button + button { border-left: 1px solid var(--stroke); font-weight: 700; }
.ob-perm-btns button.on { background: rgba(100,168,255,.12); }

/* ---------- assistant ---------- */
.screen-assistant .topbar .badge-sim { flex: none; }
.ai-log { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; animation: rise .35s var(--ease) both; }
.ai-msg.me { align-self: flex-end; }
.ai-av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.ai-av svg { width: 15px; height: 15px; stroke: #0a0a12; fill: none; stroke-width: 2; }
.ai-b { border-radius: 20px 20px 20px 6px; padding: 11px 14px; font-size: 14.5px; line-height: 1.5; background: rgba(255,255,255,.08); border: 1px solid var(--stroke); color: var(--text-2); }
.ai-b b { color: var(--text); }
.ai-msg.me .ai-b { border-radius: 20px 20px 6px 20px; background: var(--grad); color: #0a0a12; border: 0; font-weight: 500; }
.ai-card { border-radius: 16px; padding: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ai-card .row { width: 100%; }
.ai-card .tpl-emo { margin: 0; width: 36px; height: 36px; font-size: 18px; }
.ai-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: blink 1s infinite; }
.ai-dots i:nth-child(2) { animation-delay: .2s; } .ai-dots i:nth-child(3) { animation-delay: .4s; }
.ai-suggest { padding-top: 6px; padding-bottom: 8px; }
.ai-input { margin: 0 12px calc(var(--safe-bot) + 4px); height: 52px; border-radius: 26px; display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.ai-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.ai-mic, .ai-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ai-mic svg { width: 19px; height: 19px; stroke: var(--muted); fill: none; stroke-width: 2; }
.ai-send { background: var(--grad); }
.ai-send svg { width: 17px; height: 17px; stroke: #0a0a12; fill: none; stroke-width: 2.4; stroke-linejoin: round; }

/* ---------- device mocks ---------- */
.devpanel { max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: none; }
.dp-mocks { padding: 0 0 4px; }
.dp-seg { display: flex; gap: 4px; padding: 3px; margin: 0 6px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); }
.dp-seg button { flex: 1; height: 28px; border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.dp-seg button.on { background: rgba(255,255,255,.16); color: var(--text); }
.dp-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 10px 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.dp-sw { width: 30px; height: 18px; border-radius: 9px; background: rgba(255,255,255,.14); position: relative; transition: background .25s; }
.dp-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.dp-toggle.on .dp-sw { background: var(--grad); } .dp-toggle.on .dp-sw::after { transform: translateX(12px); }
.dp-note { font-size: 10.5px; color: var(--faint); padding: 8px 10px 0; line-height: 1.5; }

.mock-layer { position: absolute; inset: 0; z-index: 55; overflow: hidden; animation: inFade .35s var(--ease); }
.mock-layer[hidden] { display: none; }
.m-wall { position: absolute; inset: 0; background: radial-gradient(90% 60% at 20% 15%, #7c3aed, transparent 60%), radial-gradient(80% 60% at 90% 70%, #db2777, transparent 60%), radial-gradient(70% 50% at 30% 100%, #0891b2, transparent 60%), #120c2a; }
.m-wall.dim::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.m-home { position: absolute; inset: 0; padding: calc(var(--safe-top) + 6px) 18px calc(var(--safe-bot) + 10px); display: flex; flex-direction: column; }
.m-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; grid-auto-rows: minmax(0, auto); align-content: start; flex: 1; }
.m-app { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: default; }
.m-app[data-open] { cursor: pointer; }
.m-app small { font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.m-ico { width: 56px; height: 56px; max-width: 100%; border-radius: 15px; display: grid; place-items: center; font-size: 26px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.m-ico.kairo { background: #0b0a16; overflow: hidden; }
.m-ico.kairo img { width: 100%; height: 100%; }
.m-dock { display: flex; justify-content: space-around; padding: 12px; border-radius: 30px; margin-top: 10px; }
.m-hint { text-align: center; font-size: 11px; color: rgba(255,255,255,.6); margin-top: 8px; }
.w { border-radius: 22px; padding: 12px; background: rgba(20,18,36,.55); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border: 1px solid rgba(255,255,255,.14); cursor: pointer; overflow: hidden; min-width: 0; position: relative; }
.w::before { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 80% at 100% 0%, rgba(var(--glow, 139,92,246), .35), transparent 70%); pointer-events: none; }
.w-s { grid-column: span 2; aspect-ratio: 1; display: flex; flex-direction: column; }
.w-m { grid-column: span 4; }
.w-l { grid-column: span 4; }
.w-k { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--text-2); position: relative; }
.w-big { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin-top: auto; font-variant-numeric: tabular-nums; position: relative; }
.w-t { font-weight: 600; font-size: 15px; position: relative; }
.w-sub { font-size: 12px; color: var(--text-2); position: relative; }
.w-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin-top: 8px; overflow: hidden; }
.w-bar i { display: block; height: 100%; background: var(--grad); }
.w-ring { position: relative; display: grid; place-items: center; margin: auto; }
.w-ring span { position: absolute; font-family: var(--display); font-weight: 700; font-size: 18px; }
.w-ring.sm { margin: 0; flex: none; } .w-ring.sm span { font-size: 22px; }
.w-m .row { gap: 12px; }
.w-m .w-big { font-size: 26px; }
.w-foot { font-size: 11.5px; color: var(--text-2); margin-top: 8px; position: relative; }
.w-row { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 5px 0; position: relative; }
.w-row + .w-row { border-top: 1px solid rgba(255,255,255,.08); }
.w-row.done { opacity: .6; }
.w-heat { margin-top: 10px; gap: 3px; position: relative; }
.w-heat i { border-radius: 2px; }
.m-home.android .w { border-radius: 28px; background: rgba(30,24,48,.7); }
.m-home.android .m-ico { border-radius: 50%; }
.m-home.android .m-dock { border-radius: 999px; }
.m-lock { position: absolute; inset: 0; padding: calc(var(--safe-top) + 10px) 16px calc(var(--safe-bot) + 14px); display: flex; flex-direction: column; align-items: center; color: #fff; cursor: pointer; }
.m-lock-date { font-size: 17px; font-weight: 600; opacity: .85; }
.m-lock-time { font-family: var(--display); font-weight: 700; font-size: 86px; letter-spacing: -.04em; line-height: 1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.m-lock-widgets { display: flex; gap: 10px; margin-top: 12px; }
.m-lw { height: 52px; min-width: 52px; border-radius: 26px; background: rgba(255,255,255,.14); backdrop-filter: blur(20px); display: grid; place-items: center; position: relative; padding: 0 4px; }
.m-lw svg { position: absolute; }
.m-lw span { font-size: 11px; font-weight: 700; position: relative; }
.m-lw.wide { padding: 0 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.m-lw.wide b { font-size: 15px; } .m-lw.wide small { font-size: 10px; opacity: .75; }
.m-lock-bottom { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.m-la { border-radius: 26px; padding: 14px; background: rgba(12,10,24,.6); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); border: 1px solid rgba(255,255,255,.12); cursor: default; }
.m-la .row { gap: 10px; }
.m-la small { display: block; font-size: 12px; opacity: .7; }
.m-la b { display: block; font-size: 16px; }
.m-la-emo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--grad); flex: none; }
.m-la-time { font-weight: 300; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-la-b { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.m-la-b svg { width: 14px; height: 14px; fill: #fff; }
.m-prog { height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); margin-top: 10px; overflow: hidden; }
.m-prog i { display: block; height: 100%; background: var(--grad); }
.m-lock-hint { text-align: center; font-size: 11px; opacity: .6; }
.m-shade { position: absolute; inset: 0; padding: calc(var(--safe-top) + 8px) 12px calc(var(--safe-bot) + 10px); display: flex; flex-direction: column; gap: 12px; color: #fff; overflow-y: auto; cursor: pointer; }
.m-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-tile { border-radius: 22px; padding: 12px 14px; background: rgba(255,255,255,.12); display: flex; align-items: center; gap: 10px; }
.m-tile.on { background: #c4b5fd; color: #1e1b4b; }
.m-tile small { font-size: 12px; font-weight: 600; }
.m-notes { display: flex; flex-direction: column; gap: 6px; }
.m-note { border-radius: 24px; padding: 12px 14px; background: rgba(28,24,44,.85); cursor: default; }
.m-note .row { gap: 8px; margin-bottom: 4px; }
.m-note small { font-size: 11.5px; opacity: .75; }
.m-note b { display: block; font-size: 15px; }
.m-note.live { background: linear-gradient(135deg, rgba(76,29,149,.9), rgba(28,24,44,.95)); }
.m-nico { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 11px; background: #0b0a16; flex: none; }
.m-nico img { width: 100%; height: 100%; }
.m-chrono { font-variant-numeric: tabular-nums; font-weight: 700; opacity: 1 !important; color: #c4b5fd; }
.m-acts { display: flex; gap: 8px; margin-top: 10px; }
.m-acts button { flex: 1; height: 34px; border-radius: 17px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; }

/* Apple Watch beside the phone */
#watch { position: fixed; right: 48px; bottom: 50%; transform: translateY(50%); z-index: 5; display: flex; flex-direction: column; align-items: center; }
#watch[hidden] { display: none; }
@media (max-width: 1100px) { #watch { display: none !important; } }
.wt-band { width: 128px; height: 70px; background: linear-gradient(90deg, #26233a, #3a3654, #26233a); }
.wt-band.top { border-radius: 30px 30px 6px 6px; } .wt-band.bot { border-radius: 6px 6px 30px 30px; }
.wt-case { position: relative; width: 196px; height: 236px; border-radius: 54px; background: linear-gradient(145deg, #45425a, #15131f 50%, #2e2b40); padding: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), inset 0 1px 1px rgba(255,255,255,.25); margin: -4px 0; }
.wt-crown { position: absolute; right: -7px; top: 60px; width: 9px; height: 34px; border-radius: 4px; background: linear-gradient(90deg, #6b6880, #2b2938); }
.wt-screen { width: 100%; height: 100%; border-radius: 42px; background: #000; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 12px 10px; color: #fff; }
.wt-cap { margin-top: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.wt-time { align-self: flex-end; font-size: 13px; font-weight: 600; color: #c4b5fd; padding-right: 12px; }
.wt-ring { position: relative; display: grid; place-items: center; margin-top: 2px; }
.wt-ring > svg { position: absolute; }
.wt-ring > div { width: 118px; height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.wt-ring small { font-size: 11px; color: var(--text-2); max-width: 80px; }
.wt-ring b { font-weight: 300; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wt-acts { display: flex; gap: 8px; margin-top: 8px; }
.wt-acts button { width: 40px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.wt-acts svg { width: 13px; height: 13px; fill: #fff; }
.wt-next { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 10px; text-align: center; }
.wt-next span { font-size: 26px; }
.wt-next b { font-family: var(--display); font-size: 32px; font-weight: 700; }
.wt-next small { font-size: 11px; color: var(--text-2); max-width: 140px; }
.wt-start { margin-top: auto; height: 36px; padding: 0 18px; border-radius: 18px; background: var(--grad); color: #0a0a12; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.wt-start svg { width: 12px; height: 12px; fill: currentColor; }

/* ---------- fixes ---------- */
button.set-row { width: 100%; text-align: left; }
.pl-chips { gap: 6px; }
.pl-chips .chip { padding: 0 11px; font-size: 12.5px; }
.w-heat i { aspect-ratio: auto; height: 8px; }
.m-grid { gap: 12px 12px; }
