:root{--navy:#0c2445;--deep:#102b4e;--blue:#2068a5;--light:#f4f7fb;--line:#dce5ee;--ink:#19324b;--muted:#61758b;--red:#bb3242}*{box-sizing:border-box}body{margin:0;background:var(--light);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;line-height:1.55}.layout{max-width:1050px;margin:0 auto;padding-left:22px;padding-right:22px}.topbar{background:#fff;border-bottom:1px solid var(--line)}.brand{height:80px;display:flex;align-items:center;gap:22px}.mark{font-size:27px;font-weight:900;letter-spacing:-1.7px;color:var(--navy)}.mark span{color:#d84d50}.brand-sub{color:var(--muted);border-left:1px solid var(--line);padding-left:18px;font-size:13px;font-weight:600}.adminlink{margin-left:auto;color:var(--blue);font-size:13px;text-decoration:none;font-weight:700}.hero{padding:64px 4px 40px;max-width:830px}.eyebrow{letter-spacing:2px;font-size:11px;font-weight:900;color:#b44b53}.hero h1{font-size:clamp(32px,4.8vw,54px);letter-spacing:-1.8px;line-height:1.13;margin:12px 0 16px;color:var(--navy)}.hero p{font-size:17px;color:var(--muted);max-width:720px}.trust{display:flex;flex-wrap:wrap;gap:14px;margin-top:26px;color:#35736b;font-size:13px;font-weight:700}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px 38px;margin-bottom:30px;box-shadow:0 8px 32px #102b4e08}.panel-head{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:25px}.panel h2{color:var(--navy);font-size:26px;margin:6px 0 0}.required-hint,.optional{color:var(--muted);font-size:12px;font-weight:500}.section-title{display:flex;align-items:center;gap:14px;margin:32px 0 18px}.number{background:#eaf1f8;color:var(--blue);border-radius:10px;font-weight:900;padding:11px 14px}.section-title h3{font-size:18px;margin:0;color:var(--navy)}.section-title p{font-size:13px;color:var(--muted);margin:2px 0}.fields{display:grid;gap:18px}.fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.fields label,.filters label,.login label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:var(--deep)}label b{color:var(--red)}input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #cbd8e5;padding:12px 13px;border-radius:9px;background:#fff;font:inherit;font-size:14px;color:var(--ink);min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #91badf;outline-offset:1px}textarea{resize:vertical}.anonymous{display:flex;gap:12px;background:#f4f8fd;border:1px solid #d8e5f3;border-radius:12px;padding:15px 17px;margin:18px 0;cursor:pointer;font-weight:700}.anonymous input{accent-color:var(--blue);width:17px;height:17px;margin-top:3px}.anonymous small{display:block;font-weight:400;color:var(--muted);font-size:12px}#identityFields[hidden]{display:none}.submit-row{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:28px;padding-top:25px}.submit-row p{max-width:540px;color:var(--muted);font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--navy);color:#fff;border:1px solid var(--navy);padding:13px 22px;border-radius:9px;font-weight:800;text-decoration:none;cursor:pointer;font-size:14px;white-space:nowrap}.btn:hover{background:#1b4678}.btn.secondary{background:#fff;color:var(--navy)}footer{text-align:center;color:var(--muted);font-size:12px;padding:16px 0 45px}footer span{color:#8e9faf}.success{border-radius:12px;background:#eaf8f0;border:1px solid #b9ddca;padding:22px 26px;margin:30px 0;color:#145f42}.success h2{margin:0}.error{background:#fff0f1;color:#95252f;border:1px solid #edbdc2;border-radius:10px;padding:14px;margin:16px 0}.error ul{margin:8px 0}.trap{position:absolute;left:-99999px;height:1px;overflow:hidden}.login{max-width:470px;margin:85px auto}.login form{display:grid;gap:20px;margin-top:22px}.admin-title{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:45px 0 25px}.admin-title h1{font-size:36px;margin:6px 0;color:var(--navy)}.admin-title p{color:var(--muted);margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.stat span{display:block;font-size:12px;color:var(--muted);font-weight:700}.stat strong{font-size:30px;color:var(--navy)}.filters{display:flex;gap:15px;align-items:end;margin-bottom:25px}.filters label{flex:1}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th,td{border-bottom:1px solid var(--line);padding:13px 10px;vertical-align:top}th{background:#f5f8fc;color:var(--muted);font-size:12px}td a{font-weight:800;color:var(--blue)}td strong{display:block}td small{display:block;color:var(--muted);margin-top:5px}.status{background:#edf3fa;border-radius:20px;padding:5px 10px;white-space:nowrap;font-size:11px;font-weight:700}.hint{font-size:12px;color:var(--muted)}.detail h3{margin:23px 0 5px;color:var(--navy)}.detail .meta{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.meta span{font-size:12px;background:#f0f5fa;padding:6px 8px;border-radius:5px}.multiline{white-space:pre-wrap;overflow-wrap:anywhere}.detail hr{border:0;border-top:1px solid var(--line);margin:27px 0}@media(max-width:700px){.brand{gap:12px;height:auto;min-height:68px}.brand-sub{font-size:11px;padding-left:10px}.mark{font-size:22px}.hero{padding:40px 0 25px}.hero p{font-size:15px}.panel{padding:22px 18px;border-radius:13px}.fields.two{grid-template-columns:1fr}.submit-row,.admin-title{flex-direction:column;align-items:stretch}.stats{grid-template-columns:repeat(2,1fr)}.filters{flex-direction:column;align-items:stretch}.adminlink{font-size:11px}.panel-head{gap:16px}}
/* Survey v2 */
:root{--navy:#12274d;--blue:#2563ab;--light:#f5f7fb;--line:#e1e7f0}
.survey-hero{padding:46px 4px 28px;max-width:100%}.survey-hero h1{font-size:clamp(30px,4vw,46px);margin:10px 0}.survey-hero p{margin:0;font-size:16px}.survey-hero .trust{margin-top:16px}.survey-panel{padding-top:30px}.panel-head p{margin:6px 0 0}.form-tag{border:1px solid #dce5f0;border-radius:100px;padding:6px 12px;color:#49607b;white-space:nowrap;font-size:12px;background:#f8fafd}.topic-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.topic-toolbar span{font-size:13px;font-weight:800;color:#315d92}.text-button{font:inherit;font-size:13px;font-weight:700;border:0;color:#255e9a;background:transparent;cursor:pointer}.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.topic-card{border:1px solid #dce4ee;background:#fbfcff;border-radius:13px;min-width:0;transition:background .15s,border-color .15s}.topic-card.active{border-color:#7da6d7;background:#f5f9ff;grid-column:span 2}.topic-top{display:flex;align-items:center;gap:12px;padding:17px 16px;cursor:pointer;font-size:14px;line-height:1.35;font-weight:750;color:#173050}.topic-top input,.answer-option input{width:18px;height:18px;flex-shrink:0;accent-color:#1f5f9f}.topic-top .chevron{margin-left:auto;color:#70869d;font-size:21px}.topic-card.active .chevron{transform:rotate(180deg)}.question-set{border-top:1px solid #dce7f4;margin:0 16px;padding:12px 0 17px;display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}.question-set[hidden]{display:none!important}.question-hint{grid-column:span 2;margin:0 0 4px;color:#61758b;font-size:12px}.answer-option{display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid #e4eaf3;border-radius:9px;padding:11px 12px;font-size:12.5px;cursor:pointer;color:#29415a}.answer-option span{line-height:1.45}.answer-option:has(input:checked){border-color:#87afd7;background:#edf5ff}.fields textarea{min-height:125px}.survey-panel .section-title{margin-top:32px}.survey-panel .submit-row{margin-top:32px}.survey-panel .submit-row p{max-width:450px}
@media(max-width:700px){.topic-grid{grid-template-columns:1fr}.topic-card.active{grid-column:auto}.question-set{grid-template-columns:1fr}.question-hint{grid-column:auto}.form-tag{display:none}.survey-hero{padding-top:30px}.survey-panel{padding-top:20px}.topic-top{font-size:13px}}

/* Survey v3: separate written feedback for each selected area */
.area-comment-label{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:750;color:#163453;padding:13px 0 0;border-top:1px solid #dee9f5;margin-top:5px}
.area-comment-label textarea{width:100%;min-height:100px;border:1px solid #c8d9eb;background:#fff;border-radius:10px;padding:13px 14px;font-size:14px;font-weight:400;line-height:1.5;resize:vertical}
.area-comment-label .optional{font-weight:500}
.area-admin-note{background:#f2f7fd;border-left:3px solid #3977b5;padding:10px 15px;margin:8px 0 20px;border-radius:0 7px 7px 0}.area-admin-note p{margin:6px 0}

/* V4: School experience identity; keeps admin layout backwards compatible */
:root{--navy:#1a2945;--deep:#1a3457;--blue:#e98520;--light:#f6f8fc;--line:#e1e8f0;--red:#c33442}
body{background:linear-gradient(180deg,#fffaf3 0px,#f6f8fc 300px,#f6f8fc 100%);color:#25334b}
.layout{max-width:1050px}
.topbar{background:#fff;box-shadow:0 2px 14px rgba(16,39,74,.04);border-bottom:3px solid #ef8d21}
.brand{min-height:94px;height:auto;gap:14px;padding-top:9px;padding-bottom:9px}
.brand-identity{display:flex;align-items:center;gap:15px;text-decoration:none;color:inherit;min-width:0}
.brand-logo{display:flex;align-items:center;justify-content:center;width:62px;height:64px;border-radius:10px;overflow:hidden;flex:none;background:#f58d21}
.brand-logo img{width:66px;height:60px;object-fit:cover}
.brand-titles{display:flex;flex-direction:column;gap:3px;min-width:0}
.brand-titles strong{font-weight:900;font-size:23px;letter-spacing:-1.1px;color:#132748;line-height:1.12}
.brand-titles small{font-size:10px;letter-spacing:.8px;font-weight:800;color:#53677e;line-height:1.4}
.brand-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex:none}
.brand-actions a{font-size:12px;font-weight:800;text-decoration:none;border-radius:9px;padding:10px 12px}
.brand-actions .site-link{color:#4d5d74;background:#f4f6f9}
.brand-actions .adminlink{background:#132748;color:#fff;margin:0}
.survey-hero{padding:43px 4px 25px}
.eyebrow{color:#d06e17;letter-spacing:1.6px}
.survey-hero h1{font-weight:850;font-size:clamp(32px,4.5vw,51px);letter-spacing:-1.8px;max-width:790px;margin:13px 0}
.survey-hero h1 span{color:#e9801c}
.survey-hero p{max-width:760px;color:#5a6d84;line-height:1.7}
.survey-hero .trust{color:#357666;gap:8px 20px;margin-top:19px}
.panel.survey-panel{border-radius:20px;border:1px solid #e6ebf2;box-shadow:0 18px 54px rgba(29,45,72,.06);padding:34px 38px}
.survey-panel .panel-head{padding-bottom:23px}
.survey-panel .panel-head h2{font-size:26px}
.survey-panel .number{background:#fff1e3;color:#d87516}
.survey-panel .section-title h3{font-size:18px}
.survey-panel .section-title p{line-height:1.5}
.survey-panel input:not([type=checkbox]):focus,.survey-panel textarea:focus{outline:2px solid #ffc37d;outline-offset:1px;border-color:#ec8a26}
.survey-panel .topic-toolbar{margin-top:5px;margin-bottom:15px}
.survey-panel .topic-grid{grid-template-columns:1fr;gap:10px}
.survey-panel .topic-card{background:#fff;border:1px solid #dee6ef;border-radius:12px;grid-column:auto;overflow:hidden;box-shadow:0 1px 4px rgba(10,31,59,.025)}
.survey-panel .topic-card:hover{border-color:#f0ad6c}
.survey-panel .topic-card.active{border-color:#efad69;background:#fff9f3}
.survey-panel .topic-card.expanded{border-color:#e68b2c;box-shadow:0 4px 15px rgba(222,133,43,.075)}
.survey-panel .topic-top{padding:15px 17px;min-height:60px;gap:13px;font-size:14px;display:flex}
.survey-panel .topic-top > span:nth-of-type(1){flex:1}
.survey-panel .topic-top input{accent-color:#e98121;width:19px;height:19px}
.survey-panel .accordion-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border:1px solid #e0e6ed;background:#f7f9fc;color:#425874;border-radius:8px;cursor:pointer;font:inherit}
.survey-panel .accordion-toggle:hover{background:#fdf0e4;color:#c06a13}
.survey-panel .chevron{display:inline-block;font-size:23px;line-height:1;transition:transform .18s}
.survey-panel .topic-card.active .chevron{transform:none}
.survey-panel .topic-card.expanded .chevron{transform:rotate(180deg)}
.survey-panel .question-set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:18px;margin:0;border-top:1px solid #f0dcc8;background:#fffdfb}
.survey-panel .question-set[hidden]{display:none!important}
.survey-panel .question-hint{color:#526579;font-weight:650;margin:0 0 5px}
.survey-panel .answer-option{background:#fff;border-color:#e1e6ed;font-size:13px}
.survey-panel .answer-option input{accent-color:#dd7f23}
.survey-panel .answer-option:has(input:checked){background:#fff4e9;border-color:#eda65e}
.survey-panel .area-comment-label{margin-top:10px;border-color:#f0e1d1}
.survey-panel .btn{background:#e78321;color:#fff;border-color:#e78321;box-shadow:0 5px 14px rgba(218,114,13,.12)}
.survey-panel .btn:hover{background:#d37416}
.survey-panel .text-button{color:#b76821}
.survey-panel .form-tag{background:#fff4e8;border-color:#ffdfb8;color:#a75b18}
footer{line-height:1.9}
footer strong{color:#132748}
@media(max-width:700px){
 .brand{min-height:76px}.brand-logo{width:46px;height:50px}.brand-logo img{width:53px;height:48px}
 .brand-titles strong{font-size:20px}.brand-titles small{font-size:8px;letter-spacing:0}
 .brand-actions{gap:5px}.brand-actions a{padding:8px;font-size:10px}.brand-actions .site-link{display:none}
 .panel.survey-panel{padding:23px 17px}
 .survey-hero{padding:30px 2px 22px}.survey-hero .trust{font-size:12px}
 .survey-panel .question-set{grid-template-columns:1fr;padding:14px}
 .survey-panel .question-hint{grid-column:auto}
 .survey-panel .topic-top{padding:13px 12px;gap:10px}
}
