:root{color:#17231f;font-synthesis:none;background:#f7faf7;font-family:Inter,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;min-height:44px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #e2a72e}.app{max-width:1100px;min-height:100vh;margin:auto;padding:20px 18px 150px}.brand{color:#176b5b;font-size:1.35rem;font-weight:800}header{justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;display:flex}header.compact{border-bottom:1px solid #e5ece7;min-height:52px;margin-bottom:22px}.header-action{color:#176b5b;background:0 0;border:0;align-items:center;gap:7px;min-height:44px;font-weight:700;display:inline-flex}.header-action svg,.nav svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.context-title{margin-left:auto}.nav{padding:8px calc(12px + env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));z-index:3;background:#fff;border-top:1px solid #dce7df;grid-template-columns:repeat(5,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:0;right:0}.nav button{color:#486057;white-space:nowrap;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;min-height:52px;padding:4px 7px;font-size:.86rem;display:flex}.nav button span{text-overflow:ellipsis;max-width:100%;overflow:hidden}.nav .register-action{color:#fff;background:#176b5b;border-radius:16px;transform:translateY(-12px);box-shadow:0 5px 16px #176b5b40}.desktop-settings{display:none!important}.nav button.active{color:#075a4a;border-bottom:3px solid #176b5b;font-weight:700}h1{letter-spacing:-.04em;margin:0 0 8px;font-size:clamp(1.75rem,5vw,2.7rem)}h2{margin:28px 0 12px;font-size:1.25rem}p{line-height:1.55}.muted{color:#52675e}.card{background:#fff;border:1px solid #dce7df;border-radius:16px;margin:12px 0;padding:18px}.list-item{border-bottom:1px solid #dce7df;padding:16px 0}.form-panel{background:#fff;border:1px solid #dce7df;border-radius:16px;margin:16px 0;padding:18px}.medical-note{color:#40594f;border-left:3px solid #78a799;max-width:68ch;padding-left:12px}.empty-state{padding:24px 0}.empty-inline{margin:8px 0 20px}.tabs{border-bottom:1px solid #dce7df;gap:4px;margin:16px 0;display:flex}.tabs button{color:#486057;background:0 0;border:0;padding:8px 14px}.tabs button[aria-selected=true]{color:#075a4a;border-bottom:3px solid #176b5b;font-weight:750}.appointment-select{width:100%;color:inherit;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;padding:0;display:flex}.settings-group{margin:24px 0}.settings-group h2{color:#52675e;text-transform:uppercase;letter-spacing:.05em;margin:0 0 6px;font-size:.86rem}.settings-row{width:100%;color:inherit;text-align:left;background:0 0;border:0;border-bottom:1px solid #dce7df;justify-content:space-between;align-items:center;padding:12px 4px;display:flex}.danger-row{color:#9f241c}.toast{left:50%;bottom:calc(82px + env(safe-area-inset-bottom));z-index:20;color:#fff;background:#164e42;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;width:max-content;max-width:min(100% - 32px,420px);padding:9px 12px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 8px 25px #0003}.toast-error{background:#7f1d1d}.toast button{color:inherit;background:0 0;border:1px solid;border-radius:8px}.primary{color:#fff;background:#176b5b;border:0;border-radius:10px;padding:9px 16px;font-weight:700}.secondary{color:#164e42;background:#eff5f0;border:1px solid #c6d9cc;border-radius:10px;padding:9px 14px}.danger{color:#9f241c;background:#fff3f1;border:1px solid #f0c6c0;border-radius:10px;padding:9px 14px}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.space{justify-content:space-between;align-items:center;gap:12px;display:flex}.grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}label{gap:6px;font-weight:650;display:grid}input,textarea,select{width:100%;color:inherit;background:#fff;border:1px solid #b8ccc0;border-radius:9px;padding:10px 12px}textarea{resize:vertical;min-height:90px}.notice{background:#edf7f2;border-left:4px solid #176b5b;padding:10px 12px}.event{background:#fff;border-left:4px solid #78a799;margin:8px 0;padding:10px 12px}.overlay{z-index:4;background:#0a231c61;align-items:end;display:grid;position:fixed;inset:0}.sheet{padding:18px 18px calc(18px + env(safe-area-inset-bottom));background:#fff;border-radius:20px 20px 0 0}.sheet-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sheet-header h2{margin-top:0}.record-choices{gap:8px;margin-top:8px;display:grid}.record-choice{color:#164e42;text-align:left;background:#f7fbf8;border:1px solid #c6d9cc;border-radius:12px;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;width:100%;min-height:60px;padding:12px 14px;display:flex}.record-choice span,.field-help,.draft-state{color:#52675e;font-size:.88rem}.field-error{color:#9f241c;font-size:.88rem;font-weight:650}.sheet-actions{bottom:calc(-18px - env(safe-area-inset-bottom));padding:12px 0 calc(4px + env(safe-area-inset-bottom));background:#fff;gap:10px;margin-top:14px;display:flex;position:sticky}.sheet-actions button{text-align:center;flex:1}.note-editor{min-height:180px}.sheet button{text-align:left;width:100%;margin:5px 0}.weekdays{flex-wrap:wrap;gap:10px;margin-top:8px;display:flex}.weekdays label{align-items:center;gap:4px;font-weight:500;display:flex}.weekdays input{width:auto}.check-row{align-items:center;gap:10px;display:flex}.check-row input{width:auto}.danger-note{color:#9f241c;border-left:4px solid #9f241c;padding-left:10px}.routine-state+h1{display:none}.dose-row{border-top:1px solid #dce7df;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.preview{background:#f4f8f5;border-radius:12px;max-height:280px;margin:16px 0;padding:14px;overflow:auto}.preview p{margin:6px 0}.print-summary{display:none}.filters{margin:18px 0}.document{grid-template-columns:112px 1fr;gap:16px;display:grid}.thumbnail,.thumbnail-placeholder,.file-badge{object-fit:cover;border-radius:10px;width:112px;height:112px}.thumbnail-placeholder{color:#176b5b;background:#f4f8f5;border:1px dashed #78a799}.file-badge{color:#52675e;background:#eef3f0;place-items:center;font-weight:800;display:grid}.demo-banner{color:#6a4300;background:#fff8e6;border:2px solid #a96c00;border-radius:10px;margin-bottom:16px;padding:10px 14px;font-weight:750}@media (width<=520px){header:not(.compact){flex-direction:column;align-items:flex-start;gap:8px}.app{padding-left:16px;padding-right:16px}.nav{padding-left:max(4px, env(safe-area-inset-left));padding-right:max(4px, env(safe-area-inset-right))}.nav button{padding:3px 1px;font-size:.72rem}.document{grid-template-columns:1fr}.space{flex-direction:column;align-items:flex-start}.document .thumbnail,.document .thumbnail-placeholder,.document .file-badge{width:96px;height:96px}}@media (width>=1024px){.app{grid-template-columns:180px minmax(0,760px);align-content:start;column-gap:36px;max-width:1040px;padding:8px 24px 30px;display:grid}.app header{grid-column:1/-1}header.compact{min-height:44px;margin-bottom:4px}.settings-shortcut{display:none}.nav{background:0 0;border:0;flex-direction:column;align-self:start;gap:8px;padding:0;display:flex;position:sticky;top:20px;bottom:auto}.nav button{text-align:left;flex-direction:row;justify-content:flex-start;padding:10px;font-size:.9rem}.nav .register-action{border-radius:10px;transform:none}.desktop-settings{margin-top:24px;display:flex!important}.toast{bottom:24px}.content{width:100%;max-width:760px}}@media (prefers-color-scheme:dark){:root{color:#e8f3ed;background:#12201b}body{background:#12201b}.card,.form-panel,.sheet,.nav,.event,input,textarea,select{color:#e8f3ed;background:#1b2d26;border-color:#3d564b}.muted{color:#b5cabe}.secondary{color:#dff5e8;background:#263d33;border-color:#536d60}.notice{background:#16372a}.record-choice,.sheet-actions{background:#1b2d26}header.compact,.list-item,.tabs,.settings-row{border-color:#3d564b}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}:root{--page-bg:#f7faf7;--surface:#fff;--surface-interactive:#f1f7f3;--fg:#17231f;--fg-secondary:#40594f;--fg-muted:#52675e;--border:#dce7df;--border-strong:#78998a;--primary:#075a4a;--primary-fg:#fff;--danger-fg:#8b1d16;--danger-bg:#fff0ed;--focus:#e2a72e;--backdrop:#0a231c9e;--notice-bg:#fff8e6;--notice-fg:#6a4300;--input-bg:#fff;--input-fg:#17231f;--placeholder:#6d8077}:root[data-theme=dark],[data-theme=dark]{--page-bg:#15231e;--surface:#20342c;--surface-interactive:#29443a;--fg:#e8f3ed;--fg-secondary:#c4d8cc;--fg-muted:#aac2b5;--border:#496457;--border-strong:#719685;--primary:#4fb59a;--primary-fg:#10251e;--danger-fg:#ffb4aa;--danger-bg:#4a2927;--focus:#f2c35d;--backdrop:#030c09c7;--notice-bg:#493817;--notice-fg:#ffe3a0;--input-bg:#1a2c25;--input-fg:#eef8f1;--placeholder:#a8beb2}:root,body,.app{background:var(--page-bg);color:var(--fg)}body{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark],[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}h1,h2,h3,strong{color:var(--fg)}.card,.form-panel,.event,.sheet,.nav,.update,.install,.tour-card{background:var(--surface);color:var(--fg);border-color:var(--border)}input,textarea,select{background:var(--input-bg);color:var(--input-fg);border-color:var(--border-strong)}input::placeholder,textarea::placeholder{color:var(--placeholder);opacity:1}.primary{background:var(--primary);color:var(--primary-fg);box-shadow:none}.secondary{background:var(--surface-interactive);color:var(--fg-secondary);border-color:var(--border-strong)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--focus)}.overlay,.menu-overlay,.tour-overlay{background:var(--backdrop)}.sheet{max-height:min(92dvh,760px);padding:0 16px calc(12px + env(safe-area-inset-bottom));overflow:hidden}.sheet-header{z-index:2;background:var(--surface);border-bottom:1px solid var(--border);min-height:58px;padding:10px 0 8px;position:sticky;top:0}.sheet-header h2{margin:0}.sheet>:not(.sheet-header){max-width:100%}.sheet label{margin-top:16px}.sheet-actions{background:var(--surface);border-top:1px solid var(--border);bottom:calc(-12px - env(safe-area-inset-bottom))}.record-choice{border:0;border-bottom:1px solid var(--border);min-height:54px;color:var(--fg);background:0 0;border-radius:0;padding:9px 4px}.record-choice span{color:var(--fg-muted)}.record-choices{gap:0}.grid{gap:16px}fieldset{border:0;margin:24px 0;padding:0}legend{margin-bottom:10px;font-weight:650}.weekdays{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;display:grid}.demo-banner{background:var(--notice-bg);color:var(--notice-fg);border:1px solid var(--focus);padding:8px 12px;font-size:.9rem}.preview{background:var(--surface-interactive);border:1px solid var(--border);color:var(--fg)}.theme-options{gap:8px;display:flex}.theme-options button{min-height:40px;padding:6px 12px}.theme-options button.active{outline:2px solid var(--focus);outline-offset:1px}.dose-row{padding:12px 0}.dose-row .row button{min-height:40px}@media (width<=520px){.sheet{width:100%;max-height:calc(100dvh - env(safe-area-inset-top));border-radius:18px 18px 0 0}.sheet-actions{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.weekdays{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=340px){.weekdays{grid-template-columns:1fr}}@media print{:root,body{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#17231f!important;background:#fff!important}}.overlay .sheet{border:0;width:100%;max-width:720px;max-height:92dvh;margin:0 auto;overflow:auto}.update{z-index:10;background:#fff;border:1px solid #c6d9cc;border-radius:12px;align-items:center;gap:10px;max-width:330px;padding:14px;display:flex;position:fixed;bottom:84px;right:16px;box-shadow:0 8px 25px #00000029}.install{z-index:10;background:#fff;border:1px solid #c6d9cc;border-radius:12px;align-items:center;gap:10px;max-width:330px;padding:14px;display:flex;position:fixed;bottom:84px;left:16px;box-shadow:0 8px 25px #00000029}@media print{:root,body{font:10.5pt/1.45 ui-sans-serif,system-ui,sans-serif;color:#17231f!important;background:#fff!important}.app,.overlay,.update,.install,.toast{display:none!important}.print-summary{display:block}.print-brand{color:#176b5b;letter-spacing:.08em;text-transform:uppercase;margin-bottom:2mm;font-size:9pt;font-weight:800}.print-summary h1{color:#075a4a;margin:0 0 8mm;font:750 23pt/1.2 ui-sans-serif,system-ui,sans-serif}.print-summary h2{color:#164e42;break-after:avoid;margin:7mm 0 2mm;font:700 13pt/1.3 ui-sans-serif,system-ui,sans-serif}.print-summary p{overflow-wrap:anywhere;orphans:3;widows:3;margin:0 0 2.2mm}.print-summary h1+p,.print-summary h1+p+p,.print-summary h1+p+p+p,.print-summary h1+p+p+p+p{vertical-align:top;width:49%;padding-right:4mm;display:inline-block}.print-table-row{break-inside:avoid;border-bottom:.25mm solid #dce7df;grid-template-columns:29mm minmax(32mm,1fr) 26mm minmax(35mm,1.4fr);display:grid}.print-table-row span{overflow-wrap:anywhere;padding:2.2mm 1.8mm}.print-table-row.table-head{color:#164e42;break-after:avoid;background:#edf7f2;font-weight:750}.print-summary .print-bullet{break-inside:avoid;padding-left:5mm;position:relative}.print-summary .print-bullet:before{content:"•";position:absolute;left:1mm}.print-summary hr{border:0;border-top:1px solid #b8ccc0;margin:7mm 0 4mm}.print-summary footer{color:#52675e;border-top:1px solid #dce7df;margin-top:9mm;padding-top:3mm;font:8.5pt ui-sans-serif,system-ui,sans-serif}@page{size:A4 portrait;margin:18mm 17mm 19mm}}:root{color:#10251e;background:#f8fbf9;font-size:16px}body{line-height:1.55}.muted,.field-help,.draft-state{color:#3e564c}button,input,textarea,select{min-height:48px}button{transition:transform .16s,box-shadow .16s,background-color .16s}button:not(:disabled):active{transform:translateY(1px)scale(.985)}button:disabled{cursor:wait;opacity:.68}.primary{background:#075a4a;box-shadow:0 2px #043b31}.secondary{color:#083d32;background:#e6f0ea;border-color:#78998a}.danger{color:#8b1d16;background:#fff0ed;border-color:#c9786e}input,textarea,select{border-color:#6f9180}.content{animation:.22s both content-in}.loading-state{color:#164e42;align-items:center;gap:10px;min-height:120px;font-weight:700;display:flex}.spinner,.button-spinner{vertical-align:-.18em;border:3px solid;border-right-color:#0000;border-radius:50%;width:1.1em;height:1.1em;animation:.7s linear infinite spin;display:inline-block}.button-spinner{border-width:2px;width:.9em;height:.9em;margin-right:7px}.menu-toggle{display:none}.help-button{border:2px solid #176b5b;border-radius:50%;justify-content:center;min-width:48px}.menu-overlay,.tour-overlay{z-index:12;background:#091e1875;animation:.18s both fade-in;position:fixed;inset:0}.menu-drawer{width:min(84vw,340px);height:100%;padding:max(20px, env(safe-area-inset-top)) 20px 24px;background:#fff;border:0;margin:0;animation:.22s both drawer-in;box-shadow:8px 0 30px #0003}.menu-drawer-header{justify-content:space-between;align-items:center;font-size:1.3rem;display:flex}.menu-row{color:#173e33;text-align:left;background:0 0;border:0;border-bottom:1px solid #c6d8ce;justify-content:space-between;align-items:center;width:100%;min-height:54px;padding:12px 4px;font-weight:700;display:flex}.menu-row.active{color:#075a4a;background:#edf7f2;border-left:4px solid #075a4a;padding-left:10px}.help-row{margin-top:20px}.tour-overlay{place-items:center;padding:20px;display:grid}.tour-card{color:#10251e;background:#fff;border:0;border-radius:20px;width:min(100%,480px);margin:auto;padding:24px;box-shadow:0 16px 50px #00000047}.tour-card h2{margin-top:10px}.tour-actions{justify-content:space-between;margin-top:24px}.tour-actions button{flex:1}.tour-progress{background:#d9e7df;border-radius:99px;height:7px;overflow:hidden}.tour-progress span{background:#075a4a;height:100%;transition:width .2s;display:block}.eyebrow{color:#3e564c;text-transform:uppercase;letter-spacing:.08em;margin:18px 0 0;font-size:.86rem;font-weight:800}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes content-in{0%{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}@media (width<=1023px){.menu-toggle{display:inline-flex}.header-action span{font-size:.9rem}}@media (width<=520px){.app{padding-bottom:170px}header.compact{gap:4px}header.compact .header-action span{display:none}header.compact .header-action{padding-left:6px;padding-right:6px}.nav button{min-height:58px;font-size:.82rem}.nav .register-action{transform:translateY(-8px)}.tour-card{padding:20px}}@media (prefers-reduced-motion:reduce){button,.content,.menu-overlay,.menu-drawer,.tour-overlay,.tour-progress span{transition:none;animation:none}}
