/* Model 2: presentation only. Existing routes, controls and data remain authoritative. */
.home-model-two{max-width:1500px;margin:auto}
.home-model-two .desk-today-header{background:linear-gradient(110deg,#e0f4ef,#f5faf7 70%,#fff0e3);border:1px solid #cfe4df}
.home-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.home-open-count{padding:7px 11px;border-radius:9px;background:#fff0df;color:#8d3c06;font-size:13px;font-weight:800}
.home-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}
.home-room{min-width:0;background:#fff;border:1px solid #d5e5e3;border-radius:17px;overflow:hidden;box-shadow:0 5px 18px #0b173008}
.home-room-head{background:linear-gradient(110deg,#078b80,#087a70);color:white;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.home-room-head h3{margin:0;font-size:20px}.home-room-head span{font-size:12px}
.home-room-body{padding:14px 16px}.home-room-body>.button{margin-top:12px;width:100%}
.home-lesson{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid #e4eeee;overflow-wrap:anywhere}
.home-lesson:first-child{padding-top:0}.home-lesson strong{font-size:17px}.home-lesson small,.home-lesson-state{color:#52657a;font-size:12px}
.home-assignment{padding:18px 20px;margin:0 0 18px}.home-assignment h2{font-size:21px;margin:0}
.home-assignment .overview-block-head{justify-content:space-between;flex-wrap:wrap;gap:12px}
.home-assignment-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:12px 0}
.home-assignment-grid>div{min-width:0}.home-assignment-grid>div+div{border-left:1px solid #dce9e7;padding-left:24px}
.home-assignment h3{font-size:15px;margin:0 0 12px;display:flex;align-items:center;gap:10px}
.home-person-list{display:flex;flex-wrap:wrap;gap:8px}.home-person-list p{margin:0;font-size:14px}
.home-person{background:#e2f5f0;border:1px solid #cde9e1;border-radius:10px;padding:8px 12px;font-size:14px;overflow-wrap:anywhere}
.home-teacher{display:grid;gap:3px;background:#f7fafb;border-color:#dce5e9}.home-teacher small{color:#52657a;font-size:12px}
.home-work-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:18px;align-items:start}
.home-work-grid .overview-todo{grid-column:auto}.home-work-grid .desk-row{display:flex;justify-content:space-between;align-items:center}
.home-work-grid .desk-row>.button{flex-shrink:0}.home-work-grid .desk-summary{padding:16px}
@media(max-width:1000px){.home-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-work-grid{grid-template-columns:1fr}.home-model-two .desk-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-model-two .desk-summary strong{font-size:16px}}
@media(max-width:600px){.home-room-grid,.home-assignment-grid,.home-model-two .desk-summary-grid{grid-template-columns:1fr}.home-assignment-grid>div+div{border-left:0;border-top:1px solid #dce9e7;padding:14px 0 0}.home-head-actions{justify-content:flex-start}.home-work-grid .desk-row{align-items:flex-start;flex-direction:column}.home-assignment{padding:16px}.home-model-two .desk-today-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.home-model-two .desk-today-count{flex-direction:column;align-items:flex-start;gap:5px;padding:10px}.home-model-two .desk-today-count span{font-size:12px}}
:root {
  --bg:#f3f8f8;
  --muted:#52657a;
  --line:#d8e6e7;
  --shadow:0 5px 20px rgba(11,23,48,.055);
}
body {
  background:radial-gradient(ellipse at 18% 0%,#d7f3ee 0,transparent 48%),
    radial-gradient(ellipse at 100% 0%,#fff0e3 0,transparent 30%),#f3f8f8;
}
.sidebar {
  background:linear-gradient(160deg,rgba(255,255,255,.94),rgba(225,246,242,.92));
  border-right:1px solid #cddfdf;
  box-shadow:4px 0 20px #0b173004;
}
.sidebar .role-card {background:#ffffffb8;border:1px solid #dbe9e8;padding:12px}
.sidebar .nav-item {color:#263c50;min-height:44px}
.sidebar .nav-item:hover {background:#e1f4f0;color:#075f59}
.sidebar .nav-item.active {background:#087a70;color:#fff;box-shadow:0 3px 9px #087a7020}
.topbar {
  margin:16px clamp(16px,2.5vw,36px) 20px;
  padding:20px 22px;
  border:1px solid #d7e7e6;
  border-radius:20px;
  background:linear-gradient(115deg,rgba(255,255,255,.88),rgba(219,244,240,.88) 75%,rgba(255,240,227,.85));
  box-shadow:0 5px 20px #0b173006;
}
.topbar h1{font-size:clamp(25px,2.7vw,34px)}
.topbar .eyebrow{color:#486476}
@supports(backdrop-filter:blur(10px)){
  .topbar{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
}
.hub-tabs{background:#fff;border-color:#d7e6e5;box-shadow:0 3px 14px #0b173005}
.card,.stat,.overview-block,.desk-today-count,.daily-lesson-card,.week-board-card {
  background:#fff;border-color:#d8e6e7;box-shadow:var(--shadow);
}
.card,.overview-block{border-radius:18px}
.desk-today-header{background:#fff;border:1px solid #d8e6e7;border-radius:18px;backdrop-filter:none;padding:18px 20px}
.desk-today-header h2{font-size:24px}
.desk-today-count{border-radius:14px;padding:12px 16px}
.desk-today-count strong{color:#087a70}
.overview-count{background:#e4f5f1;color:#06645d}
.desk-compact .desk-row{padding:11px 0}
.desk-summary:hover{background:#f4fbf9}
.daily-room-column{background:#f0f8f7;border-color:#cfe3e0}
.daily-room-header{background:#e2f3ef;border-bottom:1px solid #cfe3e0;border-radius:15px 15px 0 0}
.daily-room-header h2{color:#075f59}
.daily-room-column.unassigned{background:#fff8f1;border-color:#edcfb4}
.daily-room-column.unassigned .daily-room-header{background:#fff0e3;border-color:#edcfb4}
.daily-room-column.unassigned .daily-room-header h2{color:#923b05}
.daily-student-row{background:#fff}
.button{box-shadow:0 2px 5px #0b173006}
.button.secondary{border-color:#cfdddd}
.button.secondary:hover{background:#edf8f5;color:#075f59}
input,select,textarea{accent-color:#087a70}
.tag.orange{background:#fff0e3;color:#923b05}
:focus-visible{outline:3px solid #a44806;outline-offset:3px}
@media(min-width:1281px){
  .sidebar{padding:24px 16px}
}
@media(max-width:760px){
  .topbar{margin:10px 12px 16px;padding:16px 12px;border-radius:16px}
  .sidebar{background:#eff9f6}
  .card,.overview-block{border-radius:16px}
  .desk-today-header{padding:16px}
  .desk-today-header h2{font-size:22px}
}
@media(prefers-reduced-transparency:reduce){
  .sidebar,.topbar{background:#eff8f5;backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(forced-colors:active){
  .sidebar,.topbar,.daily-room-header,.sidebar .nav-item.active{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}
}
@media print{
  body,.topbar,.daily-room-header,.daily-room-column{background:#fff!important}
  .topbar{backdrop-filter:none;box-shadow:none}
  .card,.stat,.overview-block,.desk-today-count,.daily-lesson-card,.week-board-card{box-shadow:none}
}
/* Model 2: compact, consistent work surfaces across the portal. */
.model-record-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;padding:8px;background:#fff;border:1px solid #dbe6ec;border-radius:18px}
.record-grid>.model-record-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-width:0}
.record-grid>.model-record-panel[hidden]{display:none!important}
.model-record-panel>.record-span-2{grid-column:1/-1}
.model-record-next{font-size:14px;color:#416272;margin:10px 0 0;line-height:1.5}
.model-section-head{gap:16px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #e5edef}
.model-section-head h2{margin:0;font-size:clamp(19px,2vw,24px)}
.summary-card,.package-plan-card,.billing-student-card,.authorization-card,.report-card{border:1px solid #dbe6ec;border-radius:18px;background:#fff;box-shadow:0 5px 18px #123b4a06}
.table-wrap{border:1px solid #dbe6ec;border-radius:14px;background:#fff}
thead{background:#f3f8f8}th{font-size:12px;letter-spacing:.025em}td{padding-top:12px;padding-bottom:12px}tbody tr:hover{background:#f6fbfb}
.form-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px}
.modal .form-actions{border-top:1px solid #e1ebed;padding:14px 0;margin-top:18px}
.model-field-error{display:block;color:#a42424;font-size:13px;margin-top:5px;line-height:1.4}
[aria-invalid="true"]{border-color:#bd3939!important;outline-color:#bd3939}
.portal-more-actions[open]{background:#f5faf9;border-radius:12px;padding:8px}
@media(max-width:760px){.record-grid>.model-record-panel{grid-template-columns:minmax(0,1fr)}.model-record-tabs{gap:4px}.model-record-tabs button{flex:1 1 42%;font-size:13px}.model-section-head{align-items:flex-start}.model-record-next{font-size:13px}}
@media print{.model-record-tabs{display:none}.record-grid>.model-record-panel[hidden]{display:grid!important}.model-record-panel{break-inside:auto}}
.model-student-link{border:0;background:none;padding:0;color:var(--navy);font:inherit;font-weight:750;text-align:left;text-decoration:underline;text-decoration-color:#b6d8d3;text-underline-offset:4px;cursor:pointer}
.model-student-link:hover{color:var(--teal)}.model-student-link:focus-visible{outline:3px solid #e88732;outline-offset:4px}
.modal.model-drawer{position:fixed;right:0;top:0;bottom:0;max-height:100dvh;width:min(460px,100%);border-radius:22px 0 0 22px;margin:0;overflow:auto}
.model-context{padding:16px;background:#eef9f7;border:1px solid #c9e5e1;border-radius:14px}.model-next-list{padding-left:22px}.model-next-list li{padding:12px 0;border-bottom:1px solid #e3ecec}.model-next-list small{display:block;color:#526875;margin-top:4px}
.model-save-status{grid-column:1/-1;color:#086c64;font-weight:650;margin:0}.model-save-status:empty{display:none}
[data-entry-preview]{background:#f0f8f7;padding:12px;border-radius:12px;color:#163b40;font-size:14px;line-height:1.6}
.model-secondary-actions>div{display:flex;flex-direction:column;gap:8px;padding:8px 0}
@media(max-width:520px){.modal.model-drawer{border-radius:0;width:100%}}
/* Compact daily view: existing LEVANO Model 2 palette and original controls. */
.model-day-bar{padding:14px!important;margin-bottom:14px!important}.model-day-bar .daily-filters{gap:10px;margin:10px 0}.model-day-bar .daily-overview-strip{padding:8px 0;gap:14px}
.model-day-pool{background:#fff;border:1px solid #d5e5e3;border-radius:17px;padding:16px;margin:14px 0}.model-day-pool>h2{font-size:19px;margin:0}.model-day-pool>p{font-size:13px;margin:5px 0 12px}.model-day-pool>.daily-room-column,.model-day-pool>.daily-available-staff{margin:8px 0;padding:10px;box-shadow:none;border:1px solid #dce9e7;border-radius:12px}.model-day-pool .daily-room-header{padding:6px;background:transparent;border:0}.model-day-pool .daily-room-header h2,.model-day-pool .daily-available-staff h2{font-size:15px;margin:0}.model-day-pool .daily-room-header .eyebrow{display:none}.model-day-pool .daily-room-lessons{display:flex;flex-wrap:wrap;gap:10px;padding:6px}.model-day-pool .daily-lesson-card{flex:1 1 260px;margin:0}.model-day-pool .daily-available-staff p{font-size:12px;margin:6px 0}.model-day-pool .daily-available-list{display:flex;flex-wrap:wrap;gap:8px}
.model-day-board{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start;gap:14px!important}.model-day-board .daily-room-column{min-width:0}.model-day-board .daily-room-header{padding:12px;gap:8px;flex-wrap:wrap}.model-day-board .daily-room-header h2{font-size:20px;margin:0}.model-day-board .daily-room-header .eyebrow{display:none}.model-day-board .daily-room-header>.tag{font-size:11px}.model-day-board .daily-room-lessons{padding:8px}.model-day-board .daily-lesson-card{margin:0 0 8px;box-shadow:none;border-radius:12px}.model-day-board .daily-lesson-head{padding:10px;gap:8px;flex-wrap:wrap}.model-day-board .daily-lesson-head h2{font-size:14px;margin:3px 0}.model-day-board .daily-time{padding:8px;min-width:66px}.model-day-board .daily-time strong{font-size:16px}.model-day-board .daily-student-row{padding:10px;gap:6px}.model-day-board .daily-student-row>div:first-child>span{font-size:11px}.model-day-board .daily-student-row .button-row{gap:5px}.model-day-board .daily-student-row .button{padding:7px 9px;font-size:12px}.model-day-board .daily-status{gap:4px}.model-day-board .daily-status .tag{font-size:11px;padding:4px 7px}.model-day-board .daily-room-staff{padding:8px}.model-day-board .daily-available-person{padding:8px;gap:5px}.model-day-board .daily-available-person strong{font-size:14px}.model-day-board .daily-available-person span{font-size:12px}.model-day-board .daily-room-empty{padding:18px 10px;min-height:0}.model-day-room-nav{display:none}.model-day-excused{margin:14px 0;color:#52657a;font-size:13px}.model-day-excused>summary{cursor:pointer;padding:10px}.model-day-excused .daily-excused-note{margin:0}.model-day-excused .daily-excused-note>strong{display:none}
@media(max-width:1100px) and (min-width:701px){.model-day-board{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.model-day-board{grid-template-columns:minmax(0,1fr)!important}.model-day-room-nav{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.model-day-room-nav [aria-pressed=true]{background:#087d76;color:#fff;border-color:#087d76}.model-day-board>.daily-room-column:not(.model-room-selected){display:none}.model-day-pool .daily-room-lessons{display:block}.model-day-pool .daily-lesson-card{margin-bottom:8px}.model-day-board .daily-student-row .button{min-height:44px}}
@media print{.model-day-board>.daily-room-column{display:block!important}.model-day-room-nav{display:none!important}}
.model-day-filters>summary{cursor:pointer;font-size:13px;color:#52657a;padding:7px 0}.model-pool-complete{padding:12px 16px}.model-pool-complete>h2{font-size:14px;color:#08776d}.model-day-board .daily-room-staff .daily-available-person{display:grid;grid-template-columns:1fr auto;align-items:center}.model-day-board .daily-room-staff .daily-available-person>strong{grid-column:1}.model-day-board .daily-room-staff .daily-available-person>span{grid-column:1}.model-day-board .daily-room-staff .daily-available-person>.tag{display:none}.model-day-board .daily-room-staff .daily-available-person>.button{grid-column:2;grid-row:1/3;width:auto}
.model-day-board .daily-lesson-head{grid-template-columns:66px minmax(0,1fr)}.model-day-board .daily-lesson-head>[data-day-action]{grid-column:1/-1}.model-day-board .daily-lesson-head>[data-day-action]>.tag{display:inline-block;white-space:normal}.model-day-board .daily-student-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}.model-day-board .daily-student-row>.button-row{grid-column:1/-1;margin:0}.model-day-board .daily-student-row>.daily-status{grid-column:2;grid-row:1}.model-day-board .daily-student-row>.daily-status .tag{white-space:normal}.model-day-board .daily-lesson-card{padding:0}

/* Daily view: compact information, existing actions retained. */
.model-day-board .model-student-class{display:none}
.model-day-board .model-student-meta{display:flex;gap:5px;flex-wrap:wrap}
.model-day-board .model-student-teacher[hidden],.model-day-board h2[hidden]{display:none!important}
.model-day-board .model-absence-pending{color:#a34600;font-weight:700}
.model-day-board .model-lesson-current{border:2px solid #087d76;box-shadow:0 0 0 3px #e8f7f4}
.model-current-label{grid-column:1/-1;color:#087d76;font-size:12px;font-weight:800}
.model-ended-lessons>summary{cursor:pointer;padding:12px 4px;font-weight:700;color:#52627b}
.model-ended-lessons[open]{display:grid;gap:8px}
.model-room-more{margin-left:auto}
.model-day-board .model-room-empty{min-height:130px}
.model-day-board .daily-student-row{padding:10px!important}
.model-day-board .daily-student-row .button-row{gap:6px}
@media print{.model-ended-lessons:not([open])>*{display:block!important}}
/* Dense daily operation widgets; room drop zones and original actions stay intact. */
@media(min-width:1000px){
 .model-day-pool{padding:12px;margin:10px 0}
 .model-day-pool .daily-lesson-card{flex-basis:220px}
 .model-day-board{gap:10px!important}
 .model-day-board .daily-room-header{padding:9px 10px}
 .model-day-board .daily-room-header h2{font-size:18px}
 .model-day-board .daily-student-row{padding:8px!important}
 .model-day-board .daily-room-empty{padding:12px;min-height:80px}
 .model-day-bar{padding:10px 12px!important}
}

/* Approved compact LEVANO overview. Existing day actions retain their IDs. */
.home-v3{display:grid;gap:16px}.home-v3-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border:1px solid #cce5e3;border-radius:18px;background:linear-gradient(110deg,#e8f7f4dd,#fff,#fff4eb);backdrop-filter:blur(12px)}.home-v3-heading h2{margin:4px 0;font-size:28px}.home-v3-heading p{margin:0;color:#536779}.home-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-metric{font:inherit;text-align:left;border:1px solid #d5e3e8;border-left:5px solid #0a9991;border-radius:15px;padding:16px;background:white;color:#0c1831;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px}.home-metric:nth-child(even){border-left-color:#ed8429}.home-metric span{font-weight:700;font-size:14px}.home-metric strong{font-size:30px}.home-v3-work{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:16px;align-items:start}.home-live-day,.home-priority{min-width:0;background:white;border:1px solid #d6e2e9;border-radius:18px;padding:16px}.home-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.home-panel-heading h2,.home-priority h2{font-size:21px;margin:0 0 12px}.home-day-tabs,.home-task-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.home-task-tabs [aria-pressed=true]{background:#087e79;color:white;border-color:#087e79}.home-v3 .daily-workbar{display:none}.home-v3 .model-day-pool{padding:12px;margin:12px 0;box-shadow:none}.home-v3 .model-day-pool h2{font-size:16px}.home-v3 .model-day-pool>.muted{font-size:12px}.home-v3 .daily-room-board{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}.home-v3 .daily-room-column{min-width:0;padding:8px}.home-v3 .daily-room-header{padding:8px;flex-wrap:wrap}.home-v3 .daily-room-header h2{font-size:17px}.home-v3 .daily-room-header>.tag,.home-v3 .daily-room-header .eyebrow{display:none}.home-v3 .daily-available-person{padding:8px;font-size:12px}.home-v3 .daily-lesson-card{padding:0;box-shadow:none}.home-v3 .daily-lesson-head{padding:8px}.home-v3 .daily-student-row{padding:9px;gap:7px}.home-v3 .daily-student-row .button-row{gap:5px}.home-v3 .button.small{font-size:12px;padding:7px 9px}.home-v3 .model-student-link{font-size:14px}.home-v3 .daily-time{padding:7px}.home-v3 .daily-time strong{font-size:15px}.home-v3 .daily-room-staff{padding:4px}.home-v3 .daily-room-empty{padding:14px 6px;font-size:12px}.home-priority .desk-row{padding:13px 0;display:grid;gap:8px}.home-priority .desk-row strong{font-size:15px}.home-priority .desk-row span{font-size:13px}.home-priority .desk-row small{font-size:12px}.home-priority>.button{width:100%;margin-top:12px}.home-summaries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-summary{font:inherit;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px;background:white;border:1px solid #d6e2e9;border-radius:15px;cursor:pointer;text-align:left;color:#0c1831}.home-summary span{color:#a94b08;font-size:14px}.home-talk{font:inherit;text-align:left;display:flex;align-items:center;gap:18px;background:linear-gradient(100deg,#e6f6f4,#f4fbfa);border:1px solid #c6e5e0;border-radius:17px;padding:18px;color:#0c1831;cursor:pointer}.home-talk strong{font-size:20px}.home-talk small{display:block;color:#536779;margin-top:4px}.home-talk>b{margin-left:auto;color:#087e79;font-size:14px}.home-orb{flex:none;width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#bcfff5,#13b5a9 40%,#087e79);box-shadow:0 0 20px #0cbaab40}.home-dashboard .topbar{margin-bottom:10px}.home-dashboard .topbar h1{font-size:22px}.home-v3 .model-day-room-nav{margin:8px 0}.home-empty{color:#536779;padding:20px 0}
@media(max-width:1250px){.home-v3-work{grid-template-columns:1fr}.home-priority [data-home-tasks]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.home-metric{padding:12px}.home-summaries{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.home-v3-heading{padding:12px;gap:8px}.home-v3-heading h2{font-size:23px}.home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.home-metric strong{font-size:25px}.home-v3 .daily-room-board{grid-template-columns:1fr}.home-priority [data-home-tasks],.home-summaries{grid-template-columns:1fr}.home-talk{gap:10px;flex-wrap:wrap}.home-talk strong{font-size:17px}.home-talk>b{margin-left:54px}.home-live-day{padding:10px}}
@media(prefers-reduced-transparency:reduce){.home-v3-heading{background:#eef8f6;backdrop-filter:none}}
.home-v3-heading{padding:10px 18px}.home-v3-heading .eyebrow{display:none}.home-v3-heading h2{font-size:23px}.home-v3 .model-day-pool>.muted,.home-v3 .daily-available-staff>p{display:none}.home-v3 .daily-available-staff{padding:8px!important;box-shadow:none}.home-v3 .daily-available-list{display:flex;gap:8px;flex-wrap:wrap}.home-v3 .daily-available-person{flex:1 1 180px;max-width:320px}.home-v3 .model-day-pool{margin:8px 0;padding:8px}.home-v3 .model-day-pool h2{margin:4px 0 8px}
