:root{--bg: #FAF7F2;--surface: #FFFFFF;--surface-2: #F3EEE6;--text: #1A2B3C;--muted: #6B7785;--line: #E8DFD0;--accent: #FF6B35;--accent-text: #FFFFFF;--green: #2D5F4E;--green-soft: #DCE8E2;--danger: #B5462A;--danger-soft: #F6E1D9;--radius: 14px;--tabbar: 64px;color-scheme:light}:root[data-theme=dark]{--bg: #1A2B3C;--surface: #22374B;--surface-2: #2A4157;--text: #FAF7F2;--muted: #A5B1BD;--line: #34495E;--green: #6FB39A;--green-soft: #24463F;--danger: #F08A6C;--danger-soft: #4A3330;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.45 Inter,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}h1,h2,h3{font-family:Manrope,Inter,sans-serif;font-weight:700;margin:0;letter-spacing:-.01em}h1{font-size:24px;line-height:1.2}h2{font-size:18px;line-height:1.3}h3{font-size:15px;font-weight:600}p{margin:0}button{font:inherit;color:inherit}.screen{padding:16px 16px calc(var(--tabbar) + 24px + env(safe-area-inset-bottom));max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:12px}.screen.no-tabs{padding-bottom:32px}.card{background:var(--surface);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px}.card.tappable{cursor:pointer}.card.tappable:active{opacity:.85}.card.muted{background:var(--surface-2)}.label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:500}.muted{color:var(--muted)}.small{font-size:13px}.row{display:flex;align-items:center;gap:10px}.row.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:8px}.grow{flex:1;min-width:0}.goal{font-family:Manrope,sans-serif;font-size:22px;font-weight:700;line-height:1.25}.big-number{font-family:Manrope,sans-serif;font-size:32px;font-weight:700;line-height:1}.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:500;cursor:pointer;background:var(--surface-2);text-align:center}.btn.primary{background:var(--accent);color:var(--accent-text)}.btn.ghost{background:transparent;border:1px solid var(--line)}.btn.small{padding:7px 12px;font-size:13px;border-radius:10px}.btn.danger{color:var(--danger)}.btn:disabled{opacity:.5;cursor:default}.link{background:none;border:0;padding:0;color:var(--accent);cursor:pointer;font-weight:500}.weeks{display:grid;grid-template-columns:repeat(12,1fr);gap:3px}.weeks span{height:6px;border-radius:3px;background:var(--line)}.weeks span.done{background:var(--green)}.weeks span.now{background:var(--text)}.lives{display:flex;flex-direction:column;gap:10px}.life-row{display:grid;grid-template-columns:74px 1fr 44px;align-items:center;gap:10px}.cells{display:flex;gap:3px;flex-wrap:wrap}.cells i{width:14px;height:14px;border-radius:4px;background:var(--green);display:block}.cells i.burned{background:transparent;border:1.5px solid var(--line)}.cells.compact i{width:8px;height:8px;border-radius:2px}.cells.compact{gap:2px}.risk{color:var(--danger)}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day{aspect-ratio:1;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;background:var(--surface-2);color:var(--muted)}.day b{font-size:14px;font-weight:500;color:var(--text)}.day.dtp{background:var(--green);color:#fff}.day.dtp b{color:#fff}.day.day_off,.day.excused{background:var(--green-soft)}.day.vacation{background:transparent;border:1.5px dashed var(--green)}.day.missed{background:var(--danger-soft)}.day.missed b{color:var(--danger)}.day.today{outline:2px solid var(--text);outline-offset:-2px}.legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--muted)}.legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px;vertical-align:-1px;background:var(--c)}.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:500;background:var(--surface-2);color:var(--muted);white-space:nowrap}.badge.green{background:var(--green-soft);color:var(--green)}.badge.accent{background:var(--danger-soft);color:var(--danger)}.badge.dark{background:var(--text);color:var(--bg)}.list{display:flex;flex-direction:column}.list-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer}.list-item:last-child{border-bottom:0}.chev{color:var(--muted);font-size:18px}.tabbar{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:10}.tabbar button{flex:1;background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--muted);padding:4px 0;cursor:pointer}.tabbar button.active{color:var(--text);font-weight:500}.tabbar svg{width:24px;height:24px}.form{display:flex;flex-direction:column;gap:18px}.field{display:flex;flex-direction:column;gap:6px}.field>.field-label{font-weight:500}.field .hint{font-size:13px;color:var(--muted)}.field.invalid input,.field.invalid textarea{border-color:var(--danger)}.field .error{font-size:13px;color:var(--danger)}input,textarea,select{font:inherit;font-size:16px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;width:100%;outline:none}input:focus,textarea:focus{border-color:var(--text)}textarea{resize:vertical;min-height:88px}.input-unit{position:relative}.input-unit span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}.input-unit input{padding-right:80px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 11px;cursor:pointer;font-size:14px}.chip.active{background:var(--text);color:var(--bg);border-color:var(--text)}.chip.example{background:var(--surface-2);border-color:transparent}.scale{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}.scale button{aspect-ratio:1;border-radius:10px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:500;padding:0}.scale button.active{background:var(--text);color:var(--bg);border-color:var(--text)}.group{background:var(--surface);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:14px}.group .group .group,.list-row .group{background:var(--surface-2)}.list-rows{display:flex;flex-direction:column;gap:10px}.list-row{background:var(--surface-2);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;position:relative}.group .list-row{background:var(--bg)}.list-row .remove{position:absolute;top:6px;right:6px;background:none;border:0;color:var(--muted);font-size:20px;line-height:1;padding:6px;cursor:pointer}.list-row>.field:first-of-type input{padding-right:36px}.summary{background:var(--green-soft);color:var(--green);border-radius:12px;padding:12px 14px;font-weight:500}.checkbox{display:flex;gap:12px;align-items:flex-start;cursor:pointer;padding:10px 0}.checkbox input{width:22px;height:22px;flex:none;margin:0;accent-color:var(--accent);padding:0}.save-state{font-size:12px;color:var(--muted);text-align:right;min-height:16px}.comment{border-left:3px solid var(--green);padding:4px 0 4px 12px}.table{width:100%;border-collapse:collapse;font-size:14px}.table td,.table th{padding:10px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.table th{font-weight:500;color:var(--muted);font-size:12px}.table tr:last-child td{border-bottom:0}.table tr.me td{font-weight:500}.table tr.clickable{cursor:pointer}.center{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;padding:24px}.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--text);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:16px;right:16px;bottom:calc(var(--tabbar) + 16px + env(safe-area-inset-bottom));background:var(--text);color:var(--bg);padding:12px 16px;border-radius:12px;z-index:20;text-align:center}.sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a141e73;z-index:30;display:flex;align-items:flex-end}.sheet{background:var(--bg);width:100%;max-width:640px;margin:0 auto;border-radius:18px 18px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;max-height:85vh;overflow:auto}.steps{display:flex;gap:4px}.steps span{flex:1;height:4px;border-radius:2px;background:var(--line)}.steps span.on{background:var(--text)}
