:root{font-family:'IBM Plex Sans Thai',system-ui,sans-serif;color:#987486;background:#7b1044;--forest:#c4a4b4;--mint:#debccc;--line:#710f3e;--soft:#961453;--subtle:#2d111f;--ink:#926a7d;--shadow:0 12px 32px rgba(13,72,47,.065);-webkit-text-size-adjust:100%}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;overflow-x:hidden}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #e3bfd0;outline-offset:2px}button:disabled{opacity:.62;cursor:wait}a{color:inherit;text-decoration:none}input:not([type=checkbox]),select,textarea{font-size:16px}input,select,textarea{width:100%;border:1px solid #690e3a;border-radius:12px;background:#fff;color:#7d596a;padding:12px 13px;min-height:46px;transition:border-color .18s,box-shadow .18s}input:focus,select:focus,textarea:focus{outline:0;border-color:#d09bb5;box-shadow:0 0 0 3px #d09bb51c}textarea{resize:vertical;min-height:82px;line-height:1.65}button{cursor:pointer}button,select,input,textarea{-webkit-tap-highlight-color:transparent}p{line-height:1.68}h1,h2,h3,h4{font-family:'Kanit','IBM Plex Sans Thai',sans-serif;line-height:1.35}small{line-height:1.5}main{width:min(1540px,100%);padding:26px 26px 44px;margin:auto}.health-app{min-height:100vh}.health-topbar{height:82px;display:flex;align-items:center;gap:15px;background:#fff;border-bottom:1px solid #5e0c34;padding:14px clamp(16px,3vw,42px);position:sticky;top:0;z-index:40;box-shadow:0 2px 14px #8e6d7d10}.health-back{display:grid;place-items:center;width:41px;height:41px;flex:none;border:1px solid #680e39;border-radius:14px;color:#a8728c;font-size:24px}.health-brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-symbol{background:linear-gradient(145deg,#d5bbc8,#daacc2);color:#fff;padding:8px 12px;border-radius:13px;font-size:20px;box-shadow:0 5px 16px #dabfcc3c}.health-brand b{font-size:17px;display:block;white-space:nowrap}.health-brand b span{color:#d3abbf}.health-brand small{color:#250b18;font-size:11px;display:block}.operator-chip{margin-left:auto;border:1px solid #7a1043;background:#b11761;border-radius:999px;color:#a75d81;font-size:12px;padding:9px 14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:290px}.health-hero{border-radius:22px;padding:29px 34px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(115deg,#cfbdc5 10%,#e5d5dd 66%,#e2ccd7 100%);color:white;position:relative;overflow:hidden;box-shadow:0 12px 30px #e4d3db2a}.health-hero:after{content:'';position:absolute;right:-50px;top:-120px;width:350px;height:350px;border:1px solid #ffffff32;border-radius:100%;box-shadow:0 0 0 50px #ffffff09,0 0 0 100px #ffffff07;pointer-events:none}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:#af487a;font-weight:700}.health-hero .eyebrow{color:#ec6aa9}.health-hero h1{font-size:clamp(27px,3vw,38px);margin:9px 0 6px}.health-hero p{margin:0;color:#e32681;font-size:14px;max-width:830px}.hero-icon{color:#ffffff88;font-size:80px;margin-right:34px}.health-security{margin-top:16px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#a9165d;border:1px solid #ab165e;color:#a8718b;border-radius:13px;padding:12px 16px;font-size:12px}.health-security span:last-child{color:#311422}.secure-dot{color:#debacb}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:19px 0 20px}.metric-card{padding:18px 17px;background:#fff;border:1px solid #760f41;border-radius:17px;box-shadow:var(--shadow);min-width:0;display:flex;flex-direction:column;gap:5px;position:relative;overflow:hidden}.metric-card:before{content:'';position:absolute;left:0;top:0;width:4px;height:100%;background:#971554}.metric-card.done:before,.metric-card.agree:before{background:#dcb3c7}.metric-card.waiting:before{background:#d8a649}.metric-card.follow:before{background:#c67b5d}.metric-card small{color:#240c18;font-size:12px}.metric-card strong{font-family:'Kanit',sans-serif;font-size:31px;line-height:1.15;color:#b1899c}.metric-card span{color:#260a17;font-size:11px}.health-main-layout{display:grid;grid-template-columns:minmax(285px,350px) minmax(0,1fr);gap:19px;align-items:start}.roster-panel,.detail-panel{min-width:0;background:#fff;border:1px solid #7b1044;border-radius:21px;box-shadow:var(--shadow)}.roster-panel{position:sticky;top:98px;max-height:calc(100vh - 118px);display:flex;flex-direction:column;overflow:hidden}.roster-head{display:flex;justify-content:space-between;gap:12px;padding:22px 20px 14px}.roster-head h2{font-size:21px;margin:4px 0}.roster-head p{font-size:12px;color:#250c18;margin:0}.total-badge{align-self:center;background:#db1c79;color:#e4d0da;padding:7px 10px;border-radius:99px;font-size:12px;white-space:nowrap;font-weight:700}.search-field{margin:4px 18px 12px;position:relative;display:flex;align-items:center}.search-field span{position:absolute;left:13px;color:#743654;font-size:24px;pointer-events:none}.search-field input{padding-left:40px;background:#7b1044}.filter-label{margin:0 20px 5px;color:#230b17;font-size:11px}.roster-panel select{width:calc(100% - 36px);margin:0 18px 12px;font-size:14px;background:#961453}.roster-list{overflow:auto;overscroll-behavior:contain;min-height:100px;scrollbar-width:thin}.roster-person{display:flex;gap:10px;align-items:center;text-align:left;padding:13px 15px;width:100%;border:0;border-top:1px solid #5a0c32;background:#fff;transition:background .15s}.roster-person:hover{background:#c1196a}.roster-person.selected{background:#c51a6d;border-left:4px solid #deb7ca;padding-left:11px}.list-index{background:#89124c;color:#360c21;border-radius:9px;padding:6px 7px;font:600 11px/1.2 system-ui;flex:none}.list-person{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.list-person b{font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#885a70}.list-person small{font-size:12px;color:#2e0f1e;font-variant-numeric:tabular-nums}.list-status{font-size:10px;padding:5px 8px;border-radius:9px;flex:none;white-space:nowrap}.list-status.recorded{color:#ffffff;background:#d71c76}.list-status.unrecorded{color:#906f2c;background:#fbf2dc}.list-empty{font-size:13px;color:#220a16;padding:20px}.detail-panel{padding:23px;min-height:360px}.empty-selection{text-align:center;padding:82px 15px}.empty-selection>span{display:inline-grid;place-items:center;width:77px;height:77px;border-radius:25px;background:#e21d7c;color:#d6b2c3;font-size:37px}.empty-selection h2{font-size:23px;margin:16px 0 6px}.empty-selection p{margin:auto;max-width:380px;color:#220b16;font-size:13px}.student-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:16px}.student-head h2{font-size:25px;margin:4px 0}.student-head p{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:13px;margin:0;color:#270c19}.student-head p b{color:#a17289}.status-pill{display:inline-block;background:#fff2dc;color:#956828;padding:5px 9px;font-size:11px;font-weight:700;border-radius:99px}.status-pill.has-record{background:#e5368b;color:#e7d7de}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;border:1px solid transparent;font-weight:700;font-size:13px;padding:11px 17px;transition:transform .16s,box-shadow .16s;white-space:normal;text-align:center}.btn:hover{transform:translateY(-1px)}.btn.primary{background:#e5ced9;color:white;box-shadow:0 4px 12px #d6b3c42b}.btn.ghost{border-color:#841149;background:#ae1760;color:#b5859c}.notice{margin-top:14px;padding:12px 15px;border:1px solid #9d1456;border-radius:13px;background:#c51a6d;color:#d6bac8;font-size:13px;line-height:1.6}.notice.error{background:#fff1e8;color:#9b3619;border-color:#f0d1c1}.access-card{padding:30px;margin:18px auto;max-width:700px;border-radius:20px;background:white;border:1px solid var(--line);text-align:center}.access-card h2{margin:4px 0}.access-card p{color:#1b0912}.consent-box{display:flex;flex-direction:column;gap:15px;margin-top:18px;border:1px solid #f2d7b9;border-radius:17px;padding:18px;background:#fffcf6}.consent-box h3{font-size:17px;margin:0 0 5px}.consent-box p{color:#8c7058;font-size:12px;margin:0}.consent-box.consent-active{background:#e32882;border-color:#da1c78}.consent-box.consent-active p{color:#9c4c73}.consent-box.consent-revoked{background:#fff1ed;border-color:#f3cfc3}.consent-controls{display:grid;gap:12px}.consent-controls>label:not(.check-line){display:grid;gap:7px;font-weight:600;font-size:12px;max-width:470px}.check-line{font-size:12px;display:flex;gap:9px;align-items:flex-start;color:#594c3e;line-height:1.6}.check-line input{width:18px;height:18px;flex:none;margin:2px 0}.consent-controls .btn{justify-self:start}.text-danger{border:0;background:none;color:#aa433c;font-size:12px;text-decoration:underline;padding:6px;align-self:flex-start;cursor:pointer}.form-tabs{display:flex;gap:6px;flex-wrap:wrap;background:#87124b;border-radius:13px;padding:5px;margin:22px 0 20px}.tab{flex:1;border:0;background:transparent;color:#290f1c;min-width:125px;min-height:42px;font-size:13px;font-weight:700;padding:9px 10px;border-radius:10px}.tab.active{background:white;box-shadow:0 3px 11px #915e761a;color:#e0c5d2}.form-intro{margin-bottom:14px}.form-intro h3{font-size:21px;margin:0 0 4px}.form-intro p{font-size:12px;margin:0;color:#230c17}.health-section{border:1px solid #841148;border-radius:15px;overflow:hidden;margin-bottom:11px;background:white}.health-section[open]{background:#fff}.health-section summary{cursor:pointer;display:flex;align-items:center;gap:12px;list-style:none;padding:13px 14px;background:#b51763;color:#9a617c;font-weight:700;font-size:14px}.health-section summary::-webkit-details-marker{display:none}.section-number{display:grid;place-items:center;border-radius:10px;background:#dc1d79;color:#d2abbe;min-width:35px;height:35px;font:700 13px system-ui}.health-section summary span:nth-child(2){flex:1}.health-section summary small{display:block;color:#280a19;font-size:11px;font-weight:400;margin-top:4px;line-height:1.5}.chevron{font-size:23px;color:#2e0a1b}.health-section[open] .chevron{transform:rotate(180deg)}.section-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px 16px 20px}.hf-field{display:grid;align-content:start;gap:7px;min-width:0;color:#6b3f54;font-size:12px;font-weight:600}.hf-field>span,.hf-field label>span{font-size:12px}.hf-full{grid-column:1/-1}.facility-row{display:flex;gap:9px}.facility-row>input{flex:1;min-width:0}.facility-row>.btn{flex:none}.facility-help{color:#2a0b1a;margin:0;font-size:11px;font-weight:400}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;position:sticky;bottom:0;z-index:5;background:#ffffffee;border-top:1px solid var(--line);padding:14px 0 3px;backdrop-filter:blur(12px)}.form-footer span{color:#260b18;font-size:12px}.save-btn{min-width:210px}.record-list{display:grid;gap:12px;margin:20px 0 24px}.record-item{padding:16px;border:1px solid #87114a;border-radius:14px;background:#961453}.record-item.archived{opacity:.62}.record-item header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.record-cat{background:#e63c8e;border-radius:99px;padding:5px 9px;color:#d0a9bc;font-weight:700;font-size:11px}.record-severity{color:#8c6c4b;background:#fff0df;border-radius:99px;padding:5px 9px;font-size:11px}.record-item h4{font-size:17px;margin:10px 0 5px}.record-item p{font-size:13px;color:#351927;margin:0}.record-item>small{display:block;color:#200b15;font-size:12px;margin-top:6px;white-space:pre-wrap}.record-item footer{display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid #640d37;margin-top:12px;padding-top:10px;color:#1f0913}.blank-records{border:1px dashed #7d1045;text-align:center;padding:25px 15px;border-radius:12px;color:#2a0b1a;font-size:13px}.record-editor{border-radius:16px;padding:20px;background:#b51763;border:1px solid #87124b;display:grid;gap:14px}.record-editor h3{margin:0}.record-editor label{display:grid;gap:7px;font-size:12px;font-weight:600}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.record-editor .btn{justify-self:start}.summary-person{display:grid;gap:8px;padding:18px;border-radius:14px;border:1px solid #8d124d;background:#cd1b71}.summary-person b{color:#a8778f}.summary-person small{color:#260d19}.category-chip-wrap{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.category-chip{display:inline-flex;padding:8px 11px;border-radius:999px;background:#c71a6d;border:1px solid #cb1a70;color:#c597ad;font-size:12px}.summary-warning{font-size:12px;color:#846a45;background:#fff8e9;padding:13px 15px;border-radius:12px}.category-dashboard{padding:25px 0}.section-title h2{font-size:25px;margin:4px 0}.section-title p{font-size:13px;color:#230b17;margin:0 0 18px}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.category-card{border:1px solid #7e1045;background:white;border-radius:15px;padding:13px;display:flex;gap:10px;align-items:center;min-width:0}.category-card>span{display:grid;place-items:center;background:#cd1b71;border-radius:12px;width:41px;height:41px;font-size:19px;flex:none}.category-card>div{min-width:0;display:flex;flex-direction:column}.category-card small{color:#3e1a2b;font-size:11px}.category-card b{font:600 22px 'Kanit',sans-serif;color:#bd93a7}.category-card b em{font:400 11px 'IBM Plex Sans Thai';color:#2c0b1b}.category-disclaimer{grid-column:1/-1;color:#240a17;font-size:11px;margin:4px 0}.health-footer{text-align:center;color:#290d1b;font-size:12px;padding:24px 15px 34px}
[hidden]{display:none!important}
@media(max-width:1160px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.health-main-layout{grid-template-columns:minmax(245px,300px) minmax(0,1fr)}.detail-panel{padding:17px}}
@media(max-width:860px){main{padding:16px 14px 28px}.health-topbar{height:68px;padding:10px 14px}.health-hero{padding:23px 19px}.health-hero h1{font-size:28px}.health-hero p{font-size:13px}.hero-icon{font-size:50px;margin-right:10px}.health-main-layout{grid-template-columns:1fr}.roster-panel{position:relative;top:auto;max-height:none}.roster-list{max-height:325px}.detail-panel{padding:18px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.operator-chip{max-width:210px}}
@media(max-width:610px){.health-brand b{font-size:14px}.health-brand small{font-size:9px}.brand-symbol{padding:7px 10px}.health-back{width:37px;height:37px}.operator-chip{font-size:10px;padding:8px;max-width:94px}.health-hero{padding:20px 17px}.health-hero h1{font-size:25px}.health-hero p{font-size:12px}.hero-icon{display:none}.health-security{align-items:flex-start}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-card{padding:13px}.metric-card strong{font-size:26px}.metric-card:last-child{grid-column:span 2}.roster-head{padding:16px 16px 11px}.roster-head h2{font-size:19px}.detail-panel{padding:15px}.student-head{align-items:flex-start;flex-direction:column}.student-head h2{font-size:22px}.form-tabs{margin:15px 0;gap:3px}.tab{font-size:11px;min-width:0;padding:9px 6px}.section-fields{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}.facility-row{flex-direction:column}.facility-row>.btn{width:100%}.field-grid{grid-template-columns:1fr}.record-editor{padding:13px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card{padding:10px}.category-card>span{width:34px;height:34px;font-size:16px}.category-card b{font-size:19px}.category-card small{font-size:10px}.form-footer{padding-bottom:calc(8px + env(safe-area-inset-bottom))}.save-btn{width:100%}.health-footer{padding-bottom:calc(24px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.category-card{font:inherit;text-align:left;cursor:pointer;transition:border-color .16s,transform .16s}.category-card:hover{border-color:#cd8cab;transform:translateY(-2px)}.category-card:focus-visible{outline:3px solid #cd8cab;outline-offset:2px}

/* V28 · Editing and explicit deletion */
.student-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.btn.warn-outline{background:#fff9f6;color:#ad473b;border-color:#efcfc9}
.btn.warn-outline:hover{background:#fff0ea}
.record-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.record-actions button{border-radius:9px;min-height:36px;padding:7px 10px;cursor:pointer;font:700 12px 'IBM Plex Sans Thai',sans-serif}
.record-edit-btn{background:#d41c75;color:#dac0cd;border:1px solid #a8165c}
.record-neutral-btn{background:#500a2c;color:#321624;border:1px solid #5a0c32}
.record-delete-btn{background:#fff1ed;color:#ac4438;border:1px solid #f1c8bf}
.record-edit-btn:hover,.record-neutral-btn:hover,.record-delete-btn:hover{filter:brightness(.96)}
.record-editor.editing{border:2px solid #c06792;background:#d61c76;box-shadow:0 4px 20px #cda1b616}
.record-editor-head{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.edit-mode-badge{padding:4px 10px;border-radius:999px;background:#e74392;color:#cea8ba;font-size:11px;font-weight:700}
.record-edit-hint{color:#55243c;font-size:12px;margin:0;line-height:1.6}
.record-editor-actions{display:flex;flex-wrap:wrap;gap:8px}
.record-editor-actions .btn{min-width:150px}
.health-confirm-dialog{width:min(92vw,470px);max-height:calc(100dvh - 36px);overflow-y:auto;border:1px solid #f0c7bd;border-radius:21px;padding:26px;color:#6c4457;background:white;box-shadow:0 20px 75px #1b293d55}
.health-confirm-dialog::backdrop{background:#6b535fc9;backdrop-filter:blur(4px)}
.health-confirm-dialog form{display:grid;gap:12px}
.health-confirm-dialog h2{font:600 23px 'Kanit',sans-serif;margin:0}
.health-confirm-dialog p{font-size:13px;line-height:1.75;margin:0;color:#1d0b14}
.delete-dialog-icon{background:#fff1ec;color:#b44135;border-radius:15px;width:48px;height:48px;display:grid;place-items:center;font-weight:bold;font-size:24px}
.delete-dialog-target{padding:13px;background:#851149;border:1px solid #841149;border-radius:12px;font-size:14px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
.health-confirm-dialog .delete-dialog-note{background:#fff7ee;border:1px solid #f5ddc4;padding:11px;border-radius:11px;color:#91583b;font-size:12px}
.health-confirm-dialog label{font-size:12px;font-weight:700}
.health-confirm-dialog input{width:100%;border:1px solid #3c0821;border-radius:11px;padding:13px;font-size:16px}
.health-confirm-dialog input:focus{outline:3px solid #e32681;border-color:#ddc0ce}
.delete-dialog-actions{display:flex;gap:9px;margin-top:5px}
.delete-dialog-actions .btn{flex:1;min-width:0}
.btn.danger-solid{background:#b84339;color:white}
.btn.danger-solid:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:610px){.student-actions{justify-content:stretch;width:100%}.student-actions .btn{flex:1}.record-actions{justify-content:flex-start}.record-item footer{align-items:flex-start;flex-direction:column}.record-editor-actions .btn{flex:1;min-width:0}.health-confirm-dialog{padding:19px}.delete-dialog-actions{flex-direction:column-reverse}}

/* V30: visible privacy cleanup actions for withdrawn consent */
.student-actions .health-delete-all{border:1px solid #b83e38;min-height:46px;white-space:normal;line-height:1.4;box-shadow:0 2px 6px #b8433918}
.cleanup-notice{margin:17px 0 20px;background:#fff6f3;border:1px solid #f1c6b9;border-left:5px solid #b84339;border-radius:15px;padding:17px;display:flex;align-items:flex-start;gap:13px;color:#743c33}
.cleanup-notice-icon{display:grid;place-items:center;background:#ffe8df;border-radius:11px;font-size:23px;width:42px;height:42px;flex:none}
.cleanup-notice strong{display:block;font:600 18px 'Kanit',sans-serif;color:#86392f}
.cleanup-notice p{margin:5px 0 12px;font-size:13px;line-height:1.75;color:#8d5b4f}
.cleanup-notice .btn{min-height:46px}
@media(max-width:610px){.student-actions .health-delete-all{width:100%;flex-basis:100%}.cleanup-notice{padding:13px;gap:9px}.cleanup-notice-icon{width:36px;height:36px}.cleanup-notice .btn{width:100%}}


/* V31: First Aid · Rose / Modern medical UI (works without external icon assets) */
:root{
 color-scheme:light;
 --rose:#c62a6c;--rose-dark:#93204f;--rose-ink:#54283f;
 --rose-line:#f1d9e4;--rose-pale:#fff0f6;--rose-paper:#fff9fc;
 --forest:#942b5a;--mint:#d23177;--ink:#51283e;--line:#f0dbe4;
 --soft:#fff8fb;--subtle:#956f82;
 --shadow:0 12px 30px rgba(131,31,77,.065);
 background:#fff7fb;color:#522d44;
}
html{background:#fff7fb} body{background:radial-gradient(circle at 5% 11%,#ffeaf3 0,transparent 34%),#fff7fb}
.health-topbar{background:rgba(255,255,255,.95);backdrop-filter:blur(15px);border-bottom:1px solid #f2dce5;box-shadow:0 5px 23px #8224540b}
.health-back{border-color:#f0d8e3;color:#90234f;background:#fff8fb;transition:background .18s,transform .18s}
.health-back:hover{background:#ffe9f2;transform:translateX(-2px)}
.brand-symbol{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:14px;background:linear-gradient(140deg,#fa4c91,#ba2166);box-shadow:0 8px 21px #ca367052}
.brand-symbol svg{width:25px;height:25px;stroke-width:0;fill:white}
.health-brand b{font-weight:700;letter-spacing:.015em;color:#592c43}
.health-brand b span{color:#d82c78}
.health-brand small{color:#936e82}
.operator-chip{background:#fff2f8;border-color:#f4dbe5;color:#a8265c}
main{max-width:1500px;padding-top:23px}
.health-hero{border-radius:26px;min-height:198px;padding:32px 39px;background:linear-gradient(112deg,#90265b 0%,#c42b70 50%,#ea5796 100%);box-shadow:0 20px 50px #ba397034;isolation:isolate}
.health-hero::before{content:'';position:absolute;right:-100px;top:-110px;width:410px;height:410px;border-radius:50%;background:radial-gradient(circle,#ffffff32,transparent 70%);z-index:-1}
.health-hero::after{right:145px;top:-190px;width:360px;height:360px;box-shadow:0 0 0 55px #ffffff08,0 0 0 116px #ffffff05}
.health-hero .eyebrow{display:flex;align-items:center;gap:7px;color:#ffe6f2;letter-spacing:.14em;font-size:11px}
.eyebrow svg{width:15px;height:15px;flex:none}
.health-hero h1{font-family:'Kanit',sans-serif;letter-spacing:.015em;line-height:1.2;margin:12px 0}
.health-hero h1 span{color:#ffd8e9}
.health-hero p{max-width:650px;color:#ffe5f0;font-size:13px}
.hero-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.hero-pills span{display:inline-flex;align-items:center;gap:6px;font-size:11px;background:#ffffff20;border:1px solid #ffffff31;color:#fff4f8;padding:7px 11px;border-radius:99px}
.hero-pills svg{width:15px;height:15px}
.hero-art{display:flex;align-items:center;justify-content:center;min-width:218px;height:150px;position:relative;z-index:1}
.hero-art-circle{width:136px;height:136px;background:linear-gradient(145deg,#ffffff36,#ffffff13);border:1px solid #ffffff51;box-shadow:0 0 0 16px #ffffff0d,0 0 0 34px #ffffff08,inset 0 3px 19px #ffffff13;border-radius:50%;display:grid;place-items:center}
.hero-art-circle svg{width:80px;height:80px;stroke:#fff;stroke-width:1.25;filter:drop-shadow(0 3px 5px #a52e6a66)}
.hero-art-chip{display:inline-flex;align-items:center;gap:7px;position:absolute;right:-7px;bottom:0;padding:9px 12px;border:1px solid #ffffff77;border-radius:12px;background:#ffffffde;color:#a32a60;font:700 11px system-ui,sans-serif;box-shadow:0 9px 30px #9d2d5960}
.hero-art-chip svg{width:17px;height:17px;fill:#d5377a;stroke:none}
.health-security{background:#fff0f6;border-color:#f2cee0;color:#8c2d5c;padding:13px 17px;border-radius:15px;box-shadow:0 5px 17px #9e2c6710}
.health-security span:last-child{color:#936780}.security-icon{width:20px;height:20px;color:#d13077;flex:none}
.metric-card{border:1px solid #f1dfeb;border-radius:19px;box-shadow:0 8px 25px #9a3a650d;padding:16px 17px 19px;gap:7px}
.metric-card:before{width:0}
.metric-title{display:flex;align-items:center;gap:9px}
.metric-title small{font-weight:600;color:#916f82}
.metric-icon{width:37px;height:37px;display:grid;place-items:center;background:#fff0f7;color:#d32d79;border-radius:12px;flex:none}
.metric-card.done .metric-icon,.metric-card.agree .metric-icon{background:#ffdef0;color:#b81c62}
.metric-card.waiting .metric-icon{background:#fff2df;color:#a76d26}
.metric-card.follow .metric-icon{background:#fff0e9;color:#b15b38}
.metric-card strong{color:#932451;font-size:34px;font-weight:600}
.metric-card span{color:#a18291}
.roster-panel,.detail-panel{border-color:#f0dce5;border-radius:23px;box-shadow:0 12px 30px #9a35610d}
.roster-head h2,.student-head h2{color:#622844}
.roster-head .eyebrow,.student-head .eyebrow,.section-title .eyebrow{display:flex;align-items:center;gap:6px;color:#cc397a}
.total-badge{background:#ffe5f0;color:#ae205a}
.search-field{background:#fffafd;border-color:#ead3df;color:#be3a78}
.search-field svg{width:19px;height:19px;flex:none}
.roster-person{border-top-color:#f8e7ef}
.roster-person:hover{background:#fff6fa}
.roster-person.selected{background:#ffedf5;border-left:4px solid #da3f84}
.list-index{background:#fff0f6;color:#b37a94}
.list-person b{color:#612b46}
.list-status.recorded{background:#fce1ef;color:#9b2c5d}
.list-status.unrecorded{background:#fff5e8;color:#a06d2f}
.detail-panel{min-height:425px}
.student-head{border-color:#f2dfe8}
.student-head p b{color:#842855}
.status-pill.has-record{background:#ffe5ef;color:#a7255e}
.empty-selection>.empty-illustration{width:84px;height:84px;display:grid;place-items:center;border-radius:25px;color:#cc3e7d;background:#fff0f6;margin:0 auto 18px}
.empty-illustration svg{width:43px;height:43px}
.consent-box{background:#fff8fb;border:1px solid #edd2df;border-radius:19px;padding:20px}
.consent-title{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.consent-title h3{font-size:18px;color:#742c50;margin:4px 0 2px}
.consent-icon{display:grid;place-items:center;flex:none;background:#fee6f0;color:#ca2b70;border-radius:14px;width:46px;height:46px}
.consent-icon svg{width:25px;height:25px}
.consent-state-tag{font-size:10px;font-weight:750;letter-spacing:.05em;color:#a33267;background:#ffe8f2;padding:4px 9px;border-radius:99px}
.consent-active .consent-state-tag{color:#168454;background:#e4f8e9}
.consent-revoked .consent-state-tag{color:#b74747;background:#ffe6e6}
.consent-box.consent-active{background:#f4fff7;border-color:#bbecd0}
.consent-box.consent-revoked{background:#fff9fa;border-color:#f1c9d7}
.consent-box p{color:#936c82}
.renew-consent-panel{display:grid;gap:13px}
.renew-head{display:flex;align-items:start;gap:12px;padding:15px 15px;background:#fff0f6;border:1px solid #f3d0df;border-radius:15px}
.renew-head-icon{display:grid;place-items:center;flex:none;width:41px;height:41px;background:#f9d6e7;color:#c52f70;border-radius:13px}
.renew-head strong{display:block;color:#853056;font-size:15px;margin-bottom:3px}
.renew-head p{font-size:12px;color:#825871;margin:0}
.renew-details{background:white;border:1px solid #edd5e1;border-radius:15px;overflow:hidden}
.renew-details>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:15px 16px;font-weight:700;font-size:13px;color:#a62d65;cursor:pointer}
.renew-details>summary::-webkit-details-marker{display:none}
.renew-details>summary svg{width:19px;height:19px;flex:none}
.renew-details>summary span{margin-left:auto;font-size:19px}
.renew-details[open]>summary{background:#fff0f6;border-bottom:1px solid #f1d8e4}
.renew-body{padding:16px;display:grid;gap:13px}
.renew-body>label,.renew-grid>label{display:grid;gap:8px;font-size:12px;font-weight:700;color:#793a59}
.renew-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.renew-note{background:#fff8ed;padding:11px 13px;border-radius:11px;border:1px solid #f2dec5;color:#885b32;font-size:12px;line-height:1.6}
.renew-check{display:flex!important;align-items:flex-start;gap:10px;line-height:1.7!important;font-weight:500!important}
.renew-check input{flex:none;width:20px;height:20px;min-height:20px;margin:3px 0 0;accent-color:#c72d70}
.renew-body .btn{justify-self:start;display:inline-flex;gap:8px}
.renew-body .btn svg{width:17px;height:17px}
.btn.primary{background:linear-gradient(100deg,#bd2769,#e53f8a);color:white;border:1px solid #bf2d6e;box-shadow:0 7px 17px #c1397534;transition:transform .17s,filter .17s}
.btn.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.btn.ghost{border-color:#f1dbe6;background:#fff6fa;color:#9e2c61}
.btn:focus-visible{outline:3px solid #f9aed0;outline-offset:2px}
.form-tabs{background:#fff0f7;border:1px solid #f2dfeb}
.tab{color:#9c6681}
.tab.active{color:#ba2a6c;background:white;box-shadow:0 3px 10px #b8246020}
.form-intro h3{display:flex;align-items:center;gap:9px;color:#692f4b}
.form-intro h3 svg{width:21px;height:21px;color:#d22f77}
.health-section{border-color:#f1ddea}
.health-section summary{background:#fff8fb;color:#6d2d4c}
.health-section[open] summary{background:#fff0f6}
.health-section summary small{color:#98748a}
.section-number{min-width:39px;height:39px;background:#fce3ee;color:#c32a6c;border-radius:12px}
.section-number svg{width:22px;height:22px}
.hf-field{color:#693e57}
input:not([type=checkbox]),select,textarea{border:1px solid #ebd7e2;border-radius:12px;background:white;color:#582c43}
input:focus,select:focus,textarea:focus{border-color:#d82f79;box-shadow:0 0 0 3px #ed81b13b}
.record-item{border-color:#f0d9e4;background:#fff9fc}
.record-cat{background:#ffe4f0;color:#b32567}
.record-edit-btn{background:#ffe8f1;color:#a22862;border:1px solid #f3c4d9}
.record-editor{border-color:#f1d7e5;background:#fff8fc}
.record-editor.editing{border-color:#d8327c;background:#fff2f8;box-shadow:0 6px 25px #c03e731d}
.category-dashboard{padding-top:32px}
.category-card{border-color:#f2dbe7;border-radius:17px;box-shadow:0 5px 18px #9e3a670b;transition:transform .18s,border-color .18s}
.category-card>span{background:#fff0f7;color:#d2367d}
.category-card>span svg{width:21px;height:21px}
.category-card b{color:#a52764}
.category-card small{color:#8a5976}
.category-card:hover{border-color:#ed7cb0;transform:translateY(-2px)}
.cleanup-notice{border-left-color:#d95861;background:#fff6f7}
.health-footer{color:#a17d8e}
@media(max-width:860px){.health-hero{padding:26px 25px}.hero-art{min-width:140px}.hero-art-circle{width:112px;height:112px}.hero-art-circle svg{width:67px;height:67px}}
@media(max-width:610px){.brand-symbol{width:39px;height:39px}.health-brand b{font-size:12px}.health-brand small{font-size:9px}.health-hero{padding:24px 19px;min-height:auto}.health-hero h1{font-size:27px}.health-hero .eyebrow{font-size:10px}.hero-art{display:none}.hero-pills{margin-top:18px}.hero-pills span{font-size:10px}.metric-title{align-items:flex-start;flex-wrap:wrap;gap:6px}.metric-icon{width:33px;height:33px}.metric-card strong{font-size:29px}.renew-grid{grid-template-columns:1fr}.renew-body{padding:13px}.renew-body .btn{width:100%}.renew-head{padding:12px;gap:9px}.renew-head-icon{width:36px;height:36px}.consent-title{align-items:flex-start}.consent-icon{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.btn.primary:hover,.category-card:hover{transform:none}}
