:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111827;background:radial-gradient(circle at 8% 0%,rgb(78 115 223 / .12),transparent 30%),radial-gradient(circle at 96% 8%,rgb(24 159 137 / .12),transparent 28%),linear-gradient(180deg,#f7f9fc,#eef3f7);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:40px;border:1px solid #d7dee8;border-radius:8px;color:#1f2937;background:#fff;box-shadow:0 1px 1px #0f172a0a;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}button:disabled{cursor:not-allowed;opacity:.45}button:not(:disabled):hover{border-color:#aab6c5;box-shadow:0 8px 18px #0f172a14;transform:translateY(-1px)}.auth-shell,.loading-screen{display:grid;min-height:100vh;place-items:center;padding:24px}.auth-panel{width:min(440px,100%);padding:34px;border:1px solid rgb(215 224 235 / .9);border-radius:12px;background:#ffffffeb;box-shadow:0 28px 90px #0f172a24;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand-mark{width:64px;height:64px;margin-bottom:24px}.auth-panel h1,.title-block h1,.habit-panel h2,.wheel-header h2{margin:0}.auth-panel h1{font-size:2rem;letter-spacing:0}.auth-panel p{margin:10px 0 24px;color:#5b6675;line-height:1.5}.auth-form{display:grid;gap:10px}.auth-form label{color:#283343;font-weight:700}.auth-form input,.name-input{width:100%;min-height:42px;border:1px solid #cfd8e5;border-radius:8px;padding:0 12px;color:#111827;background:#fff;outline:none;transition:border-color .14s ease,box-shadow .14s ease}.auth-form input:focus,.name-input:focus{border-color:#4e73df;box-shadow:0 0 0 3px #4e73df29}.auth-form button,.primary-button{color:#fff;border-color:#3f63ce;background:linear-gradient(180deg,#5277e7,#365bc4)}.auth-form button{margin-top:8px}.notice{margin-top:16px;padding:12px;border:1px solid #c9d9c7;border-radius:8px;color:#2f5b34;background:#f2f9f0;line-height:1.4}.notice.danger{border-color:#f1c4c1;color:#991f1f;background:#fff2f1}.notice.compact{margin:0;font-size:.9rem}.full-width{width:100%}.app-shell{width:min(1440px,100%);margin:0 auto;padding:24px}.top-bar,.range-toolbar,.summary-strip,.panel-heading,.habit-row,.row-actions,.top-actions,.title-block{display:flex;align-items:center}.top-bar{justify-content:space-between;gap:18px;margin-bottom:18px;padding:14px 16px;border:1px solid rgb(215 224 235 / .86);border-radius:14px;background:#ffffffdb;box-shadow:0 12px 36px #0f172a14;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.title-block{min-width:0;gap:12px}.title-block h1{font-size:1.3rem;font-weight:850;letter-spacing:0}.title-block p,.panel-heading p,.summary-strip p,.wheel-header p{margin:0;color:#64748b}.app-icon{width:46px;height:46px;flex:0 0 auto}.top-actions{gap:8px}.top-actions button,.row-actions button{width:40px;padding:0}.range-toolbar{flex-wrap:wrap;gap:8px;margin-bottom:16px;padding:8px;border:1px solid #dbe3ee;border-radius:12px;background:#ffffffbd}.timeframe-control,.date-control{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid #d7dee8;border-radius:8px;color:#334155;background:#fff;font-weight:800}.timeframe-control select,.date-control input{min-height:28px;border:0;color:#111827;background:transparent;font-weight:750;outline:none}.date-control input{width:138px}.dashboard-grid{display:block;margin-bottom:18px}.wheel-column{min-width:0}.day-timeline{display:grid;gap:14px;margin-bottom:16px;padding:18px;border:1px solid #dbe3ee;border-radius:14px;background:#ffffffe6;box-shadow:0 18px 48px #0f172a14;overflow:hidden}.timeline-topline,.timeline-metrics,.timeline-filters,.timeline-hours,.rail-row{display:grid;align-items:center}.timeline-topline{grid-template-columns:minmax(180px,1fr) auto;gap:16px}.section-kicker{margin:0 0 4px;color:#4e73df;font-size:.76rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.timeline-topline h2{margin:0;color:#111827;font-size:1.08rem;font-weight:880;letter-spacing:0}.day-switcher{display:flex;max-width:100%;gap:5px;overflow-x:auto;padding-bottom:2px}.day-switcher button{display:grid;flex:0 0 42px;min-height:48px;gap:1px;padding:5px;border-radius:10px}.day-switcher button.active{border-color:#4e73df;color:#1747bd;background:#eef5ff;box-shadow:inset 0 0 0 1px #4e73df24}.day-switcher span{color:#64748b;font-size:.72rem;font-weight:800}.day-switcher strong{font-size:.95rem;font-weight:900}.timeline-metrics{grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #e4ebf4;border-radius:12px;background:linear-gradient(180deg,#fff,#f9fbfe)}.timeline-metrics div{display:grid;grid-template-columns:auto 1fr;gap:2px 9px;min-width:0;padding:14px;border-right:1px solid #e4ebf4}.timeline-metrics div:last-child{border-right:0}.timeline-metrics svg{grid-row:span 2;align-self:center;color:#4e73df}.timeline-metrics span{color:#111827;font-size:1.1rem;font-weight:900;letter-spacing:0}.timeline-metrics p{margin:0;overflow:hidden;color:#64748b;font-size:.78rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.timeline-filters{grid-template-columns:repeat(4,minmax(0,auto));justify-content:start;gap:7px}.timeline-filters button{min-height:34px;padding:0 12px;color:#4b5b72;font-size:.82rem;font-weight:820;text-transform:capitalize}.timeline-filters button.active{border-color:#4e73df;color:#1747bd;background:#eef5ff}.chrono-rail{position:relative;overflow-x:auto;padding-bottom:2px}.timeline-hours{grid-template-columns:190px minmax(760px,1fr);gap:16px;min-width:980px;padding:4px 0 8px}.hour-track{position:relative;min-height:32px;border-bottom:1px solid #dfe7f1}.hour-track:before{position:absolute;inset:auto 0 0;height:9px;background:repeating-linear-gradient(90deg,#d9e3f0 0,#d9e3f0 1px,transparent 1px,transparent calc(100% / 34));content:""}.hour-track span{position:absolute;bottom:13px;transform:translate(-50%);color:#64748b;font-size:.78rem;font-weight:850;white-space:nowrap}.rail-rows{position:relative;min-width:980px}.rail-row{grid-template-columns:190px minmax(760px,1fr);gap:16px;min-height:66px;border-bottom:1px solid #edf2f7}.rail-row:last-child{border-bottom:0}.rail-label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-width:0}.habit-dot{width:23px;height:23px;border:4px solid;border-radius:999px;background:#fff}.rail-label strong,.rail-label small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail-label strong{color:#1f2937;font-size:.92rem;font-weight:880}.rail-label small{margin-top:2px;color:#64748b;font-size:.78rem;font-weight:700}.rail-track{position:relative;min-height:66px;background-image:linear-gradient(90deg,rgb(205 216 231 / .72) 1px,transparent 1px),linear-gradient(180deg,transparent 0,transparent 100%);background-size:calc(100% / 17) 100%,100% 100%}.rail-event{--habit-color: #4e73df;position:absolute;top:13px;justify-content:flex-start;min-width:92px;min-height:40px;padding:0 12px;border-color:color-mix(in srgb,var(--habit-color) 36%,#dbe3ee);color:#243044;background:color-mix(in srgb,var(--habit-color) 11%,#ffffff);box-shadow:none}.rail-event.completed{border-color:color-mix(in srgb,var(--habit-color) 60%,#ffffff);background:color-mix(in srgb,var(--habit-color) 18%,#ffffff)}.rail-event.planned{border-style:dashed}.rail-event.missed{border-color:#f3b9bd;color:#9f1d2c;background:#fff1f3}.rail-event svg{flex:0 0 auto;color:var(--habit-color)}.rail-event.missed svg{color:#f04455}.rail-event span{display:grid;min-width:0;text-align:left}.rail-event strong,.rail-event small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail-event strong{font-size:.78rem;font-weight:900}.rail-event small{color:#64748b;font-size:.72rem;font-weight:780;text-transform:capitalize}.rail-event.missed small{color:#b42331}.current-time-line{position:absolute;z-index:2;top:0;bottom:0;width:2px;margin-left:206px;background:#2f6df6;pointer-events:none}.current-time-line:before,.current-time-line:after{position:absolute;left:50%;width:9px;height:9px;border-radius:999px;background:#2f6df6;content:"";transform:translate(-50%)}.current-time-line:before{top:0}.current-time-line:after{bottom:0}.current-time-line span{position:absolute;top:-30px;left:50%;min-width:74px;padding:5px 9px;border-radius:8px;color:#fff;background:#2f6df6;font-size:.76rem;font-weight:900;text-align:center;transform:translate(-50%)}.summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.summary-strip div{padding:14px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;box-shadow:0 8px 24px #0f172a0d}.summary-strip span{display:block;color:#111827;font-size:1.45rem;font-weight:850;letter-spacing:0}.wheel-stage,.habit-panel,.wheel-placeholder{border:1px solid #dbe3ee;border-radius:14px;background:#fff;box-shadow:0 18px 48px #0f172a14}.wheel-stage{display:grid;min-height:620px;place-items:center;overflow:hidden;padding:clamp(12px,2vw,26px)}.habit-wheel{display:block;width:min(100%,780px);aspect-ratio:1;cursor:grab;filter:url(#wheel-soft-shadow);touch-action:none;-webkit-user-select:none;user-select:none}.habit-wheel:active{cursor:grabbing}.wheel-backdrop{fill:#fffefe;stroke:#dfe6ee;stroke-width:1}.wheel-segment{opacity:1;outline:none;stroke:#fbfcfd;stroke-width:3.8;stroke-linejoin:round;transition:filter .12s ease,transform .12s ease;transform-origin:center;cursor:pointer}.wheel-segment:hover,.wheel-segment:focus-visible{filter:brightness(.98) saturate(1.15);transform:scale(1.006)}.wheel-segment.completed{opacity:1}.wheel-segment-labels{pointer-events:none}.wheel-segment-label-path{fill:none;stroke:none}.wheel-segment-label{dominant-baseline:middle;fill:#97a3b5;font-weight:800;letter-spacing:.15px;paint-order:stroke;stroke:#ffffffe6;stroke-linejoin:round;stroke-width:1.5px;text-anchor:middle}.wheel-segment-label textPath{dominant-baseline:middle}.habit-key{pointer-events:none}.habit-key-pill{filter:url(#label-soft-shadow);fill:#ffffffd1;stroke:#2e3e5738;stroke-width:1.1px}.habit-key-tint{fill-opacity:.2}.habit-key-accent{opacity:.9}.habit-key-row text{dominant-baseline:middle;fill:#263244;font-size:10.6px;font-weight:820;letter-spacing:.2px;paint-order:stroke;stroke:#fbfdfff0;stroke-linejoin:round;stroke-width:2px;text-anchor:end}.day-label{font-size:12px;font-weight:800;text-anchor:middle;dominant-baseline:middle;fill:#64748b}.day-label.compact{font-size:13px}.day-label.today{fill:#365bc4}.wheel-center{fill:#fff;stroke:#e3ebf5;stroke-width:1.6}.center-kicker,.center-title,.center-range{text-anchor:middle;dominant-baseline:middle}.center-kicker{font-size:18px;font-weight:850;fill:#365bc4}.center-title{font-size:30px;font-weight:900;fill:#111827}.center-range{font-size:12px;font-weight:750;fill:#64748b}.wheel-placeholder{display:grid;min-height:520px;place-items:center;color:#64748b}.habit-panel{display:grid;gap:14px;padding:16px}.panel-heading{justify-content:space-between;gap:12px;min-height:42px}.habit-panel.expanded .panel-heading{padding-bottom:10px;border-bottom:1px solid #edf2f7}.panel-toggle{justify-content:flex-start;min-width:0;height:auto;padding:0;border:0;background:transparent;box-shadow:none;color:#172033}.panel-toggle:hover{transform:none;box-shadow:none}.panel-toggle svg{flex:0 0 auto;transition:transform .14s ease}.habit-panel.expanded .panel-toggle svg{transform:rotate(180deg)}.panel-toggle span{display:grid;gap:2px;justify-items:start}.panel-toggle strong{font-size:1rem;font-weight:850}.panel-toggle small{color:#64748b;font-size:.88rem;font-weight:650}.habit-settings{display:grid;gap:14px}.icon-text-button{min-width:84px}.habit-list{display:grid;gap:10px}.habit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px;border:1px solid #e3eaf3;border-radius:10px;background:#f9fbfd}.habit-main{display:grid;gap:8px;min-width:0}.palette-swatches{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}.palette-swatch{width:100%;min-width:0;min-height:22px;padding:0;border:2px solid #ffffff;border-radius:999px;box-shadow:inset 0 0 0 1px #0f172a1a,0 1px 2px #0f172a14}.palette-swatch[aria-pressed=true]{border-color:#27364a;box-shadow:inset 0 0 0 2px #fff,0 3px 8px #0f172a24}.row-actions{gap:4px}@media(max-width:980px){.dashboard-grid{grid-template-columns:1fr}.habit-panel{order:-1}.wheel-stage{min-height:460px}.timeline-topline{grid-template-columns:1fr}.timeline-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline-metrics div{border-bottom:1px solid #e4ebf4}.timeline-metrics div:nth-child(2n){border-right:0}.timeline-metrics div:last-child{border-bottom:0}}@media(max-width:620px){.app-shell{padding:14px}.top-bar{align-items:flex-start}.summary-strip,.habit-row{grid-template-columns:1fr}.row-actions{grid-column:1 / -1;justify-content:flex-end}.day-timeline{padding:14px}.timeline-metrics{grid-template-columns:1fr}.timeline-metrics div,.timeline-metrics div:nth-child(2n){border-right:0}.timeline-metrics div:not(:last-child){border-bottom:1px solid #e4ebf4}.timeline-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline-filters button{width:100%}}
