:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:#e7eee9;background:#17211c;font-size:14px;letter-spacing:0}*{box-sizing:border-box}body{margin:0}a{color:#9bdbc1;text-underline-offset:3px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 12px;border:1px solid #45544b;border-radius:5px;background:#26352d;color:#e7eee9;cursor:pointer}button:hover{background:#33473b}button:disabled{opacity:.5;cursor:default}.primary{background:#a2dfb6;color:#12271c;border-color:#a2dfb6;font-weight:700}.primary:hover{background:#c0efce}.danger{background:#663337;color:#ffe5e6;border-color:#af656a}.icon-button{width:36px;height:36px;padding:8px;flex-shrink:0}svg{width:17px;height:17px;flex-shrink:0}label{display:flex;flex-direction:column;gap:7px;color:#b8c8bf;font-size:13px;margin-bottom:16px}input,select,textarea{width:100%;min-width:0;background:#1b2821;color:#f0f5f2;border:1px solid #52645a;border-radius:5px;padding:10px;min-height:40px}textarea{min-height:90px;resize:vertical}h1{font-size:25px;line-height:1.25;margin:0 0 20px}h2{font-size:20px;margin:0}p{line-height:1.6}.error{color:#ffada8;white-space:pre-wrap}.error:empty,#notice:empty{display:none}.brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:700;text-decoration:none;color:#f0f5f2;margin-bottom:26px;overflow-wrap:anywhere}.brand small{display:block;font-size:12px;font-weight:400;color:#b0c2b6;margin-top:6px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#a2dfb6;color:#183126;border-radius:7px;font-size:16px}.admin-nav{position:fixed;inset:0 auto 0 0;width:238px;padding:26px 20px;background:#101b15;border-right:1px solid #35443b;display:flex;flex-direction:column}.admin-nav nav{display:grid;gap:8px}.admin-nav nav button{justify-content:flex-start;background:transparent;border:0;padding:13px}.admin-nav nav button[aria-current=page]{background:#2a4234;color:#b7efca}.school-link{margin-top:auto;display:flex;gap:6px;align-items:center;font-size:13px}.admin-main{margin-left:238px;min-width:0}.topbar{min-height:72px;padding:14px 28px;border-bottom:1px solid #35443b;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#1c2a22}main{padding:28px;max-width:1800px;margin:auto}.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.page-title h1{margin:0}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #415048;background:#203128;margin:16px 0 24px}.metrics>div{padding:18px 22px;border-right:1px solid #415048}.metrics>div:last-child{border:0}.metrics span{color:#bdcdc3;font-size:13px}.metrics strong{display:block;font-size:26px;margin-top:8px;font-variant-numeric:tabular-nums}.metrics>div:nth-child(2) strong{color:#a2dfb6}.metrics>div:nth-child(3) strong{color:#f4bda0}.filters{display:flex;align-items:flex-end;gap:12px;margin-bottom:18px}.filters label{margin:0}.filters label:first-child{flex:1;max-width:400px}.table-scroll{overflow:auto;border:1px solid #415048;border-radius:5px}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;background:#283a30;color:#b9cebf;font-weight:600;font-size:12px;padding:13px}td{padding:13px;border-top:1px solid #35443b;font-size:13px}tbody tr:nth-child(even){background:#1c2a22}td small{display:block;color:#9faea4;margin-top:5px}td strong{font-size:14px}td:last-child{white-space:normal;min-width:100px}.badge{padding:4px 7px;border-radius:4px;background:#2d4337;color:#b9e9c9;font-size:12px}.badge.warn{background:#513c29;color:#f2cc95}.badge.off{background:#4f3035;color:#f2b3b8}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:16px;color:#b8c8bf}dialog{background:#243229;color:#edf4ef;border:1px solid #506258;border-radius:8px;width:min(550px,calc(100% - 32px));padding:30px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#050b08b8}dialog form>.primary{width:100%;margin-bottom:16px}dialog .page-title{align-items:flex-start}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.wide{grid-column:1/-1}.empty{text-align:center;padding:35px;color:#b0c2b6}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:24px}.account-panel{width:min(470px,100%);padding:30px;border:1px solid #506258;background:#243229;border-radius:8px}.account-panel .primary{width:100%;margin-bottom:18px}.success{padding:14px;border:1px solid #74b58f;color:#b5edc8;border-radius:5px}.meta{color:#b8c8bf;font-size:13px;overflow-wrap:anywhere}.audit-details{max-width:420px;overflow-wrap:anywhere;white-space:normal}[hidden]{display:none!important}@media(max-width:800px){.admin-nav{width:68px;padding:18px 10px}.admin-nav .brand{justify-content:center}.admin-nav .brand>span:last-child,.admin-nav nav button{font-size:0}.admin-nav nav button{padding:12px;gap:0;justify-content:center}.admin-nav nav svg{width:20px;height:20px}.school-link{font-size:0;justify-content:center}.admin-main{margin-left:68px}.topbar{padding:12px 16px;flex-wrap:wrap}main{padding:20px 14px}.metrics>div{padding:12px 9px}.metrics span{font-size:11px}.metrics strong{font-size:22px}.page-title{flex-wrap:wrap}.filters{flex-wrap:wrap}.filters label:first-child{flex-basis:100%;max-width:none}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}dialog,.account-panel{padding:22px}h1{font-size:22px}}
:root .admin-nav .brand { min-height:42px; }
.table-scroll table { min-width:850px; }
@media(max-width:800px) {
  .admin-nav .brand>span:last-child { display:none; }
}
.lead-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid #415048;background:#203128;margin:16px 0 24px}.lead-metrics>div{padding:15px 18px;border-right:1px solid #415048}.lead-metrics>div:last-child{border:0}.lead-metrics span,.lead-detail-grid span{display:block;color:#bdcdc3;font-size:12px}.lead-metrics strong{display:block;font-size:24px;margin-top:5px;font-variant-numeric:tabular-nums}.lead-metrics>div:first-child strong{color:#f3c879}.lead-metrics>div:nth-child(2) strong{color:#f2a4a1}.lead-metrics>div:nth-child(3) strong{color:#a2dfb6}.lead-contact{display:flex;align-items:center;gap:6px;white-space:nowrap}.lead-contact .icon-button{color:#b7efca;text-decoration:none}.lead-response{max-width:220px;white-space:normal;min-width:150px}.followup{font-size:12px}.followup.due{color:#f3c879;font-weight:700}.followup.overdue{color:#f2a4a1;font-weight:700}#leadEditor{width:min(760px,calc(100% - 32px))}#leadDetail{width:min(850px,calc(100% - 32px))}.lead-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#415048;border:1px solid #415048;margin:4px 0 18px}.lead-detail-grid>div{background:#203128;padding:12px;min-width:0}.lead-detail-grid strong{display:block;margin-top:6px;overflow-wrap:anywhere;font-size:13px}.lead-note{padding:12px 14px;margin:10px 0;border-left:3px solid #77bb91;background:#203128;border-radius:0 5px 5px 0}.lead-note p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.lead-log{border-block:1px solid #415048;margin:18px 0;padding:14px 0}.lead-log h3,#leadDetailContent>h3{font-size:15px;margin:0 0 14px}.lead-log .primary{margin:0}.lead-history-list{display:grid;gap:8px}.lead-history{padding:12px 14px;border:1px solid #415048;border-radius:5px;background:#203128}.lead-history>div{display:flex;justify-content:space-between;gap:12px}.lead-history>div span{color:#b8c8bf;font-size:12px}.lead-history p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.lead-history b{color:#c7dacf}
#leadFilters{flex-wrap:wrap}#leadFilters label{flex:1 1 150px}#leadFilters label:first-child{flex:1 1 220px;max-width:none}#leadImport{width:min(960px,calc(100% - 32px))}#leadImportPreview{margin-top:18px}#leadImportPreview .table-scroll{max-height:45dvh}#leadImportPreview td{white-space:normal;overflow-wrap:anywhere}#leadImportPreview td:first-child{white-space:nowrap}
#leadsPanel>.table-scroll{overflow-x:hidden}#leadsPanel>.table-scroll table{width:100%;min-width:0;table-layout:fixed}#leadsPanel th,#leadsPanel td{padding:9px 10px}#leadsPanel th:nth-child(1){width:22%}#leadsPanel th:nth-child(2){width:9%}#leadsPanel th:nth-child(3){width:11%}#leadsPanel th:nth-child(4){width:10%}#leadsPanel th:nth-child(5){width:16%}#leadsPanel th:nth-child(6){width:9%}#leadsPanel th:nth-child(7){width:10%}#leadsPanel th:nth-child(8){width:7%}#leadsPanel th:nth-child(9){width:6%}#leadsPanel td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#leadsPanel td:first-child strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#leadsPanel td:nth-child(5){font-size:12px}#leadsPanel .lead-contact{min-width:0;overflow:hidden}#leadsPanel .lead-contact .icon-button{width:28px;height:28px;min-height:28px;padding:5px}#leadsPanel .lead-contact> :last-child{overflow:hidden;text-overflow:ellipsis}#leadsPanel td:nth-child(8){font-size:12px}#leadsPanel .lead-response{max-width:none;min-width:0;white-space:nowrap}#leadsPanel td:last-child{min-width:0;white-space:nowrap;padding-inline:6px}#leadsPanel td:last-child .actions{flex-wrap:nowrap;gap:4px}#leadsPanel td:last-child .icon-button{width:28px;height:28px;min-height:28px;padding:5px}
@media(max-width:950px){.lead-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.lead-metrics>div:nth-child(2){border-right:0}.lead-metrics>div:nth-child(-n+2){border-bottom:1px solid #415048}.lead-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){#leadsPanel>.table-scroll{overflow-x:auto}#leadsPanel>.table-scroll table{min-width:900px}}
@media(max-width:520px){.lead-metrics>div{padding:12px}.lead-metrics span{font-size:11px}.lead-metrics strong{font-size:21px}.lead-detail-grid{grid-template-columns:1fr 1fr}.lead-history>div{flex-direction:column;gap:4px}.filters label{flex:1;min-width:145px}}
