/* Supernova workspace: dark working surfaces, red experience field, white type. */
:root {
  --red:#cf1721; --canvas:#101012; --paper:#19191e; --ink:#f4f4f7;
  --muted:#ababb8; --stroke:#303038; --rail:#121215;
  --field:#222228; --field-border:#737381; --accent-text:#ff939a;
  --lime:#f34b54; --apricot:#edb563; --mint:#65c391;
  --success:#65c391; --watch:#edb563; --failure:#ff7984;
  --font-ui:"Inter","Segoe UI Variable Text","Segoe UI",sans-serif;
  --font-display:"Inter","Segoe UI Variable Display","Segoe UI",sans-serif;
  --font-editorial:Cambria,Georgia,serif;
  --ease-out:cubic-bezier(.22,1,.36,1);
  --red-satin:linear-gradient(145deg,#bd1b2c 0%,#bb1826 55%,#98101e 100%);
}
* { box-sizing:border-box }
[hidden] { display:none!important }
body { margin:0; background:var(--canvas); color:var(--ink); font:14px/1.5 var(--font-ui); -webkit-font-smoothing:antialiased }
body { color-scheme:dark }
button,input,select { font:inherit }
button { cursor:pointer }
button,a,input,select { -webkit-tap-highlight-color:transparent }
button { border:0 }
button:disabled { cursor:not-allowed; opacity:.48 }
button:not(:disabled),a { transition:background .16s,color .16s,border-color .16s }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #ff939a; outline-offset:3px }
a { color:inherit; text-decoration:none }
h1,h2,h3,p { margin:0 }
h1 { font:600 clamp(30px,3vw,42px)/1.2 var(--font-display); letter-spacing:-.035em; text-wrap:balance }
h2 { font-size:19px; line-height:1.3; font-weight:650; letter-spacing:-.015em }
svg { width:20px; height:20px; display:block; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round }
[data-icon] { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0 }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
.app-shell { min-height:100vh; display:grid; grid-template-columns:216px minmax(0,1fr) }
.sidebar { background:linear-gradient(165deg,#19171a,var(--rail) 38%,#111114); color:#adadb8; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:32px 16px 18px; border-right:1px solid #242329 }
.brand { margin:0 6px 42px; color:#fff; display:block }
.brand-main { display:flex; align-items:center; gap:6px; font-size:24px; font-weight:750; letter-spacing:-.035em }
.brand-main>img { width:34px; height:34px; object-fit:contain }
.brand-period { color:#fa4d56 }
.brand-by { display:flex; align-items:center; gap:7px; margin:12px 0 0 7px; color:#adadb8; font-size:10px; white-space:nowrap }
.brand-by img { width:92px; height:auto }
.sidebar-section-label { font-size:11px; padding:0 14px; margin-bottom:12px; color:#9d9da8 }
.nav-list { display:flex; flex-direction:column; gap:5px }
.nav-item { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:10px 13px; color:#bdbdc8; background:transparent; text-align:left; border-radius:8px; font-weight:550 }
.nav-item:hover { background:#202024; color:#fff }
.nav-item.active { background:linear-gradient(110deg,#46212a,#292027); color:#ffd3d7; box-shadow:inset 0 1px 0 #ffffff08 }
.nav-item.active .nav-icon { color:#ff6069 }
.nav-count { margin-left:auto; background:#493035; padding:0 7px; border-radius:5px; font-size:11px; color:#ffbdc2 }
.sidebar-spacer { flex:1; min-height:30px }
.streak-block { margin:20px 10px 22px; padding-top:20px; border-top:1px solid #303035 }
.streak-top { color:#f7f7fa; display:flex; gap:9px; align-items:center; margin-bottom:12px }
.streak-top>[data-icon] { color:#fa747b }
.streak-top strong { font-size:26px; font-weight:550 }
.streak-top small { font-size:12px; color:#b5b5be; font-weight:400 }
.streak-block>strong { display:block; color:#dddde3; font-size:12px; font-weight:500 }
.streak-block p { color:#a3a3af; font-size:11px; margin-top:5px; line-height:1.6 }
.profile-chip { border-top:1px solid #303035; display:flex; align-items:center; gap:9px; padding:20px 3px 0; margin-top:15px }
.avatar { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#343439; color:#fff; font-size:12px }
.profile-chip strong,.profile-chip small { display:block; font-size:10px }
.profile-chip strong { color:#e1e1e6; font-weight:550 }
.profile-chip small { color:#9999a7; margin-top:2px }
.profile-chip>[data-icon] { margin-left:auto; color:#9999a7 }
.profile-chip svg { width:14px }
.main-content { padding:0 36px; min-width:0; max-width:1572px; width:100%; margin-inline:auto }
.topbar { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--stroke) }
.today-date { color:var(--muted); font-size:12px }
.mobile-brand { display:none }
.preview-badge { margin-left:auto; font-size:10px; color:#ffc2c7; background:#392025; padding:5px 9px; border-radius:5px }
.preview-badge:hover { background:#512a31 }
.sync-pill { display:flex; align-items:center; gap:8px; background:var(--paper); border:1px solid var(--stroke); color:var(--muted); padding:7px 12px; border-radius:7px; font-size:11px }
.sync-pill:hover { color:var(--ink); background:#28282f }
.sync-pill svg { width:13px; height:13px }
.sync-dot { width:6px; height:6px; background:var(--success); border-radius:50%; display:inline-block; flex-shrink:0 }
.sync-dot.muted { background:#858592 }
.view { display:none }
.view.active-view { display:block }
.welcome-row,.view-header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:25px 0 22px }
.welcome-row h1 { font-size:clamp(30px,2.8vw,37px) }
.welcome-row .section-kicker { display:none }
.welcome-row .lede { margin-top:7px; font-size:13px }
.section-kicker { color:var(--muted); font-size:12px; margin-bottom:9px }
.lede { color:var(--muted); margin-top:10px; max-width:70ch }
.home-note { display:none }
.home-note svg { color:var(--accent-text); width:16px; height:16px }
.work-grid { display:flex; flex-direction:column; max-width:640px; margin-inline:auto; align-items:stretch }
.planning-column { min-width:0; display:grid; grid-template-columns:1.15fr 1fr; gap:24px; align-items:start }
.home-xp { display:flex; align-items:center; gap:8px; color:#fff; background:var(--red-satin); padding:10px 14px; border-radius:8px; white-space:nowrap; box-shadow:inset 0 1px 0 #ffffff21 }
.home-xp strong { font-size:14px; font-weight:550 }
.home-xp-copy { display:flex; flex-direction:column; align-items:flex-start; gap:4px }
.home-xp-copy small { font-size:10px; color:#ffe0e4; font-weight:450 }
.home-xp svg { width:15px; height:15px }
.home-xp:hover { filter:brightness(1.12); transform:translateY(-1px) }
#today-view .welcome-row { max-width:640px; margin:38px auto 24px; gap:20px }
#today-view .welcome-row h1 { font-size:clamp(26px,2.3vw,30px); font-weight:600 }
#today-view .welcome-row .lede { font:italic 17px/1.5 var(--font-editorial); color:#bebbc5; margin-top:8px }
#today-view .focus-panel { padding:30px; background:radial-gradient(ellipse at 92% 0%,#49242b44,transparent 52%),linear-gradient(155deg,#24232b,#1a1a20 48%,#17171c); border-color:#414049; box-shadow:inset 0 1px 0 #ffffff09 }
#today-view .timer-wrap { padding:30px 0 28px }
#today-view #timer-display { font-size:96px; font-weight:400; letter-spacing:-.04em; line-height:1.1 }
body[data-view="today"] .app-footer,body[data-view="today"] .streak-block,body[data-view="today"] .profile-chip { display:none }
.focus-task .pomodoro-toggle { display:flex; align-items:center; justify-content:center; gap:8px; margin:20px 0 0; cursor:pointer; font-size:12px; color:#e1dfe8 }
.pomodoro-toggle input { width:17px; height:17px; margin:0; accent-color:var(--red) }
.pomodoro-toggle small { color:var(--muted); font-size:11px }
.task-association { width:min(100%,380px); margin:18px auto 0; text-align:center }
.task-association>summary { display:flex; justify-content:center; align-items:center; gap:7px; color:var(--muted); cursor:pointer; list-style:none; font-size:12px; padding:4px 0 }
.task-association>summary::-webkit-details-marker,.week-activity>summary::-webkit-details-marker { display:none }
.task-association>summary:hover { color:#fff }
.task-association>summary span:first-child { min-width:0; overflow-wrap:anywhere }
.task-association>summary svg,.week-activity>summary svg { width:13px; height:13px; transform:rotate(90deg) }
.task-association[open]>summary svg,.week-activity[open]>summary svg { transform:rotate(-90deg) }
.task-association .focus-selection { margin-top:12px }
.task-association>p { color:var(--muted); font-size:11px; margin-top:8px }
.session-completion { width:min(100%,380px); margin:24px auto 0; padding-top:20px; border-top:1px solid var(--stroke); text-align:left }
.session-completion>p { font-size:13px; margin-bottom:14px; color:var(--success) }
.session-completion label { display:block; color:var(--muted); font-size:11px; margin-bottom:7px }
.session-completion small { display:block; color:var(--muted); font-size:11px; margin-top:9px; line-height:1.6 }
.session-task-select,.session-completion select { width:100%; max-width:100%; background:var(--field); color:var(--ink); border:1px solid var(--field-border); border-radius:7px; padding:9px; font-size:12px; min-height:38px }
.session-task-select { margin-bottom:7px }
.week-activity { margin:28px 0 }
.week-activity>summary { display:flex; align-items:center; gap:8px; color:var(--muted); padding:12px 0; font-size:12px; list-style:none; cursor:pointer }
.tasks-section { background:var(--paper); border:1px solid var(--stroke); border-radius:12px; overflow:hidden }
.planning-disclosure>summary { cursor:pointer; list-style:none; padding:16px 22px }
.planning-disclosure>summary::-webkit-details-marker,.round-settings>summary::-webkit-details-marker { display:none }
.planning-disclosure>summary h2 { font-size:14px; font-weight:550 }
.disclosure-chevron svg { width:16px; height:16px; color:var(--muted); transform:rotate(90deg); transition:transform .16s }
.planning-disclosure[open] .disclosure-chevron svg { transform:rotate(-90deg) }
.planning-disclosure>summary:hover { background:#25252c }
.tasks-section[open] .task-list { max-height:280px; overflow-y:auto }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:23px 24px 18px }
.section-heading p { color:var(--muted); font-size:12px; margin-top:5px }
.sheet-mark { color:#9a9aa5 }
.count-badge { font:500 11px var(--font-ui); display:inline-block; vertical-align:middle; background:#303038; color:#c5c5d0; padding:4px 7px; border-radius:5px; margin-left:7px }
.quick-task-form { display:flex; align-items:center; gap:10px; margin:0 24px 12px; padding:7px 8px 7px 12px; border:1px solid var(--field-border); background:var(--field); border-radius:8px }
.quick-task-form>[data-icon] { color:#858591 }
.quick-task-form:focus-within { border-color:#f37882; background:#28282f }
.quick-task-form input { border:0; background:transparent; flex:1; width:0; min-width:0; padding:7px 0; color:var(--ink); outline:none; font-size:13px }
input::placeholder { color:#aaaab8; opacity:1 }
.quick-add { display:grid; place-items:center; background:var(--red); color:#fff; width:30px; height:30px; border-radius:6px }
.quick-add:hover { background:#ac111a }
.quick-add svg { width:17px }
.task-list { padding:0 24px }
.task-row { display:flex; align-items:center; gap:12px; min-height:72px; padding:14px 0; border-bottom:1px solid var(--stroke) }
.task-row:last-child { border-bottom:0 }
.task-check { width:20px; height:20px; flex-shrink:0; border:1.5px solid #81818d; border-radius:6px; background:transparent; color:#fff; display:grid; place-items:center; font-size:12px }
.task-check:hover { border-color:#ff939a; background:#44242a }
.task-row.done .task-check { background:var(--red); border-color:var(--red) }
.task-row>div { min-width:0; flex:1 }
.task-title { font-size:14px; font-weight:550; overflow-wrap:anywhere }
.task-row.done .task-title { text-decoration:line-through; color:var(--muted) }
.task-meta { font-size:11px; color:var(--muted); margin-top:4px }
.task-points { color:#ffb4bd; background:#3b252b; padding:3px 6px; font-size:10px; border-radius:5px; white-space:nowrap }
.task-focus { display:flex; align-items:center; gap:5px; color:var(--muted); background:transparent; border-radius:5px; padding:6px; font-size:11px }
.task-focus:hover { color:#ffb4bd; background:#3b252b }
.task-focus svg { width:16px; height:16px }
.task-row.selected .task-title { color:#ffabb2 }
.task-list-foot { display:flex; align-items:center; gap:7px; padding:14px 24px; border-top:1px solid var(--stroke); font-size:10px; color:var(--muted) }
.task-list-foot svg { width:13px; height:13px }
.task-list-foot .text-button { margin-left:auto; font-size:10px; white-space:nowrap }
.empty-state { color:var(--muted); padding:30px 0; max-width:65ch; font-size:13px; line-height:1.7 }
.task-list .empty-state { min-height:110px; display:flex; flex-direction:column; justify-content:center; gap:7px; text-align:center; align-items:center; padding:20px; max-width:none }
.empty-state strong { color:#e0e0e7; font-size:15px; font-weight:600 }
.empty-state span { max-width:37ch; font-size:12px }
.empty-state svg { width:28px; height:28px; color:#b0b0bd; margin-bottom:4px }
.week-panel { margin-top:0; background:var(--paper); border:1px solid var(--stroke); border-radius:12px; overflow:hidden }
.week-panel .section-heading { padding:16px 22px }
.week-panel .week-progress,.week-panel .goal-list { margin-inline:22px }
.week-panel .goal-list { max-height:220px; overflow-y:auto }
.goal-add-row { padding:0 22px 14px }
.week-panel h2 { font-size:17px }
.icon-button { width:32px; height:32px; background:var(--field); border:1px solid var(--field-border); display:grid; place-items:center; border-radius:7px; color:var(--muted) }
.icon-button:hover { background:#3b252b; color:#ffb4bd }
.icon-button svg { width:17px }
.week-progress { display:flex; align-items:center; gap:13px; padding:16px 0; border-top:1px solid var(--stroke); border-bottom:1px solid var(--stroke) }
.progress-circle { background:none!important; width:54px; height:40px; display:flex; align-items:baseline; justify-content:center; color:var(--accent-text); flex-shrink:0 }
.progress-circle>span { font-size:28px; font-weight:500; letter-spacing:-.025em }
.progress-circle small { font-size:11px; margin-left:2px }
.week-progress strong { font-weight:550; font-size:12px }
.week-progress p { color:var(--muted); font-size:11px; margin-top:3px }
.goal-row { display:flex; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid var(--stroke); font-size:12px }
.goal-row>span { flex:1; overflow-wrap:anywhere }
.goal-bullet { width:5px; height:5px; border-radius:50%; background:#91919d }
.goal-row.done .goal-bullet { background:var(--success) }
.goal-row small { color:var(--muted); font-variant-numeric:tabular-nums }
.goal-step { background:var(--field); border:1px solid var(--field-border); width:30px; height:30px; border-radius:6px; color:var(--ink) }
.goal-step:hover:not(:disabled) { color:#ffb4bd; background:#3b252b }
.goal-list>.empty-state { padding:13px 0; font-size:11px }
.focus-panel { background:#1e1e24; color:#f5f5f8; border-radius:16px; padding:22px; border:1px solid #42424d; width:100% }
.focus-heading { display:flex; align-items:center; justify-content:center; gap:8px; position:relative; margin-bottom:14px }
.focus-heading .live-status { position:absolute; right:0 }
.focus-selection { display:flex; align-items:center; gap:10px; width:min(100%,480px); margin:0 auto }
.focus-selection label { font-size:11px; color:#c1c1cd; white-space:nowrap }
.focus-selection select { flex:1; min-width:0; background:#26262d; color:#f2f2f6; border:1px solid #737381; border-radius:7px; padding:8px 9px; font-size:12px; min-height:36px }
.focus-selection .icon-button { width:32px; height:32px; flex-shrink:0 }
.focus-heading h2 { display:flex; align-items:center; gap:9px; font-size:13px; font-weight:600; color:#e2dfe9; letter-spacing:-.01em }
.focus-comet { width:25px; height:25px; object-fit:contain; animation:comet-float 7s ease-in-out infinite; animation-play-state:paused }
@keyframes comet-float { 0%,100% { transform:translateY(0) rotate(-3deg) } 50% { transform:translateY(-4px) rotate(3deg) } }
.focus-heading h2 svg { width:17px }
.live-status { display:flex; align-items:center; gap:5px; font-size:10px; color:#c6c6d0; border:1px solid #45454d; padding:3px 7px; border-radius:5px }
.live-status i { width:4px; height:4px; background:#b0b0bd; border-radius:50% }
.timer-running .live-status { color:#ffabb0; border-color:#6a3c41 }
.timer-running .live-status i { background:#ff6973 }
.timer-wrap { text-align:center; padding:16px 0 14px }
.timer-center { display:flex; flex-direction:column; align-items:center }
#timer-display { font-size:76px; line-height:1.05; letter-spacing:-.035em; font-weight:450; font-variant-numeric:tabular-nums }
#timer-caption { color:#bebbc8; font-size:12px; margin-top:8px }
.timer-ring { height:3px; border-radius:4px; width:min(100%,380px); margin:12px auto 0; position:relative; background:#3a3a44!important; overflow:hidden }
.timer-ring::after { content:""; position:absolute; inset:0; background:var(--lime); transform:scaleX(var(--timer-progress,0)); transform-origin:left; transition:transform .5s linear }
.in-break .timer-ring::after { background:var(--apricot) }
.timer-worked { color:#a8a8b5; font-size:11px; margin-top:9px }
.focus-task label { display:block; color:#c1c1cd; font-size:11px; margin-bottom:7px }
.focus-task select { appearance:auto; width:100%; background:#26262d; color:#f2f2f6; border:1px solid #484852; border-radius:7px; padding:10px 9px; font-size:12px; min-height:40px }
.focus-task select:disabled { color:#b8b8c4; opacity:.8 }
.focus-config { margin:0 auto; width:min(100%,380px) }
.duration-row { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px }
.duration-row>span { font-size:12px; font-weight:500 }
#round-minutes-value { font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; color:#fff }
.duration-input { display:flex; gap:3px; align-items:center; background:#26262d; border:1px solid #737381; border-radius:6px; padding:4px 7px }
.duration-input input { background:transparent; border:0; color:#fff; width:50px; padding:3px; font-size:15px; font-weight:600 }
.duration-input input::-webkit-inner-spin-button,.duration-input input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0 }
.duration-input input { -moz-appearance:textfield; appearance:textfield }
.duration-presets { display:grid; grid-template-columns:repeat(3,1fr); gap:6px }
.duration-presets button { min-height:36px; border:1px solid #6e6b7a; border-radius:7px; color:#e0dce7; background:linear-gradient(180deg,#323039,#28272f); font-size:12px; font-weight:500; box-shadow:inset 0 1px 0 #ffffff05 }
.duration-presets button:hover:not(:disabled) { border-color:#ff939a; background:#44242a; color:#fff }
.duration-presets button[aria-pressed="true"] { background:linear-gradient(135deg,#68313e,#492630); border-color:#ce798a; color:#ffe5eb }
.duration-range { --range-fill:13.4%; appearance:none; background:transparent; width:100%; height:26px; margin:7px 0 0; cursor:pointer }
.duration-range::-webkit-slider-runnable-track { height:4px; background:linear-gradient(to right,#ff7d88 0 var(--range-fill),#53535f var(--range-fill) 100%); border-radius:4px }
.duration-range::-webkit-slider-thumb { appearance:none; height:15px; width:15px; margin-top:-5.5px; border:3px solid #ffcbd0; border-radius:50%; background:#cf1721; box-shadow:0 2px 5px #0006 }
.duration-range::-moz-range-track { height:4px; background:#53535f; border-radius:4px }
.duration-range::-moz-range-progress { height:4px; background:#ff7d88 }
.duration-range::-moz-range-thumb { height:10px; width:10px; border:3px solid #ffcbd0; border-radius:50%; background:#cf1721 }
.duration-range:disabled { cursor:not-allowed; opacity:.45 }
.duration-range-scale { display:flex; justify-content:space-between; gap:7px; color:#b8b8c5; font-size:10px; margin:0 0 7px }
.duration-range-scale #duration-hint { color:#b8b8c5 }
.round-settings>summary { display:flex; align-items:center; justify-content:center; gap:7px; color:#b8b8c5; font-size:11px; padding:7px 4px; cursor:pointer; list-style:none }
.round-settings>summary svg { height:13px; width:13px; transform:rotate(90deg) }
.round-settings[open]>summary svg { transform:rotate(-90deg) }
.round-settings[open]>summary { margin-bottom:8px }
.round-settings>summary:hover { color:#fff }
.duration-input span { font-size:10px; color:#c1c1cd }
.pomodoro-options { display:flex; gap:12px; margin-top:13px }
.pomodoro-options label { flex:1; min-width:0; margin:0; font-size:10px; display:flex; flex-direction:column; gap:5px }
.pomodoro-options label>span { display:flex; align-items:center; gap:5px }
.pomodoro-options input { min-width:0; width:65px; padding:5px; color:#fff; background:#26262d; border:1px solid #737381; border-radius:5px }
.round-explainer { font-size:10px; color:#b3b3bf; line-height:1.5; margin:8px 0 14px; min-height:15px }
.timer-controls { display:grid; grid-template-columns:1fr 38px; gap:8px; width:min(100%,310px); margin:12px auto 0 }
.timer-main { border-radius:8px; background:var(--red-satin); color:#fff; padding:13px 12px; font-size:13px; font-weight:600; position:relative; overflow:hidden; box-shadow:inset 0 1px 0 #ffffff30,0 5px 12px #0003 }
.timer-main::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg,transparent 15%,#ffffff15 45%,transparent 75%); transform:translateX(-110%); transition:transform .5s var(--ease-out) }
.timer-main:hover:not(:disabled),.timer-main:focus-visible { background:var(--red-satin); filter:brightness(1.12); transform:translateY(-4px) scale(1.025); box-shadow:inset 0 1px 0 #ffffff40,0 12px 28px #a50f2b60 }
.timer-main:hover:not(:disabled)::before,.timer-main:focus-visible::before { animation:ignite-sweep .65s var(--ease-out) both }
.timer-main::after { content:""; position:absolute; right:17px; top:calc(50% - 4px); width:8px; height:8px; border-top:2px solid #fff; border-right:2px solid #fff; opacity:0; transform:translateX(-8px) rotate(45deg); transition:transform .28s var(--ease-out),opacity .2s ease }
.timer-main:hover:not(:disabled)::after,.timer-main:focus-visible::after { opacity:1; transform:translateX(0) rotate(45deg) }
@keyframes ignite-sweep { from { transform:translateX(-110%) } to { transform:translateX(110%) } }
.timer-main:active:not(:disabled) { transform:translateY(0); filter:brightness(.95) }
.timer-main:disabled { opacity:1; background:#4a2b30; color:#d4b8bc }
.timer-reset { display:grid; place-items:center; color:#c0c0ce; background:#2b2b33; border-radius:7px }
.timer-reset:hover { background:#393942; color:#fff }
.timer-reset svg { width:16px }
.timer-finish { grid-column:1/-1; padding:8px; color:#dddde5; background:#2b2b33; border-radius:6px; font-size:11px }
.timer-finish:hover { background:#393942 }
.focus-footer { display:flex; gap:8px; align-items:start; margin:10px 0 6px; color:#b0b0bd; font-size:10px; line-height:1.6 }
.focus-footer svg { width:13px; height:13px; margin-top:2px }
.progress-section { display:grid; grid-template-columns:minmax(260px,1.1fr) 1.6fr; gap:24px; margin:0 0 24px; align-items:stretch }
.metrics-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; align-items:center; border:1px solid var(--stroke); background:var(--paper); border-radius:12px; padding:21px 0 }
.metrics-strip>.metric { padding:0 21px; border-right:1px solid var(--stroke) }
.metrics-strip>.metric:last-child { border:0 }
.metric.xp-metric { background:var(--red-satin); color:#fff; padding:14px 22px; border-radius:12px; position:relative; overflow:hidden }
.xp-metric { text-align:left; border:1px solid #e56878; transition:transform .2s var(--ease-out),border-color .2s ease }
.xp-metric:hover { transform:translateY(-3px); border-color:#ffbcc5 }
.xp-rank { display:block; font-size:15px; font-weight:600; margin-bottom:14px }
.xp-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; position:relative }
.xp-title { display:flex; align-items:center; gap:7px; color:#ffe0e4; font-size:12px; font-weight:550 }
.xp-title svg { width:16px; height:16px }
.level-badge { display:flex; gap:5px; align-items:baseline; border:1px solid #e58992; background:#a6101b; border-radius:5px; padding:3px 7px; font-size:10px; color:#fff }
.level-badge small { color:#ffd8dd; font-size:9px }
.xp-metric>strong { font-size:44px; font-weight:650; line-height:1.12; margin:12px 0 10px; color:#fff }
.metric.xp-metric>strong small { font-size:17px; color:#ffe0e4; font-weight:450 }
.xp-progress-track { display:block; height:4px; background:#8a0e18; border-radius:4px; overflow:hidden; margin-bottom:5px }
.xp-progress-track span { display:block; height:100%; width:0; background:#ffe6e9; transition:width .3s ease-out }
.xp-metric .metric-foot { color:#ffe0e4; font-size:10px }
.metric { min-width:0 }
.metric-label,.metric-foot { display:block; color:var(--muted); font-size:11px }
.metric-label { display:flex; align-items:center; gap:7px; white-space:nowrap }
.metric-label svg { width:15px; height:15px }
.metric>strong { display:block; font-size:28px; font-weight:500; letter-spacing:-.02em; margin:9px 0 5px; font-variant-numeric:tabular-nums; white-space:nowrap }
.metric.xp-metric>strong { font-size:42px; font-weight:650; line-height:1.05; margin:8px 0 }
.metric strong small { font-size:11px; color:var(--muted); font-weight:400 }
.mini-track { height:3px; background:#494952; max-width:80px; margin:6px 0 6px; overflow:hidden; border-radius:3px }
.mini-track span { display:block; height:100%; background:#ff939a; width:0 }
.calendar-panel { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin:26px 0 25px; padding-top:20px; border-top:1px solid var(--stroke) }
#today-view .calendar-panel { display:none }
.calendar-heading { display:flex; align-items:center; gap:12px; min-width:0 }
.calendar-icon { color:var(--muted) }
.calendar-heading h2 { font-size:12px; font-weight:550 }
.calendar-heading p { color:var(--muted); font-size:10px; margin-top:3px }
.calendar-panel>p { display:none }
.calendar-button { margin-left:auto; color:#c5c5d0; background:transparent; padding:9px 12px; border:1px solid var(--field-border); border-radius:7px; font-size:11px }
.calendar-button:hover { background:#28282f; color:var(--ink) }
.app-footer { display:flex; justify-content:space-between; color:var(--muted); border-top:1px solid var(--stroke); padding:17px 0 22px; font-size:10px; margin-top:14px }
.primary-button,.secondary-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 15px; border-radius:8px; min-height:40px; font-size:12px; font-weight:550 }
.primary-button { background:var(--red); color:#fff }
.primary-button:hover { background:#ab121b }
.primary-button svg { width:16px }
.secondary-button { background:var(--field); border:1px solid var(--field-border); color:var(--ink) }
.secondary-button:hover { background:#303038 }
.text-button { display:inline-flex; align-items:center; gap:6px; background:transparent; color:var(--muted); padding:4px 0; font-size:12px }
.text-button:hover { color:var(--accent-text) }
.text-button svg { width:15px; height:15px }
.danger { color:#ff939a }
.accent { color:#ff7d88 }
.view-header { margin:36px 0 32px; align-items:flex-end }
.history-total { font-size:11px; color:var(--muted); white-space:nowrap; padding:8px 12px; border:1px solid var(--field-border); border-radius:7px }
.week-board { background:var(--paper); border:1px solid var(--stroke); border-radius:16px; overflow:auto }
.week-board-header,.week-board-body { display:grid; grid-template-columns:repeat(7,minmax(105px,1fr)) }
.week-board-header { border-bottom:1px solid var(--stroke); background:var(--field); font-size:11px; color:var(--muted) }
.week-board-header>span { padding:15px; text-transform:capitalize }
.week-day { padding:20px 15px; min-height:230px; border-right:1px solid var(--stroke); display:flex; flex-direction:column; align-items:flex-start }
.week-day:last-child { border-right:0 }
.week-day.today { background:#3b2229 }
.day-number { font-size:30px; margin-bottom:30px; font-weight:450 }
.week-day strong { font-size:11px; font-weight:500 }
.week-day small { color:var(--muted); font-size:10px; margin-top:5px }
.week-day i { margin-top:auto; color:#ffabb6; font-style:normal; font-size:10px }
.goal-detail { display:flex; justify-content:space-between; align-items:center; padding:32px 0; gap:32px }
.goal-detail h2 { font:400 26px/1.3 var(--font-display) }
.goal-detail p { color:var(--muted); max-width:65ch; margin:10px 0 }
.goal-detail-score { display:flex; flex-direction:column; min-width:130px; text-align:right }
.goal-detail-score span { color:var(--accent-text); font-size:44px; letter-spacing:-.03em }
.goal-detail-score small { color:var(--muted); font-size:11px }
.session-table-heading,.session-row { display:grid; grid-template-columns:145px minmax(0,1fr) 85px 175px; gap:18px; align-items:center }
.session-table-heading { padding:13px 22px; color:var(--muted); font-size:10px }
.session-table { background:var(--paper); border:1px solid var(--stroke); border-radius:12px; padding:0 22px }
.session-row { padding:20px 0; border-bottom:1px solid var(--stroke) }
.session-row:last-child { border-bottom:0 }
.session-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; flex-wrap:wrap }
.session-pagination span { color:var(--muted); font-size:11px }
.session-date,.session-category,.session-synced { color:var(--muted); font-size:11px }
.session-name { font-weight:550; overflow-wrap:anywhere; font-size:13px }
.session-duration { font-weight:550; font-variant-numeric:tabular-nums }
.history-overview { display:grid; grid-template-columns:1fr 1.3fr 1fr; align-items:center; gap:26px; padding-bottom:25px; border-bottom:1px solid var(--stroke); margin-bottom:30px }
.history-score { display:flex; flex-direction:column; gap:5px }
.history-score-label,#history-score-note { font-size:11px; color:var(--muted) }
.history-score>strong { font-size:47px; font-weight:450; letter-spacing:-.025em }
.history-stats { display:flex; gap:24px; justify-content:space-between }
.history-stats>div { display:flex; flex-direction:column; gap:8px }
.history-stats span { color:var(--muted); font-size:10px }
.history-stats strong { font-size:23px; font-weight:500 }
.history-signal { display:flex; gap:10px; align-items:flex-start; background:#282830; color:#c2c2cf; padding:15px; border-radius:8px }
.history-signal strong,.history-signal small { display:block; font-size:11px }
.history-signal small { font-size:10px; margin-top:5px }
.signal-dot,.history-status-dot { width:7px; height:7px; border-radius:50%; background:currentColor; margin-top:5px; flex-shrink:0 }
.good { --tone:var(--success) }
.watch { --tone:var(--watch) }
.low { --tone:var(--failure) }
.neutral { --tone:#a6a6b5 }
.history-signal.good { background:#1d3428; color:#99dfb6 }
.history-signal.watch { background:#3b2d18; color:#f1cb8d }
.history-signal.low { background:#42252d; color:#ffa4af }
.history-chart-panel { padding:24px; background:var(--paper); border:1px solid var(--stroke); border-radius:16px }
.history-panel-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px }
.history-panel-heading h2 { font-size:17px }
.history-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:10px; color:var(--muted) }
.history-legend span { display:flex; align-items:center; gap:5px }
.history-legend i { width:6px; height:6px; border-radius:2px }
.legend-good { background:var(--success) }
.legend-watch { background:var(--watch) }
.legend-low { background:var(--failure) }
.legend-neutral { background:#a6a6b5 }
.history-chart { display:flex; gap:18px; height:255px; overflow-x:auto; align-items:stretch; padding:25px 0 5px; border-bottom:1px solid var(--stroke) }
.history-bar { flex:1 0 58px; display:flex; flex-direction:column; align-items:center; background:transparent; padding:0; color:var(--tone); border-radius:5px }
.history-bar:hover { background:#2d2d35 }
.bar-value { font-size:11px; font-weight:600; height:25px }
.bar-column { height:170px; width:36px; display:flex; align-items:flex-end }
.bar-column i { display:block; height:var(--bar-height); width:100%; background:var(--tone); border-radius:4px 4px 0 0; min-height:7px }
.bar-label { color:var(--muted); font-size:9px; margin-top:12px; white-space:nowrap }
.history-bar.current .bar-label { color:var(--ink); font-weight:650 }
.history-chart-footer { display:flex; justify-content:space-between; gap:15px; color:var(--muted); font-size:10px; margin-top:15px }
.history-list-panel { margin-top:30px }
.history-list { margin-top:15px }
.history-entry { border-top:1px solid var(--stroke); padding:18px 0 12px; scroll-margin:30px }
.history-row { display:flex; align-items:center; gap:16px }
.history-status-dot { color:var(--tone); margin:0 }
.history-row-main { flex:1 }
.history-row strong { font-size:12px; font-weight:550 }
.history-row small { display:block; font-size:10px; color:var(--muted); margin-top:5px }
.history-row-goals,.history-row-focus { width:85px }
.history-row-score { width:55px; color:var(--tone); font-weight:650; text-align:right }
.history-detail { padding:9px 0 0 23px; font-size:11px; color:var(--muted) }
.history-detail summary { cursor:pointer }
.history-detail div { padding:12px 0; line-height:1.8; max-width:70ch }
.settings-grid { display:grid; gap:22px }
.settings-card { display:flex; gap:18px; background:var(--paper); border:1px solid var(--stroke); border-radius:12px; padding:26px }
.settings-icon { color:var(--accent-text); align-self:flex-start }
.settings-card p { margin:10px 0 20px; color:var(--muted); max-width:70ch }
.task-dialog { width:min(480px,calc(100% - 32px)); padding:28px; border:1px solid #50505c; border-radius:16px; color:var(--ink); background:#202026 }
.task-dialog::backdrop { background:#12121599 }
.xp-dialog { width:min(640px,calc(100% - 32px)); max-height:calc(100dvh - 48px); overflow-y:auto; padding:28px 32px }
.xp-dialog[open] { animation:xp-reveal .22s var(--ease-out) }
@keyframes xp-reveal { from { opacity:0; transform:translateY(18px) scale(.97) } to { opacity:1; transform:translateY(0) scale(1) } }
.xp-dialog .dialog-header { align-items:flex-start; margin-bottom:20px }
.xp-dialog .section-kicker { color:#f5a3b2; font-size:10px; margin-bottom:9px }
.xp-dialog .dialog-header h2 { font:550 23px/1.3 var(--font-display); letter-spacing:-.03em; max-width:22ch }
.xp-dialog .dialog-close { flex-shrink:0 }
.xp-current { padding:22px 24px; background:var(--red-satin); border:1px solid #e56878; border-radius:12px; margin-bottom:22px }
.xp-current>span { font-size:9px; letter-spacing:.12em; color:#ffe0e4 }
.xp-current>strong { display:block; font-size:31px; font-weight:600; letter-spacing:-.03em; margin:7px 0 }
.xp-current p { font-size:12px; color:#ffe0e4 }
.xp-current progress { display:block; appearance:none; width:100%; height:5px; border:0; border-radius:5px; overflow:hidden; margin:18px 0 9px; background:#8a0e18 }
.xp-current progress::-webkit-progress-bar { background:#8a0e18 }
.xp-current progress::-webkit-progress-value { background:#fff0f3 }
.xp-current progress::-moz-progress-bar { background:#fff0f3 }
.xp-current small { font-size:11px; color:#ffe0e4 }
.xp-tier-list { list-style:none; padding:0; margin:0 }
.xp-tier { display:flex; align-items:center; gap:16px; padding:15px 4px; border-top:1px solid var(--stroke) }
.xp-tier-number { display:grid; place-items:center; flex:0 0 35px; height:35px; border:1px solid #5c535e; border-radius:50%; color:#c8c0cd; font-size:11px; font-variant-numeric:tabular-nums }
.xp-tier>div { flex:1; min-width:0 }
.xp-tier strong { display:block; font-size:14px; font-weight:550 }
.xp-tier p { color:var(--muted); font-size:11px; line-height:1.5; margin:4px 0 }
.xp-tier small { font-size:10px; color:#b9adbd }
.xp-tier-state { font-size:10px; color:#b9adbd; white-space:nowrap }
.xp-tier.current { background:linear-gradient(90deg,#6c223340,transparent); padding-inline:12px; margin-inline:-8px; border-radius:8px }
.xp-tier.current .xp-tier-number { background:var(--red-satin); color:#fff; border-color:#eb8fa3 }
.xp-tier.current .xp-tier-state { color:#ffb8c8; font-weight:600 }
.xp-tier.unlocked .xp-tier-number { color:#a8e8c0; border-color:#548367 }
.xp-earning { font-size:10px; color:var(--muted); line-height:1.8; border-top:1px solid var(--stroke); margin-top:16px; padding-top:16px }
.xp-earning strong { font-weight:550; color:var(--ink) }
.dialog-header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:24px }
.dialog-header h2 { font:400 27px/1.2 var(--font-display) }
.dialog-close { width:30px; height:30px; background:#35353f; color:var(--muted); font-size:21px; border-radius:6px }
.dialog-close:hover { background:#44444f }
.task-dialog label { display:block; font-size:12px; margin:18px 0 7px }
.task-dialog input,.task-dialog select { width:100%; border:1px solid #60606c; border-radius:7px; padding:11px; background:#292930; color:var(--ink); font-size:13px }
.dialog-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:26px }
.sync-modal-content>p,.sync-checks { color:var(--muted); font-size:13px; line-height:1.8 }
.sync-checks { padding-left:20px; margin-top:18px }
.toast { position:fixed; bottom:24px; left:calc(50% + 90px); transform:translate(-50%,12px); max-width:calc(100% - 32px); color:#fff; background:#27272e; border-radius:9px; padding:13px 20px; box-shadow:0 6px 20px #0002; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; z-index:20; font-size:12px }
.toast.show { opacity:1; transform:translate(-50%,0) }
@media(min-width:1450px) {
 .work-grid { max-width:640px }
 .focus-panel { padding:26px }
 .section-heading { padding:26px 28px 20px }
 .quick-task-form { margin-inline:28px }
 .task-list { padding-inline:28px }
 .task-row { min-height:82px }
 .task-title { font-size:14px }
}
@media(max-width:1150px) {
 .app-shell { grid-template-columns:184px minmax(0,1fr) }
 .sidebar { padding-inline:10px }
 .brand-main { font-size:21px }
 .brand-main>img { width:29px }
 .main-content { padding-inline:24px }
 .home-note { display:none }
 .focus-panel { padding:20px }
 .section-heading { padding:20px }
 .quick-task-form { margin-inline:20px }
 .task-list { padding-inline:20px }
 .task-focus span { display:none }
 .task-list-foot { flex-wrap:wrap; padding-inline:20px }
 .progress-section { grid-template-columns:minmax(250px,1fr) 1.5fr; gap:18px }
 .metrics-strip { gap:0 }
 .metrics-strip>.metric { padding-inline:14px }
 .metric-foot { font-size:10px }
 .history-overview { grid-template-columns:1fr 1.5fr }
 .history-signal { grid-column:1/-1 }
 .session-table-heading,.session-row { grid-template-columns:100px minmax(0,1fr) 65px 140px; gap:12px }
}
@media(max-width:960px) {
 .planning-column { grid-template-columns:1fr }
 #today-view .welcome-row { flex-wrap:wrap }
 .task-focus span { display:inline }
 .progress-section { grid-template-columns:1fr; gap:14px }
 .journey { gap:10px }
 .journey-step { font-size:11px }
 .view-header { align-items:flex-start; flex-direction:column; gap:17px }
 .session-table-heading { display:none }
 .session-row { grid-template-columns:95px minmax(0,1fr) 65px }
 .session-synced { grid-column:2/-1 }
 .toast { left:calc(50% + 80px) }
}
@media(max-width:700px) {
 .xp-dialog { padding:22px 20px; max-height:calc(100dvh - 24px) }
 .xp-dialog .dialog-header h2 { font-size:21px }
 .xp-tier { gap:10px; flex-wrap:wrap }
 .xp-tier>div { flex-basis:calc(100% - 50px) }
 .xp-tier-state { margin-left:45px }
 #today-view .welcome-row { margin-top:24px }
 #today-view .welcome-row h1 { font-size:27px }
 #today-view .focus-panel { padding:24px 18px }
 #today-view #timer-display { font-size:80px }
 .home-xp { padding:7px 10px }
 .app-shell { display:block }
 .sidebar { position:relative; height:auto; padding:12px 16px; gap:0 }
 .brand,.sidebar-section-label,.sidebar-spacer,.streak-block,.profile-chip { display:none }
 .nav-list { flex-direction:row; justify-content:space-between; gap:4px; padding-right:38px }
 .nav-item { flex:1; width:auto; min-height:40px; justify-content:center; gap:6px; padding:8px 6px; font-size:10px }
 .nav-icon svg { width:16px; height:16px }
 .nav-count { display:none }
 .settings-item { position:absolute; right:15px; top:12px; width:32px }
 .settings-item>span:last-child { display:none }
 .main-content { padding-inline:20px }
 .topbar { min-height:62px }
 .mobile-brand { display:block; font-size:19px; font-weight:700; letter-spacing:-.025em }
 .today-date { display:none }
 .preview-badge { font-size:8px; max-width:110px; padding:4px 6px; text-align:center; line-height:1.4 }
 .welcome-row { margin:28px 0 22px }
 h1 { font-size:31px; max-width:17ch }
 .lede { font-size:12px }
 .section-kicker { font-size:11px }
 .journey { gap:8px; justify-content:space-between; margin-bottom:22px }
 .journey-step { gap:5px; font-size:9px }
 .journey-number { width:19px; height:19px; font-size:9px }
 .journey-arrow { display:none }
 .focus-panel { padding:18px }
 .focus-selection { flex-wrap:wrap }
 .focus-selection label { width:100%; text-align:center }
 .focus-heading { margin-bottom:14px }
 .timer-wrap { padding:20px 0 14px }
 #timer-display { font-size:68px }
 .task-row { gap:9px }
 .task-points { display:none }
 .task-focus span { display:none }
 .section-heading { padding:20px 18px 16px }
 .section-heading h2 { font-size:17px }
 .section-heading p { font-size:11px }
 .quick-task-form { margin-inline:18px }
 .task-list { padding-inline:18px }
 .task-list-foot { padding:12px 18px; font-size:9px }
 .task-list-foot .text-button { margin:0 }
 .metrics-strip { grid-template-columns:repeat(3,minmax(0,1fr)); padding-block:18px }
 .metrics-strip>.metric { padding-inline:12px }
 .metrics-strip .metric-label { white-space:normal; min-height:30px; line-height:1.4 }
 .metrics-strip .metric-label [data-icon] { display:none }
 .metrics-strip .metric>strong { font-size:25px }
 .metric-label,.metric-foot { font-size:10px }
 .calendar-heading h2 { font-size:11px }
 .calendar-button { margin-left:32px }
 .app-footer span:last-child { display:none }
 .history-overview { grid-template-columns:1fr }
 .history-stats { justify-content:flex-start }
 .history-signal { grid-column:auto }
 .history-chart-panel { padding:20px }
 .history-chart-footer { flex-direction:column }
 .history-row { flex-wrap:wrap; gap:10px }
 .history-row-main { min-width:calc(100% - 24px) }
 .history-row-goals { margin-left:17px }
 .history-row-score { margin-left:auto }
 .history-row-focus { width:70px }
 .history-detail { padding-left:17px }
 .goal-detail { flex-direction:column; align-items:flex-start }
 .goal-detail-score { text-align:left }
 .session-row { grid-template-columns:1fr 60px }
 .session-date { grid-column:1/-1 }
 .session-synced { grid-column:1/-1 }
 .session-table { padding-inline:18px }
 .settings-card { padding:20px; gap:13px }
 .settings-card h2 { font-size:17px }
 .settings-card p { font-size:12px }
 .toast { left:50%; width:max-content }
}
/* Satin controls: small tactile responses, no movement of the station itself. */
:is(.home-xp,.timer-main,.timer-reset,.timer-finish,.duration-presets button,.primary-button,.secondary-button,.icon-button,.nav-item):not(:disabled) {
 transition:transform .18s var(--ease-out),filter .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
}
.timer-reset:hover:not(:disabled),.duration-presets button:hover:not(:disabled),.primary-button:hover:not(:disabled),.secondary-button:hover:not(:disabled),.icon-button:hover:not(:disabled) { transform:translateY(-1px) }
.timer-reset:active:not(:disabled),.duration-presets button:active:not(:disabled),.home-xp:active { transform:translateY(0) }
.duration-input { transition:border-color .18s ease,background-color .18s ease }
.duration-input:focus-within { border-color:#f2a6b2; background:#30272e }
.task-association>summary,.round-settings>summary { transition:color .18s ease }
.task-association>summary svg,.round-settings>summary svg { transition:transform .2s var(--ease-out) }
.timer-ring::after { background:linear-gradient(90deg,#c91c30,#ff8995) }
.primary-button { background:var(--red-satin); box-shadow:inset 0 1px 0 #ffffff21 }
.primary-button:hover:not(:disabled) { background:var(--red-satin); filter:brightness(1.12) }
.task-dialog { background:linear-gradient(150deg,#27232b,#1c1b22 65%) }
.timer-controls .timer-main:not(:disabled) { transition:transform .28s var(--ease-out),filter .22s ease,box-shadow .28s ease }
.nav-item:not(:disabled) .nav-icon { transition:transform .24s var(--ease-out) }
.nav-item:hover .nav-icon { transform:translateX(3px) scale(1.1) }
.motion-settings { margin-bottom:22px }
.motion-settings label { display:block; font-size:12px; color:var(--muted); margin-bottom:8px }
.motion-settings select { width:min(100%,310px); padding:10px 12px; border:1px solid var(--field-border); border-radius:8px; color:var(--ink); background:var(--field) }
.motion-settings small { display:block; margin-top:10px; color:var(--muted); line-height:1.6; max-width:65ch }
body[data-motion-enabled="false"] *,body[data-motion-enabled="false"] *::before,body[data-motion-enabled="false"] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
@media(max-width:700px) {
 .focus-heading { justify-content:flex-start }
 .focus-heading h2 { font-size:12px }
 .focus-comet { width:23px; height:23px }
 .duration-range-scale { font-size:9px }
 #today-view .welcome-row h1 { font-size:26px }
 #today-view .welcome-row .lede { font-size:16px }
}
@media(prefers-reduced-motion:reduce) {
 body:not([data-motion-mode="full"]) *,body:not([data-motion-mode="full"]) *::before,body:not([data-motion-mode="full"]) *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
}
.settings-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px }
.sync-pill[data-tone="watch"] .sync-dot { background:var(--watch) }
.sync-pill[data-tone="muted"] .sync-dot { background:#858592 }
/* Phone: bottom tab bar within thumb reach, clear of the home indicator. */
@media(max-width:700px) {
 .sidebar { position:fixed; inset:auto 0 0 0; z-index:15; height:auto; flex-direction:row; align-items:stretch; gap:2px; padding:6px 6px calc(6px + env(safe-area-inset-bottom)); border-right:0; border-top:1px solid #2a2930; background:#121215 }
 .nav-list { flex:5; padding-right:0; gap:2px; justify-content:stretch }
 .nav-item,.settings-item { flex:1; min-width:0; flex-direction:column; justify-content:center; align-items:center; gap:3px; min-height:54px; padding:6px 2px; font-size:10px; line-height:1.2; text-align:center; white-space:nowrap }
 .settings-item { position:static; width:auto; margin:0 }
 .settings-item>span:last-child { display:inline }
 .nav-item:hover .nav-icon { transform:none }
 .main-content { padding-bottom:calc(84px + env(safe-area-inset-bottom)) }
 .toast { bottom:calc(84px + env(safe-area-inset-bottom)) }
}
/* To-do: one simple list per day. Animations use transform/opacity only. */
.todo-shell { max-width:760px; margin:0 auto; padding-top:34px }
.todo-top { display:flex; align-items:center; gap:14px; margin-bottom:22px }
.todo-day-copy { display:flex; flex-direction:column; min-width:0 }
.todo-day-copy h1 { font-size:clamp(28px,3vw,36px); line-height:1.1 }
.todo-day-copy small { color:var(--muted); font-size:12px; margin-top:4px }
.todo-top .icon-button svg { width:16px; height:16px }
.todo-top #todo-next { margin-right:auto }
.todo-status { display:flex; align-items:center; gap:6px; flex-shrink:0; font-size:11px; color:#c6c6d0; border:1px solid #45454d; padding:5px 10px; border-radius:999px; white-space:nowrap }
.todo-status i { width:6px; height:6px; border-radius:50%; background:#858592 }
.todo-status[data-tone="watch"] { color:var(--watch); border-color:#6b5432 }
.todo-status[data-tone="watch"] i { background:var(--watch); animation:status-pulse 1.4s ease-in-out infinite }
.todo-status[data-tone="good"] { color:var(--success); border-color:#335a45 }
.todo-status[data-tone="good"] i { background:var(--success) }
@keyframes status-pulse { 50% { opacity:.35 } }

.todo-add { background:var(--paper); border:1px solid var(--stroke); border-radius:14px; padding:10px 12px; transition:border-color .2s, box-shadow .2s }
.todo-add:focus-within { border-color:#7a3a44; box-shadow:0 0 0 4px #cf172114 }
.todo-add-line { display:flex; align-items:center; gap:10px }
.todo-add-line>[data-icon] { color:#858591 }
.todo-add-line input { flex:1; min-width:0; border:0; background:transparent; color:var(--ink); font-size:15px; padding:10px 0; outline:none }
.todo-add .duration-chips { margin:6px 0 2px 30px }
.duration-chips { display:flex; flex-wrap:wrap; gap:6px }
.duration-chip { background:var(--field); border:1px solid #3a3a44; color:#c9c9d3; border-radius:999px; padding:6px 12px; font-size:12px; min-height:32px; transition:background-color .15s, color .15s, border-color .15s, transform .15s var(--ease-out) }
.duration-chip:hover { border-color:#6b6b78; color:#fff; transform:translateY(-1px) }
.duration-chip[aria-pressed="true"] { background:var(--red-satin); border-color:#e56878; color:#fff }
.duration-chip.tracked { border-style:dashed }

.todo-list { list-style:none; margin:18px 0 0; padding:0; position:relative }
.todo-row { display:flex; align-items:center; gap:10px; padding:10px 8px 10px 4px; border-radius:12px; background:var(--canvas); position:relative; transition:transform .18s var(--ease-out), background-color .15s }
.todo-row:hover { background:#17171b }
.todo-row+.todo-row { margin-top:2px }
.todo-grip { width:24px; height:32px; display:grid; place-items:center; background:transparent; color:#5d5d68; border-radius:6px; cursor:grab; touch-action:none; opacity:0; transition:opacity .15s, color .15s }
.todo-row:hover .todo-grip,.todo-grip:focus-visible { opacity:1 }
.todo-grip:hover { color:#c9c9d3 }
.todo-grip svg { width:16px; height:16px; stroke-width:3 }
.todo-check { width:26px; height:26px; flex-shrink:0; border-radius:50%; border:1.6px solid #71717d; background:transparent; color:transparent; display:grid; place-items:center; transition:background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out) }
.todo-check svg { width:14px; height:14px; stroke-width:2.6 }
.todo-check:hover { border-color:#ff939a; transform:scale(1.08) }
.todo-row.done .todo-check { background:var(--red-satin); border-color:#e56878; color:#fff }
.todo-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px }
.todo-main .task-title { font-size:15px; font-weight:500; overflow-wrap:anywhere; text-decoration:line-through; text-decoration-color:transparent; text-decoration-thickness:1.5px; transition:color .25s, text-decoration-color .35s }
.todo-row.done .task-title { color:var(--muted); text-decoration-color:currentColor }
.todo-time { font-size:11px; color:#8d8d99; font-variant-numeric:tabular-nums }
.todo-duration { background:transparent; border:1px solid transparent; color:#c9c9d3; border-radius:999px; padding:5px 10px; font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums; transition:background-color .15s, border-color .15s }
.todo-duration:hover { background:var(--field); border-color:#3a3a44 }
.todo-duration small { color:var(--muted); font-size:10px }
.todo-icon,.todo-icon-space { width:32px; height:32px; flex-shrink:0 }
.todo-icon { display:grid; place-items:center; background:transparent; color:#8d8d99; border-radius:8px; opacity:0; transition:opacity .15s, color .15s, background-color .15s }
.todo-row:hover .todo-icon,.todo-icon:focus-visible { opacity:1 }
.todo-icon:hover { background:var(--field); color:#fff }
.todo-delete:hover { color:#ff939a }
.todo-icon svg { width:16px; height:16px }
@media (hover:none) { .todo-icon,.todo-grip { opacity:1 } }

/* Motion: arrival, check, removal, drag, day change. */
.todo-row.is-new { animation:todo-in .38s var(--ease-out) both }
.todo-row.just-done .todo-check { animation:check-pop .45s var(--ease-out) }
.todo-row.is-leaving { animation:todo-out .22s ease-in forwards; pointer-events:none }
@keyframes todo-in { from { opacity:0; transform:translateY(10px) scale(.98) } }
@keyframes todo-out { to { opacity:0; transform:translateX(24px) scale(.98) } }
@keyframes check-pop { 0% { transform:scale(.6) } 55% { transform:scale(1.2); box-shadow:0 0 0 8px #cf172133 } 100% { transform:scale(1); box-shadow:0 0 0 14px #cf172100 } }
.todo-list.day-change[data-direction="1"] .todo-row,.todo-list.day-change[data-direction="1"] .todo-empty { animation:day-next .32s var(--ease-out) both }
.todo-list.day-change[data-direction="-1"] .todo-row,.todo-list.day-change[data-direction="-1"] .todo-empty { animation:day-prev .32s var(--ease-out) both }
@keyframes day-next { from { opacity:0; transform:translateX(28px) } }
@keyframes day-prev { from { opacity:0; transform:translateX(-28px) } }
.todo-list.is-dragging { user-select:none }
.todo-row.dragging { z-index:2; transition:none; background:#202027; box-shadow:0 12px 30px #0007; cursor:grabbing }
.todo-row.dragging .todo-grip { opacity:1; cursor:grabbing }
.todo-list.no-anim .todo-row { transition:none }

.todo-empty { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:44px 20px; color:var(--muted); font-size:13px }
.todo-empty svg { width:30px; height:30px; color:#6d6d79; margin-bottom:6px }
.todo-empty strong { color:#e0e0e7; font-size:16px; font-weight:600 }

.todo-foot { margin-top:18px; padding-top:16px; border-top:1px solid var(--stroke); animation:todo-in .3s var(--ease-out) both }
.todo-summary { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; margin-bottom:12px }
.todo-foot-line { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px }
.todo-start-toggle { display:flex; align-items:center; gap:8px; font-size:12px; color:#c9c9d3; cursor:pointer }
.todo-start-toggle input { width:16px; height:16px; margin:0; accent-color:var(--red) }
#todo-start { background:var(--field); color:var(--ink); border:1px solid var(--field-border); border-radius:8px; padding:6px 10px; font-size:12px; min-height:32px; animation:todo-in .25s var(--ease-out) both }
#todo-start-default { color:var(--muted); font-size:12px }
#todo-commit { margin-left:auto }

.duration-popover { position:fixed; z-index:40; width:min(300px,calc(100vw - 24px)); padding:14px; background:#222228; border:1px solid #4a4a55; border-radius:14px; box-shadow:0 18px 40px #0009; transform-origin:top right; animation:pop-in .18s var(--ease-out) }
.duration-popover strong { display:block; font-size:12px; font-weight:600; color:#d8d8e0; margin-bottom:10px }
@keyframes pop-in { from { opacity:0; transform:translateY(-6px) scale(.96) } }
.confirm-dialog { width:min(400px,calc(100% - 32px)) }
.confirm-dialog[open] { animation:pop-in .2s var(--ease-out) }
.confirm-dialog h2 { font-size:18px; margin-bottom:10px; overflow-wrap:anywhere }
.confirm-dialog p { color:var(--muted); font-size:13px; line-height:1.6 }
.danger-button { background:linear-gradient(145deg,#c4202f,#9a1220) }
.day-settings { margin-bottom:22px }
.day-settings label { display:block; font-size:12px; color:var(--muted); margin-bottom:8px }
.day-settings select { width:min(100%,200px); padding:10px 12px; border:1px solid var(--field-border); border-radius:8px; color:var(--ink); background:var(--field) }

@media(max-width:700px) {
 .todo-shell { padding-top:20px }
 .todo-top { gap:10px }
 .todo-status { position:absolute; right:20px; margin-top:-62px }
 .todo-add .duration-chips { margin-left:0 }
 .todo-row { gap:6px; padding-right:0 }
 .todo-grip { width:20px }
 .todo-icon,.todo-icon-space { width:30px }
 #todo-commit { width:100%; margin-left:0 }
}

/* Focus mode: the round has started, everything but the clock steps aside. */
.sidebar-toggle { position:fixed; top:14px; left:14px; z-index:30; width:40px; height:40px; display:grid; place-items:center; border-radius:10px; background:#1d1d22; border:1px solid #34343c; color:#d8d8e0; opacity:0; pointer-events:none; transform:translateX(-8px); transition:opacity .3s, transform .3s var(--ease-out), background-color .15s }
.sidebar-toggle:hover { background:#2a2a31 }
body[data-focus-mode="true"] .sidebar-toggle { opacity:1; pointer-events:auto; transform:none; transition-delay:.25s }
body[data-focus-mode="true"] .topbar { padding-left:52px }
.app-shell { transition:grid-template-columns .45s var(--ease-out) }
@media(min-width:701px) {
 .sidebar { transition:transform .45s var(--ease-out), opacity .3s, box-shadow .3s }
 .main-content { grid-column:2 }
 body[data-focus-mode="true"] .app-shell { grid-template-columns:0 minmax(0,1fr) }
 body[data-focus-mode="true"] .sidebar { position:fixed; left:0; top:0; width:216px; z-index:25; transform:translateX(-102%); opacity:0; pointer-events:none }
 body[data-focus-mode="true"][data-sidebar-open="true"] .sidebar { transform:none; opacity:1; pointer-events:auto; box-shadow:18px 0 50px #000a }
 body[data-focus-mode="true"][data-sidebar-open="true"] .sidebar { padding-top:68px }
}
@media(max-width:700px) {
 .sidebar { transition:transform .4s var(--ease-out) }
 body[data-focus-mode="true"] .sidebar { transform:translateY(110%) }
 body[data-focus-mode="true"][data-sidebar-open="true"] .sidebar { transform:none }
 .sidebar-toggle { top:12px; left:12px; width:38px; height:38px }
}
.focus-task { display:grid; grid-template-rows:1fr; transition:grid-template-rows .45s var(--ease-out), opacity .3s }
.focus-task>.focus-config { min-height:0; overflow:clip; overflow-clip-margin:8px }
#today-view .welcome-row { max-height:200px; transition:max-height .45s var(--ease-out), opacity .3s, margin .45s var(--ease-out) }
.timer-center { transition:transform .5s var(--ease-out) }
body[data-focus-mode="true"] .focus-task { grid-template-rows:0fr; opacity:0; pointer-events:none }
body[data-focus-mode="true"] #today-view .welcome-row { max-height:0; opacity:0; margin-block:0; overflow:hidden; pointer-events:none }
body[data-focus-mode="true"] #focus-association,body[data-focus-mode="true"] .calendar-panel { display:none }
body[data-focus-mode="true"] #today-view .focus-panel { margin-top:6vh }
body[data-focus-mode="true"] .timer-center { transform:scale(1.18); margin-block:10px 26px }
body[data-focus-mode="true"] #today-view .timer-wrap { padding:48px 0 40px }

/* Start wave: soft and wide, behind the station (the shell sits above it). */
.app-shell { position:relative; z-index:1 }
.focus-wave { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; display:grid; place-items:center }
.focus-wave::before { content:""; position:absolute; width:70vmin; height:70vmin; border-radius:50%; background:radial-gradient(circle,#ff5a651f,#cf172100 70%); animation:wave-glow 1.8s cubic-bezier(.19,1,.22,1) forwards }
.focus-wave i { position:absolute; width:190vmax; height:190vmax; border-radius:50%; background:radial-gradient(circle,#cf172100 30%,#cf17210d 46%,#ff6b7524 58%,#ff9aa214 66%,#cf172100 82%); transform:scale(.05); opacity:0; animation:focus-wave 2.6s cubic-bezier(.19,1,.22,1) forwards; will-change:transform,opacity }
.focus-wave i:nth-child(2) { animation-delay:.35s }
.focus-wave i:nth-child(3) { display:none }
@keyframes focus-wave { 0% { transform:scale(.05); opacity:0 } 15% { opacity:1 } 100% { transform:scale(1); opacity:0 } }
@keyframes wave-glow { 0% { transform:scale(.5); opacity:0 } 30% { opacity:1 } 100% { transform:scale(1.8); opacity:0 } }
/* Sessions: three ways to look at the same rounds; editing sits behind the gear. */
.sessions-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap }
.view-switch { display:inline-flex; padding:3px; background:var(--paper); border:1px solid var(--stroke); border-radius:10px }
.view-switch button { background:transparent; color:var(--muted); padding:7px 14px; border-radius:7px; font-size:12px; font-weight:550; transition:background-color .2s, color .2s }
.view-switch button[aria-pressed="true"] { background:#2c2c33; color:#fff; box-shadow:inset 0 1px 0 #ffffff0d }
.session-table-heading,.session-row { grid-template-columns:145px minmax(0,1fr) 85px 175px 34px }
.session-task { font-size:14px; font-weight:550; overflow-wrap:anywhere; margin-bottom:3px }
.session-gear { width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:transparent; color:#8d8d99; transition:background-color .15s, color .15s, transform .3s var(--ease-out) }
.session-gear:hover { background:var(--field); color:#fff; transform:rotate(45deg) }
.session-gear svg { width:16px; height:16px }
#session-list-view,#session-agenda-view,#session-cards-view { animation:todo-in .3s var(--ease-out) both }
.session-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px }
.session-card { position:relative; display:flex; flex-direction:column; gap:6px; padding:16px; min-height:150px; background:linear-gradient(160deg,#211f26,#18181d); border:1px solid var(--stroke); border-radius:14px; transition:transform .2s var(--ease-out), border-color .2s }
.session-card:hover { transform:translateY(-2px); border-color:#45454f }
.session-card .session-gear { position:absolute; top:8px; right:8px }
.session-card-date { color:var(--muted); font-size:11px }
.session-card-minutes { font-size:28px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums }
.session-card-task { font-size:13px; overflow-wrap:anywhere; flex:1 }
.session-card-bar { height:4px; border-radius:4px; background:#2c2c33; position:relative; overflow:hidden }
.session-card-bar::after { content:""; position:absolute; inset:0 auto 0 0; width:var(--fill); background:var(--red-satin); border-radius:4px }
.session-card small { color:var(--muted); font-size:10px }
.agenda-nav { display:flex; align-items:center; gap:10px; margin-bottom:14px }
.agenda-nav strong { font-size:14px; min-width:190px; text-align:center }
.agenda-nav svg { width:16px; height:16px }
.agenda { background:var(--paper); border:1px solid var(--stroke); border-radius:14px; overflow:auto }
.agenda-head,.agenda-body { display:grid; grid-template-columns:44px repeat(7,minmax(92px,1fr)); min-width:700px }
.agenda-head { position:sticky; top:0; z-index:2; background:var(--field); border-bottom:1px solid var(--stroke) }
.agenda-head span { padding:10px 8px; font-size:11px; color:var(--muted); text-transform:capitalize }
.agenda-head span strong { color:var(--ink); font-size:13px; margin-left:3px }
.agenda-head span.today { color:#ffb4bd }
.agenda-body { position:relative; height:calc(var(--hours) * 46px) }
.agenda-hours { position:relative; border-right:1px solid var(--stroke) }
.agenda-hours span { position:absolute; right:6px; transform:translateY(-50%); font-size:9px; color:#7d7d89 }
.agenda-hours span:first-child { transform:none }
.agenda-day { position:relative; border-right:1px solid #26262c; background-image:linear-gradient(#26262c 1px,transparent 1px); background-size:100% 46px }
.agenda-day:last-child { border-right:0 }
.agenda-day.today { background-color:#22181c }
.agenda-block { position:absolute; left:4px; right:4px; display:flex; flex-direction:column; gap:1px; overflow:hidden; text-align:left; padding:4px 6px; border-radius:7px; background:linear-gradient(160deg,#7d1d2a,#5a1420); border:1px solid #b03a4c; color:#fff; font-size:10px; line-height:1.25; animation:todo-in .35s var(--ease-out) both; transition:filter .15s }
.agenda-block:hover { filter:brightness(1.15); z-index:1 }
.agenda-block.short { background:#2c2c33; border-color:#45454f }
.agenda-block strong { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.agenda-block small { color:#ffd9de; opacity:.85 }
.session-dialog { width:min(440px,calc(100% - 32px)) }
.session-dialog[open] { animation:pop-in .2s var(--ease-out) }
.session-facts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0 0 18px }
.session-facts dt { color:var(--muted); font-size:11px }
.session-facts dd { margin:2px 0 0; font-size:13px }
.sd-task { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--stroke); border-radius:10px; background:#1b1b20 }
.sd-task span { display:block; color:var(--muted); font-size:11px }
.sd-task strong { font-size:14px; overflow-wrap:anywhere }
.sd-task .icon-button svg { width:16px; height:16px }
#sd-task-edit { animation:todo-in .25s var(--ease-out) both }
.sd-note { color:var(--muted); font-size:11px; margin-top:8px }
@media(max-width:1150px) { .session-table-heading,.session-row { grid-template-columns:100px minmax(0,1fr) 65px 140px 34px } }
@media(max-width:960px) { .session-row { grid-template-columns:95px minmax(0,1fr) 65px 34px } .session-synced { grid-column:2/-1; grid-row:2 } }
@media(max-width:700px) { .session-row { grid-template-columns:1fr 60px 34px } .session-date,.session-synced { grid-column:1/-1 } .sessions-tools { width:100% } .view-switch { width:100% } .view-switch button { flex:1 } }
/* Next task on the home screen and after a round. */
.home-next { max-width:640px; margin:16px auto 0; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 16px 14px 18px; background:var(--paper); border:1px solid var(--stroke); border-radius:14px; animation:todo-in .35s var(--ease-out) both }
.home-next>div { min-width:0; display:flex; flex-direction:column; gap:2px }
.home-next span { color:var(--muted); font-size:11px }
.home-next strong { font-size:15px; font-weight:550; overflow-wrap:anywhere }
.home-next small { color:#8d8d99; font-size:11px }
.home-next.is-priority { border-color:#6b2f3a; background:linear-gradient(120deg,#2a1a20,var(--paper) 60%) }
.home-next.is-priority span { color:#ffb4bd }
.home-next svg { width:14px; height:14px }
.next-task-start { width:100%; margin-top:14px; white-space:normal; text-align:center }

/* To-do: priority, rename, yesterday. */
.todo-star.todo-icon[aria-pressed="true"] { opacity:1; color:#ffb547 }
.todo-star[aria-pressed="true"] svg { fill:currentColor }
.todo-row.is-priority .task-title { color:#fff }
.todo-row.is-priority::before { content:""; position:absolute; left:-2px; top:12px; bottom:12px; width:3px; border-radius:3px; background:#ffb547 }
.todo-title-edit { flex:1; min-width:0; font:500 15px var(--font-ui); color:var(--ink); background:var(--field); border:1px solid #7a3a44; border-radius:8px; padding:6px 8px; outline:none }
.todo-yesterday { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; padding:10px 14px; border:1px dashed #4a4a55; border-radius:12px; color:#c9c9d3; font-size:13px; animation:todo-in .3s var(--ease-out) both }
.todo-yesterday .text-button { color:#ffb4bd; font-weight:550 }

/* Réglages extras. */
.settings-fields { display:flex; flex-wrap:wrap; gap:16px 28px; margin-bottom:16px }
.day-settings .settings-fields label { margin-bottom:8px }
.settings-check { display:flex !important; align-items:center; gap:8px; color:#d8d8e0 !important; cursor:pointer }
.settings-check input { width:16px; height:16px; margin:0; accent-color:var(--red) }
.settings-shortcuts { color:var(--muted); font-size:12px; line-height:2; margin:12px 0 0 !important }
.settings-shortcuts strong { color:#d8d8e0; font-weight:550 }
kbd { font:600 10px var(--font-ui); padding:2px 6px; border:1px solid #4a4a55; border-bottom-width:2px; border-radius:5px; background:#222228; color:#e5e5ec }

/* Progression: the day at a glance. */
.day-review { margin:0 0 22px; padding:20px 22px; background:var(--paper); border:1px solid var(--stroke); border-radius:14px }
.day-review h2 { font-size:15px; margin-bottom:14px }
.day-review-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px }
.day-review-grid span { display:block; color:var(--muted); font-size:11px }
.day-review-grid strong { font-size:22px; font-weight:600; font-variant-numeric:tabular-nums }
.day-review p { color:#c9c9d3; font-size:12px; margin-top:4px }
@media(max-width:700px) { .day-review-grid { grid-template-columns:repeat(2,minmax(0,1fr)) } .home-next { margin-inline:0 } }
.backup-title { font-size:13px; font-weight:600; margin:22px 0 8px }
.backup-list { list-style:none; margin:0; padding:0; font-size:12px; color:var(--muted) }
.backup-list li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--stroke); text-transform:capitalize }
.backup-list li:first-child { border-top:0 }
.backup-list .text-button { text-transform:none; color:#ffb4bd }
.agenda-block.compact { flex-direction:row; align-items:center; gap:5px; padding-block:2px }
.agenda-block.compact strong { flex:1; min-width:0 }
.agenda-block.compact small { white-space:nowrap }
/* Install and update. */
.install-chip { display:flex; align-items:center; gap:6px; margin-left:auto; background:#2a1a20; border:1px solid #6b2f3a; color:#ffd3d7; padding:7px 12px; border-radius:7px; font-size:11px; font-weight:550 }
.install-chip svg { width:13px; height:13px; transform:rotate(90deg) }
.install-chip:hover { background:#3b222a }
.update-banner { display:flex; align-items:center; gap:12px; margin:14px 0 0; padding:10px 12px 10px 16px; border-radius:12px; background:linear-gradient(110deg,#3b1d25,#221d24); border:1px solid #6b2f3a; font-size:13px; animation:todo-in .35s var(--ease-out) both }
.update-banner>span:nth-child(2) { flex:1 }
.update-banner svg { width:16px; height:16px; color:#ff939a }
.app-settings { margin-bottom:22px }
.app-version { color:var(--muted); font-size:11px }
@media(max-width:700px) { .install-chip { padding:6px 9px } .update-banner { flex-wrap:wrap } .update-banner .primary-button { width:100% } }
/* Pairing a device with a code. */
.pair-dialog { width:min(420px,calc(100% - 32px)) }
.pair-dialog[open] { animation:pop-in .2s var(--ease-out) }
.pair-dialog p { color:var(--muted); font-size:13px; line-height:1.6 }
.pair-dialog[data-pair-mode="show"] .pair-enter,.pair-dialog[data-pair-mode="enter"] .pair-show { display:none }
.pair-code { display:block; margin:18px 0 10px; padding:14px; text-align:center; font:600 34px ui-monospace,Consolas,monospace; letter-spacing:.18em; background:#1b1b20; border:1px solid #3a3a44; border-radius:12px }
.pair-show small,.pair-error { display:block; color:var(--muted); font-size:12px; min-height:18px }
.pair-error { color:#ff939a; margin-top:6px }
#pair-input { width:100%; margin-top:14px; padding:14px; font:600 24px ui-monospace,Consolas,monospace; letter-spacing:.14em; text-align:center; text-transform:uppercase; color:var(--ink); background:#1b1b20; border:1px solid #4a4a55; border-radius:12px; outline:none }
#pair-input:focus { border-color:#f37882 }
.pair-dialog .dialog-actions { justify-content:space-between; align-items:center }
