:root { --ink:#171514; --muted:#7e7872; --paper:#fbfaf6; --paper-soft:#f3f0ea; --track:#111; --accent:#f47d4f; --accent-soft:#ffb08a; --quiet:rgba(255,255,255,.72); }
* { box-sizing:border-box; }
html,body { width:100%; height:100%; margin:0; overflow:hidden; background:transparent; }
body { font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); user-select:none; }
button,input { border:0; padding:0; font:inherit; color:inherit; background:transparent; }
button { cursor:pointer; }
.desktop { position:relative; width:100vw; height:100vh; min-width:240px; min-height:210px; overflow:hidden; background:radial-gradient(circle at 18% 18%,rgba(255,255,255,.32),transparent 21%),linear-gradient(135deg,rgba(245,242,236,.72),rgba(234,239,237,.62)); }
.desktop-app .desktop { background:transparent; }
.widget { position:absolute; left:28px; top:26px; width:220px; min-height:184px; padding:15px 16px 14px; border:2px solid rgba(23,21,20,.08); border-radius:38px 34px 42px 31px/34px 39px 32px 38px; background:linear-gradient(180deg,rgba(255,255,255,.84),rgba(247,245,239,.74)),var(--quiet); box-shadow:0 18px 34px rgba(55,48,42,.11); backdrop-filter:blur(13px); cursor:grab; touch-action:none; transition:width 280ms ease,min-height 280ms ease,transform 220ms ease,box-shadow 220ms ease,filter 220ms ease; }
.desktop-app .widget { left:14px; top:12px; }
.desktop-app .widget__handle { cursor:grab; -webkit-app-region:drag; }
.desktop-app .widget button,.desktop-app .widget input,.desktop-app .widget__time { -webkit-app-region:no-drag; }
.widget::before { content:""; position:absolute; inset:9px 11px auto; height:49px; border-radius:999px; background:rgba(239,238,234,.9); z-index:-1; }
.widget::after { content:""; position:absolute; left:32px; right:28px; bottom:14px; height:14px; border-radius:50%; background:rgba(23,21,20,.06); filter:blur(12px); z-index:-2; }
.widget:hover,.widget:focus-within { filter:brightness(1.015); box-shadow:0 20px 38px rgba(55,48,42,.14); }
.widget[data-expanded="true"] { width:306px; min-height:342px; }
.widget[data-view="tasks"][data-expanded="true"] { min-height:432px; }
.widget[data-state="running"] { animation:breathe 3600ms ease-in-out infinite; }
.widget[data-state="complete"] { animation:completeGlow 1700ms ease-in-out 2; }
.widget.is-dragging { cursor:grabbing; transition:none; transform:scale(1.015); }
.widget__handle { position:absolute; inset:0; border-radius:inherit; }
.widget__pin,.widget__toggle { position:absolute; display:grid; place-items:center; width:26px; height:26px; border:2px solid var(--track); background:var(--paper); cursor:pointer; transition:transform 180ms ease,background 180ms ease,opacity 180ms ease; z-index:4; }
.widget__pin { right:19px; top:14px; border-radius:50%; }
.widget__pin span { width:8px; height:8px; border-radius:50%; background:var(--accent); transition:transform 180ms ease,opacity 180ms ease,background 180ms ease; }
.widget[data-focus-mode="free"] .widget__pin span { background:var(--muted); }
.widget__pin:active span { transform:scale(.78); opacity:.72; }
.widget__toggle { right:16px; bottom:14px; border-radius:15px 14px 15px 13px; opacity:.82; }
.widget__toggle span,.widget__toggle span::before { content:""; position:absolute; width:10px; height:2px; border-radius:999px; background:var(--track); }
.widget__toggle span::before { transform:rotate(90deg); }
.widget[data-expanded="true"] .widget__toggle span::before { transform:rotate(0); }
.widget__pin:hover,.widget__toggle:hover { transform:scale(1.08); background:#fffaf5; }
.widget__header { position:relative; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; min-height:50px; padding-right:33px; }
.widget__meta { display:grid; gap:2px; }
.widget__label { font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.widget__time { width:max-content; border-radius:999px; color:var(--ink); font-size:29px; font-weight:760; line-height:1; letter-spacing:0; cursor:pointer; transition:color 170ms ease,transform 170ms ease; }
.widget__time:hover { color:#d85f3a; transform:translateY(-1px); }
.widget__view-switch { display:none; gap:2px; margin:2px 3px 0 auto; padding:3px; border-radius:14px; background:rgba(239,238,234,.86); }
.widget[data-expanded="true"] .widget__view-switch { display:flex; }
.view-switch__button { height:21px; padding:0 7px; border-radius:10px; color:var(--muted); font-size:9px; font-weight:850; letter-spacing:.07em; }
.view-switch__button.is-active { color:var(--ink); background:var(--paper); box-shadow:0 1px 2px rgba(23,21,20,.08); }
.view { position:relative; z-index:1; }
.current-task { display:none; width:100%; margin:1px 0 1px; padding:7px 10px 6px; border:1.5px solid rgba(23,21,20,.13); border-radius:14px 17px 15px 13px; text-align:left; background:rgba(255,255,255,.44); }
.widget[data-expanded="true"] .current-task { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:7px; }
.current-task:hover { border-color:rgba(23,21,20,.38); background:#fffaf5; }
.current-task__eyebrow { color:var(--accent); font-size:9px; font-weight:900; letter-spacing:.1em; }
.current-task__name { overflow:hidden; font-size:12px; font-weight:780; white-space:nowrap; text-overflow:ellipsis; }
.current-task__time { color:var(--muted); font-size:10px; font-weight:700; white-space:nowrap; }
.current-task.is-empty .current-task__name { color:var(--muted); font-weight:650; }
.curveButton { position:relative; z-index:1; display:block; width:100%; height:96px; margin:-2px 0 0; cursor:pointer; }
.curve { width:100%; height:100%; overflow:visible; }
.curve__track,.curve__fill,.curve__pulse { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.curve__track { stroke:var(--track); stroke-width:16; }
.curve__fill { stroke:var(--accent); stroke-width:18; stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset 380ms linear; }
.curve__pulse { stroke:var(--accent-soft); stroke-width:20; opacity:0; }
.curve__point { fill:var(--paper); stroke:var(--track); stroke-width:5; filter:drop-shadow(0 3px 4px rgba(23,21,20,.18)); transition:transform 220ms ease,fill 220ms ease; }
.widget[data-state="running"] .curve__pulse { animation:curvePulse 2400ms ease-in-out infinite; }
.widget[data-state="running"] .curve__point { fill:#fff9f4; transform-origin:center; animation:pointBreath 1900ms ease-in-out infinite; }
.widget[data-state="paused"] .curve__fill { stroke:#bdb4aa; }
.widget__body { display:grid; gap:10px; margin-top:-2px; }
.widget__status { display:none; min-height:18px; color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.widget[data-expanded="true"] .widget__status { display:block; }
.controls { display:grid; gap:10px; }
.duration { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; max-height:0; overflow:hidden; opacity:0; transform:translateY(-4px); transition:max-height 220ms ease,opacity 180ms ease,transform 180ms ease; }
.widget[data-expanded="true"] .duration { max-height:34px; opacity:1; transform:translateY(0); }
.duration__chip { min-width:0; height:28px; border:2px solid rgba(23,21,20,.18); border-radius:16px 14px 16px 13px; color:#4c4640; font-size:11px; font-weight:800; background:rgba(255,255,255,.55); transition:transform 160ms ease,background 160ms ease,border-color 160ms ease; }
.duration__chip:hover,.duration__chip.is-active { border-color:var(--track); color:var(--ink); background:#fff7f1; }
.duration__chip:hover { transform:translateY(-1px); }
.actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding-right:34px; }
.action { display:inline-flex; align-items:center; justify-content:center; height:34px; min-width:0; padding:0 8px; border:2px solid var(--track); border-radius:18px 15px 18px 14px; font-family:inherit; font-size:11px; font-weight:850; line-height:1; letter-spacing:.02em; text-align:center; vertical-align:middle; background:var(--paper); transition:transform 150ms ease,background 150ms ease,opacity 150ms ease; }
.action:hover { transform:translateY(-1px); background:#fff9f4; }
.action:disabled { opacity:.42; cursor:default; transform:none; }
.action.is-primary { background:var(--accent); color:#1f1713; }
.action--complete span { display:inline-block; margin-right:3px; font:inherit; line-height:1; }
.widget[data-expanded="false"] .current-task,.widget[data-expanded="false"] .widget__status,.widget[data-expanded="false"] .duration,.widget[data-expanded="false"] #pauseButton,.widget[data-expanded="false"] #resetButton,.widget[data-expanded="false"] #completeCurrentButton { display:none !important; }
.widget[data-expanded="false"] .actions { display:flex; width:100%; grid-template-columns:none; padding-right:0; margin:4px 0 0; justify-content:center; }
.widget[data-expanded="false"] .action { flex:0 0 76px; width:76px; min-width:76px; height:34px; padding:0 14px; white-space:nowrap; writing-mode:horizontal-tb; text-orientation:mixed; }
.widget[data-view="tasks"] .view--focus { display:none; }
.widget[data-view="focus"] .view--tasks { display:none; }
.widget[data-focus-mode="free"] .current-task,.widget[data-focus-mode="free"] #completeCurrentButton { display:none; }
.widget[data-focus-mode="free"] .actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.widget[data-expanded="false"][data-focus-mode="free"] .actions { display:flex; grid-template-columns:none; }
.view--tasks { padding-top:4px; }
.task-queue__header { display:flex; justify-content:space-between; align-items:center; margin-bottom:7px; color:var(--muted); font-size:10px; font-weight:850; letter-spacing:.08em; }
.task-stack { position:relative; height:229px; }
.task-card { position:absolute; left:0; right:0; top:0; z-index:1; transition:top 330ms cubic-bezier(.2,.8,.25,1),opacity 260ms ease; }
.task-card[data-slot="0"] { top:0; z-index:3; opacity:1; }
.task-card[data-slot="1"] { top:74px; z-index:2; opacity:.78; }
.task-card[data-slot="2"] { top:138px; z-index:1; opacity:.52; }
.task-card__paper { display:grid; grid-template-columns:27px minmax(0,1fr) 22px; align-items:center; gap:7px; min-height:74px; padding:10px 10px 10px 11px; border:2px solid var(--track); border-radius:19px 16px 20px 15px; background:var(--paper); box-shadow:0 7px 12px rgba(23,21,20,.06); transform-origin:top center; transition:transform 330ms cubic-bezier(.2,.8,.25,1),background 220ms ease,box-shadow 220ms ease; }
.task-card[data-slot="1"] .task-card__paper { transform:scale(.93); }
.task-card[data-slot="2"] .task-card__paper { transform:scale(.86); }
.task-card:hover .task-card__paper { background:#fffaf4; }
.task-card[data-slot="0"] .task-card__paper { box-shadow:0 10px 16px rgba(23,21,20,.1); }
.task-card__check { display:grid; place-items:center; width:23px; height:23px; border:2px solid var(--track); border-radius:50%; background:#fffdfa; font-size:14px; font-weight:900; }
.task-card__check:hover { background:#fff1e9; }
.task-card__details { min-width:0; display:grid; gap:3px; }
.task-card__role { color:var(--accent); font-size:9px; font-weight:900; letter-spacing:.09em; }
.task-card__title { width:100%; outline:0; font-size:13px; font-weight:780; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.task-card__title:focus { border-bottom:1px solid var(--ink); }
.task-card__time { color:var(--muted); font-size:10px; font-weight:700; }
.task-card__remove { align-self:start; display:grid; place-items:center; width:20px; height:20px; border-radius:50%; color:var(--muted); font-size:17px; line-height:1; opacity:.5; }
.task-card__remove:hover { opacity:1; color:var(--ink); background:var(--paper-soft); }
.task-card[data-slot="1"] .task-card__remove,.task-card[data-slot="2"] .task-card__remove { opacity:0; pointer-events:none; }
.task-queue__empty { height:229px; padding-top:52px; color:var(--muted); font-size:13px; text-align:center; }
.task-queue__empty p { margin:0; }
.task-composer { display:grid; grid-template-columns:1fr 30px; gap:7px; align-items:center; margin-top:2px; padding-right:34px; }
.task-composer input { width:100%; height:31px; padding:0 11px; border:1.5px solid rgba(23,21,20,.18); border-radius:14px 12px 15px 12px; outline:0; background:rgba(255,255,255,.5); font-size:11px; font-weight:650; }
.task-composer input:focus { border-color:var(--track); background:var(--paper); }
.task-composer button { display:grid; place-items:center; width:30px; height:30px; border:2px solid var(--track); border-radius:50%; font-size:19px; font-weight:450; }
.task-composer button:disabled,.task-composer input:disabled { opacity:.38; cursor:default; }
.task-history { margin-top:8px; padding-right:34px; }
.task-history__toggle { display:grid; grid-template-columns:minmax(0,1fr) auto 14px; gap:7px; align-items:center; width:100%; min-height:32px; padding:0 9px; border:1.5px solid rgba(23,21,20,.14); border-radius:13px 11px 14px 12px; background:rgba(255,255,255,.42); color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.task-history__toggle:hover { border-color:rgba(23,21,20,.32); background:rgba(255,255,255,.66); }
.task-history__heading { overflow:hidden; font-size:10px; font-weight:850; letter-spacing:.06em; text-overflow:ellipsis; white-space:nowrap; }
.task-history__heading > span { color:var(--accent); font-size:12px; }
.task-history__count { color:var(--muted); font-size:9px; font-weight:700; white-space:nowrap; }
.task-history__arrow { width:7px; height:7px; border-top:1.5px solid var(--ink); border-right:1.5px solid var(--ink); transform:rotate(45deg); }
.history-dialog { position:absolute; inset:0; z-index:24; display:grid; place-items:center; opacity:0; transition:opacity 180ms ease; }
.history-dialog[hidden] { display:none; }
.history-dialog.is-visible { opacity:1; }
.history-dialog__backdrop { position:absolute; inset:0; background:rgba(23,21,20,.2); cursor:default; }
.history-dialog__surface { position:relative; z-index:1; display:flex; flex-direction:column; width:calc(100% - 18px); max-height:calc(100% - 20px); min-height:0; padding:11px; border:2px solid rgba(23,21,20,.15); border-radius:24px 20px 25px 19px; background:#fffdf9; box-shadow:0 16px 30px rgba(23,21,20,.22); transform:translateY(7px) scale(.985); transition:transform 190ms ease; }
.history-dialog.is-visible .history-dialog__surface { transform:translateY(0) scale(1); }
.history-dialog__header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:1px 1px 9px; border-bottom:1px solid rgba(23,21,20,.1); }
.history-dialog__header > div { display:flex; align-items:baseline; gap:6px; min-width:0; }
.history-dialog__header span { color:var(--accent); font-size:14px; }
.history-dialog__header strong { font-size:12px; font-weight:850; letter-spacing:.05em; }
.history-dialog__header small { color:var(--muted); font-size:9px; font-weight:700; white-space:nowrap; }
.history-dialog__close { display:grid; place-items:center; flex:0 0 auto; width:25px; height:25px; border:1.5px solid rgba(23,21,20,.18); border-radius:50%; font-size:17px; line-height:1; }
.history-dialog__close:hover { border-color:var(--track); background:#fff6ef; }
.completed-list { display:grid; gap:5px; min-height:0; margin-top:7px; padding:0 7px 2px 1px; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; scrollbar-width:thin; scrollbar-color:rgba(23,21,20,.42) transparent; }
.history-dialog__list { flex:1 1 auto; max-height:none; }
.completed-list::-webkit-scrollbar { width:5px; }
.completed-list::-webkit-scrollbar-track { margin:4px 0; background:rgba(23,21,20,.06); border-radius:999px; }
.completed-list::-webkit-scrollbar-thumb { border-radius:999px; background:rgba(23,21,20,.4); }
.task-history__day { margin:3px 2px 0; color:var(--muted); font-size:9px; font-weight:850; letter-spacing:.07em; }
.completed-item { display:grid; gap:2px; min-width:0; padding:7px 8px; border:1px solid rgba(23,21,20,.08); border-radius:11px 10px 12px 10px; background:rgba(255,255,255,.48); }
.completed-item strong { overflow:hidden; color:var(--ink); font-size:10px; font-weight:780; text-overflow:ellipsis; white-space:nowrap; }
.completed-item strong::first-letter { color:var(--accent); }
.completed-item span { color:var(--muted); font-size:9px; font-weight:650; }
.task-history__empty { margin:9px 4px; color:var(--muted); font-size:10px; font-weight:650; text-align:center; }
.completion-toast { position:absolute; right:18px; bottom:47px; z-index:8; display:flex; align-items:center; gap:8px; min-width:164px; padding:9px 11px; border:2px solid var(--track); border-radius:15px 17px 14px 16px; background:#fffaf5; box-shadow:0 10px 18px rgba(23,21,20,.12); transform:translateY(8px); opacity:0; transition:opacity 200ms ease,transform 230ms ease; pointer-events:none; }
.completion-toast.is-visible { transform:translateY(0); opacity:1; }
.completion-toast > span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:var(--ink); background:var(--accent); font-weight:900; }
.completion-toast div { display:grid; gap:2px; }
.completion-toast strong { font-size:11px; letter-spacing:.02em; }
.completion-toast small { color:var(--muted); font-size:10px; font-weight:700; }
.onboarding { position:absolute; inset:0; z-index:20; pointer-events:none; opacity:0; transition:opacity 180ms ease; }
.onboarding.is-visible { opacity:1; }
.onboarding.is-final .onboarding__spotlight { opacity:0; }
.onboarding__spotlight { position:absolute; z-index:1; border:2px solid var(--accent); border-radius:16px; box-shadow:0 0 0 100vmax rgba(23,21,20,.25),0 0 0 4px rgba(244,125,79,.12); pointer-events:none; transition:left 260ms ease,top 260ms ease,width 260ms ease,height 260ms ease,border-radius 260ms ease; }
.onboarding__card { position:absolute; z-index:2; display:grid; gap:4px; min-height:88px; padding:12px 13px 11px; border:2px solid var(--track); border-radius:16px 18px 15px 17px; background:#fffaf5; box-shadow:0 12px 22px rgba(23,21,20,.16); pointer-events:auto; transform:translateY(5px); transition:left 260ms ease,top 260ms ease,transform 220ms ease; }
.onboarding.is-visible .onboarding__card { transform:translateY(0); }
.onboarding__step { color:var(--accent); font-size:9px; font-weight:900; letter-spacing:.08em; }
.onboarding__title { padding-right:26px; font-size:13px; font-weight:820; line-height:1.2; }
.onboarding__copy { min-height:13px; color:var(--muted); font-size:10px; font-weight:650; line-height:1.25; }
.onboarding__next { justify-self:start; height:25px; margin-top:4px; padding:0 11px; border:2px solid var(--track); border-radius:14px 12px 14px 11px; font-family:inherit; font-size:10px; font-weight:850; line-height:1; background:var(--accent); }
.onboarding__next:hover { background:#ff966b; }
.onboarding__skip { position:absolute; top:9px; right:10px; color:var(--muted); font-family:inherit; font-size:10px; font-weight:750; line-height:1; }
.onboarding__skip:hover { color:var(--ink); }
@keyframes breathe { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes pointBreath { 0%,100% { transform:scale(.94); } 50% { transform:scale(1.08); } }
@keyframes curvePulse { 0%,100% { opacity:0; stroke-width:18; } 45% { opacity:.34; stroke-width:24; } }
@keyframes completeGlow { 0%,100% { box-shadow:0 18px 34px rgba(55,48,42,.11); } 50% { box-shadow:0 20px 42px rgba(244,125,79,.28); } }
@media (max-width:340px),(max-height:260px) { .desktop { min-width:0; min-height:0; } .widget,.widget[data-expanded="true"] { left:10px; top:10px; width:min(306px,calc(100vw - 20px)); } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:1ms !important; animation-iteration-count:1 !important; transition-duration:1ms !important; } }
