/* Room tablet /sala (docs/contracts/rooms/room-tablet.md §4, mockup «Sala»). Full screen, horizontal tablet first. */
.sala-app { --sala-ok: #1E7A46; --sala-ok-tint: #E2F2E8; --sala-bad: #A23B3B; --sala-bad-tint: #F6E2E2; --sala-surface-2: #DEE7D1;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--app-account-bg); color: var(--app-text);
  font-family: Inter, system-ui, sans-serif; }
.sala-screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.sala-head { display: flex; align-items: center; gap: 20px; padding: 12px 24px; background: var(--app-surface); border-bottom: 1px solid var(--app-border); }
.sala-room { flex: 1; min-width: 0; }
.sala-room .mud-select { max-width: 360px; }
.sala-room .mud-input { font-size: 22px; font-weight: 700; }
.sala-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.sala-clock b { font-size: 34px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sala-clock span { font-size: 13px; color: var(--app-muted); }

.sala-away { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px;
  background: var(--brand-tint); color: var(--brand-text); font-weight: 600; }

.sala-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; padding: 18px; min-height: 0; }
.sala-main, .sala-side { min-height: 0; display: flex; flex-direction: column; gap: 14px; }

.sala-lesson { background: var(--app-surface); border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); padding: 20px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--c); }
.sala-lesson-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.sala-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--app-muted); }
.sala-lesson h2 { font-size: 30px; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; margin: 2px 0; flex-wrap: wrap; }
.sala-lesson h2 .sala-time { font-weight: 500; color: var(--app-muted); font-size: 22px; font-variant-numeric: tabular-nums; }
.sala-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.sala-lesson h2 .sala-dot { width: 16px; height: 16px; }
.sala-meta { font-size: 16px; color: var(--app-muted); }
.sala-count { text-align: center; font-size: 18px; color: var(--app-muted); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sala-count b { font-size: 46px; color: var(--app-text); }
.sala-count span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.sala-hint { margin: 0; font-size: 18px; font-weight: 600; }

.sala-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sala-seat { min-height: 96px; border-radius: 16px; border: 2px solid var(--app-border); background: var(--app-surface); display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 4px; padding: 12px; text-align: center; }
.sala-seat-name { font-size: 21px; font-weight: 700; }
.sala-seat-st { font-size: 13px; color: var(--app-muted); }
.sala-seat.here { background: var(--sala-ok-tint); border-color: var(--sala-ok); }
.sala-seat.here .sala-seat-st { color: var(--sala-ok); font-weight: 700; }
.sala-seat.absent { background: var(--sala-bad-tint); border-color: var(--sala-bad); }
.sala-seat.absent .sala-seat-st { color: var(--sala-bad); font-weight: 700; }
.sala-seat.free { border-style: dashed; background: transparent; }
.sala-seat.free .sala-seat-name { font-size: 16px; color: var(--app-muted); font-weight: 600; }
.sala-foot { font-size: 14px; color: var(--app-muted); }

.sala-empty { margin: auto; text-align: center; padding: 40px 0; }
.sala-empty h2 { font-size: 28px; margin: 0 0 6px; }
.sala-empty p { margin: 0; font-size: 18px; color: var(--app-muted); }

.sala-box { background: var(--app-surface); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.sala-box-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--brand); color: #FFFFFF; }
.sala-box-h h3 { font-size: 15px; margin: 0; }
.sala-box-b { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.sala-note { padding: 2px 6px; }
.sala-pills { display: flex; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px; }
.sala-pill { border: 0; background: transparent; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px;
  border-radius: 999px; cursor: pointer; }
.sala-pill.on { background: #FFFFFF; color: var(--brand-dark); }
.sala-pill:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.sala-tl { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; }
.sala-tl.cur { background: var(--brand-tint); }
.sala-tl.past { opacity: .45; }
.sala-tl-t { font-weight: 700; font-variant-numeric: tabular-nums; }
.sala-tl-n { display: flex; flex-direction: column; min-width: 0; }
.sala-tl-a { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sala-small { font-size: 13px; color: var(--app-muted); }
.sala-instructor { margin-top: auto; }
.sala-instructor .mud-button-root { width: 100%; min-height: 60px; font-size: 17px; border-radius: 14px; }

/* Instructor area (room-tablet.md §4 «Entrata», «Area istruttore (aperta)»). */
.sala-area-tag { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--brand-tint);
  color: var(--brand-text); font-weight: 700; }
button.sala-seat { font: inherit; color: inherit; cursor: pointer; }
button.sala-seat:focus-visible { outline: 3px solid var(--app-text); outline-offset: 2px; }
.sala-box.instr { border: 2px solid var(--brand); }
.sala-register-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sala-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--app-border); }
.sala-row:first-child { border-top: 0; }
.sala-row-main { display: flex; flex-direction: column; min-width: 0; }
.sala-late { color: var(--sala-bad); font-weight: 600; }
/* «Da chiudere» and «Chiuse oggi» (ST-R25, ST-R21): the lesson opened on the left stays highlighted in the brand colour. */
.sala-list-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--app-muted); padding: 6px 4px 0; }
.sala-lrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 12px;
  border: 2px solid transparent; background: var(--sala-surface-2); }
.sala-lrow b { font-size: 15px; }
.sala-lrow small { font-size: 12px; color: var(--app-muted); }
.sala-lrow.open { border-color: var(--brand); background: var(--brand-tint); }
.sala-lrow.open small { color: var(--brand-text); font-weight: 600; }
.sala-lrow .mud-button-root { flex-shrink: 0; }
.sala-dialog-note { margin: 0; font-size: 14px; color: var(--app-muted); }

.sala-modal { position: fixed; inset: 0; z-index: 1400; background: rgba(10, 15, 22, .45); display: grid; place-items: center; padding: 16px; }
.sala-dialog { background: var(--app-surface); border-radius: 20px; padding: 22px; width: min(360px, 100%); max-height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px; }
.sala-dialog.wide { width: min(620px, 100%); }
.sala-dialog h3 { font-size: 20px; text-align: center; margin: 0; }
.sala-dialog-text { margin: 0; font-size: 16px; }
.sala-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.sala-dialog.has-head { padding: 0 0 22px; }
.sala-dialog.has-head > :not(.sala-dialog-h) { margin: 0 22px; }
.sala-dialog-h { padding: 14px 22px; background: var(--brand); color: #FFFFFF; }
.sala-dialog-h h3 { text-align: left; }
.sala-err { color: var(--sala-bad); font-weight: 600; text-align: center; }
.sala-pin-dots { display: flex; justify-content: center; gap: 14px; }
.sala-pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--app-muted); }
.sala-pin-dots span.on { background: var(--app-text); border-color: var(--app-text); }
.sala-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sala-keypad button { height: 58px; border-radius: 14px; border: 1px solid var(--app-border); background: var(--sala-surface-2); color: var(--app-text);
  font: inherit; font-size: 22px; font-weight: 600; cursor: pointer; }
.sala-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.sala-pick button, .sala-list button { border: 1px solid var(--app-border); background: var(--app-surface); color: var(--app-text); border-radius: 12px;
  padding: 12px; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 48px; }
.sala-list { display: flex; flex-direction: column; gap: 8px; }
.sala-list button[disabled] { opacity: .5; cursor: default; }
.sala-modal-top { z-index: 1410; }
/* ST-R31: windows with a text field open at the top, so the search results stay above the on-screen keyboard. */
.sala-modal-anchored { place-items: start center; }

/* «Prenota per un socio» (room-tablet.md §4, ST-R23): member, week calendar, lessons, the tapped lesson. */
.sala-dialog.sala-bk { width: min(1000px, 100%); height: min(680px, 100%); padding: 0; gap: 0; overflow: hidden; }
.sala-dialog.sala-bk.has-head > :not(.sala-dialog-h) { margin: 0; }
.sala-bk-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sala-bk-h span { font-size: 14px; opacity: .9; }
.sala-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .18); color: #FFFFFF; font: inherit;
  font-size: 17px; cursor: pointer; }
.sala-x:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.sala-bk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 290px minmax(0, 1fr); }
.sala-bk-col { min-height: 0; overflow-y: auto; padding: 14px 16px; border-right: 1px solid var(--app-border); display: flex; flex-direction: column; gap: 10px; }
.sala-bk-col.last { border-right: 0; background: var(--app-account-bg); }
.sala-stp { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--app-muted); }
.sala-stp i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #FFFFFF; display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0; }
.sala-member { display: flex; align-items: center; gap: 10px; background: var(--brand-tint); border-radius: 14px; padding: 10px 12px; }
.sala-av { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #FFFFFF; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; }
.sala-member-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sala-member-n b { font-size: 15.5px; }
.sala-member-n small { font-size: 12px; color: var(--app-muted); }
.sala-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sala-cal-h b { font-size: 15px; }
.sala-cal-nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--app-border); background: var(--app-surface); color: var(--brand-dark);
  font: inherit; font-size: 18px; cursor: pointer; }
.sala-cal-nav[disabled] { opacity: .3; cursor: default; }
.sala-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sala-cd { position: relative; height: 62px; border-radius: 11px; border: 1px solid transparent; background: var(--app-surface); color: var(--app-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 0; }
.sala-cd small { font-size: 10.5px; font-weight: 600; opacity: .75; text-transform: uppercase; }
.sala-pts { display: flex; gap: 2px; height: 5px; }
.sala-pts i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.sala-cd.off { color: var(--app-muted); opacity: .45; background: transparent; cursor: not-allowed; }
.sala-cd.off .sala-pts i { background: var(--app-muted); }
.sala-cd.today { border-color: var(--brand); }
.sala-cd.on { background: var(--brand); color: #FFFFFF; }
.sala-cd.on .sala-pts i { background: #FFFFFF; }
.sala-cd.mine::after { content: ""; position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--mud-palette-warning); }
.sala-calleg { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--app-muted); }
.sala-calleg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 4px; vertical-align: 1px; }
.sala-calleg i.mine { background: var(--mud-palette-warning); }
.sala-calleg .off { opacity: .6; }
.sala-bl { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 2px solid var(--app-border); background: var(--app-surface);
  color: var(--app-text); font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.sala-bl.on { border-color: var(--brand); background: var(--brand-tint); }
.sala-bl-t { width: 50px; flex: none; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.sala-bl-x { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sala-bl-x b { display: flex; gap: 6px; align-items: center; font-size: 14.5px; }
.sala-bl-x small { font-size: 12px; color: var(--app-muted); }
.sala-bl-f { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--app-muted); line-height: 1.2; }
.sala-bl-f b { font-size: 15px; color: var(--brand-dark); }
.sala-bl.full .sala-bl-f b { color: var(--sala-bad); }
.sala-tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--app-text);
  background: color-mix(in srgb, var(--mud-palette-warning) 22%, var(--app-surface)); }
.sala-bk-hint { margin: 30px 0 0; text-align: center; font-size: 14px; }
.sala-lp-h { border-top: 6px solid var(--c); background: var(--app-surface); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sala-lp-h h4 { margin: 0; font-size: 20px; display: flex; gap: 8px; align-items: center; }
.sala-lp-h small { font-size: 13px; color: var(--app-muted); }
.sala-lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sala-lp-stats div { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.sala-lp-stats b { font-size: 20px; color: var(--brand-dark); }
.sala-lp-stats b.none { color: var(--sala-bad); }
.sala-lp-stats small { font-size: 11px; color: var(--app-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sala-names { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sala-names span { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 9px; padding: 6px 9px; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sala-names span.wait { background: color-mix(in srgb, var(--mud-palette-warning) 14%, var(--app-surface)); }
.sala-bk-go { margin-top: auto; padding-top: 8px; }
.sala-bk-go .mud-button-root { min-height: 52px; font-size: 16px; border-radius: 14px; }
.sala-info { padding: 12px 14px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-text); font-weight: 600; }
.sala-bk .sala-err { margin-top: 4px; }

/* «Prenotazioni di un socio» (room-tablet.md §4, ST-R24): the next 7 days as an agenda, the fixed bookings and «Più avanti». */
.sala-dialog.sala-mb { width: min(940px, 100%); }
.sala-bk-body.sala-mb-body { grid-template-columns: minmax(0, 1fr) 340px; }
.sala-ag { display: flex; flex-direction: column; }
.sala-ag-day { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--app-border); }
.sala-ag-day:first-child { border-top: 0; }
.sala-ag-d { width: 96px; flex: none; display: flex; flex-direction: column; line-height: 1.15; }
.sala-ag-d b { font-size: 15px; }
.sala-ag-d small { font-size: 12px; color: var(--app-muted); }
.sala-ag-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sala-ag-empty { font-size: 13px; color: var(--app-muted); opacity: .75; padding-top: 2px; }
.sala-bkg { display: flex; gap: 10px; align-items: center; background: var(--app-surface); border: 1px solid var(--app-border);
  border-left: 5px solid var(--c, var(--brand)); border-radius: 12px; padding: 9px 10px; }
.sala-bkg-x, .sala-fix-x { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sala-bkg-x b { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: 14.5px; }
.sala-bkg-x small, .sala-fix small { font-size: 12px; color: var(--app-muted); }
.sala-bkg small.sala-late, .sala-fix small.sala-late { color: var(--sala-bad); font-weight: 600; }
.sala-badge { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: #FFFFFF; }
.sala-count-chip { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #FFFFFF; }
.sala-fix { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--app-border); }
.sala-fix:first-child { border-top: 0; }
.sala-fix > b, .sala-fix-x > b { font-size: 14.5px; display: flex; gap: 7px; align-items: center; }
.sala-fix.col { flex-direction: column; align-items: flex-start; gap: 0; }
.sala-mb .sala-bkg .mud-button-root, .sala-mb .sala-fix .mud-button-root, .sala-mb .sala-member .mud-button-root { flex: none; min-height: 40px; }

.sala-reconnect { display: none; }
.sala-reconnect.components-reconnect-show, .sala-reconnect.components-reconnect-retrying,
.sala-reconnect.components-reconnect-failed, .sala-reconnect.components-reconnect-rejected {
  display: block; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2000;
  padding: 10px 18px; border-radius: 12px; background: var(--app-text); color: #FFFFFF; font-weight: 600; }

/* Profile icon and menu (room-tablet.md §4 «Profilo», ST-R22). */
.sala-prof { position: relative; }
.sala-prof-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--app-border); background: var(--brand-tint); color: var(--brand-text);
  display: grid; place-items: center; cursor: pointer; }
.sala-prof-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sala-prof-backdrop { position: fixed; inset: 0; z-index: 1300; }
.sala-prof-menu { position: absolute; right: 0; top: 56px; z-index: 1301; min-width: 260px; padding: 8px; border-radius: 12px; background: var(--app-surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.sala-prof-who { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--app-border); margin-bottom: 6px; }
.sala-prof-who b { font-size: 15px; }
.sala-prof-who span { font-size: 13px; color: var(--app-muted); }
.sala-prof-out { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--mud-palette-error); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.sala-prof-out:hover { background: var(--brand-tint); }
/* «Installa come app», «Attiva le notifiche» (ST-R26, ST-R30); the yellow dot while the notifications are not on. */
.sala-prof-btn { position: relative; }
.sala-prof-dot { position: absolute; top: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%; background: #F2C14E; border: 2px solid var(--app-surface); }
.sala-prof-menu { min-width: 320px; }
.sala-prof-it { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--app-text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.sala-prof-it .mud-icon-root { color: var(--brand-text); flex: none; }
.sala-prof-it:hover:not([disabled]) { background: var(--brand-tint); }
.sala-prof-it[disabled] { cursor: default; }
.sala-prof-it.hl { background: var(--brand-tint); }
.sala-prof-x { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sala-prof-x small { font-size: 12.5px; font-weight: 400; color: var(--app-muted); }
.sala-prof-x small.sala-prof-steps { color: var(--brand-text); font-weight: 600; }
.sala-prof-chip { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--sala-surface-2); color: var(--app-muted); }
.sala-prof-chip.ok { background: var(--sala-ok-tint); color: var(--sala-ok); }

/* The bell (ST-R29): white round button, red count; full in the brand colour while the list is open. */
.sala-bell { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--app-border); background: var(--app-surface);
  color: var(--brand-text); display: grid; place-items: center; cursor: pointer; }
.sala-bell.on { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.sala-bell:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sala-bell-n { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--sala-bad);
  color: #FFFFFF; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--app-surface); font-variant-numeric: tabular-nums; }

/* The notices list (room-tablet.md §4 «Notifiche»): a panel on the right under the header, in the instructor area. */
.sala-body { position: relative; }
.sala-np { position: absolute; top: 10px; right: 18px; z-index: 1200; width: min(420px, calc(100% - 36px)); max-height: calc(100dvh - 120px);
  background: var(--app-surface); border-radius: 16px; box-shadow: 0 16px 44px rgba(0, 0, 0, .25); overflow: hidden; display: flex; flex-direction: column; }
.sala-np-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand); color: #FFFFFF; }
.sala-np-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sala-np-t h3 { margin: 0; font-size: 17px; }
.sala-np-t span { font-size: 12.5px; opacity: .85; }
.sala-np-read { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--brand-dark); font: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer; }
.sala-np-read[disabled] { opacity: .6; cursor: default; }
.sala-np-b { flex: 1; min-height: 0; overflow-y: auto; }
.sala-np-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--app-muted); }
.sala-np-day { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--app-muted); padding: 12px 14px 4px; }
.sala-np-it { width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--app-border);
  background: transparent; color: var(--app-text); font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; }
.sala-np-it.new { background: var(--brand-tint); }
.sala-np-it[disabled] { cursor: default; }
.sala-np-x { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sala-np-x span { color: var(--app-muted); }
.sala-np-it small { flex: none; color: var(--app-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sala-np-c { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.sala-np-c.info { background: var(--brand-tint); color: var(--brand-text); }
.sala-np-it.new .sala-np-c.info { background: var(--app-surface); }
.sala-np-c.attn { background: #FBEED3; color: #8A5A00; }
.sala-np-c.bad { background: var(--sala-bad-tint); color: var(--sala-bad); }

/* Vertical tablet or phone: one column, the page scrolls. */
@media (max-width: 900px) {
  .sala-body { grid-template-columns: minmax(0, 1fr); }
  .sala-head { flex-wrap: wrap; padding: 10px 16px; gap: 12px; }
  .sala-away { padding: 8px 16px; flex-wrap: wrap; }
  .sala-lesson h2 { font-size: 24px; }
  .sala-seats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sala-area-tag { order: 3; width: 100%; justify-content: space-between; }
  .sala-dialog.sala-bk { height: auto; max-height: 100%; overflow-y: auto; }
  .sala-bk-body, .sala-bk-body.sala-mb-body { grid-template-columns: minmax(0, 1fr); }
  .sala-bk-col { overflow: visible; border-right: 0; border-bottom: 1px solid var(--app-border); }
  .sala-bk-col.last { border-bottom: 0; }
}

/* Phone: the tablet's windows take the full width. */
@media (max-width: 599px) {
  .sala-modal { padding: 0; }
  .sala-dialog, .sala-dialog.wide, .sala-dialog.sala-bk { width: 100%; border-radius: 0; }
  .sala-names { grid-template-columns: minmax(0, 1fr); }
}

/* Application version in a corner, out of the way (docs/contracts/platform/app-version.md §4). */
.sala-version { position: fixed; right: 12px; bottom: 6px; font-size: 11px; color: var(--app-muted); opacity: .7; pointer-events: none; }

/* Test environment banner: the body padding moves the page down, so the full-height box gives that height back. */
:root:has(.test-banner) .sala-app { min-height: calc(100vh - var(--test-banner-h)); min-height: calc(100dvh - var(--test-banner-h)); }
