:root{--bg: #0f172a;--bg-elev: #1e293b;--text: #f8fafc;--text-dim: #94a3b8;--line: rgba(148, 163, 184, .18);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);overscroll-behavior:none;overflow:hidden}.app{height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.topbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px 10px}.topbar__label{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim)}.topbar__value{display:block;font-size:17px;font-weight:600;margin-top:2px}.topbar__hours{text-align:right}.topbar__period{background:none;border:none;margin:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 12px}.hint{margin:0;font-size:13px;color:var(--text-dim);flex:1}.chip{flex:none;background:var(--bg-elev);color:var(--text);border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;white-space:nowrap}.chip:disabled{opacity:.4;cursor:default}.chip:active:not(:disabled){transform:translateY(1px)}.stage{flex:1;min-height:0;padding:0 16px 16px}.footer{padding:12px 16px calc(16px + env(safe-area-inset-bottom))}.tilestack{position:relative;height:100%;width:100%;border-radius:20px;overflow:hidden;box-shadow:0 10px 30px #00000059;touch-action:none}.tile{width:100%;display:flex;align-items:center;overflow:hidden;cursor:pointer}.tile__edit{margin-left:7px;vertical-align:-.15em;opacity:.75;flex:none}.tile__inner{width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 22px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.35)}.tile__name{font-size:18px;font-weight:650;letter-spacing:-.01em;white-space:nowrap}.tile__stats{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.tile__pct{font-size:28px;font-weight:750;font-variant-numeric:tabular-nums}.tile__hours{font-size:13px;font-weight:600;opacity:.9}.divider{position:absolute;left:0;right:0;height:34px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;cursor:row-resize;z-index:5}.divider__grip{width:54px;height:5px;border-radius:3px;background:#ffffffe6;box-shadow:0 1px 4px #0006}.divider:active .divider__grip{height:6px;width:62px;background:#fff}.btn{width:100%;border:none;border-radius:14px;padding:16px;font-size:16px;font-weight:650;font-family:inherit;cursor:pointer}.btn--primary{background:linear-gradient(180deg,#6366f1,#4f46e5);color:#fff;box-shadow:0 8px 20px #4f46e566}.btn--primary:active{transform:translateY(1px)}.btn--ghost{background:var(--bg-elev);color:var(--text)}.btn--danger{background:#ef444424;color:#fca5a5}.btn--danger:disabled{opacity:.4;cursor:default}.sheet__cta{margin-top:18px}.sheet__actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}.presets{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.field-row{display:flex;gap:12px}.field{display:flex;flex-direction:column;gap:6px;flex:1;font-size:13px;color:var(--text-dim)}.field input{width:100%;background:var(--bg-elev);border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--text);font-size:16px;font-family:inherit}.swatches{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px}.swatch{width:36px;height:36px;border-radius:9px;border:2px solid transparent;padding:0;cursor:pointer}.swatch--on{border-color:#fff;box-shadow:0 0 0 2px var(--bg)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:flex-end;z-index:20;animation:fade .18s ease-out}.sheet{width:100%;max-height:88dvh;background:var(--bg);border-radius:22px 22px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;min-height:0;animation:slide-up .24s cubic-bezier(.16,1,.3,1);border-top:1px solid var(--line)}.sheet__handle{width:40px;height:4px;border-radius:2px;background:var(--text-dim);opacity:.5;margin:4px auto 12px;flex:none}.sheet__header{flex:none}.sheet__title{margin:0;font-size:20px;font-weight:700}.sheet__subtitle{margin:4px 0 0;font-size:13px;color:var(--text-dim)}.summary{flex:none;margin:16px 0;display:flex;flex-direction:column;gap:2px}.summary__row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.summary__dot{width:12px;height:12px;border-radius:4px;flex:none}.summary__name{flex:1;font-weight:600}.summary__pct{color:var(--text-dim);font-variant-numeric:tabular-nums;width:44px;text-align:right}.summary__hours{font-weight:700;font-variant-numeric:tabular-nums;width:56px;text-align:right}.grid-scroll{flex:1;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:12px;-webkit-overflow-scrolling:touch}.grid{width:100%;border-collapse:collapse;font-size:13px}.grid th,.grid td{padding:8px 10px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.grid thead th{position:sticky;top:0;background:var(--bg-elev);font-size:12px;font-weight:700}.grid tbody tr:nth-child(2n){background:#94a3b80f}.grid__day{text-align:left;color:var(--text-dim);font-weight:600}.grid__zero{color:var(--text-dim);opacity:.5}.sheet__note{flex:none;font-size:12px;color:var(--text-dim);margin:12px 0;line-height:1.4}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes pop{0%{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@media (min-width: 700px){body{display:flex;align-items:center;justify-content:center;background:#070b16}.app{height:min(100dvh,880px);width:440px;max-width:100%;border-radius:28px;overflow:hidden;background:var(--bg);box-shadow:0 0 0 1px var(--line),0 40px 80px #0000008c}.sheet-backdrop{align-items:center}.sheet{max-width:440px;margin:0 auto;max-height:84dvh;border:1px solid var(--line);border-radius:22px;animation:pop .2s ease-out}.sheet__handle{display:none}}
