:root{--green:#196b24;--green-dark:#12531b;--ink:#18291c;--line:#252d26;--muted:#69766c;--page:#f5f7f5;--blue:#078dc1;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--page);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #159ccc;outline-offset:2px}button:disabled{opacity:.55;cursor:wait}.workspace-bar{height:64px;max-width:1180px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.workspace-brand{display:flex;align-items:center;gap:10px;font-weight:600}.brand-dot{width:9px;height:9px;background:var(--green);border-radius:50%}.divider{font-weight:400;color:#bac4bc;padding:0 3px}.text-button{background:transparent;border:0;color:var(--green);font-weight:600;padding:10px 8px;border-radius:5px}.text-button:hover{background:#e7eee7}main{max-width:1124px;margin:0 auto;padding:0 20px 120px}.report{background:white;padding:36px;border:1px solid #e1e7e1;box-shadow:0 4px 24px #13311b06;border-radius:5px}.report-header{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:center;gap:24px;margin:0 0 30px;min-height:125px}.report-header img{width:100%;max-width:250px;object-fit:contain}.logo-ar{justify-self:end}h1{font-size:23px;text-decoration:underline;text-align:center;color:#111;border:1px solid #222;padding:32px 5px;margin:0;font-weight:700;line-height:1.25}.identity-row{display:grid;grid-template-columns:1.12fr 1fr;gap:62px;margin-bottom:9px}.inline-field{display:flex;gap:8px;align-items:center;border:1px solid var(--line);padding:3px 7px;font-size:16px;white-space:nowrap}.inline-field input{width:100%;min-width:0;border:0;background:#f4f7f4;padding:5px;border-radius:2px;height:30px}.report-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:32px 62px;align-items:start}.report-grid section{min-width:0}.personal{width:88%;justify-self:end}.activities{width:83%}.therapy{width:100%}table{width:100%;border-collapse:collapse;table-layout:fixed;color:#111;font-size:14px}th,td{border:1px solid var(--line);height:33px;padding:0}thead th{background:var(--green);color:white;text-decoration:underline;font-size:16px;line-height:1.2;padding:5px 4px;font-weight:700}tbody th{background:var(--green);color:white;text-align:left;font-weight:400;padding:5px 7px;line-height:1.2}.vitals tbody th{font-size:14px}.green-cell{background:var(--green)}td input:not([type=checkbox]){display:block;width:calc(100% - 6px);height:27px;margin:3px;border:1px solid #dce4dd;border-radius:3px;background:#f6f8f6;padding:3px 5px;font-size:14px;min-width:0;color:#152819}.green-cell input:not([type=checkbox]){background:#ffffff14;border-color:#ffffff40;color:white}.green-cell input:not([type=checkbox]):focus{background:white;color:#152819}input[type=time]{font-size:12px!important;padding:1px!important}input[type=checkbox]{width:20px;height:20px;accent-color:var(--green);cursor:pointer;margin:0}.check-cell{text-align:center}.check-label{display:flex;width:100%;min-height:33px;align-items:center;justify-content:center;cursor:pointer}.housekeeping{margin-top:30px}.house-table{font-size:12px}.house-table thead th{font-size:13px;height:58px;padding:7px 5px}.house-table th:first-child{width:14%}.house-table th:last-child{width:21%}.house-table tbody th{font-weight:700;text-decoration:underline;text-align:center}.caregiver-field{margin-top:18px;border:1px solid #75b744;max-width:48%;min-height:76px;display:flex;align-items:center;gap:8px;padding:10px;font-size:14px}.caregiver-field input{width:100%;min-width:0;border:1px solid #dce4dd;border-radius:3px;background:#f6f8f6;padding:8px;direction:inherit}.privacy-note{text-align:center;font-size:12px;color:var(--muted);margin:18px 0 0}.action-bar{position:fixed;bottom:0;left:0;right:0;z-index:5;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid #e0e7e0;padding:16px 24px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.action-inner{max-width:1052px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:15px}#save-status{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.status-dot{width:7px;height:7px;background:var(--green);border-radius:50%;flex:none}.actions{display:flex;gap:10px}.button{border:1px solid var(--green);border-radius:5px;padding:12px 20px;font-size:14px;font-weight:600;min-height:44px;white-space:nowrap}.primary{background:var(--green);color:#fff}.primary:hover{background:var(--green-dark)}.secondary{background:#fff;color:var(--green)}.secondary:hover{background:#f0f6f0}dialog{border:1px solid #d8e2d9;border-radius:10px;box-shadow:0 20px 100px #0003;padding:24px;width:min(95vw,920px);max-height:94dvh;color:var(--ink)}dialog::backdrop{background:#0c1e14a6;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px}h2{font-size:20px;margin:0 0 10px}.dialog-header h2{margin:0}.preview-help{font-size:13px;color:var(--muted)}.preview-scroll{max-height:66dvh;overflow:auto;background:#edf0ed;border:1px solid #dce4dd;padding:12px}.preview-scroll img{display:block;width:100%;background:white;box-shadow:0 2px 8px #0001}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:16px}#reset-dialog{max-width:460px;line-height:1.6}#reset-dialog p{font-size:14px;color:var(--muted)}.keep-details{display:flex;align-items:center;gap:10px;font-size:14px}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);max-width:90vw;width:max-content;background:#193b22;color:white;padding:13px 18px;border-radius:7px;font-size:14px;box-shadow:0 4px 20px #0002;z-index:20}
@media(min-width:1100px){.report{padding:36px 40px 30px}.report-grid{row-gap:34px}}
@media(max-width:700px){.workspace-bar{height:54px;padding:0 16px;font-size:12px;gap:6px}.workspace-brand{gap:6px}.workspace-brand .divider{padding:0}.text-button{font-size:12px}main{padding:0 10px 145px}.report{padding:18px 13px}.report-header{gap:8px;min-height:65px;margin-bottom:20px;grid-template-columns:1fr 1.2fr 1fr}h1{font-size:13px;padding:17px 4px}.identity-row{grid-template-columns:1fr;gap:9px;margin-bottom:18px}.inline-field{font-size:14px;padding:4px 7px}.inline-field input{height:33px}.report-grid{display:flex;flex-direction:column;gap:24px}.report-grid section,.personal,.activities,.therapy{width:100%}thead th{font-size:15px;padding:7px 4px}th,td{height:42px}tbody th,.vitals tbody th{font-size:13px}td input:not([type=checkbox]){height:34px;font-size:16px;padding:4px}input[type=time]{font-size:14px!important}input[type=checkbox]{width:23px;height:23px}.check-label{min-height:42px}.housekeeping{margin-top:24px}.house-table,.house-table tbody,.house-table tr{display:block}.house-table thead{display:none}.house-table tr{border-top:1px solid var(--line)}.house-table tbody th{display:block;width:100%;font-size:15px;padding:9px;border-top:0}.house-table td{display:flex;align-items:center;justify-content:space-between;width:100%;border-top:0;padding:0 10px;min-height:43px}.house-table td:before{content:attr(data-label);font-size:13px}.house-table td .check-label{width:45px}.house-table td input:not([type=checkbox]){max-width:58%;font-size:16px}.caregiver-field{max-width:none;min-height:65px;flex-wrap:wrap;gap:8px}.caregiver-field input{font-size:16px}.action-bar{padding:10px 12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.action-inner{flex-direction:column;gap:9px;align-items:stretch}#save-status{font-size:11px;justify-content:center}.actions{gap:7px}.actions .button{flex:1;padding:12px 7px;font-size:12px}.preview-scroll{padding:3px;max-height:65dvh}dialog{padding:15px}.dialog-actions .button{padding:11px 14px}#toast{bottom:125px}.privacy-note{font-size:11px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s ease}}
.caregiver-field{white-space:nowrap}
@media(max-width:700px){.house-table tbody th:first-child{width:100%}.caregiver-field{white-space:normal}}
.vital-info{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:5px;padding:0;width:24px;height:24px;border:1px solid #ffffffa0;border-radius:50%;background:#ffffff16;color:white;font-size:14px;font-weight:700;font-family:Georgia,serif;font-style:italic;flex:none}
.vital-info:hover,.vital-info[aria-expanded=true]{background:white;color:var(--green)}
.vital-reference{position:fixed;inset:auto;margin:0;width:300px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;padding:16px;border:1px solid #cbdcce;border-radius:9px;background:white;color:var(--ink);box-shadow:0 8px 30px #0a261633;font-size:13px;line-height:1.45;font-family:Arial,Helvetica,sans-serif;text-align:left}
.vital-reference strong{font-size:14px}.reference-range{display:block;margin-top:6px;font-size:20px;font-weight:700;color:var(--green)}.vital-reference p{margin:8px 0}.vital-reference .reference-note{font-size:11px;color:#617065;border-top:1px solid #e2eae2;padding-top:9px}.vital-reference a{font-size:11px;color:#126b86}
@media print{.vital-info,.vital-reference{display:none!important}}
.report-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;font-size:12px;color:var(--muted)}.report-tools select{margin-left:7px;max-width:180px;background:white;border:1px solid #cedacf;border-radius:5px;padding:8px;color:var(--green);font:inherit}.report-tools .text-button{font-size:12px}
.identity-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 18px;font-size:12px;color:var(--muted)}.identity-help label{display:flex;gap:7px;align-items:center}.identity-help input[type=checkbox]{width:17px;height:17px}.vital-unit{display:block;color:#e3f1e5;font-size:10px;font-weight:400;margin-top:3px}.now-button{display:block;margin:2px auto 4px;border:1px solid #c9d9cb;border-radius:4px;color:var(--green);background:#edf5ed;font-size:11px;padding:3px 8px;min-height:25px}.now-button:hover{background:#dcecdc}.time-cell input[type=time]{width:calc(100% - 6px)}
.date-notice{border:1px solid #e0cd96;background:#fff9e9;padding:9px 12px;margin-bottom:12px;border-radius:5px;color:#6a5119;font-size:12px;line-height:1.5}.date-notice:not([hidden]){display:flex;gap:10px;align-items:center;justify-content:space-between}.date-notice .text-button{white-space:nowrap}.report-grid section,.housekeeping,#caregiver-section{scroll-margin-top:20px}
#export-dialog{max-width:490px}.export-summary{margin:18px 0}.export-summary div{display:grid;grid-template-columns:85px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #e6ece6;font-size:14px}.export-summary dt{color:var(--muted)}.export-summary dd{margin:0;overflow-wrap:anywhere}.warning-intro{font-size:13px;color:#795c1c;font-weight:600}#export-warnings{padding:10px 13px;background:#fff9eb;border:1px solid #ead8aa;border-radius:5px}#warning-list{padding-left:18px;margin:8px 0;font-size:12px;line-height:1.6}#warning-list li+li{margin-top:7px}
@media(max-width:700px){.identity-help{font-size:11px;align-items:flex-start}.identity-help label{line-height:1.4;max-width:250px}.time-cell input[type=time]{font-size:12px!important}.now-button{min-height:30px;font-size:11px}.report-tools select{max-width:155px}.report-tools{gap:4px}.date-notice:not([hidden]){align-items:flex-start}#back-top{padding:9px 3px}.vital-unit{font-size:10px}}
@media print{.report-tools,.date-notice,.identity-help,.vital-unit,.now-button{display:none!important}}
.report-tools{position:sticky;top:0;z-index:4;background:var(--page);padding:7px 0}.report-grid section,.housekeeping,#caregiver-section{scroll-margin-top:65px}
