:root{color:#172033;background:#f5f7fb;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:0;min-height:100vh;margin:0}.authPage{background:linear-gradient(135deg,#172033,#30466f);grid-template-rows:1fr auto;justify-items:center;min-height:100vh;padding:20px;display:grid}.authCard{background:#fff;border-radius:22px;align-self:center;width:min(440px,100%);padding:28px;box-shadow:0 22px 60px #0000003d}.authCard h1{margin-top:0}.authCard form,.adminGrid form,.profileCard form{gap:14px;display:grid}.authLink{color:#315b9d;cursor:pointer;font:inherit;background:0 0;border:0;justify-self:center;padding:4px;text-decoration:underline}.appFooter{color:#64748b;text-align:center;flex-wrap:wrap;justify-content:center;gap:5px;width:100%;padding:22px 12px 8px;font-size:.86rem;display:flex}.authPage .appFooter{color:#ffffffc7}.appFooter a{color:inherit}.appFooter a:hover{color:#315b9d}.authPage .appFooter a:hover{color:#fff}.footerLinkEditor{gap:10px;display:grid}.footerLinkRow{grid-template-columns:minmax(140px,.7fr) minmax(220px,1.5fr) auto;align-items:end;gap:10px;display:grid}@media (width<=700px){.footerLinkRow{grid-template-columns:1fr}.footerLinkRow button{justify-self:start}}.appHeader{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.accountNav{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.accountNav button{color:#fff;cursor:pointer;background:#ffffff24;border:1px solid #ffffff40;border-radius:12px;align-items:center;gap:6px;padding:9px 11px;display:inline-flex}.helpOverlay{z-index:60;background:#0f172ac2;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.helpPanel{background:#fff;border-radius:18px;gap:16px;width:min(920px,100%);max-height:min(780px,92vh);padding:18px;display:grid;overflow:hidden;box-shadow:0 28px 80px #00000059}.helpHeader{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.helpHeader h2{margin:0 0 4px}.helpHeader p{color:#64748b;margin:0}.helpHeader button{color:#172033;cursor:pointer;background:#eef2f8;border:0;border-radius:12px;width:40px;height:40px;font-size:1.4rem}.helpContent{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-right:4px;display:grid;overflow:auto}.helpContent article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.helpContent h3{margin:0 0 8px}.helpContent ol{color:#334155;margin:0;padding-left:1.3rem;line-height:1.45}.helpContent li+li{margin-top:5px}.backButton{margin-bottom:14px}.adminGrid{grid-template-columns:repeat(2,1fr);gap:28px;display:grid}.adminFields{grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px;display:grid}.adminList{gap:8px;margin-top:14px;display:grid}.adminList>div{background:#f4f6fa;border-radius:12px;justify-content:space-between;gap:12px;padding:12px;display:flex}.adminList span{color:#68738a}.adminSection{gap:14px;display:grid}.adminSectionHeader{justify-content:space-between;align-items:center;gap:12px;display:flex}.adminSectionHeader h2{margin:0}.adminSection form{gap:14px;display:grid}.adminSelectionDetail{color:#64748b;margin:0;font-size:.92rem;line-height:1.5}.calendarInstructions{color:#64748b;margin:12px 0 0;font-size:.9rem;line-height:1.45}.compactField{color:#64748b;gap:4px;font-size:.74rem}.compactField input{font-size:1rem}.dropdownPreview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:10px;padding:14px;display:grid}.auditList{gap:8px;max-height:440px;display:grid;overflow:auto}.auditList article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:4px;padding:12px;display:grid}.auditList span,.auditList small{color:#64748b;font-size:.85rem}.medicineAdminList,.foodLocationAdminList,.foodItemAdminList,.documentCategoryAdminList{gap:12px;display:grid}.userAdminList{gap:12px;margin-top:18px;display:grid}.userAdminRow{background:#f4f6fa;border-radius:14px;grid-template-columns:1fr 1.2fr 1fr auto auto;align-items:end;gap:10px;padding:14px;display:grid}.roleChecks{align-self:center;gap:10px;display:flex}.medicineAdminRow{background:#f4f6fa;border-radius:14px;grid-template-columns:1.2fr 1fr 1.5fr auto auto;align-items:end;gap:10px;padding:14px;display:grid}.documentCategoryAdminRow{background:#f4f6fa;border-radius:14px;grid-template-columns:1fr 1fr 1.6fr auto auto;align-items:end;gap:10px;padding:14px;display:grid}.foodLocationAdminRow{background:#f4f6fa;border-radius:14px;grid-template-columns:1.2fr .7fr 1fr 1fr 1.4fr auto auto;align-items:end;gap:10px;padding:14px;display:grid}.foodItemAdminRow{background:#f4f6fa;border-radius:14px;grid-template-columns:1.1fr 1.2fr .65fr .65fr 1.4fr auto auto;align-items:end;gap:10px;padding:14px;display:grid}.activeCheck{white-space:nowrap;flex-direction:row;align-self:center;align-items:center;gap:7px;display:flex}.activeCheck input{width:19px;height:19px}.profileCard{max-width:620px;margin-inline:auto}.profileGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.clinicalNotes{gap:12px;display:grid}.clinicalNotes article{background:#f4f6fa;border-radius:14px;padding:14px}.clinicalNotes article p{white-space:pre-wrap;margin-bottom:0}.htmlEditor{background:#fff;border:1px solid #d8deea;border-radius:14px;gap:0;display:grid;overflow:hidden}.htmlToolbar{background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;display:flex}.htmlToolbar select{border-radius:10px;width:auto;min-height:32px;padding:6px 9px;font-size:.86rem}.htmlToolbar button{color:#30466f;cursor:pointer;background:#eef2f8;border:0;border-radius:10px;min-width:34px;min-height:32px;padding:6px 9px;font-weight:750}.htmlEditorSurface{color:#172033;outline:none;min-height:130px;padding:12px;line-height:1.5}.htmlEditorSurface:empty:before{content:attr(data-placeholder);color:#94a3b8}.markdownEditorPane{gap:10px;padding:10px;display:grid}.markdownEditorPane textarea{background:#f8fafc;border:0;border-radius:10px;min-height:180px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.5}.htmlContent{color:#334155;line-height:1.55}.htmlContent>:first-child{margin-top:0}.htmlContent>:last-child{margin-bottom:0}.htmlContent a{color:#3730a3;font-weight:700}.htmlContent ul,.htmlContent ol{padding-left:1.4rem}.doctorLayout{grid-template-columns:minmax(210px,.7fr) 2fr;gap:24px;display:grid}.patientList,.doctorLogList{gap:8px;margin-top:12px;display:grid}.patientList button,.doctorLogList button{color:#172033;text-align:left;cursor:pointer;background:#f4f6fa;border:1px solid #0000;border-radius:12px;gap:4px;padding:12px;display:grid}.patientList button.active,.patientList button:hover,.doctorLogList button:hover{background:#eef3ff;border-color:#829ac9}.patientList span,.doctorLogList span{color:#68738a;font-size:.85rem}.dateFilters{grid-template-columns:1fr 1fr auto;align-items:end;gap:10px;display:grid}.catalogAddForm{grid-template-columns:1fr 1fr 1.4fr auto;align-items:end;gap:10px;margin:18px 0;display:grid}.patientRecord h3{margin-bottom:6px}.patientRecord textarea{margin:8px 0}.noteActions{flex-wrap:wrap;gap:8px;display:flex}.noteDelete{color:#b91c1c;cursor:pointer;background:#fff1f2;border:1px solid #fecdd3;border-radius:12px;align-items:center;gap:7px;padding:10px 14px;font-weight:750;display:inline-flex}.vitalsGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.vitalsList{gap:12px;display:grid}.vitalsList article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:10px;padding:14px;display:grid}.vitalSummaryGrid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;display:grid}.vitalSummaryGrid span{color:#334155;background:#eef2f8;border-radius:10px;padding:8px 10px;font-size:.9rem;font-weight:700}.foodPickerGrid{grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:10px;margin-bottom:12px;display:grid}.documentLibrary{gap:14px;display:grid}.documentUploadGrid{grid-template-columns:1.1fr .8fr 1.1fr auto;align-items:end;gap:10px;display:grid}.documentFolderList{gap:14px;display:grid}.documentFolder{gap:8px;display:grid}.documentFolder h3{color:#334155;align-items:center;gap:8px;margin:0;font-size:1rem;display:inline-flex}.documentList{gap:8px;display:grid}.documentList article{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;display:grid}.documentList article div:not(.documentActions){gap:3px;min-width:0;display:grid}.documentList span{color:#64748b;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;overflow:hidden}.documentActions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.documentPreviewButton{color:#30466f;cursor:pointer;background:#eef2f8;border:1px solid #d8deea;border-radius:12px;place-items:center;width:76px;height:58px;padding:0;display:grid;overflow:hidden}.documentPreviewButton:hover{border-color:#829ac9;box-shadow:0 0 0 3px #829ac92e}.documentPreviewButton img{object-fit:cover;width:100%;height:100%}.documentFilePreview,.documentTextPreview{place-items:center;width:100%;height:100%;padding:6px;display:grid}.documentFilePreview strong{font-size:.78rem;line-height:1}.documentTextPreview{color:#475569;text-align:left;background:#fff;align-content:start;justify-items:start;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.54rem;line-height:1.25}.documentGalleryPanel{width:min(1040px,100%)}.documentGalleryStage{background:#0f172a;border-radius:14px;min-height:min(620px,68vh);display:grid;overflow:hidden}.documentGalleryStage img,.documentGalleryStage iframe,.documentGalleryStage pre{border:0;width:100%;height:min(620px,68vh);margin:0}.documentGalleryStage img{object-fit:contain}.documentGalleryStage pre{color:#172033;white-space:pre-wrap;background:#fff;padding:18px;overflow:auto}.documentFallbackPreview{color:#e2e8f0;align-content:center;place-items:center;gap:10px;display:grid}button,input,textarea,select{font:inherit}.page{width:min(1100px,100%);margin:0 auto;padding:16px}.hero{color:#fff;background:linear-gradient(135deg,#172033,#30466f);border-radius:24px;margin-bottom:18px;padding:28px}.hero h1{margin:0 0 8px;font-size:clamp(2rem,5vw,3.5rem)}.hero p{opacity:.9;margin:0 0 20px}.dateBox{color:#172033;background:#fff;border-radius:16px;align-items:center;gap:10px;width:fit-content;padding:12px;display:flex}.dateBox input{border:none;outline:none;min-width:0}.heroActions{flex-wrap:wrap;align-items:stretch;gap:10px;display:flex}.homeButton{color:#fff;cursor:pointer;background:#ffffff24;border:1px solid #ffffff47;border-radius:16px;align-items:center;gap:8px;padding:12px 16px;font-weight:700;display:inline-flex}.homeButton:hover{background:#ffffff38}.card{background:#fff;border-radius:22px;margin-bottom:16px;padding:20px;box-shadow:0 10px 25px #17203314}.card h2{margin-top:0}.sectionTitle{justify-content:space-between;align-items:center;gap:12px;display:flex}.sectionTitle h2{margin-bottom:16px}.sectionActions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}label{gap:8px;font-weight:650;display:grid}.empty,.loading{color:#68738a}.status{border-radius:14px;margin:0 0 16px;padding:12px 16px;font-weight:650}.status.success{color:#17613a;background:#def7e8}.status.error{color:#8f2020;background:#ffe4e4}.historyList{gap:10px;display:grid}.calendar{max-width:620px;margin:0 auto 28px}.calendarToggle{color:#30466f;cursor:pointer;background:#eef2f8;border:0;border-radius:12px;align-items:center;gap:6px;padding:9px 12px;font-size:.85rem;font-weight:700;display:inline-flex}.savedEntriesButton{color:#172033;cursor:pointer;text-align:left;border:1px solid #e2e8f0e6;width:100%}.savedEntriesButton,.savedEntriesButton span{justify-content:space-between;align-items:center;gap:14px;display:flex}.savedEntriesButton span{flex-direction:column;justify-content:center;align-items:flex-start}.savedEntriesButton strong{font-size:1.2rem;line-height:1.2}.savedEntriesButton small{color:#64748b;font-size:.9rem}.savedEntriesButton:hover{background:#f8fbff;border-color:#c8d5ee;transform:translateY(-1px)}.calendarHeader{text-align:center;grid-template-columns:42px 1fr 42px;align-items:center;margin-bottom:12px;display:grid}.calendarHeader button{color:#172033;cursor:pointer;background:#eef2f8;border:0;border-radius:12px;place-items:center;width:40px;height:40px;padding:0;display:grid}.calendarGrid{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.weekday{color:#68738a;text-align:center;text-transform:uppercase;padding:6px 0;font-size:.75rem;font-weight:700}.calendarDay,.calendarBlank{aspect-ratio:1}.calendarDay{color:#9aa2b1;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;min-width:0;position:relative}.calendarDay:hover{color:#172033;background:#f4f6fa;border-color:#d8deea}.calendarDay.hasEntry{color:#172033;cursor:pointer;background:#eef3ff;border-color:#c8d5ee;font-weight:750}.calendarDay.hasEntry:hover,.calendarDay.selected{color:#fff;background:#30466f;border-color:#30466f}.calendarDay span{background:currentColor;border-radius:50%;width:5px;height:5px;position:absolute;bottom:7px;left:50%;transform:translate(-50%)}.allEntriesTitle{margin:0}.allEntriesHeader{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.sortButton{color:#30466f;cursor:pointer;background:#eef2f8;border:0;border-radius:12px;align-items:center;gap:7px;padding:9px 12px;font-size:.85rem;font-weight:700;display:inline-flex}.historyEntry{text-align:left;color:#172033;cursor:pointer;background:#f4f6fa;border:1px solid #0000;border-radius:14px;gap:5px;padding:14px;display:grid}.historyEntry span{color:#68738a;font-size:.88rem}.historyEntry small{color:#4f596d;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;line-height:1.4;overflow:hidden}.historyEntry:hover,.historyEntry.active{background:#eef3ff;border-color:#829ac9}.srOnly{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}textarea{resize:vertical;min-height:120px}input,textarea,select{background:#fff;border:1px solid #d8deea;border-radius:14px;width:100%;min-width:0;padding:12px}.row,.grid,.bowelGrid{align-items:center;gap:10px;margin-bottom:10px;display:grid}.row{grid-template-columns:44px 1.5fr 140px 1.5fr 48px}.grid{grid-template-columns:140px 1.5fr 140px 1.5fr 48px}.foodEntry{border-bottom:1px solid #e5e9f1;padding:12px 0}.foodEntry:last-of-type{margin-bottom:14px}.photoArea{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.photoPreview{width:112px;height:88px;position:relative}.photoPreview img{object-fit:cover;border-radius:12px;width:100%;height:100%;display:block}.photoOpenButton{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:0}.photoOpenButton:hover img{outline-offset:2px;outline:3px solid #4f46e538}.photoPreview>button:not(.photoOpenButton){color:#fff;cursor:pointer;background:#9b1c1c;border:2px solid #fff;border-radius:50%;width:24px;height:24px;padding:0;position:absolute;top:-7px;right:-7px}.galleryOverlay{z-index:50;background:#0f172ac2;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.galleryPanel{background:#fff;border-radius:18px;gap:14px;width:min(960px,100%);max-height:min(760px,92vh);padding:16px;display:grid;box-shadow:0 28px 80px #00000059}.galleryHeader{justify-content:space-between;align-items:center;gap:12px;display:flex}.galleryHeader div{gap:2px;display:grid}.galleryHeader span{color:#64748b;font-size:.88rem}.galleryHeader button,.galleryStage button,.galleryThumbs button{cursor:pointer;border:0}.galleryHeader button{color:#172033;background:#eef2f8;border-radius:12px;width:40px;height:40px;font-size:1.4rem}.galleryStage{grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;gap:10px;display:grid}.galleryStage.single{grid-template-columns:minmax(0,1fr)}.galleryStage img{object-fit:contain;background:#0f172a;border-radius:14px;width:100%;max-height:58vh}.galleryStage button{color:#172033;background:#eef2f8;border-radius:14px;place-items:center;width:46px;height:46px;display:grid}.galleryThumbs{gap:8px;padding-bottom:4px;display:flex;overflow-x:auto}.galleryThumbs button{background:0 0;border:3px solid #0000;border-radius:12px;flex:0 0 74px;height:58px;padding:0}.galleryThumbs button.active{border-color:#4f46e5}.galleryThumbs img{object-fit:cover;border-radius:8px;width:100%;height:100%}.pdfReport{display:none}.doctorReport{gap:20px;display:grid}.doctorReport .reportHeader{border-bottom:1px solid #d8deea;padding-bottom:14px}.doctorReport .reportHeader p{color:#64748b;margin:4px 0 0}.doctorReport article{margin-top:10px}.doctorPhotoGrid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:12px;display:grid}.doctorPhotoGrid figure{margin:0}.doctorPhotoGrid img{object-fit:contain;background:#f8fafc;border:1px solid #d8deea;border-radius:8px;width:100%;max-height:260px}.doctorPhotoGrid figcaption{color:#64748b;margin-top:4px;font-size:.85rem}.pdfPhotoGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;display:grid}.pdfPhotoGrid figure{margin:0}.pdfPhotoGrid img{object-fit:contain;border:1px solid #d8deea;border-radius:8px;width:100%;max-height:280px}.pdfPhotoGrid figcaption{color:#64748b;margin-top:4px;font-size:.78rem}.photoButton{color:#30466f;cursor:pointer;background:#eef2f8;border-radius:14px;align-items:center;gap:8px;padding:11px 14px;display:inline-flex}.photoButton input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.bowelGrid{grid-template-columns:140px 180px 1fr 48px}.check{width:22px;height:22px;margin:auto}.secondary,.save,.download,.danger,.iconBtn{cursor:pointer;border:none;border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:13px 18px;display:inline-flex}button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.68}.secondary{color:#172033;background:#eef2f8}.save{color:#fff;background:#172033;width:100%;margin:10px 0;font-size:1.05rem;font-weight:700}.danger{color:#9b1c1c;background:#ffe8e8;width:100%;margin-bottom:40px;font-weight:700}.download{color:#172033;background:#e8eef9;width:100%;margin-bottom:10px;font-weight:700}.iconBtn{color:#9b1c1c;background:#fff0f0;padding:12px}@media (width<=760px){.page{padding:10px}.hero,.card{border-radius:18px}.row,.grid,.bowelGrid,.documentUploadGrid,.documentList article{grid-template-columns:1fr}.documentActions{justify-content:stretch}.documentActions button{width:100%}.helpOverlay{padding:10px}.helpPanel{border-radius:16px;max-height:94vh}.helpContent{grid-template-columns:1fr}.row{padding-left:42px;position:relative}.check{position:absolute;top:12px;left:5px}.dateBox,.iconBtn,.homeButton{width:100%}.allEntriesHeader,.sectionTitle{flex-direction:column;align-items:flex-start}.sectionActions{justify-content:flex-start}.appHeader,.adminList>div,.adminSectionHeader{flex-direction:column;align-items:flex-start}.accountNav{justify-content:flex-start}.adminGrid,.adminFields,.medicineAdminRow,.foodLocationAdminRow,.foodItemAdminRow,.documentCategoryAdminRow,.userAdminRow,.foodPickerGrid{grid-template-columns:1fr}.roleChecks{align-self:start}.doctorLayout,.dateFilters,.catalogAddForm{grid-template-columns:1fr}.activeCheck{align-self:start}}.heroEyebrow{z-index:1;color:#ccfbf1;letter-spacing:.075em;text-transform:uppercase;background:#14b8a62b;border:1px solid #5eead447;border-radius:999px;align-items:center;gap:7px;margin-bottom:18px;padding:7px 11px;font-size:.73rem;font-weight:800;display:inline-flex;position:relative}.statsGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px;display:grid}.statCard{isolation:isolate;color:#fff;border:1px solid #ffffff29;border-radius:20px;gap:14px;min-height:142px;padding:20px;display:flex;position:relative;overflow:hidden;box-shadow:0 16px 34px #0f172a24}.statCard:after{content:"";z-index:-1;background:#ffffff1a;border-radius:36px;width:120px;height:120px;position:absolute;bottom:-42px;right:-28px;transform:rotate(24deg)}.statIndigo{background:linear-gradient(145deg,#4338ca,#6366f1)}.statTeal{background:linear-gradient(145deg,#0f766e,#14b8a6)}.statOrange{background:linear-gradient(145deg,#c2410c,#f97316)}.statRose{background:linear-gradient(145deg,#be185d,#f43f5e)}.statIcon{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff2b;border:1px solid #fff3;border-radius:14px;flex:0 0 44px;place-items:center;width:44px;height:44px;display:grid}.statCard div{align-content:start;display:grid}.statCard small{color:#ffffffc7;text-transform:uppercase;letter-spacing:.06em;font-size:.75rem;font-weight:750}.statCard strong{letter-spacing:-.05em;margin-top:3px;font-size:2rem;line-height:1}.statCard p{color:#ffffffc2;margin:8px 0 0;font-size:.8rem}.historyCard{position:relative;overflow:hidden}.historyCard:before{content:"";background:linear-gradient(90deg,#4f46e5,#14b8a6,#f97316);width:100%;height:4px;position:absolute;top:0;left:0}.historyList{grid-template-columns:repeat(2,minmax(0,1fr))}.historyEntry{min-height:92px;padding-left:20px;position:relative}.historyEntry:before{content:"";background:linear-gradient(#6366f1,#2dd4bf);border-radius:999px;width:4px;position:absolute;top:17px;bottom:17px;left:8px}.photoPreview img{box-shadow:0 8px 18px #0f172a29}.sectionTitle>svg{box-sizing:content-box;color:#4f46e5;background:#eef2ff;border-radius:12px;padding:9px}@media (width<=960px){.statsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.statsGrid,.historyList{grid-template-columns:1fr}.statCard{min-height:116px}}:root{color:#182230;font-synthesis:none;text-rendering:optimizelegibility;--ink:#182230;--muted:#64748b;--line:#e2e8f0;--surface:#fffffff0;--primary:#4f46e5;--primary-dark:#3730a3;--primary-soft:#eef2ff;--teal:#0f766e;--danger:#dc2626;--shadow:0 1px 2px #0f172a0a, 0 12px 32px #0f172a0f;background:#f4f7fb;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{background:radial-gradient(circle at 8% 0,#4f46e517,#0000 28rem),radial-gradient(circle at 96% 16%,#0d948814,#0000 25rem),#f4f7fb}button,input,textarea,select{transition:border-color .16s,box-shadow .16s,background .16s,color .16s,transform .16s}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #4f46e533}.page{width:min(1220px,100%);padding:28px clamp(16px,3vw,38px) 64px}.hero{background:radial-gradient(circle at 90% 15%,#2dd4bf47,#0000 18rem),linear-gradient(125deg,#111827 0%,#312e81 55%,#4338ca 100%);border:1px solid #ffffff1f;border-radius:28px;margin-bottom:24px;padding:clamp(24px,4vw,38px);position:relative;overflow:hidden;box-shadow:0 24px 60px #312e8133}.hero:after{content:"";pointer-events:none;border:42px solid #ffffff0e;border-radius:50%;width:260px;height:260px;position:absolute;bottom:-110px;right:-70px}.hero h1{letter-spacing:-.045em;max-width:720px;margin:0;font-size:clamp(2rem,4.5vw,3.35rem);line-height:1.02}.hero p{color:#dbeafe;max-width:650px;margin:12px 0 22px;line-height:1.6}.appHeader{z-index:1;position:relative}.accountNav button,.homeButton{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffff1a;border-color:#ffffff2e;border-radius:999px;min-height:40px;font-weight:650}.accountNav button:hover,.homeButton:hover{background:#fff3;transform:translateY(-1px)}.dateBox{min-height:46px;color:var(--ink);background:#fffffff5;border:1px solid #fffc;border-radius:14px;padding:8px 14px;box-shadow:0 8px 20px #0f172a1f}.card{background:var(--surface);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid #e2e8f0e6;border-radius:22px;margin-bottom:18px;padding:clamp(20px,3vw,30px)}.card h2{color:#111827;letter-spacing:-.02em;font-size:1.2rem}.card h3{color:#334155;letter-spacing:-.01em}label{color:#334155;font-size:.86rem;font-weight:700}input,textarea,select{min-height:44px;color:var(--ink);background:#fff;border:1px solid #dbe2ea;border-radius:12px}input:hover,textarea:hover,select:hover{border-color:#a5b4fc}input:focus,textarea:focus,select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 4px #4f46e51a}.secondary,.save,.download,.danger,.iconBtn,.calendarToggle,.sortButton{border-radius:12px;min-height:42px;font-weight:750}.secondary,.calendarToggle,.sortButton,.download{color:var(--primary-dark);background:var(--primary-soft);border:1px solid #dfe3ff}.secondary:hover,.calendarToggle:hover,.sortButton:hover,.download:hover{background:#e0e7ff;transform:translateY(-1px)}.save{background:linear-gradient(135deg, var(--primary), #6366f1);box-shadow:0 10px 22px #4f46e533}.save:hover{background:linear-gradient(135deg, var(--primary-dark), var(--primary));transform:translateY(-1px)}.danger{color:#b91c1c;background:#fff1f2;border:1px solid #fecdd3}.iconBtn{color:#be123c;background:#fff1f2}.status{border:1px solid #0000;border-radius:14px;box-shadow:0 8px 20px #0f172a0a}.status.success{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.status.error{color:#991b1b;background:#fef2f2;border-color:#fecaca}.historyEntry,.patientList button,.doctorLogList button{border-color:var(--line);background:#f8fafc;border-radius:14px;padding:15px 16px}.historyEntry:hover,.historyEntry.active,.patientList button.active,.patientList button:hover,.doctorLogList button:hover{color:var(--primary-dark);background:var(--primary-soft);border-color:#a5b4fc;transform:translateY(-1px)}.calendar{border:1px solid var(--line);background:#f8fafc;border-radius:18px;padding:16px}.calendarDay{border-radius:10px;font-weight:650}.calendarDay.hasEntry{color:var(--primary-dark);background:var(--primary-soft);border-color:#c7d2fe}.calendarDay.hasEntry:hover,.calendarDay.selected{color:#fff;background:var(--primary);border-color:var(--primary);box-shadow:0 7px 14px #4f46e533}.foodEntry,.medicineAdminRow,.foodLocationAdminRow,.foodItemAdminRow,.documentCategoryAdminRow,.userAdminRow,.clinicalNotes article,.adminList>div{border:1px solid var(--line);background:#f8fafc}.medicineAdminRow,.foodLocationAdminRow,.foodItemAdminRow,.documentCategoryAdminRow,.userAdminRow,.clinicalNotes article,.adminList>div{border-radius:14px}.authPage{background:radial-gradient(circle at 20% 20%,#2dd4bf38,#0000 25rem),radial-gradient(circle at 80% 85%,#818cf840,#0000 28rem),#111827;position:relative;overflow:hidden}.authCard{border:1px solid #ffffffb3;border-radius:24px;padding:clamp(28px,5vw,42px);box-shadow:0 32px 80px #00000052}.authCard h1{letter-spacing:-.04em;margin-bottom:8px;font-size:2rem}.empty,.loading,.adminList span,.patientList span,.doctorLogList span,.historyEntry span,.historyEntry small{color:var(--muted)}@media (width<=760px){.page{width:100%;max-width:100%;padding:clamp(14px, 4vw, 20px) max(clamp(14px, 4vw, 22px), env(safe-area-inset-right)) clamp(36px, 8vw, 48px) max(clamp(14px, 4vw, 22px), env(safe-area-inset-left));overflow-x:clip}.hero{border-radius:20px;padding:clamp(20px,5.5vw,28px) clamp(16px,5vw,24px)}.hero h1{overflow-wrap:anywhere;font-size:clamp(1.9rem,8vw,2.35rem)}.card{border-radius:18px;padding:clamp(16px,4.8vw,22px) clamp(14px,4.5vw,20px)}.appHeader,.heroActions,.sectionTitle{min-width:0}.sectionTitle{flex-wrap:wrap;gap:12px}.accountNav{width:100%}.accountNav button{text-align:center;overflow-wrap:anywhere;flex:calc(50% - 8px);justify-content:center;min-width:0}.dateBox{min-width:0;max-width:100%}.calendar{max-width:100%;padding:clamp(10px,3vw,14px)}.calendarGrid,.calendarHeader{min-width:0}.calendarDay{min-width:0;padding:0}.photoPreview{width:clamp(96px,50vw - 34px,112px)}.secondary,.save,.download,.danger,.homeButton,.photoButton,.sortButton,.calendarToggle{max-width:100%}}@media print{@page{margin:.72in .55in .68in}body{background:#fff!important}.page>:not(.pdfReport){display:none!important}.page{width:100%;max-width:none;padding:0}.pdfReport{color:#111827;font-family:Georgia,Times New Roman,serif;line-height:1.45;display:block}.pdfPageHeader,.pdfPageFooter{color:#4b5563;justify-content:space-between;gap:16px;font-family:Georgia,Times New Roman,serif;font-size:.78rem;line-height:1.2;display:flex;position:fixed;left:0;right:0}.pdfPageHeader{border-bottom:1px solid #d1d5db;padding-bottom:8px;top:-.42in}.pdfPageFooter{border-top:1px solid #d1d5db;padding-top:8px;bottom:-.4in}.pdfReportHeader{border-bottom:2px solid #111827;margin-bottom:20px;padding-bottom:16px}.pdfReportHeader p{color:#4b5563;text-transform:uppercase;letter-spacing:.08em;margin:0 0 6px;font-size:.9rem}.pdfReport dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 0;display:grid}.pdfReport dl div{gap:2px;display:grid}.pdfReport dt{color:#4b5563;text-transform:uppercase;letter-spacing:.06em;font-size:.78rem}.pdfReport dd{margin:0;font-weight:700}.pdfReport h1{margin:0 0 4px;font-size:2rem}.pdfReport h2{border-bottom:1px solid #cbd5e1;margin:22px 0 8px;padding-bottom:4px;font-size:1.2rem}.pdfReport h3{margin:12px 0 4px;font-size:1rem}.pdfReport p{margin:4px 0}.pdfReport article{break-inside:avoid;margin-bottom:12px}.pdfReport .htmlContent{color:#111827}.pdfPhotoGrid{break-inside:avoid}.pdfPhotoGrid img{max-height:240px}}
