:root:not(.dark){--bg:#ffffff}html{background:var(--bg)}
.theme-toggle{min-height:36px;padding:7px 10px;color:var(--text);gap:6px}
.theme-toggle .icon{width:16px;height:16px}
.phone-brand .theme-toggle{font-size:10px;min-height:32px;width:auto;padding:5px 7px}
.phone-brand .theme-toggle>span{display:inline}
.dark{--blue:#86b5ff;--teal:#6ad7b7;--orange:#e8b45d;--red:#f3a4ad}
.dark .metric-icon,.dark .project-icon{color:var(--blue)}
.dark .metric-icon.teal,.dark .project-icon.teal{color:var(--teal)}
.dark .metric-icon.orange,.dark .project-icon.peach{background:var(--orange-soft);color:var(--orange)}
.dark .live-time,.dark .live-chip{color:var(--teal)}
.dark .live-time.idle{color:var(--muted)}
.dark .badge.rejected,.dark .badge.voided{background:#482b34;color:#ffb0b4}
.dark .info-banner.orange{color:#efc78d;border-color:#725631}
.dark .legend i.pale,.dark .chart-stack{background:#49688b}
.dark .button.primary{color:#fff;border-color:#1768f2}
.dark .phone-task .icon-button{color:var(--blue)}
/* Illuminate only the transparent logo's wordmark in dark mode. */
.transparent-logo{display:inline-block;position:relative;aspect-ratio:3;width:100%;line-height:0;flex-shrink:0}
.transparent-logo img{display:block;width:100%;height:100%;object-fit:contain;background:none!important;border-radius:0!important}
.logo-lit{display:none;position:absolute;inset:0;background:#e1eaf2;mask:url('/images/tick-tally-logo.png') center/100% 100% no-repeat;clip-path:inset(0 0 0 28.5%)}
.dark .logo-lit{display:block}
.boot-state .transparent-logo{width:min(300px,80vw)}
.brand>.transparent-logo{width:197px;max-width:100%;height:66px;top:-5px}
.brand>.transparent-logo img{position:static}
.dark .brand{background:none;border-radius:0}
.phone-brand>.transparent-logo{width:115px}
.phone-brand>.transparent-logo img{width:100%;height:100%}
.splash-preview{position:absolute;inset:0;z-index:5;background:var(--bg);background-image:radial-gradient(ellipse at 50% 46%,#075bee15,transparent 65%);display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:30px;overflow:hidden;animation:splash-exit .24s ease 3.2s forwards}
.splash-preview:before{content:"";position:absolute;border:1px solid var(--teal);opacity:.06;border-radius:50%;width:450px;height:450px;pointer-events:none;top:calc(50% - 180px)}
.splash-wordmark{width:290px;max-width:90%;position:relative;z-index:1;background:none;padding:0;margin-top:-12px;animation:splash-logo-arrive .5s ease both}
.splash-preview h3{font-size:17px;font-weight:500;letter-spacing:-.5px;position:relative;z-index:1;margin-top:-2px}
.splash-clock{position:relative;width:208px;height:208px;margin:35px 0 28px;filter:drop-shadow(0 14px 20px #075bee0b);animation:splash-clock-arrive .55s ease both}
.splash-clock svg{width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round}
.clock-halo{fill:var(--blue);fill-opacity:.025;stroke:none}
.clock-pulse{stroke:var(--blue);stroke-opacity:.1;stroke-width:1;animation:clock-beat 1s ease-out infinite}
.clock-face{fill:var(--surface);fill-opacity:.7;stroke:var(--line);stroke-width:1}
.clock-rim{stroke:url('#clock-rim');stroke-width:2;stroke-dasharray:553;animation:clock-rim 3.2s linear both}
.splash-clock .major{stroke:var(--text);stroke-opacity:.65;stroke-width:2}
.splash-clock .minor{stroke:var(--muted);stroke-opacity:.22;stroke-width:1}
.splash-clock :is(.major,.minor){stroke-linecap:butt}
.hour-hand{stroke:var(--text);stroke-width:5}
.minute-hand{stroke:var(--text);stroke-width:3}
.second-hand{stroke:var(--teal);stroke-width:1.8;transform-origin:104px 104px;transform:rotate(252deg);animation:clock-tick 3.2s steps(1,end) both}
.clock-center-glow{fill:var(--teal);fill-opacity:.15;stroke:none}
.clock-center{fill:var(--teal);stroke:none}
.clock-pin{fill:var(--bg);stroke:none}
.splash-caption{font-size:9px;font-weight:600;color:var(--muted);letter-spacing:2px}
.splash-loading{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin-top:18px}
.splash-dots{display:flex;align-items:center;gap:6px}
.splash-dots i{width:4px;height:4px;border-radius:50%;background:var(--teal);opacity:.22;animation:clock-dot 3s steps(1,end) infinite}
.splash-dots i:nth-child(2){animation-delay:1s}
.splash-dots i:nth-child(3){animation-delay:2s}
.splash-skip{position:absolute;bottom:18px;right:15px;min-height:44px}
.splash-demo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}
@keyframes splash-logo-arrive{from{transform:translateY(8px)}to{transform:translateY(0)}}
@keyframes splash-clock-arrive{from{transform:scale(.97)}to{transform:scale(1)}}
@keyframes clock-tick{0%{transform:rotate(252deg)}31.25%{transform:rotate(258deg)}62.5%{transform:rotate(264deg)}93.75%,100%{transform:rotate(270deg)}}
@keyframes clock-beat{from{stroke-opacity:.16}to{stroke-opacity:.06}}
@keyframes clock-rim{from{stroke-dashoffset:553}to{stroke-dashoffset:0}}
@keyframes clock-dot{0%{opacity:1}33.33%,100%{opacity:.22}}
@keyframes splash-exit{to{opacity:0}}
@media(max-width:760px){.topbar-right>.theme-toggle{display:inline-flex}.theme-toggle{width:36px;min-height:36px;padding:7px}.theme-toggle>span{display:none}}
@media(max-width:480px){.topbar-right>.preview-pill{display:none}}
@media(prefers-reduced-motion:reduce){.splash-preview,.splash-clock,.splash-wordmark,.clock-pulse,.clock-rim,.second-hand,.splash-dots i{animation:none}}

/* A stable switch hit area; only the thumb moves while the theme updates immediately. */
.theme-toggle.button,.auth-header .theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:64px;min-width:64px;min-height:44px;padding:6px;border:0;background:transparent;box-shadow:none;flex-shrink:0}
.theme-toggle .theme-switch-track{display:block;position:relative;width:52px;height:30px;border:1px solid var(--line);border-radius:20px;background:var(--blue-soft);color:var(--muted)}
.theme-switch-track .icon{position:absolute;top:6px;width:16px;height:16px;z-index:1}
.theme-switch-track .theme-sun{left:5px;color:#846025}.theme-switch-track .theme-moon{right:5px;color:var(--muted)}
.theme-switch-thumb{position:absolute;left:2px;top:2px;width:24px;height:24px;background:#fff;border-radius:50%;box-shadow:0 1px 4px #071d2d26;transition:transform .12s ease-out}
.theme-toggle[aria-checked=true] .theme-switch-track{background:#284b70;border-color:#436580}
.theme-toggle[aria-checked=true] .theme-switch-thumb{transform:translateX(22px);background:#dceaff}
.theme-toggle[aria-checked=true] .theme-moon{color:#183952}
@media(prefers-reduced-motion:reduce){.theme-switch-thumb{transition:none}}


