:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#253b35;background:#f6f8f7;font-synthesis:none;font-size:14px;--green:#14634b;--line:#e3e9e5;--muted:#78847f;--red:#fff0ee}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#fff;border:1px solid #dce4df;border-radius:6px;padding:9px 13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background .15s}button:hover{background:#f0f5f2}button:disabled{opacity:.4;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #279b77;outline-offset:3px}button.primary{background:var(--green);border-color:var(--green);color:#fff}button.primary:hover{background:#0c503c}button.quiet{border-color:transparent;background:transparent}.icon-button{width:33px;height:33px;padding:0;font-size:21px;border-color:transparent;background:transparent}.small-button{font-size:12px;padding:7px 10px;background:#fff}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:650;text-decoration:none;color:inherit;letter-spacing:-.4px}.brand-icon{display:inline-grid;place-items:center;width:34px;height:34px;background:var(--green);border-radius:8px;color:white;font-size:27px;font-weight:400}.app-header{height:74px;background:#fff;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between}.brand-divider{height:20px;border-left:1px solid var(--line);margin:0 10px}.brand-sub{font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0}.header-right{display:flex;align-items:center;gap:26px}.connection{font-size:12px;color:#61746b;display:flex;align-items:center;gap:7px}.connection i,.save-status i{width:6px;height:6px;border-radius:50%;background:#2b956b;display:inline-block}.account{border:0;padding:0;gap:9px;font-size:12px}.avatar{background:#eaf1eb;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:var(--green);font-weight:650}main{max-width:1740px;margin:auto;padding:34px 36px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;color:#7d8d84}h1{font-size:31px;font-weight:600;letter-spacing:-1px;margin:9px 0 8px}.title-dot{color:#2d9871}p{line-height:1.6}.page-heading p{font-size:13px;color:var(--muted);margin:0}.heading-actions{display:flex;gap:10px;align-items:center;padding-top:20px;font-size:12px}.circle-help{border:1px solid #82938a;border-radius:50%;width:15px;height:15px;display:grid;place-items:center;font-size:10px}.sheet-card{border:1px solid #dce5de;border-radius:10px;box-shadow:0 3px 12px #243e2d04;background:white;overflow:hidden}.sheet-settings{padding:22px 22px;display:flex;justify-content:space-between;align-items:center;gap:15px}.patient-control{display:flex;gap:12px;align-items:center}.patient-avatar{display:grid;place-items:center;width:42px;height:42px;border:1px solid #dce7de;border-radius:10px;background:#f1f6f1;color:#47705a;font-size:15px;font-weight:600}.patient-control label{display:block;font-size:9px;letter-spacing:1.5px;color:#839088;margin-bottom:4px;font-weight:600}select{background:white;border:0;max-width:280px;min-width:170px;padding:2px 24px 2px 0;font-size:16px;font-weight:600;cursor:pointer}.period-control{display:flex;align-items:center;gap:7px}.period-control .small-button{margin-left:12px}input[type=month]{border:0;background:transparent;font-weight:600;width:177px;padding:7px 4px;font-size:14px}.sheet-toolbar{min-height:49px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 17px;display:flex;align-items:center;justify-content:space-between;background:#fbfcfb;gap:12px}.toolbar-tools{display:flex;align-items:center;gap:5px}.toolbar-tools>button{font-size:12px;border:0;background:transparent;padding:6px 9px;height:30px}.toolbar-tools>button:hover{background:#edf3ee}.toolbar-tools .fill-button{color:var(--green);background:#e7f1eb}.fill-button b{font-size:15px;margin-right:3px}.toolbar-tools .icon-button{font-size:23px;width:30px}.toolbar-divider{height:19px;border-left:1px solid var(--line);margin:0 7px}.save-status{font-size:11px;color:#688473;white-space:nowrap}.save-status i{margin-right:5px}.save-status.saving{color:#a07831}.save-status.saving i{background:#c59e48}.save-status.failed{color:#b74343}.save-status.failed i{background:#b74343}.formula-bar{display:flex;align-items:center;gap:14px;height:37px;border-bottom:1px solid var(--line);font-size:11px;color:#6e7d74}#cellAddress{width:87px;min-width:87px;text-align:center;border-right:1px solid var(--line);font-weight:600;color:#355f49;font-variant-numeric:tabular-nums}.formula-symbol{font-family:Georgia,serif;font-size:17px;color:#a3ada5}.formula-hint{margin-left:auto;margin-right:20px;color:#9aa59e;font-size:10px}.grid-container{overflow:auto;max-height:65vh;min-height:380px;outline:0;overscroll-behavior:contain;touch-action:pan-x pan-y;position:relative;scrollbar-color:#c9d6cc #f7f9f7;scrollbar-width:thin}table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;user-select:none;font-size:12px}th,td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:0;min-width:37px;height:51px;text-align:center;position:relative}thead th{position:sticky;z-index:4;background:#f8faf8}thead .letters th{height:25px;top:0;font-size:10px;font-weight:400;color:#8b978f;background:#f6f8f6}thead .days th{height:62px;top:25px;font-weight:500;background:#fafcf9}.row-number{width:37px;min-width:37px;position:sticky;left:0;background:#f7f9f7;color:#94a096;font-size:10px;z-index:3;font-weight:400}.category-heading,.row-label{position:sticky;left:37px;width:268px;min-width:268px;background:#fff;text-align:left;z-index:3;padding:0 17px}.category-heading{font-size:10px;letter-spacing:.5px;color:#718175;background:#f9fbf8}.category-heading small{display:block;font-size:9px;letter-spacing:0;font-weight:400;margin-top:5px;color:#99a599}.days .category-heading,.letters .category-heading{z-index:6}.days .row-number,.letters .row-number{z-index:7}.row-label{font-size:12px;font-weight:500;cursor:default;line-height:1.4}.row-label span{display:inline-block;max-width:220px}.data-cell{width:37px;min-width:37px;cursor:cell;outline:0;color:var(--green);font-size:15px;font-weight:600;touch-action:none}.data-cell:hover{background:#f0f7f1}.holiday{background:var(--red)!important}.days .holiday{color:#be726a}.day-number{display:block;font-size:16px;font-weight:550;margin-bottom:6px}.weekday{font-size:9px;color:#99a699;text-transform:uppercase}.holiday .weekday{color:#c08a83}.today .day-number{width:27px;height:27px;line-height:27px;background:var(--green);color:white;border-radius:6px;margin:0 auto 2px}.today.data-cell{box-shadow:inset 1px 0 #b5d1be,inset -1px 0 #b5d1be}.data-cell.selected{background:#e7f2eb!important}.data-cell.selected.holiday{background:#f2e2dc!important}.data-cell.edge-top{border-top:2px solid #27794f}.data-cell.edge-bottom{border-bottom:2px solid #27794f}.data-cell.edge-left{border-left:2px solid #27794f}.data-cell.edge-right{border-right:2px solid #27794f}.data-cell.active::after{content:"";position:absolute;inset:-1px;border:2px solid #27794f;pointer-events:none}.data-cell.active::before{content:"";position:absolute;right:-3px;bottom:-3px;width:5px;height:5px;background:#27794f;z-index:2}.total-col{width:63px;min-width:63px;position:sticky;right:0;background:#f7faf7;z-index:3;border-left:1px solid var(--line);border-right:0;color:#65806b;font-size:12px;font-weight:600}.letters .total-col,.days .total-col{z-index:6}.total-row td,.total-row th{background:#f8faf8;font-size:11px;color:#738475;height:39px}.total-row .row-label{font-weight:500;color:#577260}.sheet-bottom{height:45px;display:flex;align-items:center;justify-content:space-between;background:#fafcf9;padding:0 20px;border-top:1px solid var(--line);font-size:11px}.sheet-bottom>div{height:100%;display:flex;align-items:center;gap:18px}.sheet-tab{height:100%;display:flex;align-items:center;gap:9px;border-bottom:2px solid var(--green);font-weight:600;color:var(--green);padding:0 7px}.subtle{color:#8a978e;font-size:11px}.under-sheet{display:flex;align-items:center;justify-content:space-between;padding:17px 2px 26px;gap:15px}.legend{display:flex;gap:19px;align-items:center;font-size:10px;color:#7f8c82}.legend>span{display:flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:2px;border:1px solid #dce5dd;display:inline-block}.legend-holiday{background:var(--red);border-color:#f2d7d1!important}.legend-today{background:#e7f1e9;border-color:#a9c6b2!important}.selection-help{color:#98a298;font-size:10px}.summary{display:grid;grid-template-columns:1fr 1fr 1fr 1.15fr;gap:0;background:white;border:1px solid var(--line);border-radius:9px;padding:24px 0}.summary>div{display:flex;align-items:center;gap:15px;padding:0 26px;border-right:1px solid var(--line)}.summary>div:last-child{border:0}.summary-icon{width:40px;height:40px;border-radius:9px;display:grid;place-items:center;font-size:21px}.green{background:#edf5ed;color:#6f9671}.blue{background:#eef2fa;color:#7d91b8}.amber{background:#fbf4e8;color:#b79a60}.summary-label{display:block;font-size:11px;color:#8a958d;margin-bottom:7px}.summary strong{font-size:25px;font-weight:500;color:#2f4c3a;line-height:1}.summary small{font-size:11px;color:#a2aaa4;margin-left:4px;font-weight:400}.summary-note>span{font-size:28px;color:#a7b5a9}.summary-note p{font-size:11px;color:#89998b;margin:0}.page-footer{display:flex;justify-content:space-between;gap:10px;padding:26px 0 0;color:#a0aaa3;font-size:9px;letter-spacing:1px}.page-footer>span:last-child{letter-spacing:0}.page-footer>span>span{margin:0 8px;color:#c8d0c9}.empty-state{text-align:center;padding:70px 20px}.empty-state>span{font-size:38px;color:#87a58d}.empty-state h2{font-size:20px;font-weight:500}.empty-state p{color:var(--muted);font-size:13px}dialog{border:1px solid var(--line);border-radius:12px;max-width:560px;width:calc(100% - 32px);padding:26px;box-shadow:0 25px 90px #102a2940;color:inherit}dialog::backdrop{background:#183d3066;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}h2{margin:0;font-size:21px;font-weight:550;letter-spacing:-.5px}label{display:block;font-size:12px;font-weight:500}input:not([type=month]){width:100%;border:1px solid #d5e0d7;border-radius:6px;padding:11px 12px;margin:7px 0 17px;background:white}dialog p{font-size:12px;color:#829086}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error{color:#b54343!important;min-height:16px;font-size:12px}.shortcuts{display:grid;grid-template-columns:1fr 1.25fr;font-size:12px;gap:13px 18px;line-height:1.5}.shortcuts dt{font-weight:550}.shortcuts dd{margin:0;color:#7c897e}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);padding:14px 22px;border-radius:8px;background:#274a38;color:#fff;box-shadow:0 4px 24px #1d3c3430;z-index:30;font-size:12px;line-height:1.5}.login-view{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-intro{background:#e8f0e9;position:relative;padding:50px 12%;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.login-intro .brand{position:absolute;top:38px;left:12%}.login-intro>.eyebrow{margin-top:40px;color:#7c9783}.login-intro h1{font-size:52px;line-height:1.15;margin:24px 0;letter-spacing:-2px;color:#24573e}.login-intro p{font-size:16px;color:#74917a}.login-intro small{font-size:10px;color:#799380;margin-top:32px}.login-grid{display:grid;grid-template-columns:repeat(4,1fr);max-width:290px;transform:rotate(-7deg);margin:28px 0 12px;border-top:1px solid #b5cdbb;border-left:1px solid #b5cdbb;border-radius:6px;overflow:hidden;box-shadow:10px 15px 30px #5a8a6512}.login-grid span{height:46px;display:grid;place-items:center;border-right:1px solid #b5cdbb;border-bottom:1px solid #b5cdbb;color:#638d6b;font-size:17px;background:#f6faf6aa}.login-grid span:nth-child(4n){background:#f6e8e1b0}.login-panel{display:grid;place-items:center;background:#fff;padding:45px}.login-panel form{width:100%;max-width:340px}.login-panel h2{font-size:29px;margin:16px 0}.login-panel p{font-size:13px;color:#879289;margin-bottom:30px}.login-panel label{margin-top:12px}.login-panel .error{margin:0 0 14px}.wide{width:100%;justify-content:space-between;padding:13px!important}.login-note{font-size:10px;color:#9ba69d;margin-top:25px;text-align:center}
@media(min-width:1500px){.data-cell,th,td{min-width:40px}.category-heading,.row-label{width:290px;min-width:290px}}@media(max-width:1000px){.app-header{padding:0 20px}.brand-sub,.brand-divider,.connection{display:none}main{padding:28px 20px}.sheet-settings{align-items:flex-start;flex-wrap:wrap}.period-control{margin-left:auto}.summary>div{padding:0 16px;gap:10px}.summary-note{display:none!important}.summary{grid-template-columns:repeat(3,1fr)}.summary>div:nth-child(3){border-right:0}.selection-help{display:none}.heading-actions button{padding:8px}.formula-hint{display:none}.save-status{font-size:10px}.login-intro h1{font-size:40px}}@media(max-width:650px){.app-header{height:62px;padding:0 14px}.brand{font-size:16px}.account #accountName{display:none}main{padding:23px 12px}.page-heading{align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:25px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.page-heading p{font-size:11px}.heading-actions{padding:0;gap:3px;flex-wrap:wrap;justify-content:flex-end;max-width:105px}.heading-actions button{font-size:10px;padding:6px}.heading-actions .quiet{display:none}.sheet-settings{padding:14px;gap:16px}.patient-control{gap:7px;width:100%}.patient-avatar{width:35px;height:35px;flex-shrink:0}.patient-control select{font-size:14px;min-width:100px;max-width:170px;width:100%}.patient-control>div{min-width:0}.patient-control .small-button{font-size:10px;margin-left:auto}.patient-control .icon-button{width:25px;flex-shrink:0}.period-control{width:100%;margin:0;justify-content:center}.period-control .small-button{margin-left:auto}.period-control input{font-size:13px;width:157px}.sheet-toolbar{align-items:flex-start;flex-wrap:wrap;gap:5px;padding:7px 9px}.toolbar-tools{gap:1px}.toolbar-tools>button{font-size:11px;padding:5px 7px}.toolbar-divider{margin:0 3px}.save-status{margin-left:auto}.category-heading,.row-label{width:182px;min-width:182px;padding:0 10px;font-size:11px}.row-number{width:26px;min-width:26px}.category-heading,.row-label{left:26px}.total-col{width:46px;min-width:46px}.data-cell{min-width:34px;width:34px}.under-sheet{padding-bottom:18px}.legend{gap:10px;font-size:9px}.legend i{width:8px;height:8px}.summary{padding:18px 0}.summary>div{padding:0 11px;gap:8px}.summary-icon{display:none}.summary-label{font-size:9px;line-height:1.4;min-height:25px}.summary strong{font-size:22px}.summary small{font-size:9px}.sheet-bottom{padding:0 12px;font-size:10px}.sheet-bottom>div{gap:8px}.sheet-bottom>.subtle{display:none}.login-view{grid-template-columns:1fr}.login-intro{display:none}.login-panel{min-height:100vh;padding:25px}.shortcuts{font-size:11px;gap:10px}.grid-container{min-height:350px;max-height:65vh}.page-footer{font-size:8px}.formula-bar{font-size:10px;gap:10px}#cellAddress{width:68px;min-width:68px}}
@media print{@page{size:A4 landscape;margin:8mm}body{background:white}.app-header,.heading-actions,.sheet-toolbar,.formula-bar,.under-sheet,.summary,.page-footer,.sheet-bottom,dialog,.toast,.patient-control button,.period-control button{display:none!important}main{padding:0;max-width:none}.page-heading{margin:0 0 8px}.page-heading h1{font-size:20px}.page-heading .eyebrow,.page-heading p{display:none}.sheet-settings{padding:8px 0}.sheet-card{border:0;box-shadow:none;overflow:visible}.grid-container{overflow:visible;max-height:none;min-height:0}table{width:100%!important;table-layout:fixed}th,td,.data-cell{min-width:0!important;width:auto!important;height:28px;font-size:9px}.row-number{min-width:0!important;width:18px!important;position:static}.row-label,.category-heading{width:160px!important;min-width:0!important;position:static;font-size:8px;padding:0 5px}.total-col{position:static;width:28px!important;min-width:0!important;font-size:8px}.letters th{position:static!important}.days th{position:static!important;height:40px}.day-number{font-size:10px}.weekday{font-size:7px}.holiday{background:#fff0ee!important;print-color-adjust:exact}.data-cell.selected{background:white!important}.data-cell.selected.holiday{background:#fff0ee!important}.data-cell.active::after,.data-cell.active::before{display:none}.data-cell.edge-top{border-top:0}.data-cell.edge-bottom{border-bottom:1px solid var(--line)}.data-cell.edge-left{border-left:0}.data-cell.edge-right{border-right:1px solid var(--line)}select,input[type=month]{appearance:none;background:none}.today .day-number{background:none;color:inherit}tr{break-inside:avoid}}

/* Keep day columns readable; the sheet scrolls horizontally on small screens. */
table{min-width:1515px}.month-picker{position:relative;display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:158px;padding:8px 5px;font-weight:600;font-size:14px}.month-picker input[type=month]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.month-picker:focus-within{outline:2px solid #279b77;outline-offset:2px;border-radius:4px}@media(min-width:1500px){table{min-width:1630px}}@media(max-width:650px){table{min-width:1308px}.month-picker{min-width:148px;font-size:13px}}@media print{table{min-width:0!important}.month-picker input{display:none}.month-picker>span:last-of-type{display:none}}
