.pastoral-profile,.pastoral-page{color:var(--ink,#23352b);font:inherit;min-width:0}.pastoral-section{margin:20px 0;padding:0 0 18px;border-bottom:1px solid var(--line,#dfe6dc)}.pastoral-section h3{margin:0 0 12px;color:var(--forest-deep,#173e25)}.pastoral-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}.pastoral-section-head h3{margin:0}.pastoral-section-head>div,.pastoral-actions{display:flex;flex-wrap:wrap;gap:7px}.pastoral-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px;margin:16px 0}.pastoral-stats>div{padding:12px 0;border-bottom:2px solid var(--line,#dfe6dc)}.pastoral-stats span{display:block;font-size:11px;color:var(--muted,#68766b)}.pastoral-stats strong{display:block;font-size:25px;color:var(--forest-deep,#173e25);margin-top:5px}.pastoral-disclosure{border:1px solid var(--line,#dfe6dc);border-radius:10px;padding:13px 16px;margin:14px 0}.pastoral-disclosure summary{cursor:pointer;font-weight:700}.pastoral-disclosure p{font-size:12px;line-height:1.6}.pastoral-disclosure meter{width:100%;margin-top:14px}.pastoral-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px}.pastoral-field input,.pastoral-field select,.pastoral-field textarea{border:1px solid var(--line,#dfe6dc);border-radius:7px;padding:9px 10px;font:inherit;color:inherit;background:var(--white,#fff);min-width:0;max-width:100%}.pastoral-field textarea{resize:vertical;line-height:1.5}.pastoral-field input[type=checkbox]{width:20px;height:20px;align-self:flex-start}.pastoral-date-range,.pastoral-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:15px 0}.pastoral-filters>.pastoral-field{flex:1 1 170px}.pastoral-date-range .button,.pastoral-filters .button{min-height:38px}.pastoral-row{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:13px 10px;border-bottom:1px solid var(--line,#dfe6dc)}.pastoral-row>div:first-child{min-width:0;flex:1}.pastoral-row strong,.pastoral-row small{display:block;overflow-wrap:anywhere}.pastoral-row small{font-size:11px;color:var(--muted,#68766b);margin-top:5px}.pastoral-row p{font-size:12px;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}.pastoral-row .button{font-size:11px;padding:7px 10px;min-height:34px}.pastoral-counts{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.pastoral-counts span{padding:7px 12px;background:var(--forest-soft,#edf4e9);border-radius:6px;font-size:12px}.suspension-internal{background:#fff8cc;border-left:4px solid #b99b23}.suspension-external{background:#fff0ef;border-left:4px solid #b33b36}.pastoral-report{padding:16px 14px;margin:12px 0;border-left:4px solid #598445;background:#f5f8f2;border-radius:0 8px 8px 0}.pastoral-report header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.pastoral-report p{font-size:12px;white-space:pre-wrap;line-height:1.6}.pastoral-report small{font-size:11px;color:var(--muted,#68766b)}.pastoral-report .pastoral-actions{margin:12px 0}.report-amber{border-color:#c99820;background:#fff8de}.report-red{border-color:#b33b36;background:#fff1ee}.report-green{border-color:#598445;background:#edf5e8}.pastoral-attendance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pastoral-attendance details{min-width:0;border:1px solid var(--line,#dfe6dc);border-radius:10px;padding:16px}.pastoral-attendance summary{display:flex;flex-direction:column;gap:7px;cursor:pointer}.pastoral-attendance strong{font-size:32px;color:var(--forest-deep,#173e25)}.pastoral-attendance small{font-size:11px;color:var(--muted,#68766b)}.pastoral-attendance details[open]{grid-column:1/-1}.pastoral-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain}.pastoral-table-wrap table{border-collapse:collapse;min-width:600px;width:100%;font-size:12px}.pastoral-table-wrap th,.pastoral-table-wrap td{padding:11px 10px;text-align:left;border-bottom:1px solid var(--line,#dfe6dc);vertical-align:middle}.pastoral-table-wrap th{font-weight:700;background:#f5f8f2;white-space:nowrap}.pastoral-table-wrap td .button{font-size:12px;padding:6px 9px}.pastoral-empty,.pastoral-muted{font-size:12px;color:var(--muted,#68766b);line-height:1.6}.pastoral-empty{padding:15px 0}.pastoral-form-error{color:#a5302e;font-size:12px;white-space:pre-wrap}.pastoral-radar{margin:10px auto;max-width:560px}.pastoral-radar svg{width:100%;max-height:340px}.pastoral-radar figcaption{font-size:11px;line-height:1.5;color:var(--muted,#68766b)}.pastoral-skill-key{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:11px}.pastoral-skill-key li{display:flex;justify-content:space-between;gap:8px}.pastoral-dialog{width:min(740px,calc(100vw - 24px));max-width:none;max-height:92dvh;padding:0;border:0;border-radius:14px;background:var(--white,#fff);color:var(--ink,#23352b);box-shadow:0 25px 90px #18332240}.pastoral-dialog::backdrop{background:#17251970}.pastoral-modal-form{display:flex;flex-direction:column;max-height:92dvh}.pastoral-modal-form>header,.pastoral-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line,#dfe6dc)}.pastoral-modal-form h2,.pastoral-modal-head h2{font:700 22px/1.25 var(--heading-font,inherit);margin:0}.pastoral-modal-body{overflow:auto;padding:18px 20px;display:grid;gap:15px;min-height:0}.pastoral-modal-form>footer{display:flex;gap:8px;padding:12px 20px 18px;border-top:1px solid var(--line,#dfe6dc)}.pastoral-modal-form>.pastoral-form-error{padding:0 20px;margin:0 0 10px}.pastoral-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pastoral-student-dialog{width:min(1100px,calc(100vw - 24px));overflow:auto}.pastoral-student-dialog [data-profile-body]{padding:0 20px 20px}.pastoral-tabs{display:flex;gap:6px;flex-wrap:wrap;padding:10px 0;margin-bottom:15px;border-bottom:1px solid var(--line,#dfe6dc)}.pastoral-student-dialog>.pastoral-tabs,.pastoral-student-dialog nav{padding-inline:20px}.pastoral-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}.pastoral-bar{display:grid;grid-template-columns:minmax(90px,.6fr) minmax(60px,1fr) max-content;gap:9px;align-items:center;margin:10px 0;font-size:12px}.pastoral-bar meter{width:100%}.pastoral-notice,.pastoral-live-alert{position:fixed;right:20px;bottom:20px;max-width:min(420px,calc(100vw - 40px));padding:14px 18px;background:#173e25;color:#fff;border-radius:10px;box-shadow:0 10px 35px #18332235;z-index:2147483600;font-size:13px;line-height:1.5}.pastoral-notice.is-error{background:#8d2929}.pastoral-live-alert{bottom:85px;background:#fff7e5;color:#593500;border:1px solid #dcad59}.pastoral-live-alert p{font-size:12px;overflow-wrap:anywhere}.pastoral-profile-signals,.pastoral-register-signals{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.pastoral-register-signals button,.pastoral-profile-signals>span{font:inherit;font-size:10px;line-height:1.4;border:1px solid #d1dccc;border-radius:6px;padding:5px 8px;cursor:pointer}.pastoral-detention-badge{background:#fff1da;color:#8b4c05;border-color:#edc184!important}.pastoral-report-badge{color:#2b492d}.pastoral-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.pastoral-page-head h1{font-size:34px;color:var(--forest-deep,#173e25)}.pastoral-page{padding:20px;background:var(--white,#fff);border:1px solid var(--line,#dfe6dc);border-radius:14px}.pastoral-profile .button{font-size:12px;min-height:34px}.pastoral-section [hidden]{display:none!important}@media(max-width:720px){.pastoral-attendance,.pastoral-dashboard-grid{grid-template-columns:minmax(0,1fr)}.pastoral-row{flex-wrap:wrap}.pastoral-row>div:first-child{flex-basis:100%}.pastoral-dialog{width:calc(100vw - 14px);max-height:95dvh}.pastoral-modal-form{max-height:95dvh}.pastoral-form-grid{grid-template-columns:1fr}.pastoral-skill-key{grid-template-columns:repeat(2,minmax(0,1fr))}.pastoral-profile .pastoral-date-range>.pastoral-field{flex:1;min-width:0}.pastoral-page{padding:12px}.pastoral-tabs .button{padding:8px 10px;font-size:12px}}@media print{.topbar,.utility-rail,.pastoral-tabs,.pastoral-filters,.pastoral-live-alert,.pastoral-notice,.pastoral-section-head .button,.pastoral-page-head a{display:none!important}.pastoral-page{border:0;padding:0}.pastoral-table-wrap{overflow:visible}.pastoral-table-wrap table{min-width:0}.pastoral-table-wrap .button{border:0;padding:0;box-shadow:none;color:#222}.pastoral-stats{break-inside:avoid}}

/* A single pupil record opens alongside its workspace. */
dialog.pastoral-student-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border-radius:0;overflow:auto}

.incident-catalogue-description,.incident-level-description{display:block;white-space:normal;font-size:12px;line-height:1.6;color:var(--muted,#617066);font-weight:400}.incident-catalogue-description:empty{display:none}input[data-incident-grade-display]{background:#f1f5ed;color:#204d32;font-weight:650;text-overflow:ellipsis}.form-field:has([name=incident], [name=incidentType]) select{max-width:100%;width:100%;text-overflow:ellipsis}
