:root {
  --accent: #273F4F;
  --accent-dark: #1C2F3B;
  --accent-soft: #EFEEEA;
  --accent-soft-border: #D8DADD;
  --bg: #F8FAFC;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --border: #E2E8F0;
  --border-faint: #F1F5F9;
  --white: #FFFFFF;
  --green-bg: #ECFDF5;
  --green-border: #A7F3D0;
  --green-text: #047857;
  --red-bg: #FFF1F2;
  --red-border: #FECDD3;
  --red-text: #BE123C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); }
body { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); }
.jakarta, h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
input, select, button, textarea { font-family: 'Inter', Arial, sans-serif; }
::placeholder { color: var(--faint); }
button { font: inherit; }
svg { display: block; flex-shrink: 0; }


.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 16px -4px rgba(39,63,79,0.25); }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--ink-soft); border: 1px solid #CBD5E1; }
.btn-secondary:hover { background: var(--bg); }
.btn-ghost { background: none; color: var(--ink-soft); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-text { background: none; border: none; color: var(--accent); font-weight: 700; cursor: pointer; }
.btn-text:hover { background: var(--accent-soft); }
.btn-danger { background: var(--red-bg); color: var(--red-text); border: 1px solid var(--red-border); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-md { height: 40px; padding: 0 20px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 12px; }

/* ---------- Header / Nav (landing) ---------- */
.site-header { position: sticky; top: 0; z-index: 10; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 4px 18px rgba(15,23,42,0.04); }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand-mark.sm { width: 30px; height: 30px; border-radius: 8px; }
.brand-mark-image { object-fit: contain; padding: 3px; background: #FFFFFF !important; border: 1px solid #E5E7EB; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand-name.sm { font-size: 16px; }
.site-nav { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--border); border-radius: 13px; background: rgba(248,250,252,0.8); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
.nav-link { padding: 9px 13px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.nav-link:hover { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15,23,42,0.08); }

/* ---------- Landing hero ---------- */
.hero { display: flex; align-items: center; gap: 64px; padding: 96px 32px 80px; max-width: 1240px; margin: 0 auto; flex-wrap: wrap; }
.hero-copy { flex: 1; min-width: 320px; max-width: 580px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 24px; border: 1px solid var(--accent-soft-border); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.hero-copy h1 { font-size: 48px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }
.hero-copy p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.login-card { flex: 0 0 400px; margin-left: auto; border-radius: 16px; padding: 28px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 32px -8px rgba(15,23,42,0.12); min-width: 280px; }
.auth-brand-logo { display: block; width: min(360px, 82vw); height: 128px; object-fit: contain; margin: 0 auto 18px; }
.login-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; }
.login-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.login-card > p { font-size: 13px; color: var(--muted); margin: 0 0 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 40px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 10px; font-size: 14px; color: var(--ink); background: #fff;
}
.field textarea { height: auto; padding: 12px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(254,119,67,0.20);
}
.field-error-border { border-color: #FCA5A5 !important; }
.field-error { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--red-text); }
.field-hint { font-size: 11px; color: var(--faint); text-align: right; margin-top: 6px; }

.demo-chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip-btn { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 600; background: var(--border-faint); color: var(--ink-soft); border: 1px solid var(--border); cursor: pointer; }
.chip-btn:hover { background: var(--border); }
.demo-note { font-size: 11px; color: var(--faint); text-align: center; margin: 14px 0 0; }

/* ---------- Sections (landing) ---------- */
.section { padding: 64px 32px; max-width: 1240px; margin: 0 auto; }
.section-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.section h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-desc { font-size: 14px; color: var(--muted); margin: 0 0 32px; }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .type-grid, .stat-grid, .quick-grid { grid-template-columns: 1fr !important; } .hero { padding: 48px 20px; } }

.type-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.type-card:hover { box-shadow: 0 8px 20px -6px rgba(15,23,42,0.12); }
.type-card-photo { height: 150px; background: var(--bg); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--faint); }
.type-card-photo span { font-family: 'Roboto Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--faint); }
.type-card-body { padding: 18px 20px 16px; }
.type-card-body h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.type-card-body p { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.type-card-link { height: 34px; padding: 0 14px; margin-left: -10px; font-size: 13px; font-weight: 700; background: none; border: none; border-radius: 8px; color: var(--accent); cursor: pointer; }
.type-card-link:hover { background: var(--accent-soft); }

/* ---------- Chips / filters ---------- */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; background: transparent; border: 1px solid #CBD5E1; color: var(--ink-soft); }
.filter-chip.active { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-soft-border); }

/* ---------- Availability grid (landing preview + table view) ---------- */
.avail-panel { border-radius: 16px; background: #fff; border: 1px solid var(--border); padding: 20px; overflow-x: auto; }
.avail-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.grid-head { display: grid; gap: 8px; margin-bottom: 10px; }
.grid-head-cell { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--faint); text-align: center; }
.grid-row { display: grid; gap: 8px; align-items: center; }
.grid-room-name { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.slot-cell { border-radius: 8px; padding: 8px 4px; text-align: center; border: 1px solid; }
.slot-cell .label { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.legend-row { display: flex; gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-faint); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; border: 1px solid; }

/* ---------- Tutorial ---------- */
.tutorial-box { max-width: 800px; aspect-ratio: 16/9; border-radius: 16px; background: var(--ink); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tutorial-play { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 10px 24px -6px rgba(0,0,0,0.4); }
.tutorial-caption { position: absolute; bottom: 16px; left: 20px; font-family: 'Roboto Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.5); }

.site-footer { padding: 24px 32px; border-top: 1px solid var(--border); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--faint); flex-wrap: wrap; gap: 8px; }

/* ---------- Auth page ---------- */
.auth-page-header { height: 64px; display: flex; align-items: center; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--border); }
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.auth-card { width: 100%; max-width: 380px; border-radius: 16px; padding: 28px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 32px -8px rgba(15,23,42,0.12); }

/* ---------- Dashboard shell ---------- */
.dash-shell { min-height: 100vh; background: var(--bg); }
.dash-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 4px 18px rgba(15,23,42,0.04); }
.dash-header-top { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dash-site-header { max-width: none; }
.dash-header-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.term-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 18px; background: var(--md-secondary-container, #EFEEEA); color: var(--md-on-secondary-container, #273F4F); font-size: 12px; font-weight: 700; white-space: nowrap; }
.term-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--md-primary, #273F4F); }
.term-chip-label { color: var(--md-on-surface-variant, #5F6B73); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dash-user-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: var(--border-faint); }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 20px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.user-chip:hover { background: var(--md-surface-container-low, #EFEEEA); }
.profile-chevron { margin-left: 4px; color: var(--md-on-surface-variant, #5F6B73); font-size: 16px; line-height: 1; }
.profile-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: 248px; padding: 12px; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(39,63,79,.16); }
.profile-dropdown-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.profile-dropdown-name { color: var(--md-on-surface, #273F4F); font-size: 13px; font-weight: 700; }
.profile-dropdown-email { max-width: 190px; margin-top: 2px; color: var(--md-on-surface-variant, #5F6B73); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-role { padding: 8px 4px; border-top: 1px solid var(--md-outline-variant, #D8DADD); color: var(--md-on-surface-variant, #5F6B73); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.profile-switch { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 10px; color: var(--md-primary, #273F4F); font-size: 12px; font-weight: 700; text-decoration: none; }
.profile-switch:hover { background: var(--md-primary-container, #E5EEF2); }
.profile-logout { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--md-error, #B3261E); cursor: pointer; font-size: 12px; font-weight: 700; text-align: left; }
.profile-logout:hover { background: #FDECEA; }
.admin-top-nav { max-width: min(760px, 100%); }
.admin-top-link { font-size: 11px; padding-inline: 11px; }
.admin-top-link.active { color: var(--md-on-primary, #fff); background: var(--md-primary, #273F4F); }
.booking-remove-note { color: var(--faint); font-size: 11px; white-space: nowrap; }
.booking-panel-actions { display: flex; align-items: center; gap: 10px; }
.booking-type-filter-label { color: var(--md-on-surface-variant, #5F6B73); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.booking-type-filter { min-width: 150px; }
.booking-period-filter { min-width: 160px; }
.bookings-table tbody tr { cursor: pointer; }
.booking-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.booking-today-row td { background: rgba(254,119,67,.07); }
.booking-today-row:hover td { background: rgba(254,119,67,.13) !important; }
.today-booking-label { display: inline-flex; margin-left: 6px; padding: 2px 6px; border-radius: 8px; background: #FEE4D9; color: #273F4F; font-size: 10px; font-weight: 700; }
.booking-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 20px; color: var(--muted); font-size: 12px; }
.booking-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.admin-users-body { overflow-x: auto; }
.admin-users-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-user-role-filter { display: flex; align-items: center; gap: 8px; color: var(--muted, #68736F); font-size: 11px; font-weight: 650; white-space: nowrap; }
.admin-user-role-filter .select-input { min-width: 150px; height: 36px; min-height: 36px; padding: 0 28px 0 10px; border-radius: 8px; font-size: 12px; }
@media (max-width: 640px) { .admin-users-intro { align-items: stretch; flex-direction: column; } .admin-user-role-filter { justify-content: space-between; } }
.admin-users-table-wrap { overflow-x: auto; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 14px; }
.admin-users-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.admin-users-table th { padding: 11px 12px; background: var(--md-surface-container, #EFEEEA); color: var(--md-on-surface-variant, #5F6B73); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.admin-users-table td { padding: 12px; border-top: 1px solid var(--md-outline-variant, #D8DADD); vertical-align: middle; }
.admin-users-table tr:hover td { background: rgba(73,69,79,.04); }
.admin-user-identity { display: flex; align-items: center; gap: 9px; min-width: 210px; }
.admin-user-name { color: var(--md-on-surface, #273F4F); font-size: 13px; font-weight: 700; }
.admin-user-email { margin-top: 3px; color: var(--md-on-surface-variant, #5F6B73); font-size: 10px; }
.admin-user-input { width: 140px; height: 36px; padding: 0 10px; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 10px; color: var(--md-on-surface, #273F4F); font-size: 12px; }
.admin-user-role { min-width: 150px; height: 36px; font-size: 12px; }
.admin-rooms-table-wrap { overflow-x: auto; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 14px; }
.admin-rooms-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.admin-rooms-table th { padding: 8px 10px; background: var(--md-surface-container, #EFEEEA); color: var(--md-on-surface-variant, #5F6B73); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-rooms-table td { padding: 6px 10px; border-top: 1px solid var(--md-outline-variant, #D8DADD); color: var(--md-on-surface, #273F4F); font-size: 12px; vertical-align: middle; white-space: nowrap; }
.admin-rooms-table tr:hover td { background: rgba(73,69,79,.04); }
.admin-room-name { color: var(--md-on-surface, #273F4F); font-size: 12px; font-weight: 700; }
.admin-room-control { min-width: 116px; height: 34px; font-size: 11px; }
.admin-room-order-value, .room-readonly-value { color: var(--md-on-surface-variant, #5F6B73); font-size: 12px; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 14px; padding: 16px 18px; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 14px; background: var(--md-surface-container-low, #F7F7F7); }
.admin-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.admin-card-header h2 { margin: 0 0 4px; color: var(--md-on-surface, #273F4F); font-size: 16px; font-weight: 700; }
.admin-card-header p { margin: 0; color: var(--md-on-surface-variant, #5F6B73); font-size: 12px; }
.admin-card-divider { height: 1px; margin: 0 0 18px; background: var(--md-outline-variant, #D8DADD); }
.admin-modal { position: fixed; top: 50%; left: 50%; z-index: 51; width: min(440px, calc(100% - 32px)); transform: translate(-50%, -50%); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(15,23,42,.24); }
.admin-modal-body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.admin-modal-body input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 10px; color: var(--md-on-surface, #273F4F); font-size: 13px; outline: none; box-sizing: border-box; }
.admin-modal-body input:focus { border-color: var(--md-primary, #273F4F); box-shadow: 0 0 0 3px rgba(39,63,79,.12); }
.admin-modal-body .select-input { width: 100%; }
.admin-modal-label { margin-top: 4px; color: var(--md-on-surface-variant, #5F6B73); font-size: 11px; font-weight: 700; }
.admin-room-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--md-on-surface, #273F4F); font-size: 13px; font-weight: 600; }
.admin-room-check input { width: 16px; height: 16px; accent-color: var(--md-primary, #273F4F); }
.admin-modal-note { margin-top: 8px; color: var(--md-on-surface-variant, #5F6B73); font-size: 11px; }
.profile-completion-modal { width: min(620px, calc(100% - 32px)); }
.profile-modal-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.profile-completion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.profile-completion-grid .admin-modal-label { display: block; margin-bottom: 6px; }
.profile-completion-grid select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 10px; background: #fff; color: var(--md-on-surface, #273F4F); font-size: 13px; }
.profile-page { max-width: 860px; }
.profile-page-head { margin-bottom: 18px !important; }
.profile-page-card { border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,28,.03); overflow: hidden; }
.profile-page-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--border-faint); }
.profile-page-card-head h2 { margin: 0 0 4px; color: var(--ink); font-size: 15px; font-weight: 650; }
.profile-page-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-page-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; border-radius: 50%; background: var(--surface-muted); color: var(--accent-deep); }
.profile-page-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-page-loading { padding: 32px; color: var(--muted); font-size: 13px; }
.profile-source { display: flex; align-items: center; gap: 7px; margin: 16px 22px 0; padding: 9px 11px; border-radius: 8px; background: var(--surface-muted); color: var(--muted); font-size: 11px; }
.profile-source-ok { background: var(--accent-tint); color: var(--accent-deep); }
.profile-page-form { padding: 20px 22px 22px; }
.profile-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 14px; }
.profile-page-grid .field { margin: 0; }
.profile-page-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.profile-photo-field { grid-column: 1 / -1; }
.profile-photo-field > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .06em; }
.profile-photo-upload { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); }
.profile-photo-preview { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; overflow: hidden; border-radius: 50%; background: #fff; color: var(--accent-deep); }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 650; }
.profile-upload-button:hover { border-color: var(--accent); color: var(--accent-deep); }
.profile-upload-button input { display: none; }
.profile-upload-hint { margin-top: 5px; color: var(--muted); font-size: 10px; }
.profile-image-url { margin-top: 8px; }
.profile-modal-upload-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.profile-modal-upload-row input[type=file] { height: auto; padding: 7px 8px; font-size: 11px; }
.profile-page-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-faint); }
.profile-page { max-width: none; margin: -34px -28px -80px; padding: 26px 20px 80px; background: #edf7f1; }
.profile-shell { max-width: 1120px; margin: 0 auto; border: 1px solid #e4ebe6; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(24,53,40,.04); overflow: hidden; }
.profile-hero { display: flex; align-items: center; gap: 20px; padding: 20px 24px 18px; }
.profile-hero-avatar { display: grid; place-items: center; width: 88px; height: 88px; flex: 0 0 88px; overflow: hidden; border: 1px solid #d7e6db; border-radius: 50%; background: #eef6f0; color: #438d6c; font-size: 27px; font-weight: 700; }
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-identity { min-width: 0; }
.profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.profile-name-row h1 { margin: 0; color: #171d1a; font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.profile-role-badge { padding: 4px 9px; border-radius: 999px; background: #d8f0df; color: #438d6c; font-size: 10px; font-weight: 700; text-transform: capitalize; }
.profile-hero-identity > p { margin: 6px 0 8px; color: #78817d; font-size: 11px; }
.profile-meta { display: flex; align-items: center; gap: 6px; color: #8b9590; font-size: 10px; }
.profile-meta i { width: 3px; height: 3px; border-radius: 50%; background: #c6cfca; }
.profile-active-dot { width: 6px; height: 6px; border-radius: 50%; background: #56b87b; }
.profile-tabs { display: flex; align-items: center; gap: 28px; min-height: 46px; padding: 0 24px; border-top: 1px solid #edf0ee; border-bottom: 1px solid #e8eeea; }
.profile-tab { display: inline-flex; align-items: center; align-self: stretch; padding: 0 3px; border-bottom: 3px solid transparent; color: #67716c; font-size: 11px; font-weight: 550; }
.profile-tab.active { border-bottom-color: #56b87b; background: #eef8f1; color: #438d6c; font-weight: 700; }
.profile-source-banner { margin: 18px 24px 0; }
.profile-cards-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 20px; padding: 0 24px 26px; }
.profile-side-stack { display: flex; flex-direction: column; gap: 20px; }
.profile-page-card.profile-info-card, .profile-page-card.profile-photo-card { height: fit-content; border: 1px solid #e7ece9; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(20,30,28,.025); }
.profile-info-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 16px 14px; border-bottom: 1px solid #edf0ee; }
.profile-info-card-head h2 { margin: 0 0 4px; color: #1b211e; font-size: 15px; font-weight: 650; }
.profile-info-card-head p { margin: 0; color: #8a938e; font-size: 10.5px; }
.profile-edit-label { color: #438d6c; font-size: 10px; font-weight: 650; }
.profile-info-card .profile-page-form { padding: 17px 16px 16px; }
.profile-info-card .profile-page-grid { gap: 16px 13px; }
.profile-info-card .field label { color: #8a938e; font-size: 10px; }
.profile-info-card .field input { min-height: 36px; background: #fff; font-size: 12px; }
.profile-readonly-list { display: grid; gap: 0; padding: 5px 16px 8px; }
.profile-readonly-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f2f1; }
.profile-readonly-list div:last-child { border-bottom: 0; }
.profile-readonly-list span { color: #929b96; font-size: 10px; }
.profile-readonly-list strong { color: #27302b; font-size: 11px; font-weight: 600; text-align: right; text-transform: capitalize; }
.profile-photo-card { padding-bottom: 16px; }
.profile-photo-card .profile-photo-upload { margin: 16px 16px 0; padding: 10px; border-color: #e1ebe4; background: #f5faf6; }
.profile-photo-card .profile-photo-preview { width: 54px; height: 54px; flex-basis: 54px; }
.profile-photo-card .profile-image-url { display: block; width: calc(100% - 32px); margin: 12px 16px 0; box-sizing: border-box; }
.profile-photo-card > small { display: block; margin: 5px 16px 0; color: #929b96; font-size: 10px; }
.admin-slot-list { display: flex; flex-direction: column; gap: 8px; }
.admin-slot-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 8px 12px 8px 16px; border: 1px solid #E6E2DA; border-radius: 10px; background: #FFFFFF; }
.admin-slot-item strong, .admin-slot-item span { display: block; }
.admin-slot-item strong { color: #122B2A; font-size: 13px; }
.admin-slot-item span { margin-top: 3px; color: #68736F; font-size: 11px; }
.admin-slots-table strong { color: #122B2A; font-weight: 700; }
.admin-slots-table .admin-card-actions { flex-wrap: nowrap; }

/* Shared workspace styling for user pages */
.dash-shell:not(.admin-dash-shell) { background: #F3F1EC; color: #122B2A; }
.dash-shell:not(.admin-dash-shell) .site-header { min-height: 66px; background: #FFFFFF; border-bottom-color: #E6E2DA; box-shadow: none; }
.dash-shell:not(.admin-dash-shell) .brand-mark { background: #173F3C; color: #FFFFFF; }
.dash-shell:not(.admin-dash-shell) .brand-name { color: #122B2A; font-weight: 700; }
.dash-shell:not(.admin-dash-shell) .site-nav { border-color: #E6E2DA; background: #F7F5F0; border-radius: 10px; box-shadow: none; }
.dash-shell:not(.admin-dash-shell) .dash-nav-btn { color: #68736F; border-radius: 7px; }
.dash-shell:not(.admin-dash-shell) .dash-nav-btn:hover { color: #122B2A; background: #FFFFFF; box-shadow: 0 2px 6px rgba(18,43,42,.08); }
.dash-shell:not(.admin-dash-shell) .dash-nav-btn.active { color: #122B2A; background: #F1EEE7; border-color: transparent; box-shadow: none; }
.dash-shell:not(.admin-dash-shell) .term-chip { background: #F1EEE7; color: #173F3C; }
.dash-shell:not(.admin-dash-shell) .term-chip::before { background: #7B833B; }
.dash-shell:not(.admin-dash-shell) .dash-main { max-width: 1320px; padding: 34px 28px 80px; }
.dash-shell:not(.admin-dash-shell) .dash-page-head { margin-bottom: 24px; }
.dash-shell:not(.admin-dash-shell) .dash-page-head h1 { color: #122B2A; font-size: 27px; letter-spacing: -.03em; }
.dash-shell:not(.admin-dash-shell) .dash-page-head p { color: #68736F; }
.dash-shell:not(.admin-dash-shell) .panel,
.dash-shell:not(.admin-dash-shell) .stat-card,
.dash-shell:not(.admin-dash-shell) .quick-card,
.dash-shell:not(.admin-dash-shell) .avail-panel,
.dash-shell:not(.admin-dash-shell) .summary-card { background: #FFFFFF; border-color: #E6E2DA; border-radius: 13px; box-shadow: none; }
.dash-shell:not(.admin-dash-shell) .panel:hover,
.dash-shell:not(.admin-dash-shell) .stat-card:hover,
.dash-shell:not(.admin-dash-shell) .quick-card:hover { border-color: #D5D0C6; box-shadow: 0 5px 16px rgba(18,43,42,.06); }
.dash-shell:not(.admin-dash-shell) .panel-head { border-bottom-color: #E6E2DA; }
.dash-shell:not(.admin-dash-shell) .panel-head h2,
.dash-shell:not(.admin-dash-shell) .section-label,
.dash-shell:not(.admin-dash-shell) .stat-value,
.dash-shell:not(.admin-dash-shell) .quick-card h3 { color: #122B2A; }
.dash-shell:not(.admin-dash-shell) .text-muted,
.dash-shell:not(.admin-dash-shell) .stat-label { color: #68736F; }
.dash-shell:not(.admin-dash-shell) .btn-primary { background: #173F3C; box-shadow: 0 6px 14px rgba(23,63,60,.18); }
.dash-shell:not(.admin-dash-shell) .btn-primary:hover:not(:disabled) { background: #122B2A; }
.dash-shell:not(.admin-dash-shell) .filter-chip.active,
.dash-shell:not(.admin-dash-shell) .time-opt.selected,
.dash-shell:not(.admin-dash-shell) .pill-toggle.selected { background: #173F3C; border-color: #173F3C; color: #FFFFFF; }
.dash-shell:not(.admin-dash-shell) .select-input,
.dash-shell:not(.admin-dash-shell) .search-box input,
.dash-shell:not(.admin-dash-shell) .field input,
.dash-shell:not(.admin-dash-shell) .field select,
.dash-shell:not(.admin-dash-shell) .field textarea { border-color: #D8D4CB; background: #FFFFFF; color: #122B2A; }
.dash-shell:not(.admin-dash-shell) .bookings-table th,
.dash-shell:not(.admin-dash-shell) .table-view-head,
.dash-shell:not(.admin-dash-shell) .week-cal-head,
.dash-shell:not(.admin-dash-shell) .month-grid-head { background: #F7F5F0; color: #68736F; }
.dash-shell:not(.admin-dash-shell) table.bookings-table td { border-bottom-color: #ECE9E3; }

@media (max-width: 640px) {
  .dash-shell:not(.admin-dash-shell) .site-header { min-height: 62px; padding: 10px 14px; }
  .dash-shell:not(.admin-dash-shell) .dash-main { padding: 24px 14px 56px; }
}

/* User workspace shell */
.user-dash-shell { display: flex; align-items: stretch; min-height: 100vh; width: 100%; overflow-x: hidden; background: #F3F1EC; color: #122B2A; }
.user-sidebar { position: sticky; top: 0; display: flex; flex: 0 0 248px; flex-direction: column; width: 248px; height: 100vh; padding: 24px 14px 16px; box-sizing: border-box; background: #FFFFFF; border-right: 1px solid #E6E2DA; }
.user-sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 14px; color: #122B2A; }
.user-sidebar-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; background: #173F3C; color: #FFFFFF; }
.user-sidebar-brand .brand-name { font-size: 16px; cursor: pointer; }
.user-sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: auto; border: 1px solid #E6E2DA; border-radius: 8px; background: #FFFFFF; color: #52615E; cursor: pointer; font-size: 20px; line-height: 1; }
.user-sidebar-toggle:hover { background: #F1EEE7; color: #122B2A; }
.user-workspace { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; padding: 10px; border-radius: 11px; background: #F1EEE7; color: #173F3C; }
.user-workspace-mark { display: flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #173F3C; color: #FFFFFF; font-size: 12px; font-weight: 700; }
.user-workspace strong, .user-workspace span { display: block; }
.user-workspace strong { font-size: 12px; }
.user-workspace span { margin-top: 3px; color: #78827D; font-size: 10px; }
.user-workspace-chevron { margin-left: auto; color: #53615C; font-size: 16px !important; }
.user-sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.user-nav-group-label { margin: 16px 10px 7px; color: #7A827D; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.user-side-link, .user-side-logout { display: flex; align-items: center; gap: 11px; min-height: 38px; width: 100%; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #52615E; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.user-side-link:hover, .user-side-logout:hover { background: #F1EEE7; color: #122B2A; }
.user-side-link.active { background: #F1EEE7; color: #122B2A; font-weight: 700; }
.user-side-icon { display: inline-flex; width: 20px; align-items: center; justify-content: center; color: #44615C; font-size: 17px; line-height: 1; }
.user-sidebar-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid #E6E2DA; }
.user-content { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; width: calc(100% - 248px); }
.user-topbar { display: flex; flex: 0 0 66px; align-items: center; justify-content: space-between; width: 100%; min-height: 66px; padding: 0 32px; background: #FFFFFF; border-bottom: 1px solid #E6E2DA; }
.user-breadcrumb { display: flex; align-items: center; gap: 12px; color: #7A827D; font-size: 13px; }
.user-breadcrumb b { color: #A1A7A1; font-size: 18px; font-weight: 400; }
.user-breadcrumb strong { color: #122B2A; font-weight: 600; }
.user-content .dash-main { width: 100%; max-width: 1380px; margin: 0 auto; padding: 34px 32px 80px; }
.user-content .dash-main { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-size: 13px; line-height: 1.5; color: #122B2A; }
.user-sidebar, .user-topbar { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
.user-sidebar strong, .user-sidebar .brand-name, .user-sidebar .user-side-link.active, .user-content .dash-page-head h1, .user-content .panel-head h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.user-content .dash-page-head h1 { margin-bottom: 6px; }
.user-content .dash-page-head p { font-size: 13px; line-height: 1.5; }
.user-content .dash-main h1,
.user-content .dash-main h2,
.user-content .dash-main h3,
.user-content .dash-main .jakarta { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.user-content .dash-main h1 { font-size: 27px; line-height: 1.2; font-weight: 700; }
.user-content .dash-main h2 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.user-content .dash-main h3 { font-size: 15px; line-height: 1.35; font-weight: 700; }
.user-content .dash-main button,
.user-content .dash-main input,
.user-content .dash-main select,
.user-content .dash-main textarea { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
.user-sidebar-collapsed .user-sidebar { flex-basis: 76px; width: 76px; padding-left: 10px; padding-right: 10px; }
.user-sidebar-collapsed .user-sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.user-sidebar-collapsed .user-sidebar-brand .brand-name, .user-sidebar-collapsed .user-workspace > div:not(.user-workspace-mark), .user-sidebar-collapsed .user-workspace-chevron, .user-sidebar-collapsed .user-nav-group-label, .user-sidebar-collapsed .user-side-link span:not(.user-side-icon), .user-sidebar-collapsed .user-side-logout span:not(.user-side-icon) { display: none; }
.user-sidebar-collapsed .user-sidebar-toggle { margin-left: 0; }
.user-sidebar-collapsed .user-workspace { justify-content: center; padding-left: 0; padding-right: 0; }
.user-sidebar-collapsed .user-side-link, .user-sidebar-collapsed .user-side-logout { justify-content: center; padding-left: 0; padding-right: 0; }

@media (max-width: 900px) { .user-sidebar { flex-basis: 214px; width: 214px; } .user-content { width: calc(100% - 214px); } .user-topbar { padding: 0 20px; } .user-content .dash-main { padding: 28px 20px 64px; } }
@media (max-width: 640px) { .user-topbar { min-height: 58px; padding: 0 14px; } .user-breadcrumb span, .user-breadcrumb b { display: none; } .user-topbar .term-chip { display: none; } .user-content .dash-main { padding: 22px 12px 48px; } }
.user-dash-shell .user-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; }
.user-dash-shell .user-content { margin-left: 248px; width: calc(100% - 248px); }
.user-dash-shell.user-sidebar-collapsed .user-content { margin-left: 76px; width: calc(100% - 76px); }
@media (max-width: 900px) { .user-dash-shell .user-content { margin-left: 214px; width: calc(100% - 214px); } .user-dash-shell.user-sidebar-collapsed .user-content { margin-left: 76px; width: calc(100% - 76px); } }
@media (max-width: 640px) { .user-dash-shell .user-sidebar { position: fixed; } }

/* Compact availability table */
.availability-panel .table-view-head > div { padding: 8px 6px; font-size: 10px; }
.availability-panel .table-view-rows { max-height: 620px; }
.availability-panel .table-view-row { min-height: 54px; padding: 5px 8px; }
.availability-panel .table-view-row > div:first-child { padding-left: 8px; padding-right: 8px; }
.availability-panel .table-view-row > div:first-child > div:first-child { font-size: 12px !important; }
.availability-panel .table-view-row > div:first-child > div:last-child { font-size: 10px !important; }
.availability-panel .table-view-slot { min-height: 38px; padding: 5px 3px; }
.availability-panel .table-view-slot .t1 { font-size: 10px; }
.availability-panel .table-view-slot .t2 { font-size: 9px; }
.availability-panel .table-view-head { background: #0F3040 !important; border-bottom: 0; }
.availability-panel .table-view-head > div { color: #FFFFFF !important; font-size: 12px; font-weight: 700; letter-spacing: 0; text-align: left; white-space: nowrap; }
.availability-panel .table-view-row { padding: 0; background: #FFFFFF; }
.availability-panel .table-view-row > div:first-child { display: flex; align-items: center; min-height: 50px; background: #F0F0F0; border-right: 1px solid #D8DADD; color: #1F2933; font-size: 13px; font-weight: 700; }
.availability-panel .table-view-slot { min-height: 50px; padding: 0 12px; border-left: 1px solid rgba(255,255,255,.65); border-radius: 0; text-align: left; color: #FFFFFF; }
.availability-panel .table-view-slot .t2 { color: #FFFFFF !important; font-size: 11px; font-weight: 600; text-decoration: none; }
.availability-panel .table-view-slot.table-slot-free { background: #68BFA2 !important; border-color: rgba(255,255,255,.7) !important; }
.availability-panel .table-view-slot.table-slot-free:hover { background: #55AD90 !important; }
.availability-panel .table-view-slot.table-slot-booked { color: #FFFFFF; }
.availability-panel .table-view-slot.table-slot-class { color: #FFFFFF; }
.availability-panel .table-view-scroll { max-height: 680px; overflow: auto; border: 1px solid #D8DADD; border-radius: 10px; }
.availability-panel .table-view-head { min-height: 48px; }
.availability-panel .table-view-head > div { display: flex; align-items: center; min-height: 48px; padding: 8px 10px; line-height: 1.15; white-space: normal; }
.availability-panel .table-view-head > div:first-child { position: sticky; left: 0; z-index: 5; background: #0F3040 !important; }
.availability-panel .table-view-row > div:first-child { position: sticky; left: 0; z-index: 3; min-height: 50px; padding-left: 10px; }
.availability-panel .table-view-slot .t1 { font-size: 11px; font-weight: 600; text-decoration: none !important; }
.availability-panel .table-view-slot .t2 { font-size: 10px; font-weight: 600; text-decoration: none !important; }
.availability-panel .table-view-slot.table-slot-free { background: #91C6BC !important; color: #FFFFFF !important; }
.availability-panel .table-view-slot.table-slot-free .t1 { color: #FFFFFF !important; }
.availability-panel .table-view-slot.table-slot-booked { background: #C5B3D3 !important; color: #334155 !important; }
.availability-panel .table-view-slot.table-slot-booked .t1 { color: #334155 !important; }
.availability-panel .table-view-slot.table-slot-class { background: #FFDADA !important; color: #8A3D25 !important; }
.availability-panel .table-view-slot.table-slot-class .t2 { color: #8A3D25 !important; }
.availability-panel .table-view-slot:focus-visible { z-index: 4; outline: 3px solid #355872; outline-offset: -3px; }
.availability-panel .table-view-slot:hover { filter: brightness(.96); }
.availability-legend { justify-content: flex-end; margin: 0 0 10px; padding: 0; border-top: 0; border-bottom: 0; gap: 16px; }
.availability-legend .legend-item { font-size: 11px; }
.admin-room-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 14px; color: var(--md-on-surface-variant, #5F6B73); font-size: 11px; font-weight: 700; }
.admin-room-search { display: flex; align-items: center; gap: 7px; width: 260px; height: 40px; padding: 0 12px; border: 1px solid var(--md-outline-variant, #D8DADD); border-radius: 20px; background: #fff; }
.admin-room-search span { color: var(--md-on-surface-variant, #5F6B73); font-size: 18px; }
.admin-room-search input { width: 100%; border: 0; outline: 0; color: var(--md-on-surface, #273F4F); font-size: 12px; }
.admin-room-page-size { min-width: 82px; height: 36px; font-size: 12px; }

/* Reference-inspired admin workspace */
.admin-dash-shell { display: flex; min-height: 100vh; background: #F3F1EC; color: #122B2A; }
.admin-sidebar { position: sticky; top: 0; display: flex; flex: 0 0 248px; flex-direction: column; width: 248px; height: 100vh; padding: 24px 14px 16px; box-sizing: border-box; background: #FFFFFF; border-right: 1px solid #E6E2DA; }
.admin-sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 0 10px 14px; color: #122B2A; cursor: pointer; }
.admin-sidebar-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; background: #173F3C; color: #FFFFFF; }
.admin-sidebar-brand .brand-name { font-size: 16px; }
.admin-sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: auto; border: 1px solid #E6E2DA; border-radius: 8px; background: #FFFFFF; color: #52615E; cursor: pointer; font-size: 20px; line-height: 1; }
.admin-sidebar-toggle:hover { background: #F1EEE7; color: #122B2A; }
.admin-workspace { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; padding: 10px; border-radius: 11px; background: #F1EEE7; color: #173F3C; }
.admin-workspace-mark { display: flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #173F3C; color: #FFFFFF; font-size: 12px; font-weight: 700; }
.admin-workspace strong, .admin-workspace span { display: block; }
.admin-workspace strong { font-size: 12px; }
.admin-workspace span { margin-top: 3px; color: #78827D; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.admin-workspace-chevron { margin-left: auto; color: #53615C; font-size: 16px !important; }
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav-group-label { margin: 16px 10px 7px; color: #7A827D; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.admin-side-link { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: 9px; color: #52615E; font-size: 13px; text-decoration: none; transition: background .15s, color .15s; }
.admin-side-link:hover { background: #F1EEE7; color: #122B2A; }
.admin-side-link.active { background: #F1EEE7; color: #122B2A; font-weight: 700; }
.admin-side-icon { display: inline-flex; width: 20px; align-items: center; justify-content: center; color: #44615C; font-size: 17px; line-height: 1; }
.admin-sidebar-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid #E6E2DA; }
.admin-sidebar-foot { padding: 16px 10px 0; color: #9AA09B; font-size: 10px; }
.admin-content { flex: 1; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 0 32px; background: #FFFFFF; border-bottom: 1px solid #E6E2DA; }
.admin-breadcrumb { display: flex; align-items: center; gap: 12px; color: #7A827D; font-size: 13px; }
.admin-breadcrumb b { color: #A1A7A1; font-size: 18px; font-weight: 400; }
.admin-breadcrumb strong { color: #122B2A; font-weight: 600; }
.admin-content .dash-main { max-width: 1380px; padding: 34px 32px 80px; }
.admin-content .dash-page-head { margin-bottom: 24px; }
.admin-content .dash-page-head h1 { color: #122B2A; font-size: 27px; letter-spacing: -.03em; }
.admin-content .dash-page-head p { color: #68736F; }
.admin-content .panel { background: #FFFFFF; border-color: #E6E2DA; border-radius: 13px; }
.admin-content .panel-body { padding: 22px; }
.admin-content .admin-card-header { margin: 0 0 14px; padding: 18px 20px; border: 0; border-radius: 10px; background: #F7F5F0; }
.admin-content .admin-card-header h2 { color: #122B2A; font-size: 17px; }
.admin-content .admin-card-header p { color: #68736F; }
.admin-content .admin-card-divider { background: #E6E2DA; }
.admin-content .admin-rooms-table-wrap, .admin-content .admin-users-table-wrap { border-color: #E6E2DA; border-radius: 10px; }
.admin-content .admin-rooms-table th, .admin-content .admin-users-table th { background: #F7F5F0; color: #68736F; }
.admin-content .admin-rooms-table td, .admin-content .admin-users-table td { border-color: #ECE9E3; }
.admin-sidebar-collapsed .admin-sidebar { flex-basis: 76px; width: 76px; padding-left: 10px; padding-right: 10px; }
.admin-sidebar-collapsed .admin-sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.admin-sidebar-collapsed .admin-sidebar-brand .brand-name,
.admin-sidebar-collapsed .admin-workspace > div:not(.admin-workspace-mark),
.admin-sidebar-collapsed .admin-workspace-chevron,
.admin-sidebar-collapsed .admin-nav-group-label,
.admin-sidebar-collapsed .admin-side-link span:not(.admin-side-icon),
.admin-sidebar-collapsed .admin-sidebar-foot { display: none; }
.admin-sidebar-collapsed .admin-sidebar-toggle { margin-left: 0; }
.admin-sidebar-collapsed .admin-workspace { justify-content: center; padding-left: 0; padding-right: 0; }
.admin-sidebar-collapsed .admin-side-link { justify-content: center; padding-left: 0; padding-right: 0; }

@media (max-width: 900px) {
  .admin-sidebar { flex-basis: 214px; width: 214px; }
  .admin-topbar { padding: 0 20px; }
  .admin-content .dash-main { padding: 28px 20px 64px; }
}

.planning-bulk-course-button { cursor: pointer; }
.planning-course-bulk-modal { width: min(980px, calc(100vw - 32px)); max-width: 980px; }
.planning-course-bulk-preview { max-height: 360px; margin-top: 14px; overflow: auto; border: 1px solid var(--border); border-radius: 9px; }
.planning-course-bulk-preview .data-table { min-width: 760px; }
.planning-course-bulk-preview .bulk-row-ok { color: #227554; font-weight: 700; }
.planning-course-bulk-preview .bulk-row-error { max-width: 260px; color: #A53B3B; white-space: normal; }

/* ---------- RoomSync SaaS design system ---------- */
:root {
  --accent: oklch(0.52 0.12 165);
  --accent-deep: oklch(0.35 0.1 165);
  --accent-tint: oklch(0.52 0.12 165 / 0.13);
  --page: #f6f7f7;
  --surface: #ffffff;
  --surface-muted: #f1f3f2;
  --ink: #191c1b;
  --ink-soft: #3f4744;
  --muted: #6f7674;
  --faint: #8f9795;
  --border: #e7eae9;
  --border-faint: #f0f2f1;
  --green-bg: oklch(0.52 0.12 165 / 0.13);
  --green-text: oklch(0.35 0.1 165);
  --red-bg: #fcebea;
  --red-border: #f2cfcc;
  --red-text: #a23b36;
}

html, body { background: var(--page); }
body, input, select, button, textarea { font-family: 'Instrument Sans', Helvetica, Arial, sans-serif; color: var(--ink); }
.jakarta, h1, h2, h3 { font-family: 'Instrument Sans', Helvetica, Arial, sans-serif; }
a { color: var(--accent-deep); }
a:hover { color: var(--accent); }

.btn { border-radius: 9px; font-weight: 600; box-shadow: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-secondary { background: #fff; color: var(--ink-soft); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: var(--surface-muted); border-color: #d5dcda; }
.btn-ghost { background: #fff; color: var(--ink-soft); border: 1px solid var(--border); }
.btn-danger { background: var(--red-bg); color: var(--red-text); border: 1px solid var(--red-border); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn-md { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 9px; }

.admin-dash-shell, .user-dash-shell { background: var(--page); color: var(--ink); }
.admin-sidebar, .user-sidebar { width: 244px; flex-basis: 244px; padding: 18px 12px 14px; background: var(--surface); border-right: 1px solid var(--border); box-shadow: 1px 0 8px rgba(20,30,28,.02); }
.admin-sidebar-brand, .user-sidebar-brand { min-height: 38px; padding: 0 9px 13px; color: var(--ink); }
.admin-sidebar-brand .brand-mark, .user-sidebar-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-tint); border: 1px solid var(--border); }
.admin-sidebar-brand .brand-name, .user-sidebar-brand .brand-name { color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.admin-sidebar-toggle, .user-sidebar-toggle { width: 28px; height: 28px; border-color: var(--border); border-radius: 8px; color: var(--muted); }
.admin-sidebar-toggle:hover, .user-sidebar-toggle:hover { background: var(--accent-tint); color: var(--accent-deep); }
.admin-workspace, .user-workspace { margin-bottom: 18px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); color: var(--ink); }
.admin-workspace-mark, .user-workspace-mark { background: var(--accent); color: #fff; border-radius: 8px; }
.admin-workspace strong, .user-workspace strong { color: var(--ink); font-weight: 650; }
.admin-workspace span, .user-workspace span { color: var(--muted); }
.admin-nav-group-label, .user-nav-group-label { margin: 16px 9px 6px; color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.admin-side-link, .user-side-link, .user-side-logout { min-height: 36px; border-radius: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.admin-side-link:hover, .user-side-link:hover, .user-side-logout:hover { background: var(--surface-muted); color: var(--ink); }
.admin-side-link.active, .user-side-link.active { background: var(--accent-tint); color: var(--accent-deep); font-weight: 650; }
.admin-side-icon, .user-side-icon { color: currentColor; font-size: 16px; }
.admin-sidebar-bottom, .user-sidebar-bottom { border-top-color: var(--border); }

.admin-content, .user-content { min-width: 0; background: var(--page); }
.admin-topbar, .user-topbar { position: sticky; top: 0; z-index: 15; min-height: 62px; height: 62px; padding: 0 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); box-shadow: 0 1px 5px rgba(20,30,28,.02); backdrop-filter: blur(14px); }
.admin-breadcrumb, .user-breadcrumb { gap: 9px; color: var(--faint); font-size: 12px; }
.admin-breadcrumb strong, .user-breadcrumb strong { color: var(--ink); font-weight: 650; }
.admin-content .dash-main, .user-content .dash-main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 26px 20px 64px; }
.admin-content .dash-page-head, .user-content .dash-page-head { margin-bottom: 20px; }
.admin-content .dash-page-head h1, .user-content .dash-page-head h1 { color: var(--ink); font-size: 17px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.admin-content .dash-page-head p, .user-content .dash-page-head p { color: var(--muted); font-size: 12px; }
.admin-content .panel, .user-content .panel, .panel, .stat-card, .quick-card, .avail-panel, .summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(20,30,28,.03); }
.admin-content .panel-body, .user-content .panel-body { padding: 18px; }
.panel-head { padding: 14px 18px; border-bottom-color: var(--border); }
.panel-head h2, .panel-head h3 { color: var(--ink); font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.text-muted, .admin-content .dash-page-head p, .user-content .dash-page-head p { color: var(--muted); }

.topbar-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; margin-right: 14px; }
.global-search { display: flex; align-items: center; gap: 7px; width: 190px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); color: var(--faint); }
.global-search span { font-size: 18px; line-height: 1; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.global-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.quick-add-button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.quick-add-button:hover { background: var(--accent-deep); color: #fff; }
.term-chip { min-height: 30px; padding: 0 10px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-deep); font-size: 11px; font-weight: 600; }
.term-chip::before { width: 6px; height: 6px; background: var(--accent); }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--surface-muted); }
.user-chip { border-radius: 8px; }
.user-chip:hover { background: var(--surface-muted); }
.profile-dropdown { border-color: var(--border); border-radius: 11px; box-shadow: 0 12px 30px rgba(20,30,28,.12); }

.admin-dash-shell .admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; }
.admin-dash-shell .admin-content { margin-left: 244px; width: calc(100% - 244px); }
.admin-sidebar-collapsed .admin-sidebar { width: 62px; flex-basis: 62px; padding-left: 8px; padding-right: 8px; }
.admin-sidebar-collapsed .admin-content { margin-left: 62px; width: calc(100% - 62px); }
.user-dash-shell .user-sidebar { width: 244px; flex-basis: 244px; }
.user-dash-shell .user-content { margin-left: 244px; width: calc(100% - 244px); }
.user-sidebar-collapsed .user-sidebar { width: 62px; flex-basis: 62px; padding-left: 8px; padding-right: 8px; }
.user-dash-shell.user-sidebar-collapsed .user-content { margin-left: 62px; width: calc(100% - 62px); }

table.admin-rooms-table, table.admin-users-table, table.routine-schedule-table, table.planning-table, table.planning-room-table { font-size: 12px; }
.admin-rooms-table-wrap, .admin-users-table-wrap, .planning-review-scroll, .planning-room-map { border-color: var(--border); border-radius: 10px; }
.admin-rooms-table th, .admin-users-table th, .routine-schedule-table th, .planning-table th, .planning-room-table th { padding: 10px 12px; background: var(--surface-muted); color: var(--muted); border-bottom: 1px solid var(--border); font-size: 10.5px; font-weight: 650; letter-spacing: .04em; }
.admin-rooms-table td, .admin-users-table td, .routine-schedule-table td, .planning-table td, .planning-room-table td { padding: 10px 12px; color: var(--ink-soft); border-bottom-color: var(--border-faint); font-size: 12px; }
.admin-rooms-table tr:hover td, .admin-users-table tr:hover td, .routine-schedule-table tbody tr:hover, .planning-table tbody tr:hover td, .planning-room-table tbody tr:hover td { background: var(--surface-muted); }
.status-pill, .badge, .room-status, .planning-status { border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.status-pill, .planning-allocated, .room-status-active, .badge-green { background: var(--green-bg); color: var(--green-text); border-color: transparent; }
.planning-unallocated, .room-status-inactive, .room-status-unavailable, .btn-danger { background: var(--red-bg); color: var(--red-text); border-color: var(--red-border); }

.admin-card-header { background: var(--surface-muted); border-radius: 10px; padding: 15px 16px; }
.admin-card-header h2 { color: var(--ink); font-size: 15px; font-weight: 650; }
.admin-card-header p { color: var(--muted); font-size: 11px; }
.field input, .field select, .field textarea, .select-input, .planning-form-row input, .planning-form-row select { border-color: var(--border); border-radius: 8px; background: #fff; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.filter-chip.active, .pill-toggle.selected, .time-opt.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.modal-backdrop { background: rgba(25,28,27,.35); backdrop-filter: blur(3px); }
.admin-modal, .drawer { border-color: var(--border); box-shadow: 0 18px 45px rgba(20,30,28,.16); }
.drawer-head, .drawer-footer { border-color: var(--border); }
.toast { background: var(--ink); border-radius: 9px; box-shadow: 0 10px 26px rgba(20,30,28,.16); }

.mobile-menu-button, .mobile-sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .admin-sidebar, .user-sidebar { transform: translateX(-105%); transition: transform .18s ease; box-shadow: 10px 0 30px rgba(20,30,28,.12); }
  .mobile-sidebar-open .admin-sidebar, .mobile-sidebar-open .user-sidebar { transform: translateX(0); }
  .admin-dash-shell .admin-content, .admin-sidebar-collapsed .admin-content, .user-dash-shell .user-content, .user-dash-shell.user-sidebar-collapsed .user-content { width: 100%; margin-left: 0; }
  .mobile-sidebar-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(25,28,27,.28); }
  .mobile-sidebar-open .mobile-sidebar-backdrop { display: block; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 16px; }
  .admin-topbar, .user-topbar { padding: 0 16px; }
  .global-search { width: 150px; }
  .admin-content .dash-main, .user-content .dash-main { padding: 22px 16px 50px; }
}
@media (max-width: 620px) {
  .topbar-tools { margin-right: 6px; }
  .global-search { display: none; }
  .quick-add-button span { display: none; }
  .quick-add-button { width: 32px; justify-content: center; padding: 0; font-size: 17px; }
  .admin-topbar, .user-topbar { padding: 0 12px; }
  .admin-content .dash-main, .user-content .dash-main { padding: 18px 12px 42px; }
}
@media (max-width: 640px) {
  .admin-topbar { min-height: 58px; padding: 0 14px; }
  .admin-breadcrumb span, .admin-breadcrumb b { display: none; }
  .admin-topbar .term-chip { display: none; }
  .admin-content .dash-main { padding: 22px 12px 48px; }
  .admin-content .panel-body { padding: 14px; }
  .admin-card-header { align-items: flex-start; flex-direction: column; }
  .admin-card-actions { width: 100%; justify-content: flex-start; }
}
.room-drag-handle { display: inline-block; margin-right: 7px; color: var(--md-on-surface-variant, #5F6B73); cursor: grab; font-size: 15px; letter-spacing: -3px; }
.admin-rooms-table tr[draggable="true"]:active .room-drag-handle { cursor: grabbing; }
.room-status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.room-status-active { background: #E8F5E9; color: #176B3A; }
.room-status-inactive, .room-status-unavailable { background: #FDECEA; color: #B3261E; }
.audit-log-table { min-width: 980px; }
.audit-time { color: var(--md-on-surface-variant, #5F6B73); font-size: 11px; white-space: nowrap; }
.audit-event { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; background: var(--md-surface-container, #EFEEEA); color: var(--md-on-surface, #273F4F); font-size: 11px; font-weight: 700; white-space: nowrap; }
.audit-booking_removed { background: #FDECEA; color: #B3261E; }
.audit-login_failed { background: #FDECEA; color: #B3261E; }
.audit-booking_created { background: #E8F5E9; color: #176B3A; }
.user-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.user-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.user-role { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: var(--faint); }
.dash-nav { max-width: 1200px; margin: 0 auto; padding: 0 32px 10px; display: flex; gap: 6px; overflow-x: auto; }
.dash-nav-btn { height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.dash-nav-btn:hover { color: var(--ink); background: var(--bg); }
.dash-nav-btn.active { color: var(--accent-dark); background: #FEE4D9; border-color: #FE7743; box-shadow: 0 2px 5px rgba(39,63,79,0.10); }
.dash-main { max-width: 1200px; margin: 0 auto; padding: 28px 32px 96px; min-width: 0; }
.admin-dash-shell .dash-main { max-width: 1320px; padding-left: 20px; padding-right: 20px; }
.admin-dash-shell .panel-body { padding-left: 18px; padding-right: 18px; }
.dash-page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.dash-page-head p { font-size: 13px; color: var(--muted); margin: 0; }

.toast { position: fixed; top: 76px; right: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 12px 24px -6px rgba(0,0,0,0.3); }

.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 10px; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }

.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.quick-card { display: flex; align-items: flex-start; gap: 14px; text-align: left; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: #fff; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.quick-card:hover { box-shadow: 0 8px 20px -6px rgba(15,23,42,0.12); border-color: var(--accent-soft-border); }
.quick-icon { flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.quick-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.quick-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-faint); flex-wrap: wrap; gap: 12px; }
.panel-head h2 { font-size: 14px; font-weight: 700; margin: 0; }
.panel-body { padding: 20px; }
.availability-panel .panel-body { padding-left: 10px; padding-right: 10px; }
.availability-panel .avail-head {
  margin: -24px -10px 20px;
  padding: 20px 10px 16px;
  background: var(--md-surface-container);
  border-bottom: 1px solid var(--md-outline-variant);
}
.availability-panel .avail-head h2 { font-size: 20px; letter-spacing: -.01em; color: var(--md-on-surface); }
.availability-panel .avail-head p { color: var(--md-on-surface-variant); }
.availability-panel .avail-controls { gap: 8px; }

table.bookings-table { width: 100%; border-collapse: collapse; }
table.bookings-table th { text-align: left; padding: 10px 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--faint); text-transform: uppercase; background: var(--bg); border-bottom: 1px solid var(--border); }
table.bookings-table th:last-child { text-align: right; }
table.bookings-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-faint); }
table.bookings-table tr:hover td { background: var(--bg); }
.booking-details-cell { max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-room { display: flex; align-items: center; gap: 12px; }
.row-room-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; font-size: 11px; font-weight: 700; border-radius: 8px; }
.badge-green { color: var(--green-text); background: var(--green-bg); border: 1px solid var(--green-border); }
.badge-indigo { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-soft-border); }
.empty-state { padding: 32px 0; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- Availability page ---------- */
.avail-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.avail-head h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.avail-head p { font-size: 13px; color: var(--muted); margin: 0; }
.avail-controls { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.segmented { display: flex; border: 1px solid #CBD5E1; border-radius: 10px; overflow: hidden; height: 36px; }
.segmented button { padding: 0 16px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; background: transparent; color: var(--ink-soft); }
.segmented button.active { background: var(--accent-soft); color: var(--accent-dark); }
.date-stepper { display: flex; align-items: center; border: 1px solid #CBD5E1; border-radius: 10px; height: 36px; overflow: hidden; }
.date-stepper button { width: 32px; height: 36px; border: none; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); border-right: 1px solid var(--border); }
.date-stepper button:hover { background: var(--bg); }
.date-stepper .today-btn { width: auto; padding: 0 12px; font-size: 12px; font-weight: 600; }
.date-stepper input[type=date] { height: 36px; padding: 0 10px; border: none; font-size: 13px; background: #fff; color: var(--ink); border-right: 1px solid var(--border); }
.select-input { height: 36px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 10px; font-size: 13px; background: #fff; color: var(--ink); min-width: 170px; }

.week-cal { min-width: 660px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.week-cal-scroll { overflow-x: auto; }
.week-cal-head { display: grid; grid-template-columns: 80px repeat(6, 1fr); background: var(--bg); border-bottom: 1px solid var(--border); }
.week-cal-head-cell { padding: 8px 6px; text-align: center; border-left: 1px solid var(--border); }
.week-cal-head-cell:first-child { border-left: none; }
.week-cal-head-day { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--faint); text-transform: uppercase; }
.week-cal-head-date { width: 28px; height: 28px; margin: 4px auto 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.week-cal-row { display: grid; grid-template-columns: 80px repeat(6, 1fr); border-bottom: 1px solid var(--border-faint); }
.week-cal-time { padding: 8px 10px; font-size: 10px; font-weight: 600; color: var(--faint); text-align: right; }
.week-cal-cell { border-left: 1px solid var(--border-faint); padding: 4px; }
.week-cal-cell button { width: 100%; height: 46px; border-radius: 8px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 8px; text-align: left; border: 1px solid; }
.week-cal-cell .t1 { font-size: 11px; font-weight: 700; }
.week-cal-cell .t2 { font-size: 10px; opacity: .8; }

.table-view-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table-view-head { display: grid; gap: 8px; margin-bottom: 6px; padding: 0 12px 8px; background: var(--bg); border-radius: 8px 8px 0 0; }
.table-view-head > div { font-size: 11px; font-weight: 700; color: var(--faint); text-align: center; padding-top: 8px; }
.table-view-head > div:first-child { text-align: left; text-transform: uppercase; letter-spacing: .05em; }
.table-view-rows { display: flex; flex-direction: column; gap: 2px; max-height: 520px; overflow-y: auto; }
.table-view-row { display: grid; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; }
.table-view-row:hover { background: var(--bg); }
.table-view-slot { width: 100%; border-radius: 8px; padding: 8px 4px; text-align: center; border: 1px solid; }
.table-view-slot .t1 { font-size: 11px; font-weight: 700; }
.table-view-slot .t2 { font-size: 10px; opacity: .8; }

/* ---------- Events page ---------- */
.month-nav { padding: 16px 20px; display: flex; align-items: center; gap: 8px; }
.month-nav-label { font-size: 14px; font-weight: 700; min-width: 130px; text-align: center; }
.round-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.month-grid { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0 20px 20px; }
.month-grid-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); border-bottom: 1px solid var(--border); }
.month-grid-head div { padding: 8px 4px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--faint); text-transform: uppercase; }
.month-grid-week { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border-faint); }
.month-day { min-height: 84px; border-left: 1px solid var(--border-faint); background: #fff; padding: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; cursor: pointer; text-align: left; border-top: none; border-right: none; border-bottom: none; width: 100%; }
.month-day:first-child { border-left: none; }
.month-day.selected { background: var(--accent-soft); }
.month-day-num { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.month-day-event { width: 100%; font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-soft-border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.month-day-extra { font-size: 10px; font-weight: 600; color: var(--faint); }

.agenda-list { border: 1px solid var(--border-faint); border-radius: 12px; overflow: hidden; }
.agenda-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border-faint); }
.agenda-item:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 14px 20px; }
  .site-nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .dash-site-header { align-items: flex-start; }
  .dash-header-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .dash-header-right .site-nav { width: auto; max-width: 100%; }
  .dash-header-top { padding: 0 20px; }
  .dash-nav { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border-faint); overflow-x: auto; }
.admin-tab-btn { height: 44px; padding: 0 4px; margin-right: 20px; border: none; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.admin-tab-btn { display: inline-flex; align-items: center; text-decoration: none; }
.admin-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 8px; background: var(--border-faint); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.tag-pill button { width: 18px; height: 18px; border-radius: 5px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.tag-pill button:hover { background: var(--border); color: var(--ink-soft); }
.admin-room-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border-faint); border-radius: 10px; }
.dropzone { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 16px; border: 1px dashed #CBD5E1; border-radius: 12px; background: var(--bg); }
.dropzone-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.file-btn { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: #fff; border: 1px solid #CBD5E1; cursor: pointer; display: flex; align-items: center; }
.file-btn:hover { background: var(--border-faint); }
.preview-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 20px; }
.preview-head, .preview-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr 0.6fr; padding: 10px 14px; }
.preview-head { background: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--border); }
.preview-row { font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--border-faint); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border-faint); }
.toggle-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.toggle-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toggle-switch { width: 40px; height: 24px; border-radius: 12px; border: none; cursor: pointer; position: relative; flex: 0 0 40px; }
.toggle-switch .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 10px; background: #fff; transition: transform .15s; }

.search-box { position: relative; flex: 1; }
.search-box input { width: 100%; height: 40px; padding: 0 14px 0 36px; border-radius: 10px; font-size: 13px; border: 1px solid #CBD5E1; background: #fff; color: var(--ink); }
.search-box svg { position: absolute; left: 12px; top: 12.5px; pointer-events: none; color: var(--faint); }
.search-box.icon-right svg { left: auto; right: 12px; }
.search-box.icon-right input { padding: 0 36px 0 12px; }
.autocomplete-list { position: absolute; left: 0; right: 0; top: 44px; z-index: 3; max-height: 180px; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 0; box-shadow: 0 12px 24px -6px rgba(15,23,42,0.15); }
.autocomplete-list button { display: block; width: 100%; text-align: left; padding: 9px 14px; border: none; cursor: pointer; font-size: 13px; color: var(--ink); background: transparent; }
.autocomplete-list button:hover { background: var(--border-faint); }
.autocomplete-empty { padding: 9px 14px; font-size: 13px; color: var(--faint); }

/* ---------- Booking wizard ---------- */
.wizard-header { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--border); }
.wizard-body { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; }
.step-track { display: flex; gap: 8px; margin-bottom: 36px; }
.step-track > div { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.step-track > div.done { background: var(--accent); }
.wizard-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
.wizard-body > p.lead { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.field-title { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 10px; }
.criteria-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 26px; }
.type-pick { text-align: left; padding: 16px; border-radius: 14px; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--accent); }
.type-pick:hover { box-shadow: 0 6px 16px -4px rgba(15,23,42,0.1); }
.type-pick.selected { background: var(--accent-soft); border-color: var(--accent); }
.type-pick-name { font-size: 14px; font-weight: 700; color: var(--ink); margin: 10px 0 3px; }
.type-pick-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.criteria-row { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .criteria-row, .criteria-grid { grid-template-columns: 1fr; } }
.time-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.time-opt { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff; border: 1px solid #CBD5E1; color: var(--ink); }
.time-opt.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.weekend-warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--red-text); }
.hint-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }

.room-list { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.room-list-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border-faint); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; width: 100%; }
.room-list-item:hover { background: var(--bg); border-color: var(--border); }
.room-list-item:disabled { cursor: default; }
.room-list-left { display: flex; align-items: center; gap: 14px; }
.room-list-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--border-faint); display: flex; align-items: center; justify-content: center; }
.room-list-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.room-list-cap { font-size: 12px; color: var(--muted); margin-top: 2px; }

.summary-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-faint); padding-bottom: 14px; gap: 16px; }
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-row .k { font-size: 13px; color: var(--muted); }
.summary-row .v { font-size: 13px; font-weight: 600; color: var(--ink); }

.purpose-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (max-width: 500px) { .purpose-grid { grid-template-columns: 1fr; } }
.purpose-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; border-radius: 10px; cursor: pointer; border: 1px solid var(--border); background: #fff; width: 100%; }
.purpose-opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.purpose-dot { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 8px; border: 2px solid var(--faint); box-sizing: border-box; }
.purpose-opt.selected .purpose-dot { border: 5px solid var(--accent); }
.purpose-name { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.purpose-opt.selected .purpose-name { color: var(--accent-dark); }
.purpose-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.booking-details-section {
  padding: 18px;
  border: 1px solid var(--md-outline-variant);
  border-radius: 16px;
  background: var(--md-surface-container-low);
}
.booking-details-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.booking-details-heading label { color: var(--md-on-surface); font-size: 14px; font-weight: 700; }
.booking-details-heading span { color: var(--md-on-surface-variant); font-size: 12px; }
.booking-details-section textarea { display: block; width: 100%; min-height: 96px; padding: 14px 16px; background: #FFFFFF; border-radius: 10px; resize: vertical; }
.booking-details-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 22px; margin-top: 8px; }
.booking-details-footer #details-count { margin-left: auto; color: var(--md-on-surface-variant) !important; font-size: 12px !important; font-variant-numeric: tabular-nums; }

.pill-toggle { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink-soft); border: 1px solid var(--border); }
.pill-toggle.selected { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }

.done-box { text-align: center; padding: 40px 0; }
.done-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--green-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.done-box h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.done-box p { font-size: 14px; color: var(--muted); margin: 0 0 28px; }

/* ---------- Modal / drawer ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px; background: #fff; z-index: 51; box-shadow: -16px 0 40px -8px rgba(15,23,42,0.25); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-faint); }
.drawer-title { display: flex; align-items: center; gap: 10px; }
.drawer-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.drawer-summary { background: var(--bg); border: 1px solid var(--border-faint); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.booking-detail-block { padding: 16px; border: 1px solid var(--md-outline-variant); border-radius: 14px; background: var(--md-surface-container-low); }
.booking-detail-label { margin-bottom: 6px; color: var(--md-on-surface-variant); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.booking-detail-value { color: var(--md-on-surface); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.booking-user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.booking-user-grid > div { min-width: 0; }
.booking-user-key, .booking-user-value { display: block; }
.booking-user-key { color: var(--md-on-surface-variant); font-size: 11px; margin-bottom: 3px; }
.booking-user-value { color: var(--md-on-surface); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.booking-user-email { grid-column: 1 / -1; }
@media (max-width: 500px) { .booking-user-grid { grid-template-columns: 1fr; } .booking-user-email { grid-column: auto; } }
.drawer-summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.drawer-summary-row .k { color: var(--muted); }
.drawer-summary-row .v { font-weight: 600; color: var(--ink); }
.drawer-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--border-faint); }
.close-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.close-btn:hover { background: var(--border-faint); }

.flex-gap { display: flex; gap: 6px; flex-wrap: wrap; }
.flex-gap-8 { display: flex; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.text-muted { color: var(--muted); font-size: 13px; }

/* ================================================================
   Material Design 3 theme
   Shared component layer for every application page.
   ================================================================ */
:root {
  --md-primary: #273F4F;
  --md-selected: #355872;
  --md-on-primary: #FFFFFF;
  --md-primary-container: #E3E8EB;
  --md-on-primary-container: #1C2F3B;
  --md-secondary: #FE7743;
  --md-secondary-container: #FEE4D9;
  --md-on-secondary-container: #273F4F;
  --md-tertiary: #FE7743;
  --md-error: #BA1A1A;
  --md-surface: #F5F5F5;
  --md-surface-container-low: #FFFFFF;
  --md-surface-container: #EFEEEA;
  --md-surface-container-high: #E4E4E1;
  --md-on-surface: #000000;
  --md-on-surface-variant: #5F6B73;
  --md-outline: #8A9298;
  --md-outline-variant: #D8DADD;
  --md-shadow-1: 0 1px 2px rgba(0,0,0,.14), 0 1px 3px 1px rgba(39,63,79,.08);
  --md-shadow-2: 0 2px 6px 2px rgba(0,0,0,.10), 0 1px 2px rgba(39,63,79,.12);

  --accent: var(--md-primary);
  --accent-dark: #1C2F3B;
  --accent-soft: var(--md-primary-container);
  --accent-soft-border: #D8DADD;
  --bg: var(--md-surface-container-low);
  --ink: var(--md-on-surface);
  --ink-soft: var(--md-on-surface-variant);
  --muted: #5F6B73;
  --faint: #7A858C;
  --border: var(--md-outline-variant);
  --border-faint: #E6E7E8;
}

html, body { background: var(--md-surface); }
body, input, select, button, textarea { font-family: 'Roboto', Arial, sans-serif; }
.jakarta, h1, h2, h3 { font-family: 'Roboto', Arial, sans-serif; }

/* Material state focus */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(39,63,79,.30);
  outline-offset: 2px;
}

/* Top app bars and navigation */
.site-header,
.dash-header,
.wizard-header,
.auth-page-header {
  background: rgba(255,255,255,.96);
  border-color: var(--md-outline-variant);
  box-shadow: var(--md-shadow-1);
  backdrop-filter: blur(16px);
}
.brand-mark { background: var(--md-primary); border-radius: 12px; box-shadow: none; }
.user-sidebar-brand > .brand-mark,
.admin-sidebar-brand > .brand-mark {
  background: #FFFFFF url('../images/uiu_room_booking_favicon_fixed.png') center / contain no-repeat !important;
  border: 1px solid #E5E7EB;
  padding: 3px;
}
.user-sidebar-brand > .brand-mark svg,
.admin-sidebar-brand > .brand-mark svg { display: none; }
.user-sidebar-brand > .brand-name,
.admin-sidebar-brand > .brand-name {
  display: block;
  width: 160px;
  height: 74px;
  overflow: hidden;
  font-size: 0;
  background: url('../images/roomsync_logo.png?v=2') center / contain no-repeat;
}
.user-sidebar-collapsed .user-sidebar-brand > .brand-name,
.admin-sidebar-collapsed .admin-sidebar-brand > .brand-name { display: none; }
.user-dash-shell:not(.user-sidebar-collapsed) .user-sidebar-brand > .brand-mark,
.admin-dash-shell:not(.admin-sidebar-collapsed) .admin-sidebar-brand > .brand-mark { display: none; }
.brand-name { color: var(--md-on-surface); font-weight: 700; }
.site-nav {
  background: var(--md-surface-container);
  border: 0;
  border-radius: 24px;
  padding: 4px;
  box-shadow: none;
}
.nav-link,
.dash-nav-btn {
  min-height: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  color: var(--md-on-surface-variant);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.nav-link:hover,
.dash-nav-btn:hover { color: var(--md-on-surface); background: rgba(73,69,79,.08); box-shadow: none; }
.dash-nav-btn.active {
  color: #FFFFFF;
  background: var(--md-selected);
  border: 0;
  box-shadow: none;
}
.icon-btn { border-radius: 50%; color: var(--md-on-surface-variant); }
.icon-btn:hover { background: rgba(73,69,79,.08); }
.user-chip { border-radius: 20px; background: var(--md-surface-container-low); }
.user-avatar { border-radius: 50%; background: var(--md-primary-container); color: var(--md-on-primary-container); }

/* Material buttons */
.btn { min-height: 40px; border-radius: 20px; padding-inline: 20px; font-weight: 600; letter-spacing: .01em; transition: box-shadow .15s, background .15s; }
.btn-sm { min-height: 36px; height: 36px; border-radius: 18px; padding-inline: 16px; }
.btn-md { height: 40px; border-radius: 20px; }
.btn-lg { height: 48px; border-radius: 24px; padding-inline: 24px; }
.btn-primary { background: var(--md-primary); color: var(--md-on-primary); box-shadow: var(--md-shadow-1); }
.btn-primary:hover:not(:disabled) { background: #1C2F3B; filter: none; box-shadow: var(--md-shadow-2); }
.btn-secondary,
.btn-ghost,
.file-btn { background: transparent; color: var(--md-primary); border: 1px solid var(--md-outline); box-shadow: none; }
.btn-secondary:hover,
.btn-ghost:hover,
.file-btn:hover { background: rgba(39,63,79,.08); }
.btn-text { min-height: 36px; padding: 0 12px; border-radius: 18px; color: var(--md-primary); }
.btn-text:hover { background: rgba(39,63,79,.08); }
.btn-danger { color: var(--md-error); background: transparent; border-color: #F2B8B5; }

/* Material surfaces and cards */
.dash-shell { background: var(--md-surface); }
.panel,
.stat-card,
.quick-card,
.type-card,
.login-card,
.auth-card,
.summary-card,
.avail-panel {
  background: var(--md-surface-container-low);
  border: 1px solid var(--md-outline-variant);
  border-radius: 16px;
  box-shadow: none;
}
.panel:hover,
.stat-card:hover,
.quick-card:hover,
.type-card:hover { border-color: var(--md-outline); box-shadow: var(--md-shadow-1); }
.panel-head { min-height: 64px; padding: 16px 24px; border-color: var(--md-outline-variant); }
.panel-head h2 { font-size: 16px; font-weight: 600; }
.panel-body { padding: 24px; }
.stat-card { padding: 22px 24px; }
.stat-value { color: var(--md-on-surface); font-size: 32px; font-weight: 500; }
.stat-label { color: var(--md-on-surface-variant); font-weight: 500; }
.quick-card { min-height: 112px; padding: 20px; }
.quick-icon,
.row-room-icon,
.drawer-icon,
.dropzone-icon { border-radius: 12px; background: var(--md-primary-container); color: var(--md-on-primary-container); }
.type-card-photo { background: var(--md-surface-container); border-color: var(--md-outline-variant); }

/* Material form controls */
.field input,
.field select,
.field textarea,
.search-box input,
.select-input {
  min-height: 48px;
  border: 1px solid var(--md-outline);
  border-radius: 4px;
  background: transparent;
  color: var(--md-on-surface);
}
.field select,
.select-input { border-radius: 20px; }
.select-input { height: 40px; min-height: 40px; }
.room-filter-dropdown { position: relative; min-width: 220px; }
.room-filter-dropdown .search-box { min-width: 220px; }
.room-filter-dropdown .room-filter-input { height: 40px; min-height: 40px; border-radius: 20px; padding-left: 38px; }
.room-filter-options { top: 46px; max-height: 240px; }
#room-filter-options.is-hidden { display: none; }
.room-filter-options button.selected { background: var(--md-secondary-container); color: var(--md-on-secondary-container); font-weight: 700; }
.field textarea { padding: 14px 16px; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus,
.search-box input:focus,
.select-input:focus {
  outline: none;
  border: 2px solid var(--md-primary);
  box-shadow: none;
}
.field label,
.field-title,
.section-label { color: var(--md-on-surface-variant); font-weight: 600; }
.segmented { height: 40px; border-color: var(--md-outline); border-radius: 20px; }
.segmented button { padding-inline: 18px; color: var(--md-on-surface-variant); }
.segmented button.active { color: #FFFFFF; background: var(--md-selected); }
.date-stepper { min-height: 40px; height: 40px; border-color: var(--md-outline); border-radius: 20px; }
.date-stepper button,
.date-stepper input[type=date] { height: 40px; background: transparent; border-color: var(--md-outline-variant); }
.filter-chip,
.time-opt,
.pill-toggle,
.chip-btn,
.tag-pill { border-radius: 18px; min-height: 36px; background: transparent; border: 1px solid var(--md-outline); color: var(--md-on-surface-variant); }
.filter-chip.active,
.time-opt.selected,
.pill-toggle.selected { background: var(--md-selected); color: #FFFFFF; border-color: var(--md-selected); }

/* Material tabs, lists and tables */
.admin-tabs { min-height: 56px; padding: 0 16px; border-color: var(--md-outline-variant); }
.admin-tab-btn { height: 56px; padding: 0 16px; margin: 0; color: var(--md-on-surface-variant); font-weight: 600; }
.admin-tab-btn.active { color: var(--md-selected); border-bottom: 3px solid var(--md-selected); }
.admin-room-row,
.room-list-item,
.agenda-item { background: transparent; border-color: var(--md-outline-variant); border-radius: 12px; }
.room-list-item:hover,
.admin-room-row:hover { background: rgba(73,69,79,.08); }
.table-view-scroll,
.week-cal,
.month-grid,
.preview-table,
.agenda-list { border-color: var(--md-outline-variant); border-radius: 12px; background: var(--md-surface-container-low); }
.table-view-head,
.week-cal-head,
.month-grid-head,
.preview-head,
table.bookings-table th { background: var(--md-surface-container); color: var(--md-on-surface-variant); }
.table-view-head { gap: 0; margin-bottom: 0; border-bottom: 2px solid var(--md-outline); }
.table-view-head > div { border-left: 1px solid var(--md-outline-variant); border-left-style: solid; }
.table-view-head > div:first-child { border-left: 0; }
.table-view-rows { gap: 0; }
.table-view-row { gap: 0; border: 0; border-bottom: 1px solid var(--md-outline-variant); border-radius: 0; margin-bottom: 0; }
.table-view-row > div:first-child { border-right: 1px solid var(--md-outline-variant); padding-left: 0; padding-right: 12px; }
.table-view-slot { border-style: solid; border-radius: 0; border-top: 0; border-right: 0; border-bottom: 0; border-left-width: 1px; min-height: 48px; }
.table-view-scroll { border: 0; box-shadow: 0 2px 8px rgba(39,63,79,.06); }
.table-view-head { position: sticky; top: 0; z-index: 2; padding: 0; }
.table-view-head > div { padding: 12px; }
.table-view-row { min-height: 72px; background: #FFFFFF; }
.table-view-row:nth-child(even) { background: #FAFAFA; }
.table-view-row > div:first-child { padding-left: 12px; }
.table-view-row > div:first-child > div:first-child { color: var(--md-on-surface); font-size: 14px !important; }
.table-view-slot { transition: filter .15s, background .15s; }
.availability-panel .table-view-slot.table-slot-class .t2 {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-view-slot:hover { filter: brightness(.97); }
.availability-panel .legend-row { margin-top: 20px; padding: 16px 0 0; }
.table-view-row:hover,
table.bookings-table tr:hover td { background: rgba(73,69,79,.06); }
.badge { min-height: 28px; border-radius: 14px; padding-inline: 12px; }

/* Material calendar, admin and status controls */
.month-day { background: var(--md-surface-container-low); }
.month-day:hover { background: rgba(73,69,79,.08); }
.month-day.selected { background: var(--md-secondary-container); }
.month-day-event { background: var(--md-primary-container); color: var(--md-on-primary-container); border: 0; border-radius: 8px; }
.round-btn { border: 0; border-radius: 50%; background: transparent; }
.round-btn:hover { background: rgba(73,69,79,.08); }
.dropzone { border-color: var(--md-outline); border-radius: 16px; background: var(--md-surface-container-low); }
.toggle-switch { width: 52px; height: 32px; border-radius: 16px; border: 2px solid var(--md-outline); }
.toggle-switch .knob { top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; }
.autocomplete-list { border-color: var(--md-outline-variant); border-radius: 12px; background: var(--md-surface-container); box-shadow: var(--md-shadow-2); }
.autocomplete-list button:hover { background: rgba(73,69,79,.08); }

/* Material booking flow and drawer */
.wizard-body { max-width: 840px; }
.step-track > div { height: 4px; background: var(--md-surface-container-high); }
.step-track > div.done { background: var(--md-primary); }
.type-pick,
.purpose-opt { border-color: var(--md-outline-variant); background: var(--md-surface-container-low); border-radius: 16px; }
.type-pick:hover,
.purpose-opt:hover { background: var(--md-surface-container); box-shadow: none; }
.type-pick.selected,
.purpose-opt.selected { background: var(--md-secondary-container); border-color: var(--md-primary); }
.purpose-opt.selected .purpose-dot { border-color: var(--md-primary); }
.modal-backdrop { background: rgba(29,27,32,.45); backdrop-filter: blur(2px); }
.drawer { background: var(--md-surface); border-radius: 28px 0 0 28px; box-shadow: 0 8px 28px rgba(29,27,32,.24); }
.drawer-head,
.drawer-footer { border-color: var(--md-outline-variant); }
.drawer-summary { background: var(--md-surface-container); border: 0; border-radius: 16px; }
.close-btn { border-radius: 50%; }
.close-btn:hover { background: rgba(73,69,79,.08); }
.toast { border-radius: 12px; background: #322F35; box-shadow: var(--md-shadow-2); }

.table-scroll { width: 100%; overflow-x: auto; }
.routine-schedule-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 11px; }
.routine-schedule-table th { padding: 8px 8px; background: #659287; color: #FFFFFF; border-bottom: 1px solid #659287; text-align: left; white-space: nowrap; font-size: 9px; text-transform: uppercase; letter-spacing: .03em; }
.routine-schedule-table td { padding: 7px 8px; border-bottom: 1px solid #F0EDE7; color: #253333; white-space: nowrap; vertical-align: top; }
.routine-schedule-table tbody tr:hover { background: #FCFBF8; }
.routine-schedule-table td small { display: block; margin-top: 3px; color: #7A8582; font-size: 10px; }
.routine-table-filters { display: flex; align-items: center; gap: 8px; }
.routine-table-filters .search-input { width: 190px; height: 34px; }
.routine-table-filters .search-input { padding: 0 12px 0 34px; border: 1px solid #D8D5CE; border-radius: 9px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%237A8582' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 11px center / 15px no-repeat; color: #253333; }
.routine-table-filters .search-input:focus { border-color: #355872; box-shadow: 0 0 0 3px rgba(53,88,114,.12); outline: none; }
.routine-table-filters select { height: 34px; padding: 0 28px 0 10px; border: 1px solid #D8D5CE; border-radius: 8px; background: #FFFFFF; color: #344442; font-size: 12px; }
.routine-upload-trimester { max-width: 280px; margin-bottom: 14px; }
.routine-upload-trimester select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #D8D5CE; border-radius: 9px; background: #FFFFFF; color: #344442; font-size: 12px; }
.file-btn.disabled { opacity: .5; cursor: not-allowed; }
.routine-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px 16px; color: #7A8582; font-size: 11px; }
.routine-pagination > div { display: flex; gap: 6px; }
.admin-submenu { display: flex; flex-direction: column; gap: 2px; margin: -4px 0 8px 42px; }
.admin-submenu.is-hidden { display: none; }
.admin-sub-link { padding: 6px 10px; border-radius: 7px; color: #6B7875; font-size: 11px; font-weight: 600; }
.admin-sub-link:hover, .admin-sub-link.active { color: #173F3C; background: #F3F0E9; }
.admin-routine-toggle { width: 100%; border: 0; text-align: left; }
.admin-planning-toggle { width: 100%; border: 0; text-align: left; }
.admin-routine-chevron { margin-left: auto; font-size: 12px; color: #7A8582; }
.admin-sidebar-collapsed .admin-submenu { display: none; }
.routine-import-hidden { display: none; }
.routine-schedule-hidden { display: none; }
.routine-backup-check { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: #344442; font-size: 12px; font-weight: 600; cursor: pointer; }
.routine-backup-check input { width: 16px; height: 16px; accent-color: #355872; }
.planning-module { padding: 24px; }
.planning-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 0 20px; margin-bottom: 18px; border-bottom: 1px solid #E6E2DA; }
.planning-toolbar > div:first-child { min-width: 0; }
.planning-toolbar h2 { color: #122B2A; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 6px; }
.planning-toolbar p { color: #68736F; font-size: 12px; line-height: 1.5; margin: 0; }
.planning-toolbar .routine-table-filters { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.planning-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.planning-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.planning-setup-card { min-height: 185px; }
.planning-card-title { margin: 6px 0 0; color: #122B2A; font-size: 14px; }
.planning-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.planning-count { padding: 5px 8px; border-radius: 7px; background: #E8F1EE; color: #355872; font-size: 10px; font-weight: 700; white-space: nowrap; }
.planning-room-map { margin: 14px 0 18px; overflow-x: auto; border: 1px solid #E6E2DA; border-radius: 9px; background: #FFFFFF; }
.planning-room-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.planning-room-table th { padding: 9px 11px; background: #F7F5F0; color: #68736F; border-bottom: 1px solid #E6E2DA; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.planning-room-table td { padding: 10px 11px; color: #253333; border-bottom: 1px solid #F0EDE7; white-space: nowrap; }
.planning-room-table tbody tr:last-child td { border-bottom: 0; }
.planning-room-table tbody tr:hover td { background: #FCFBF8; }
.planning-room-table td:nth-child(2), .planning-room-table td:nth-child(3), .planning-room-table td:last-child { color: #355872; font-weight: 700; }
.planning-room-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 11px; border: 1px solid #E6E2DA; border-radius: 9px; background: #FFFFFF; }
.planning-room-item strong, .planning-room-item span { display: block; }
.planning-room-item strong { color: #253333; font-size: 12px; }
.planning-room-item div > span { margin-top: 3px; color: #7A8582; font-size: 10px; text-transform: capitalize; }
.planning-room-active { color: #227554; font-size: 10px; font-weight: 700; }
.planning-rule-form { padding-top: 14px; border-top: 1px solid #E6E2DA; }
.planning-rule-form .section-label { margin-bottom: 8px; }
.planning-rule-form { display: flex; align-items: center; gap: 10px; }
.planning-rule-hint { font-size: 11px; }
.planning-modal-intro { margin: 0 0 18px; font-size: 12px; line-height: 1.5; }
.planning-modal-select { width: 100%; margin-bottom: 18px; }
.planning-modal-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.planning-room-upload { color: #355872; font-size: 11px; font-weight: 700; cursor: pointer; }
.planning-room-upload input { display: none; }
.planning-room-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 220px; margin-top: 7px; padding: 8px; overflow-y: auto; border: 1px solid #E6E2DA; border-radius: 9px; background: #FCFBF8; }
.planning-room-check { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 7px; cursor: pointer; }
.planning-room-check:hover { background: #F3F0E9; }
.planning-room-check input { margin-top: 2px; accent-color: #355872; }
.planning-room-check strong, .planning-room-check small { display: block; }
.planning-room-check strong { color: #253333; font-size: 11px; }
.planning-room-check small { margin-top: 2px; color: #7A8582; font-size: 10px; }
.planning-upload-note { margin: 10px 0 16px; color: #7A8582; font-size: 10px; line-height: 1.4; }
.planning-allocation-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.planning-allocation-summary > div { padding: 12px 14px; border: 1px solid #E6E2DA; border-radius: 10px; background: #FCFBF8; }
.planning-allocation-summary span, .planning-allocation-summary strong { display: block; }
.planning-allocation-summary span { color: #7A8582; font-size: 10px; }
.planning-allocation-summary strong { margin-top: 5px; color: #122B2A; font-size: 16px; }
.planning-summary-good { color: #227554 !important; }
.planning-summary-bad { color: #A53B3B !important; }
.planning-review-head { padding: 14px 0; margin-top: 0; }
.planning-review-scroll { border: 1px solid #E6E2DA; border-radius: 10px; }
.planning-empty { padding: 24px !important; color: #7A8582 !important; text-align: center; }
.planning-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.planning-card { padding: 16px; border: 1px solid #E6E2DA; border-radius: 12px; background: #FCFBF8; }
.planning-card .section-label { color: #355872; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.planning-card p { min-height: 38px; margin: 8px 0 14px; font-size: 11px; line-height: 1.5; }
.planning-cycle-current { display: flex; align-items: center; gap: 10px; min-height: 34px; margin: 6px 0 12px; }
.planning-form-row { display: flex; gap: 8px; }
.planning-form-row input, .planning-form-row select { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #D8D5CE; border-radius: 8px; background: #fff; }
.planning-module > .table-scroll { border: 1px solid #E6E2DA; border-radius: 10px; background: #FFFFFF; }
.planning-table { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.planning-table th { padding: 10px 11px; background: #F7F5F0; color: #68736F; border-bottom: 1px solid #E6E2DA; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.planning-table th:first-child { border-top-left-radius: 9px; }
.planning-table th:last-child { border-top-right-radius: 9px; }
.planning-table td { padding: 10px 11px; color: #253333; border-bottom: 1px solid #F0EDE7; vertical-align: middle; white-space: nowrap; }
.planning-table tbody tr:last-child td { border-bottom: 0; }
.planning-table tbody tr:hover td { background: #FCFBF8; }
.planning-table td:nth-child(2) { min-width: 150px; }
.planning-table td:nth-child(4) { color: #355872; font-weight: 700; text-align: center; }
.planning-table td:nth-child(8) { font-weight: 700; }
.planning-table td:last-child { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: #68736F; }
.planning-table td small { display: block; margin-top: 3px; color: #7A8582; font-size: 10px; }
.planning-status { display: inline-block; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: capitalize; }
.planning-allocated { background: #DDF3E9; color: #227554; }
.planning-unallocated { background: #FFE2E2; color: #A53B3B; }
.planning-module > .panel-head { padding: 14px 0; margin-top: 4px; border-bottom-color: #E6E2DA; }
.planning-module > .panel-head h3 { color: #122B2A; font-size: 15px; margin: 0 0 4px; }
.planning-module > .panel-head p { margin: 0; font-size: 11px; }
.planning-page-setup .planning-toolbar .btn-primary,
.planning-page-setup > .panel-head,
.planning-page-setup > .table-scroll { display: none; }
.planning-page-allocation .planning-cards { display: none; }
.planning-page-allocation .planning-toolbar { margin-bottom: 8px; }
@media (max-width: 1100px) { .planning-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .planning-room-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .planning-module { padding: 18px; } .planning-cards, .planning-setup-grid { grid-template-columns: 1fr; } .planning-room-map, .planning-allocation-summary { grid-template-columns: 1fr; } .planning-toolbar { align-items: stretch; flex-direction: column; gap: 14px; } .planning-toolbar .routine-table-filters, .planning-toolbar-actions { justify-content: flex-start; } .planning-card p { min-height: 0; } .planning-rule-form .planning-form-row { flex-wrap: wrap; } .planning-available-course-filters { align-items: stretch; flex-direction: column; min-width: 0; } .planning-available-course-filters .planning-cluster-course-search { margin-bottom: 0; } .planning-available-course-department-filter { margin-bottom: 0; } }

@media (max-width: 900px) {
  .site-header { border-radius: 0; }
  .site-nav { border-radius: 16px; }
  .dash-header-right .site-nav { width: 100%; }
  .panel-body { padding: 18px; }
  .availability-panel .avail-head { margin-top: -18px; }
  .drawer { border-radius: 0; }
  .routine-table-filters { width: 100%; }
  .routine-table-filters .search-input { flex: 1; width: auto; }
}

/* Final SaaS polish overrides */
html, body { background: var(--page); }
body, input, select, button, textarea { font-family: 'Instrument Sans', Helvetica, Arial, sans-serif; color: var(--ink); }
.jakarta, h1, h2, h3 { font-family: 'Instrument Sans', Helvetica, Arial, sans-serif; }
.btn { border-radius: 9px; font-weight: 600; box-shadow: none; }
.btn-primary { background: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-secondary, .btn-ghost { background: #fff; color: var(--ink-soft); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: var(--surface-muted); }

.admin-dash-shell, .user-dash-shell { display: block; min-height: 100vh; background: var(--page); color: var(--ink); }
.admin-sidebar, .user-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 244px; flex-basis: 244px; height: 100vh; padding: 18px 12px 14px; background: var(--surface); border-right: 1px solid var(--border); box-shadow: 1px 0 8px rgba(20,30,28,.02); }
.admin-content, .user-content { display: block; min-width: 0; margin-left: 244px; width: calc(100% - 244px); background: var(--page); }
.admin-sidebar-collapsed .admin-sidebar, .user-sidebar-collapsed .user-sidebar { width: 62px; flex-basis: 62px; padding-left: 8px; padding-right: 8px; }
.admin-sidebar-collapsed .admin-content, .user-dash-shell.user-sidebar-collapsed .user-content { margin-left: 62px; width: calc(100% - 62px); }
.admin-sidebar-brand, .user-sidebar-brand { color: var(--ink); }
.admin-sidebar-brand .brand-name, .user-sidebar-brand .brand-name { color: var(--ink); font-weight: 650; }
.admin-sidebar-brand .brand-mark, .user-sidebar-brand .brand-mark { background: var(--accent-tint); border-color: var(--border); }
.admin-workspace, .user-workspace { background: var(--surface-muted); border: 1px solid var(--border); color: var(--ink); }
.admin-workspace-mark, .user-workspace-mark { background: var(--accent); }
.admin-side-link, .user-side-link, .user-side-logout { min-height: 36px; border-radius: 8px; color: var(--muted); font-size: 12.5px; }
.admin-side-link:hover, .user-side-link:hover, .user-side-logout:hover { background: var(--surface-muted); color: var(--ink); }
.admin-side-link.active, .user-side-link.active { background: var(--accent-tint); color: var(--accent-deep); font-weight: 650; }
.admin-nav-group-label, .user-nav-group-label { color: var(--faint); }
.admin-sidebar-bottom, .user-sidebar-bottom { border-top-color: var(--border); }

.admin-topbar, .user-topbar { position: sticky; top: 0; z-index: 15; min-height: 62px; height: 62px; padding: 0 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); box-shadow: 0 1px 5px rgba(20,30,28,.02); backdrop-filter: blur(14px); }
.admin-content .dash-main, .user-content .dash-main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 26px 20px 64px; }
.admin-content .dash-page-head, .user-content .dash-page-head { margin-bottom: 20px; }
.admin-content .dash-page-head h1, .user-content .dash-page-head h1 { color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.admin-content .dash-page-head p, .user-content .dash-page-head p { color: var(--muted); font-size: 12px; }
.admin-content .panel, .user-content .panel, .panel, .stat-card, .quick-card, .avail-panel, .summary-card { background: var(--surface); border-color: var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(20,30,28,.03); }
.admin-content .panel-body, .user-content .panel-body { padding: 18px; }
.panel-head { padding: 14px 18px; border-bottom-color: var(--border); }
.panel-head h2, .panel-head h3 { color: var(--ink); font-size: 13.5px; font-weight: 650; }
.text-muted { color: var(--muted); }
.topbar-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; margin-right: 14px; }
.global-search { display: flex; align-items: center; gap: 7px; width: 190px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); color: var(--faint); }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.global-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.quick-add-button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.quick-add-button:hover { background: var(--accent-deep); color: #fff; }
.term-chip { min-height: 30px; padding: 0 10px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-deep); font-size: 11px; }
.term-chip::before { background: var(--accent); }

.admin-rooms-table th, .admin-users-table th, .routine-schedule-table th, .planning-table th, .planning-room-table th { background: var(--surface-muted); color: var(--muted); border-bottom-color: var(--border); font-size: 10.5px; font-weight: 650; }
.admin-rooms-table td, .admin-users-table td, .routine-schedule-table td, .planning-table td, .planning-room-table td { color: var(--ink-soft); border-bottom-color: var(--border-faint); }
.admin-rooms-table tr:hover td, .admin-users-table tr:hover td, .planning-table tbody tr:hover td, .planning-room-table tbody tr:hover td { background: var(--surface-muted); }
.field input, .field select, .field textarea, .select-input, .planning-form-row input, .planning-form-row select { border-color: var(--border); border-radius: 8px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.filter-chip.active, .pill-toggle.selected, .time-opt.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.status-pill, .badge, .room-status, .planning-status { border-radius: 999px; }
.status-pill, .planning-allocated, .room-status-active, .badge-green { background: var(--green-bg); color: var(--green-text); border-color: transparent; }
.modal-backdrop { background: rgba(25,28,27,.35); }
.admin-modal, .drawer { border-color: var(--border); box-shadow: 0 18px 45px rgba(20,30,28,.16); }
.drawer-head, .drawer-footer { border-color: var(--border); }

@media (max-width: 900px) {
  .admin-sidebar, .user-sidebar { transform: translateX(-105%); transition: transform .18s ease; box-shadow: 10px 0 30px rgba(20,30,28,.12); }
  .mobile-sidebar-open .admin-sidebar, .mobile-sidebar-open .user-sidebar { transform: translateX(0); }
  .admin-content, .admin-sidebar-collapsed .admin-content, .user-content, .user-dash-shell.user-sidebar-collapsed .user-content { width: 100%; margin-left: 0; }
  .mobile-sidebar-backdrop { position: fixed; inset: 0; z-index: 19; display: none; background: rgba(25,28,27,.28); }
  .mobile-sidebar-open .mobile-sidebar-backdrop { display: block; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink-soft); cursor: pointer; }
  .admin-topbar, .user-topbar { padding: 0 16px; }
  .admin-content .dash-main, .user-content .dash-main { padding: 22px 16px 50px; }
}
@media (max-width: 620px) {
  .global-search { display: none; }
  .quick-add-button span { display: none; }
  .quick-add-button { width: 32px; justify-content: center; padding: 0; font-size: 17px; }
  .admin-topbar, .user-topbar { padding: 0 12px; }
  .admin-content .dash-main, .user-content .dash-main { padding: 18px 12px 42px; }
}

/* Full page-level visual refresh */
.site-header, .auth-page-header { min-height: 62px; height: 62px; padding: 0 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); box-shadow: 0 1px 5px rgba(20,30,28,.02); backdrop-filter: blur(14px); }
.site-nav { padding: 3px; border-color: var(--border); border-radius: 8px; background: var(--surface-muted); box-shadow: none; }
.nav-link { padding: 8px 11px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.nav-link:hover, .nav-link.active { background: var(--surface); color: var(--accent-deep); box-shadow: none; }
.brand-name { color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { background: var(--accent-tint); border-color: var(--border); }
.hero { max-width: 1400px; padding: 78px 20px 68px; gap: 48px; }
.hero-copy h1 { color: var(--ink); max-width: 560px; font-size: 42px; line-height: 1.08; font-weight: 650; letter-spacing: -.035em; }
.hero-copy p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.eyebrow, .section-kicker { background: var(--accent-tint); border-color: transparent; color: var(--accent-deep); font-size: 10.5px; font-weight: 650; letter-spacing: .08em; }
.login-card, .auth-card { border-color: var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(20,30,28,.03); }
.login-card h2, .auth-card h2 { color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.login-card > p, .auth-card > p { color: var(--muted); }
.auth-brand-logo { height: 108px; }
.section { max-width: 1400px; padding: 54px 20px; }
.section h2 { color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.section-desc { color: var(--muted); font-size: 13px; }
.type-grid, .stat-grid, .quick-grid { gap: 12px; }
.type-card { border-color: var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(20,30,28,.03); }
.type-card:hover, .quick-card:hover { border-color: #d6dedb; box-shadow: 0 5px 16px rgba(20,30,28,.06); }
.type-card-photo { background: var(--surface-muted); border-bottom-color: var(--border); }
.type-card-body { padding: 16px; }
.type-card-body h3, .quick-title { color: var(--ink); font-size: 14px; font-weight: 650; }
.type-card-body p, .quick-desc { color: var(--muted); font-size: 12px; }
.type-card-link { color: var(--accent-deep); }
.dash-page-head h1 { color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.dash-page-head p { color: var(--muted); font-size: 12px; }
.stat-card { padding: 16px 18px; }
.stat-value { color: var(--ink); font-size: 23px; font-weight: 650; letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: 11px; }
.quick-card { gap: 12px; padding: 15px; border-radius: 11px; }
.quick-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-tint); }
.quick-title { color: var(--ink); }
.quick-desc { color: var(--muted); }
.bookings-table th { background: var(--surface-muted); color: var(--muted); border-bottom-color: var(--border); font-size: 10px; font-weight: 650; }
.bookings-table td { color: var(--ink-soft); border-bottom-color: var(--border-faint); font-size: 12px; }
.bookings-table tr:hover td { background: var(--surface-muted); }
.availability-panel { padding: 18px; }
.availability-panel .avail-head { margin: -18px -18px 18px; padding: 18px; background: var(--surface-muted); border-bottom-color: var(--border); }
.availability-panel .avail-head h2 { color: var(--ink); font-size: 17px; font-weight: 650; }
.availability-panel .avail-head p { color: var(--muted); font-size: 12px; }
.segmented, .date-stepper, .select-input, .room-filter-dropdown .search-box { border-color: var(--border); border-radius: 8px; background: #fff; }
.segmented button, .date-stepper button { color: var(--muted); font-size: 12px; }
.segmented button.active { background: var(--accent); color: #fff; }
.table-view-scroll { border-color: var(--border); border-radius: 10px; }
.availability-panel .table-view-head { background: var(--surface-muted) !important; border-bottom: 1px solid var(--border) !important; }
.availability-panel .table-view-head > div, .availability-panel .table-view-head > div:first-child { background: var(--surface-muted) !important; color: var(--muted) !important; font-size: 10px; font-weight: 650; }
.availability-panel .table-view-row > div:first-child { background: #fff; border-right-color: var(--border); color: var(--ink); }
.availability-panel .table-view-slot.table-slot-free { background: var(--accent) !important; color: #fff !important; }
.availability-panel .table-view-slot.table-slot-booked { background: #e9edeb !important; color: var(--ink-soft) !important; }
.availability-panel .table-view-slot.table-slot-class { background: #fff0dc !important; color: #8a5a1c !important; }
.availability-panel .table-view-slot .t1, .availability-panel .table-view-slot .t2 { font-size: 10.5px; font-weight: 600; text-decoration: none !important; }
.availability-legend { gap: 14px; }
.legend-item { color: var(--muted); font-size: 11px; }
.month-grid, .week-cal { border-color: var(--border); border-radius: 10px; }
.month-grid-head, .week-cal-head { background: var(--surface-muted); border-bottom-color: var(--border); }
.month-grid-head div, .week-cal-head-day { color: var(--muted); }
.month-day.selected, .week-cal-head-date.selected { background: var(--accent-tint); color: var(--accent-deep); }
.field label, .field-title, .section-label { color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .06em; }
.field input, .field select, .field textarea { border-color: var(--border); border-radius: 8px; color: var(--ink); font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.chip-btn, .filter-chip { border-color: var(--border); background: #fff; color: var(--muted); border-radius: 8px; font-size: 11px; }
.chip-btn:hover, .filter-chip:hover { background: var(--surface-muted); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.summary-card { padding: 16px; }
@media (max-width: 600px) { .profile-completion-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hero { padding: 52px 20px 44px; } .hero-copy h1 { font-size: 34px; } .site-header { padding: 0 16px; } }
@media (max-width: 760px) { .profile-page { margin: -24px -16px -80px; padding: 16px 12px 60px; } .profile-hero { padding: 18px 16px; } .profile-hero-avatar { width: 72px; height: 72px; flex-basis: 72px; } .profile-tabs { gap: 18px; padding: 0 16px; overflow-x: auto; } .profile-source-banner { margin-left: 16px; margin-right: 16px; } .profile-cards-grid { grid-template-columns: 1fr; padding: 0 16px 20px; } }
.profile-hero { gap: 14px; padding: 16px 20px 14px; }
.profile-hero-avatar { width: 64px; height: 64px; flex-basis: 64px; font-size: 20px; }
.profile-name-row h1 { font-size: 18px; }
.profile-tabs { min-height: 40px; gap: 22px; padding: 0 20px; }
.profile-source-banner { margin-top: 14px; }
.profile-cards-grid { gap: 14px; padding: 0 20px 20px; }
.profile-side-stack { gap: 14px; }
.profile-info-card-head { padding: 14px 14px 11px; }
.profile-info-card .profile-page-form { padding: 14px; }
.profile-photo-card { padding-bottom: 13px; }
.profile-photo-card .profile-photo-upload { margin: 12px 14px 0; padding: 8px; gap: 10px; }
.profile-photo-card .profile-photo-preview { width: 42px; height: 42px; flex-basis: 42px; }
.profile-photo-card .profile-image-url { width: calc(100% - 28px); margin: 9px 14px 0; }
.profile-photo-card > small { margin: 4px 14px 0; }
@media (max-width: 760px) { .profile-hero { padding: 14px 16px 12px; } .profile-hero-avatar { width: 56px; height: 56px; flex-basis: 56px; } .profile-cards-grid { padding-right: 16px; padding-left: 16px; } }
.profile-cards-grid { padding-right: 0; padding-left: 0; }
@media (max-width: 760px) { .profile-cards-grid { padding-right: 0; padding-left: 0; } }
.planning-rule-modal { width: min(580px, calc(100% - 28px)); overflow: visible; border-radius: 12px; }
.planning-rule-modal .admin-modal-body { gap: 6px; padding: 18px; }
.planning-rule-modal .admin-modal-body { overflow: visible; }
.planning-rule-modal .planning-modal-intro { margin-bottom: 10px; font-size: 12px; }
.planning-rule-modal .planning-modal-select { height: 36px; margin-bottom: 10px; padding: 0 10px; border-color: var(--border); border-radius: 8px; font-size: 12px; }
.planning-rule-modal .planning-modal-label-row { min-height: 24px; }
.planning-rule-modal .planning-modal-label-row .admin-modal-label { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.planning-rule-modal .planning-room-upload { color: var(--accent-deep); font-size: 11px; font-weight: 600; }
.planning-rule-modal .planning-room-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-height: 164px; margin-top: 4px; padding: 6px; border-color: var(--border); border-radius: 8px; background: var(--surface-muted); }
.planning-rule-modal .planning-room-check { align-items: center; gap: 6px; min-width: 0; padding: 6px 7px; border: 1px solid transparent; border-radius: 7px; background: #fff; }
.planning-rule-modal .planning-room-check:hover { border-color: var(--border); background: #fff; }
.planning-rule-modal .planning-room-check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.planning-rule-modal .planning-room-check input { width: 13px; height: 13px; flex: 0 0 13px; margin: 0; accent-color: var(--accent); }
.planning-rule-modal .planning-room-check span { min-width: 0; }
.planning-rule-modal .planning-room-check strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.planning-rule-modal .planning-room-check small { margin-top: 1px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.planning-rule-modal .planning-upload-note { margin: 7px 0 5px; padding: 7px 9px; border-radius: 7px; background: var(--surface-muted); color: var(--muted); font-size: 10px; }
.planning-rule-modal .admin-modal-body > input[type=number] { height: 34px; padding: 0 10px; border-color: var(--border); border-radius: 8px; font-size: 12px; }
.planning-rule-modal .admin-modal-note { margin-top: 2px; font-size: 10px; }
.planning-rule-modal .drawer-footer { padding: 11px 18px; }

/* Authentication feedback */
.toast.toast-error {
  background: #8f2f3f;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}

@media (max-width: 680px) {
  .toast { top: 16px; right: 16px; left: 16px; justify-content: flex-start; }
}

/* RoomSync landing page: campus-green welcome */
body:has(.site-header) {
  background: #f4f8f6;
}

.site-header {
  min-height: 66px;
  height: 66px;
  padding: 0 clamp(16px, 4vw, 56px);
  border-bottom-color: #e3ece8;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 8px rgba(23,63,60,.04);
}

.site-header .brand-name { color: #173f3c; font-size: 17px; font-weight: 750; letter-spacing: -.04em; }
.site-header .brand-mark { background: #ddf3eb; border: 1px solid #c9e9dc; color: #26775e; }
.site-nav { border: 0; background: transparent; box-shadow: none; }
.site-nav .nav-link { color: #71817c; border-radius: 7px; font-size: 11.5px; font-weight: 650; }
.site-nav .nav-link:hover { background: #edf8f3; color: #26775e; box-shadow: none; }
.site-nav .btn { border-radius: 8px; }

.hero {
  width: min(1400px, calc(100% - 40px));
  max-width: none;
  min-height: 490px;
  margin: 24px auto 0;
  padding: clamp(48px, 7vw, 86px) clamp(24px, 6vw, 78px);
  box-sizing: border-box;
  gap: clamp(32px, 6vw, 84px);
  border-radius: 22px;
  background: #173f3c;
  color: #fff;
}

.hero-copy { max-width: 610px; }
.hero-copy .eyebrow { margin-bottom: 20px; border: 0; background: #ddf3eb; color: #26775e; }
.hero-copy h1 { max-width: 600px; color: #fff; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy p { max-width: 520px; color: #c8ddd6; font-size: 15px; line-height: 1.65; }
.hero-actions { gap: 9px; }
.hero-actions .btn-primary { background: #ddf3eb; border-color: #ddf3eb; color: #173f3c; box-shadow: none; }
.hero-actions .btn-primary:hover { background: #fff; border-color: #fff; }
.hero-actions .btn-secondary { border-color: rgba(255,255,255,.36); background: transparent; color: #fff; }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.1); }

.login-card {
  flex-basis: 370px;
  padding: 26px;
  border-color: #e5eeeb;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(9,38,35,.22);
}

.login-card .login-icon { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; background: #ddf3eb; color: #26775e; }
.login-card h2 { color: #173f3c; font-size: 19px; letter-spacing: -.03em; }
.login-card > p { color: #71817c; }
.login-card .field label { color: #687a74; }
.login-card .field input { border-color: #dbe8e2; border-radius: 8px; }
.login-card .field input:focus { border-color: #77c49e; box-shadow: 0 0 0 3px rgba(119,196,158,.16); }
.login-card .btn-primary { background: #245f59; border-color: #245f59; box-shadow: none; }
.login-card .btn-primary:hover { background: #174c47; }

.section { width: min(1240px, calc(100% - 40px)); max-width: none; padding: 70px 0 18px; }
.section-kicker { margin-bottom: 9px; color: #3a9b75; background: transparent; font-size: 10px; letter-spacing: .1em; }
.section h2 { color: #173f3c; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.045em; }
.section-desc { max-width: 620px; color: #71817c; font-size: 13px; line-height: 1.55; }

.type-grid { gap: 14px; }
.type-card { border-color: #e2ebe6; border-radius: 12px; box-shadow: 0 1px 2px rgba(23,63,60,.025); }
.type-card:nth-child(1) .type-card-photo { background: #eaf8f1; }
.type-card:nth-child(2) .type-card-photo { background: #edf5fa; }
.type-card:nth-child(3) .type-card-photo { background: #faf3e6; }
.type-card-photo { height: 132px; border-bottom-color: #e4ece8; }
.type-card-photo span { color: #84958e; font-family: 'Instrument Sans', sans-serif; font-size: 10px; letter-spacing: .08em; }
.type-card-body { padding: 15px 16px 14px; }
.type-card-body h3 { color: #173f3c; font-size: 15px; }
.type-card-body p { color: #71817c; font-size: 11.5px; }
.type-card-link { color: #26775e; font-size: 11.5px; }
.type-card-link:hover { background: #edf8f3; }

#availability.section { padding-top: 76px; }
#availability .avail-panel { border-color: #e2ebe6; border-radius: 12px; box-shadow: 0 1px 2px rgba(23,63,60,.025); }
#availability .filter-chip { border-color: #d9e8e0; color: #5f756d; }
#availability .filter-chip.active { background: #245f59; border-color: #245f59; color: #fff; }
#availability .grid-head-cell { color: #82928c; font-size: 10px; }
#availability .grid-room-name { color: #234a43; font-size: 11.5px; font-weight: 700; }
#availability .legend-item { color: #71817c; font-size: 10.5px; }

#tutorial.section { padding-bottom: 74px; }
.tutorial-box { min-height: 150px; border-color: #dfeae5; border-radius: 13px; background: #eaf5f0; }
.tutorial-play { background: #245f59; color: #fff; box-shadow: none; }
.tutorial-caption { color: #5f756d; font-size: 11px; }
.site-footer { border-top-color: #dfeae5; background: #edf5f1; color: #71817c; }
.site-footer .container { min-height: 62px; }

@media (max-width: 900px) {
  .hero { width: calc(100% - 28px); margin-top: 14px; border-radius: 16px; }
  .hero-copy h1 { font-size: 42px; }
  .section { width: calc(100% - 28px); padding-top: 52px; }
}

@media (max-width: 680px) {
  .site-header { height: auto; min-height: 62px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 14px; }
  .site-nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .hero { width: calc(100% - 20px); margin-top: 10px; padding: 38px 20px 24px; border-radius: 14px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 14px; }
  .login-card { flex-basis: auto; width: 100%; box-sizing: border-box; padding: 20px; }
  .section { width: calc(100% - 24px); padding-top: 46px; }
}
@media (max-width: 620px) { .planning-rule-modal .planning-room-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .planning-rule-modal .planning-room-checklist { grid-template-columns: 1fr; } }
.planning-rule-modal .planning-room-check input[type=checkbox] { width: 14px !important; min-width: 14px; height: 14px !important; min-height: 14px; padding: 0 !important; border-radius: 3px; box-shadow: none; }
.planning-room-type-filter { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; margin: 0 0 4px; }
.planning-room-type-label { min-width: 30px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.planning-room-type-dropdown { position: relative; }
.planning-room-type-dropdown summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 160px; height: 28px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 10.5px; font-weight: 600; list-style: none; }
.planning-room-type-dropdown summary::-webkit-details-marker { display: none; }
.planning-room-type-dropdown[open] summary { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.planning-room-type-options { position: absolute; z-index: 3; top: calc(100% + 4px); left: 0; display: grid; gap: 3px; min-width: 156px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 10px 22px rgba(20,30,28,.12); }
.planning-room-type-options label { display: flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 5px; border-radius: 5px; color: var(--ink-soft); cursor: pointer; font-size: 10.5px; font-weight: 550; }
.planning-room-type-options label:hover { background: var(--surface-muted); }
.planning-rule-modal .planning-room-type-option { width: 13px !important; min-width: 13px; height: 13px !important; min-height: 13px; margin: 0; padding: 0 !important; accent-color: var(--accent); }
.planning-room-count { margin-left: auto; color: var(--faint); font-size: 10px; white-space: nowrap; }
.planning-rule-modal .planning-room-check input[type=checkbox], .planning-rule-modal .planning-room-type-option { appearance: auto; -webkit-appearance: auto; }
.planning-rule-modal .planning-room-check.is-filtered-out { display: none !important; }
.planning-rule-department-picker { position: relative; z-index: 4; display: grid; gap: 6px; }
.planning-rule-department-dropdown { position: relative; z-index: 20; display: block; width: 100%; }
.planning-rule-department-dropdown summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; user-select: none; }
.planning-rule-department-dropdown summary::-webkit-details-marker { display: none; }
.planning-rule-department-dropdown[open] summary { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.planning-rule-department-summary { min-width: 0; overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.planning-rule-department-summary.is-placeholder { color: var(--muted); font-weight: 550; }
.planning-rule-department-chevron { width: 7px; height: 7px; flex: 0 0 7px; margin: -4px 2px 0 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease, border-color .15s ease; }
.planning-rule-department-dropdown[open] .planning-rule-department-chevron { margin-top: 4px; transform: rotate(225deg); border-color: var(--accent-deep); }
.planning-rule-department-menu { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; display: grid; gap: 6px; padding: 7px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(20,30,28,.14); }
.planning-rule-department-menu .planning-cluster-course-search { height: 32px; margin: 0; padding: 0 9px; border-radius: 7px; }
.planning-rule-department-menu .planning-cluster-course-search input { min-width: 0; font-size: 11px; }
.planning-rule-department-options { display: grid; gap: 3px; max-height: 210px; overflow: auto; overscroll-behavior: contain; }
.planning-rule-modal .planning-rule-department-options { display: flex !important; flex-direction: column; align-items: stretch; box-sizing: border-box; }
.planning-rule-department-option { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start; gap: 8px; width: 100%; min-width: 0; min-height: 30px; box-sizing: border-box; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--ink-soft); cursor: pointer; font-size: 11px; line-height: 1.25; }
.planning-rule-department-option:hover { background: var(--surface-muted); }
.planning-rule-department-option:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 24%, white); background: var(--accent-tint); color: var(--accent-deep); }
.planning-rule-department-option[hidden] { display: none; }
.planning-rule-department-option input { display: block !important; width: 14px !important; min-width: 14px !important; max-width: 14px; height: 14px !important; min-height: 14px; max-height: 14px; flex: 0 0 14px; margin: 0 !important; padding: 0 !important; accent-color: var(--accent); }
.planning-rule-department-option span { display: block; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planning-rule-selected-departments { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; align-items: center; }
.planning-rule-selected-departments .text-muted { padding: 2px 1px; font-size: 10px; }
.planning-rule-department-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--accent) 22%, white); border-radius: 6px; background: var(--accent-tint); color: var(--accent-deep); font-size: 10px; font-weight: 650; }
.planning-rule-department-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planning-rule-department-chip button { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.planning-rule-department-chip button:hover { background: #fff; color: var(--danger); }
.planning-rule-department-count { color: var(--muted); font-size: 10px; }
@media (max-width: 620px) { .planning-rule-department-menu { max-height: 42vh; } .planning-rule-department-options { max-height: 30vh; } }
@media (max-width: 480px) { .planning-room-type-dropdown { flex: 1; } .planning-room-type-dropdown summary { width: 100%; } .planning-rule-department-menu { left: -1px; right: -1px; } }
.admin-room-bulk-modal { width: min(760px, calc(100% - 28px)); }
.admin-room-bulk-modal .admin-modal-body { gap: 10px; padding: 18px; }
.admin-room-bulk-intro { margin: 0; font-size: 12px; }
.admin-room-bulk-file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px dashed var(--border); border-radius: 9px; background: var(--surface-muted); }
.admin-room-bulk-file-row .file-btn { display: inline-flex; width: auto; min-width: 132px; justify-content: center; white-space: nowrap; }
.admin-room-bulk-file-row input[type=file] { display: none; }
.admin-room-bulk-format, .admin-room-bulk-file-name { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.admin-room-bulk-file-name { color: var(--accent-deep); font-weight: 650; }
.admin-room-bulk-preview { max-height: 250px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.admin-room-bulk-preview table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-room-bulk-preview th { position: sticky; top: 0; padding: 8px 9px; background: var(--surface-muted); color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.admin-room-bulk-preview td { padding: 8px 9px; border-top: 1px solid var(--border-faint); color: var(--ink-soft); white-space: nowrap; }
.admin-room-bulk-preview .bulk-row-ok { color: var(--accent-deep); font-weight: 650; }
.admin-room-bulk-preview .bulk-row-error { max-width: 260px; color: #b42318; white-space: normal; }
.admin-room-bulk-empty { padding: 24px 12px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: 11px; text-align: center; }
@media (max-width: 560px) { .admin-room-bulk-file-row { align-items: stretch; flex-direction: column; } .admin-room-bulk-file-row .btn, .admin-room-bulk-file-row .file-btn { justify-content: center; width: 100%; box-sizing: border-box; } }
.admin-settings-body { max-width: 920px; }
.admin-settings-header h2 { margin: 3px 0 4px; color: var(--ink); font-size: 18px; }
.admin-settings-header p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-settings-divider { height: 1px; margin: 18px 0; background: var(--border-faint); }
.admin-settings-danger { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px; border: 1px solid #f0d4d0; border-radius: 10px; background: #fffafa; }
.admin-settings-danger h3 { margin: 4px 0 5px; color: var(--ink); font-size: 14px; }
.admin-settings-danger p { max-width: 600px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-settings-backup { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.admin-settings-backup-copy { min-width: 0; }
.admin-settings-backup h3 { margin: 4px 0 5px; color: var(--ink); font-size: 14px; }
.admin-settings-backup p { max-width: 610px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-settings-backup-actions { display: grid; gap: 13px; width: min(100%, 360px); min-width: 300px; flex: 0 0 360px; }
.admin-settings-backup-actions > .btn { justify-self: start; }
.admin-settings-restore { display: grid; gap: 5px; }
.admin-settings-restore > label { color: var(--muted); font-size: 10px; font-weight: 650; }
.admin-settings-restore-row { display: flex; align-items: center; gap: 7px; }
.admin-settings-restore-row input[type=file] { width: 100%; min-width: 0; height: 34px; flex: 1 1 auto; padding: 3px 5px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--muted); font-size: 10px; }
.admin-settings-restore-row input[type=file]::file-selector-button { margin-right: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-muted); color: var(--ink-soft); cursor: pointer; font: inherit; }
.admin-settings-restore-row .btn { flex: 0 0 auto; white-space: nowrap; }
.admin-restore-file-name { overflow: hidden; color: var(--accent-deep) !important; text-overflow: ellipsis; white-space: nowrap; }
.admin-settings-restore small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.admin-settings-bookings { margin-top: 14px; }
.admin-settings-backup + .admin-settings-danger { margin-top: 14px; }
.admin-booking-delete-form { display: flex; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.admin-booking-delete-form label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 650; }
.admin-booking-delete-form input, .admin-booking-delete-form select { width: 138px; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink-soft); font-size: 11px; }
.admin-booking-delete-form select { width: 150px; }
.admin-booking-delete-form .btn:disabled { cursor: not-allowed; opacity: .45; }
.admin-settings-delete-row { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.admin-settings-delete-row .select-input { min-width: 180px; height: 34px; font-size: 11px; }
.admin-settings-delete-row .btn:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 720px) { .admin-settings-backup, .admin-settings-danger { align-items: stretch; flex-direction: column; } .admin-settings-backup-actions { width: 100%; min-width: 0; flex-basis: auto; } .admin-settings-backup-actions > .btn { width: 100%; justify-self: stretch; } .admin-settings-restore-row { align-items: stretch; flex-direction: column; } .admin-settings-restore-row input[type=file], .admin-settings-restore-row .btn { width: 100%; box-sizing: border-box; } .admin-settings-delete-row, .admin-booking-delete-form { flex-direction: column; align-items: stretch; } .admin-settings-delete-row .select-input, .admin-booking-delete-form input, .admin-booking-delete-form select { width: 100%; } }
.admin-bookings-body { overflow-x: auto; }
.admin-booking-tools { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.admin-bookings-table { min-width: 980px; }
.admin-bookings-table td small { display: block; max-width: 210px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }

/* Enrolliq-inspired admin workspace
   The admin shell is intentionally scoped so the user-facing dashboard keeps
   its existing layout and behaviour. */
.admin-dash-shell {
  display: block;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 58px);
  box-sizing: border-box;
  background: #edf3fb;
  color: #24282f;
}

.admin-dash-shell .admin-sidebar {
  position: fixed;
  inset: clamp(18px, 4vw, 58px) auto clamp(18px, 4vw, 58px) clamp(18px, 4vw, 58px);
  z-index: 20;
  display: flex;
  width: 240px;
  height: auto;
  min-height: 0;
  padding: 24px 14px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  border: 1px solid #e7ebf0;
  border-right: 0;
  border-radius: 24px 0 0 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(42, 54, 73, .04);
}

.admin-dash-shell .admin-sidebar-brand {
  min-height: 36px;
  padding: 0 9px 18px;
  color: #172a3a;
}

.admin-dash-shell .admin-sidebar-brand .brand-mark {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 8px;
  background: #e8f7fb;
  color: #167d99;
}

.admin-dash-shell .admin-sidebar-brand .brand-name {
  color: #172a3a;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.045em;
}

.admin-dash-shell .admin-sidebar-toggle {
  width: 28px;
  height: 28px;
  border-color: #e3e7ed;
  border-radius: 8px;
  color: #737b86;
}

.admin-dash-shell .admin-sidebar-toggle:hover {
  background: #f2f8fb;
  color: #126078;
}

.admin-dash-shell .admin-workspace {
  margin: 0 2px 22px;
  padding: 10px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: #f7f8fa;
}

.admin-dash-shell .admin-workspace-mark {
  background: #1c6980;
  color: #fff;
}

.admin-dash-shell .admin-workspace strong { color: #29313a; }
.admin-dash-shell .admin-workspace span { color: #858c96; }

.admin-dash-shell .admin-nav-group-label {
  margin: 17px 10px 7px;
  color: #9299a3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.admin-dash-shell .admin-side-link {
  min-height: 37px;
  border-radius: 8px;
  color: #68717c;
  font-size: 12.5px;
}

.admin-dash-shell .admin-side-link:hover {
  background: #f5f8fa;
  color: #27313b;
}

.admin-dash-shell .admin-side-link.active {
  background: #c8f1fa;
  color: #126078;
  font-weight: 700;
}

.admin-dash-shell .admin-side-icon { color: currentColor; }
.admin-dash-shell .admin-sidebar-bottom { border-top-color: #edf0f3; }
.admin-dash-shell .admin-sidebar-foot { color: #a0a6ae; }

.admin-dash-shell .admin-content {
  width: auto;
  min-height: calc(100vh - 2 * clamp(18px, 4vw, 58px));
  margin: clamp(18px, 4vw, 58px) clamp(18px, 4vw, 58px) clamp(18px, 4vw, 58px) calc(240px + clamp(18px, 4vw, 58px));
  overflow: hidden;
  border: 1px solid #e7ebf0;
  border-radius: 0 24px 24px 0;
  background: #fbfcfe;
  box-shadow: 0 1px 3px rgba(42, 54, 73, .04), 0 22px 48px rgba(111, 135, 171, .08);
}

.admin-dash-shell .admin-topbar {
  min-height: 64px;
  height: 64px;
  padding: 0 24px;
  border-bottom-color: #edf0f3;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

.admin-dash-shell .admin-breadcrumb {
  color: #8b929c;
  font-size: 12px;
}

.admin-dash-shell .admin-breadcrumb strong { color: #24282f; }

.admin-dash-shell .global-search {
  width: 230px;
  height: 34px;
  border-color: #e5e9ee;
  border-radius: 9px;
  background: #fff;
}

.admin-dash-shell .global-search:focus-within {
  border-color: #7fd7e8;
  box-shadow: 0 0 0 3px rgba(127, 215, 232, .18);
}

.admin-dash-shell .term-chip {
  border-radius: 9px;
  background: #f0f8fb;
  color: #207187;
}

.admin-dash-shell .quick-add-button {
  border-radius: 9px;
  background: #1487d2;
  box-shadow: 0 5px 12px rgba(20, 135, 210, .16);
}

.admin-dash-shell .quick-add-button:hover { background: #0873b8; }
.admin-dash-shell .icon-btn:hover, .admin-dash-shell .user-chip:hover { background: #f5f7f9; }

.admin-dash-shell .dash-main {
  width: 100%;
  max-width: none;
  padding: 28px 30px 56px;
  box-sizing: border-box;
}

.admin-dash-shell .dash-page-head { margin-bottom: 22px; }
.admin-dash-shell .dash-page-head h1 { font-size: 21px; color: #1e252d; }
.admin-dash-shell .dash-page-head p { color: #7c858f; font-size: 12px; }

.admin-dash-shell .dash-main > .panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-dash-shell .panel-body { padding: 0; }

.admin-dash-shell .admin-card-header {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid #e7ebf0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(42, 54, 73, .025);
}

.admin-dash-shell .admin-card-header h2 { color: #24282f; font-size: 15px; }
.admin-dash-shell .admin-card-header p { color: #858c96; }

.admin-dash-shell .admin-card-divider { background: #edf0f3; }

.admin-dash-shell .admin-rooms-table-wrap,
.admin-dash-shell .admin-users-table-wrap,
.admin-dash-shell .planning-review-scroll,
.admin-dash-shell .planning-room-map {
  border-color: #e7ebf0;
  border-radius: 12px;
  background: #fff;
}

.admin-dash-shell table.admin-rooms-table,
.admin-dash-shell table.admin-users-table,
.admin-dash-shell table.routine-schedule-table,
.admin-dash-shell table.planning-table,
.admin-dash-shell table.planning-room-table { background: #fff; }

.admin-dash-shell .admin-rooms-table th,
.admin-dash-shell .admin-users-table th,
.admin-dash-shell .routine-schedule-table th,
.admin-dash-shell .planning-table th,
.admin-dash-shell .planning-room-table th {
  background: #f7f8fa;
  color: #747d88;
  border-bottom-color: #e7ebf0;
  font-size: 10px;
}

.admin-dash-shell .admin-rooms-table td,
.admin-dash-shell .admin-users-table td,
.admin-dash-shell .routine-schedule-table td,
.admin-dash-shell .planning-table td,
.admin-dash-shell .planning-room-table td {
  color: #4d5660;
  border-bottom-color: #eef1f4;
}

.admin-dash-shell .admin-rooms-table tr:hover td,
.admin-dash-shell .admin-users-table tr:hover td,
.admin-dash-shell .planning-table tbody tr:hover td,
.admin-dash-shell .planning-room-table tbody tr:hover td { background: #fbfcfd; }

.admin-dash-shell .btn-primary {
  background: #1487d2;
  border-color: #1487d2;
  box-shadow: 0 5px 12px rgba(20, 135, 210, .14);
}

.admin-dash-shell .btn-primary:hover:not(:disabled) { background: #0873b8; border-color: #0873b8; }
.admin-dash-shell .btn-secondary, .admin-dash-shell .btn-ghost { border-color: #e0e5ea; }
.admin-dash-shell .status-pill, .admin-dash-shell .badge, .admin-dash-shell .room-status, .admin-dash-shell .planning-status { border-radius: 999px; }

.admin-dash-shell .admin-modal,
.admin-dash-shell .drawer {
  border-color: #e7ebf0;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(42, 54, 73, .16);
}

.admin-sidebar-collapsed .admin-sidebar {
  width: 62px;
  flex-basis: 62px;
  padding-left: 8px;
  padding-right: 8px;
}

.admin-sidebar-collapsed .admin-content {
  margin-left: calc(62px + clamp(18px, 4vw, 58px));
}

@media (max-width: 900px) {
  .admin-dash-shell { padding: 0; }
  .admin-dash-shell .admin-sidebar {
    inset: 0 auto 0 0;
    width: 244px;
    border-radius: 0 18px 18px 0;
  }
  .admin-dash-shell .admin-content,
  .admin-sidebar-collapsed .admin-content {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .admin-dash-shell .admin-topbar { padding: 0 16px; }
  .admin-dash-shell .dash-main { padding: 24px 18px 48px; }
}

@media (max-width: 620px) {
  .admin-dash-shell .dash-main { padding: 20px 12px 42px; }
  .admin-dash-shell .admin-topbar { padding: 0 12px; }
  .admin-dash-shell .dash-page-head h1 { font-size: 18px; }
}

.admin-overview { display: grid; gap: 18px; }
.admin-overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.admin-overview-heading h2 { margin: 3px 0 4px; color: #20262d; font-size: 22px; letter-spacing: -.035em; }
.admin-overview-heading p { margin: 0; color: #7c858f; font-size: 12px; }
.admin-overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-overview-stat { display: flex; align-items: center; gap: 11px; min-height: 88px; padding: 15px; border: 1px solid #e7ebf0; border-radius: 13px; background: #fff; box-shadow: 0 1px 2px rgba(42,54,73,.025); }
.admin-overview-stat-icon { display: inline-flex; width: 31px; height: 31px; align-items: center; justify-content: center; border-radius: 9px; background: #e8f7fb; color: #177790; font-size: 16px; font-weight: 700; }
.admin-overview-stat-icon.is-green { background: #e9f8ef; color: #2c9462; }
.admin-overview-stat-icon.is-blue { background: #eaf3ff; color: #4386c7; }
.admin-overview-stat-icon.is-purple { background: #f3edff; color: #8967c5; }
.admin-overview-stat strong, .admin-overview-stat span { display: block; }
.admin-overview-stat strong { color: #242a31; font-size: 22px; line-height: 1.1; letter-spacing: -.04em; }
.admin-overview-stat div span { margin-top: 4px; color: #858c96; font-size: 10.5px; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 16px; }
.admin-overview-card { min-width: 0; padding: 19px; border: 1px solid #e7ebf0; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(42,54,73,.025); }
.admin-overview-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #edf0f3; }
.admin-overview-card h3 { margin: 0 0 4px; color: #252b32; font-size: 14px; }
.admin-overview-card-head p { margin: 0; color: #89909a; font-size: 11px; }
.admin-overview-kicker { color: #9aa1aa; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding-top: 13px; }
.admin-quick-actions a { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px 10px; border: 1px solid #edf0f3; border-radius: 10px; color: #28313a; text-decoration: none; }
.admin-quick-actions a:hover { border-color: #c4e8f0; background: #f8fdfe; }
.admin-quick-action-icon { display: inline-flex; flex: 0 0 25px; width: 25px; height: 25px; align-items: center; justify-content: center; border-radius: 7px; background: #eef8fb; color: #16788f; font-size: 13px; }
.admin-quick-actions strong, .admin-quick-actions small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-quick-actions strong { font-size: 11.5px; }
.admin-quick-actions small { margin-top: 3px; color: #8a929c; font-size: 9.5px; line-height: 1.35; }
.admin-quick-actions b { margin-left: auto; color: #a2a9b1; font-size: 17px; font-weight: 400; }
.admin-overview-note { background: #fbfaff; }
.admin-overview-status { display: flex; gap: 10px; padding: 18px 0; }
.admin-status-dot { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #32b878; box-shadow: 0 0 0 4px #e2f7eb; }
.admin-overview-status strong { color: #2b3239; font-size: 12px; }
.admin-overview-status p { margin: 4px 0 0; color: #858d97; font-size: 11px; line-height: 1.5; }

@media (max-width: 900px) {
  .admin-overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .admin-overview-heading { align-items: flex-start; flex-direction: column; }
  .admin-overview-heading .btn { width: 100%; }
  .admin-quick-actions { grid-template-columns: 1fr; }
}

/* Full-page admin workspace */
.admin-dash-shell {
  min-height: 100vh;
  padding: 0;
  background: #f3f6fb;
}

.admin-dash-shell .admin-sidebar {
  inset: 0 auto 0 0;
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}

.admin-dash-shell .admin-content {
  min-height: 100vh;
  margin: 0 0 0 240px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-dash-shell .dash-main {
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
}

.admin-sidebar-collapsed .admin-content {
  margin-left: 62px;
}

@media (max-width: 1100px) {
  .admin-dash-shell .topbar-tools { gap: 6px; margin-right: 8px; }
  .admin-dash-shell .global-search { width: 170px; }
}

@media (max-width: 900px) {
  .admin-dash-shell .admin-content,
  .admin-sidebar-collapsed .admin-content {
    min-height: 100vh;
    margin: 0;
  }
  .admin-dash-shell .term-chip { display: none; }
  .admin-dash-shell .global-search { width: 150px; }
}

@media (max-width: 720px) {
  .admin-dash-shell .global-search { display: none; }
  .admin-dash-shell .quick-add-button { width: 32px; padding: 0; justify-content: center; }
  .admin-dash-shell .quick-add-button span { display: none; }
}

/* Reference top bar, sidebar, and navigation rhythm */
.admin-dash-shell .admin-topbar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(240px, 1fr);
  gap: 18px;
  align-items: center;
}

.admin-dash-shell .admin-breadcrumb { min-width: 0; justify-self: start; }
.admin-dash-shell .topbar-tools { margin: 0; justify-self: center; }
.admin-dash-shell .dash-header-right { min-width: 0; justify-self: end; }
.admin-dash-shell .global-search { width: 300px; height: 36px; border-radius: 9px; }
.admin-dash-shell .global-search input::placeholder { color: #9aa1aa; }
.admin-dash-shell .quick-add-button { height: 36px; padding: 0 14px; border-radius: 9px; }
.admin-dash-shell .term-chip { min-height: 32px; background: #f4f7f9; color: #59636e; }
.admin-dash-shell .term-chip::before { background: #2eaa72; }
.admin-dash-shell .icon-btn { width: 34px; height: 34px; border: 1px solid transparent; border-radius: 50%; }
.admin-dash-shell .user-chip { padding: 4px 8px 4px 4px; border-radius: 20px; }
.admin-dash-shell .user-name { color: #2f3740; font-size: 11.5px; }
.admin-dash-shell .user-role { color: #9299a3; font-size: 9.5px; }

.admin-dash-shell .admin-sidebar-brand { padding-bottom: 20px; border-bottom: 1px solid #eef1f4; }
.admin-dash-shell .admin-workspace { margin-top: 16px; margin-bottom: 19px; }
.admin-dash-shell .admin-nav-group-label:not(:first-child) { margin-top: 20px; padding-top: 17px; border-top: 1px solid #eef1f4; }
.admin-dash-shell .admin-sidebar-nav { gap: 2px; }
.admin-dash-shell .admin-side-link { min-height: 35px; padding-left: 10px; padding-right: 10px; }
.admin-dash-shell .admin-side-link.active { box-shadow: none; }
.admin-dash-shell .admin-side-icon { width: 20px; font-size: 15px; }
.admin-dash-shell .admin-submenu { margin-left: 30px; padding-left: 9px; border-left: 1px solid #e5edf1; }
.admin-dash-shell .admin-sub-link { min-height: 29px; border-radius: 7px; color: #858d97; font-size: 11.5px; }
.admin-dash-shell .admin-sub-link:hover { color: #126078; background: #f2fafc; }
.admin-dash-shell .admin-sub-link.active { color: #126078; background: #eaf9fc; font-weight: 700; }

@media (max-width: 1200px) {
  .admin-dash-shell .admin-topbar { grid-template-columns: minmax(150px, 1fr) auto minmax(180px, 1fr); gap: 10px; }
  .admin-dash-shell .global-search { width: 230px; }
}

@media (max-width: 900px) {
  .admin-dash-shell .admin-topbar { display: flex; gap: 8px; }
  .admin-dash-shell .admin-breadcrumb { flex: 1 1 auto; }
  .admin-dash-shell .topbar-tools { margin-left: auto; }
  .admin-dash-shell .dash-header-right { flex: 0 0 auto; }
}

/* Compact, consistent admin spacing */
.admin-dash-shell .admin-sidebar { padding: 20px 12px 14px; }
.admin-dash-shell .admin-sidebar-brand { padding-left: 8px; padding-right: 8px; padding-bottom: 16px; }
.admin-dash-shell .admin-workspace { margin: 14px 1px 16px; padding: 9px; }
.admin-dash-shell .admin-nav-group-label { margin-top: 14px; margin-bottom: 5px; }
.admin-dash-shell .admin-nav-group-label:not(:first-child) { margin-top: 16px; padding-top: 13px; }
.admin-dash-shell .admin-content .dash-main { padding: 22px 22px 46px; }
.admin-dash-shell .dash-page-head { margin-bottom: 16px; }
.admin-dash-shell .admin-card-header { margin-bottom: 10px; padding: 14px 16px; }
.admin-dash-shell .admin-card-divider { margin-bottom: 12px; }
.admin-dash-shell .admin-rooms-table th,
.admin-dash-shell .admin-users-table th,
.admin-dash-shell .routine-schedule-table th,
.admin-dash-shell .planning-table th,
.admin-dash-shell .planning-room-table th { padding: 8px 10px; }
.admin-dash-shell .admin-rooms-table td,
.admin-dash-shell .admin-users-table td,
.admin-dash-shell .routine-schedule-table td,
.admin-dash-shell .planning-table td,
.admin-dash-shell .planning-room-table td { padding: 8px 10px; }
.admin-dash-shell .admin-overview { gap: 14px; }
.admin-dash-shell .admin-overview-stats { gap: 10px; }
.admin-dash-shell .admin-overview-stat { min-height: 78px; padding: 13px; }
.admin-dash-shell .admin-overview-card { padding: 16px; }
.admin-dash-shell .admin-overview-grid { gap: 14px; }

@media (max-width: 900px) {
  .admin-dash-shell .admin-content .dash-main { padding: 20px 16px 42px; }
}

@media (max-width: 620px) {
  .admin-dash-shell .admin-content .dash-main { padding: 18px 12px 36px; }
}

/* Settings safety controls: compact, scoped final pass */
.admin-dash-shell .admin-settings-body {
  width: min(100%, 1080px);
  max-width: 1080px;
  padding: 22px !important;
  box-sizing: border-box;
}
.admin-dash-shell .admin-settings-header h2 {
  margin: 0 0 5px;
  color: var(--admin-ink, #1f2d34);
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.admin-dash-shell .admin-settings-header p {
  margin: 0;
  color: var(--admin-muted, #75838a);
  font-size: 12px !important;
  line-height: 1.5;
}
.admin-dash-shell .admin-settings-backup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
  gap: 28px;
  padding: 20px;
  border-color: var(--admin-line, #e4ecee);
  background: #fff;
}
.admin-dash-shell .admin-settings-backup h3,
.admin-dash-shell .admin-settings-danger h3 {
  margin: 4px 0 6px;
  color: var(--admin-ink, #1f2d34);
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.25;
}
.admin-dash-shell .admin-settings-backup p,
.admin-dash-shell .admin-settings-danger p {
  max-width: 620px;
  margin: 0;
  color: var(--admin-muted, #75838a);
  font-size: 12px !important;
  line-height: 1.5;
}
.admin-dash-shell .admin-settings-backup-actions {
  display: grid;
  width: auto;
  min-width: 0;
  gap: 14px;
}
.admin-dash-shell .admin-settings-backup-actions > .btn {
  width: max-content;
  min-height: 34px;
}
.admin-dash-shell .admin-settings-restore > label {
  color: var(--admin-muted, #75838a);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-dash-shell .admin-settings-restore-row input[type=file] {
  min-width: 0;
  height: 36px;
  box-sizing: border-box;
  border-color: var(--admin-line, #e4ecee);
  background: #fbfdfd;
  font-size: 11px;
}
.admin-dash-shell .admin-settings-restore-row .btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
}
.admin-dash-shell .admin-restore-file-name,
.admin-dash-shell .admin-settings-restore small {
  font-size: 10px;
  line-height: 1.4;
}
.admin-dash-shell .admin-settings-danger {
  align-items: flex-start;
  padding: 18px 20px;
}
.admin-dash-shell .admin-settings-backup + .admin-settings-danger { margin-top: 14px; }
@media (max-width: 820px) {
  .admin-dash-shell .admin-settings-backup { grid-template-columns: 1fr; }
  .admin-dash-shell .admin-settings-backup-actions { width: 100%; }
  .admin-dash-shell .admin-settings-backup-actions > .btn { width: 100%; }
}
@media (max-width: 560px) {
  .admin-dash-shell .admin-settings-body { padding: 16px !important; }
  .admin-dash-shell .admin-settings-backup { gap: 18px; padding: 16px; }
  .admin-dash-shell .admin-settings-restore-row { align-items: stretch; flex-direction: column; }
  .admin-dash-shell .admin-settings-restore-row input[type=file],
  .admin-dash-shell .admin-settings-restore-row .btn { width: 100%; }
}

/* Admin users: compact people-management surface */
.admin-dash-shell .admin-users-body { padding: 0; }
.admin-dash-shell .admin-users-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  margin-bottom: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: var(--admin-surface);
}
.admin-dash-shell .admin-users-intro > div:first-child { min-width: 0; }
.admin-dash-shell .admin-users-intro .section-label { color: var(--admin-muted); font-size: 10px; letter-spacing: .04em; }
.admin-dash-shell .admin-users-intro p { color: var(--admin-muted); font-size: 11px; line-height: 1.45; }
.admin-dash-shell .admin-users-intro > .badge {
  min-width: 74px;
  padding: 6px 9px;
  border: 1px solid var(--admin-line);
  background: #f7f9f8;
  color: var(--admin-muted);
  text-align: center;
  font-size: 10px;
  font-weight: 650;
}
.admin-dash-shell .admin-user-role-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px 4px 9px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #f7f9f8;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 650;
}
.admin-dash-shell .admin-user-role-filter .select-input {
  min-width: 142px;
  height: 30px;
  min-height: 30px;
  padding: 0 24px 0 9px;
  border-color: transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--admin-ink);
  font-size: 11px;
  font-weight: 600;
}
.admin-dash-shell .admin-user-role-filter .select-input:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 2px rgba(47,143,131,.12);
}
.admin-dash-shell .admin-users-table-wrap {
  overflow: auto;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: var(--admin-surface);
}
.admin-dash-shell table.admin-users-table { min-width: 940px; }
.admin-dash-shell .admin-users-table th {
  padding: 9px 12px;
  background: #f4f7f6;
  color: #77858a;
  font-size: 9.5px;
  letter-spacing: .045em;
}
.admin-dash-shell .admin-users-table td {
  padding: 11px 12px;
  color: #506067;
  font-size: 11.5px;
}
.admin-dash-shell .admin-users-table tbody tr { transition: background-color .16s ease; }
.admin-dash-shell .admin-users-table tbody tr:hover td { background: #f8fbfa; }
.admin-dash-shell .admin-users-table .admin-user-input {
  width: 100%;
  min-width: 118px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fafcfb;
  color: var(--admin-ink);
  font-size: 11px;
}
.admin-dash-shell .admin-users-table .admin-user-input:hover { border-color: var(--admin-line); background: #fff; }
.admin-dash-shell .admin-users-table .admin-user-input:focus { border-color: var(--admin-accent); background: #fff; }
.admin-dash-shell .admin-users-table .admin-user-role {
  min-width: 132px;
  height: 32px;
  min-height: 32px;
  padding: 0 24px 0 9px;
  border-radius: 7px;
  font-size: 11px;
}
.admin-dash-shell .admin-users-table .admin-card-actions { flex-wrap: nowrap; }
.admin-dash-shell .admin-users-table .btn-sm { min-height: 30px; padding: 0 9px; font-size: 10.5px; }

@media (max-width: 760px) {
  .admin-dash-shell .admin-users-intro {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .admin-dash-shell .admin-users-intro > .badge { grid-column: 2; grid-row: 1; }
  .admin-dash-shell .admin-user-role-filter { grid-column: 1 / -1; justify-content: space-between; }
  .admin-dash-shell .admin-user-role-filter .select-input { flex: 1; }
}

/* Admin UI refinement: campus operations workspace */
.admin-dash-shell {
  --admin-sidebar-width: 236px;
  --admin-page-bg: #f5f7f6;
  --admin-surface: #ffffff;
  --admin-line: #e2e8e5;
  --admin-line-soft: #edf1ef;
  --admin-ink: #182326;
  --admin-muted: #6d7b80;
  --admin-accent: #2f8f83;
  --admin-accent-deep: #216d64;
  background: var(--admin-page-bg);
  color: var(--admin-ink);
}
.admin-dash-shell .admin-sidebar {
  width: var(--admin-sidebar-width);
  flex-basis: var(--admin-sidebar-width);
  padding: 20px 12px 14px;
  background: #fbfcfc;
  border-right: 1px solid var(--admin-line);
  box-shadow: 2px 0 14px rgba(24,35,38,.025);
}
.admin-dash-shell .admin-sidebar-brand {
  min-height: 36px;
  margin: 0 6px 16px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--admin-line-soft);
}
.admin-dash-shell .admin-sidebar-brand .brand-name { display: none; }
.admin-dash-shell .admin-sidebar-brand .brand-mark { width: 30px; height: 30px; }
.admin-dash-shell .admin-workspace { display: none; }
.admin-dash-shell .admin-sidebar-nav { gap: 2px; }
.admin-dash-shell .admin-nav-group-label { margin: 14px 10px 6px; color: #879398; font-size: 10px; letter-spacing: .08em; }
.admin-dash-shell .admin-side-link {
  min-height: 37px;
  padding: 0 11px;
  border-radius: 8px;
  color: #647277;
  font-size: 12.5px;
  font-weight: 520;
}
.admin-dash-shell .admin-side-link:hover { background: #eef5f3; color: var(--admin-ink); }
.admin-dash-shell .admin-side-link.active { background: #e2f1ee; color: var(--admin-accent-deep); font-weight: 650; }
.admin-dash-shell .admin-side-icon { color: currentColor; font-size: 15px; }
.admin-dash-shell .admin-sidebar-bottom { padding-top: 12px; border-top-color: var(--admin-line); }
.admin-dash-shell .admin-sidebar-foot { display: none; }
.admin-dash-shell .admin-content { margin-left: var(--admin-sidebar-width); width: calc(100% - var(--admin-sidebar-width)); background: var(--admin-page-bg); }
.admin-dash-shell .admin-topbar {
  min-height: 60px;
  height: 60px;
  padding: 0 28px;
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--admin-line);
  box-shadow: 0 1px 8px rgba(24,35,38,.025);
}
.admin-dash-shell .topbar-tools { display: none !important; }
.admin-dash-shell .admin-breadcrumb { gap: 8px; color: #879398; font-size: 12px; }
.admin-dash-shell .admin-breadcrumb strong { color: var(--admin-ink); font-weight: 650; }
.admin-dash-shell .dash-header-right { gap: 12px; }
.admin-dash-shell .term-chip { min-height: 29px; border: 1px solid #cfe3df; background: #edf7f5; color: var(--admin-accent-deep); }
.admin-dash-shell .admin-content .dash-main { max-width: 1460px; padding: 30px 28px 68px; }
.admin-dash-shell .admin-content .dash-page-head { margin: 0 0 22px; }
.admin-dash-shell .admin-content .dash-page-head h1 { color: var(--admin-ink); font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.admin-dash-shell .admin-content .dash-page-head p { margin-top: 6px; color: var(--admin-muted); font-size: 12px; }
.admin-dash-shell .admin-content > .dash-main > .panel { border-color: var(--admin-line); border-radius: 14px; background: var(--admin-surface); box-shadow: 0 1px 2px rgba(24,35,38,.025); }
.admin-dash-shell .admin-content .panel-body { padding: 20px; }
.admin-dash-shell .panel-head { padding: 15px 20px; border-bottom-color: var(--admin-line); }
.admin-dash-shell .admin-card-header { background: #f7f9f8; border: 1px solid var(--admin-line); border-radius: 10px; }
.admin-dash-shell .admin-card-divider { background: var(--admin-line); }
.admin-dash-shell input:not([type="checkbox"]):not([type="radio"]),
.admin-dash-shell select,
.admin-dash-shell textarea { border-color: var(--admin-line); border-radius: 8px; }
.admin-dash-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-dash-shell select:focus,
.admin-dash-shell textarea:focus { border-color: var(--admin-accent); box-shadow: 0 0 0 3px rgba(47,143,131,.14); outline: 0; }
.admin-dash-shell .btn-primary { background: var(--admin-accent); border-color: var(--admin-accent); }
.admin-dash-shell .btn-primary:hover:not(:disabled) { background: var(--admin-accent-deep); border-color: var(--admin-accent-deep); }
.admin-dash-shell .btn-secondary, .admin-dash-shell .btn-ghost { border-color: var(--admin-line); color: #46565b; }
.admin-dash-shell .admin-rooms-table-wrap,
.admin-dash-shell .admin-users-table-wrap,
.admin-dash-shell .planning-review-scroll,
.admin-dash-shell .planning-room-map,
.admin-dash-shell .table-scroll { border-color: var(--admin-line); border-radius: 10px; }
.admin-dash-shell .admin-rooms-table,
.admin-dash-shell .admin-users-table,
.admin-dash-shell .routine-schedule-table,
.admin-dash-shell .planning-table,
.admin-dash-shell .planning-room-table { font-size: 12px; }
.admin-dash-shell .admin-rooms-table th,
.admin-dash-shell .admin-users-table th,
.admin-dash-shell .routine-schedule-table th,
.admin-dash-shell .planning-table th,
.admin-dash-shell .planning-room-table th { position: sticky; top: 0; z-index: 2; padding: 10px 12px; background: #f4f7f6; color: #728087; border-bottom: 1px solid var(--admin-line); font-size: 10px; letter-spacing: .055em; }
.admin-dash-shell .admin-rooms-table td,
.admin-dash-shell .admin-users-table td,
.admin-dash-shell .routine-schedule-table td,
.admin-dash-shell .planning-table td,
.admin-dash-shell .planning-room-table td { padding: 10px 12px; color: #46565b; border-bottom-color: var(--admin-line-soft); }
.admin-dash-shell .admin-rooms-table tbody tr:hover td,
.admin-dash-shell .admin-users-table tbody tr:hover td,
.admin-dash-shell .routine-schedule-table tbody tr:hover td,
.admin-dash-shell .planning-table tbody tr:hover td,
.admin-dash-shell .planning-room-table tbody tr:hover td { background: #f8fbfa; }
.admin-dash-shell .admin-card-actions { gap: 6px; }
.admin-dash-shell .admin-modal, .admin-dash-shell .drawer { border-color: var(--admin-line); border-radius: 12px; box-shadow: 0 20px 48px rgba(24,35,38,.18); }
.admin-dash-shell .modal-backdrop { background: rgba(24,35,38,.34); }
.admin-dash-shell .drawer-head, .admin-dash-shell .drawer-footer { border-color: var(--admin-line); }
.admin-dash-shell.admin-sidebar-collapsed { --admin-sidebar-width: 62px; }
.admin-dash-shell.admin-sidebar-collapsed .admin-sidebar { width: 62px; flex-basis: 62px; padding-left: 8px; padding-right: 8px; }
.admin-dash-shell.admin-sidebar-collapsed .admin-content { margin-left: 62px; width: calc(100% - 62px); }

@media (max-width: 900px) {
  .admin-dash-shell { --admin-sidebar-width: 224px; }
  .admin-dash-shell .admin-content { margin-left: 0; width: 100%; }
  .admin-dash-shell .admin-content .dash-main { padding: 24px 18px 54px; }
}
@media (max-width: 620px) {
  .admin-dash-shell .admin-content .dash-main { padding: 20px 12px 42px; }
  .admin-dash-shell .admin-topbar { padding: 0 12px; }
  .admin-dash-shell .admin-content .panel-body { padding: 14px; }
}

/* Schedule planning clusters */
.planning-cluster-modal { width: min(560px, calc(100% - 28px)); border-radius: 12px; }
.planning-cluster-modal .admin-modal-body { gap: 7px; max-height: min(72vh, 620px); overflow-y: auto; padding: 18px; }
.planning-cluster-modal .admin-modal-body > input { height: 36px; border-color: var(--border,#e7eae9); border-radius: 8px; font-size: 12px; }
.planning-cluster-modal .admin-modal-body > input:focus { border-color: var(--accent,#355872); box-shadow: 0 0 0 3px var(--accent-tint,#e9f1ee); }
.planning-cluster-modal .planning-modal-label-row { min-height: 24px; margin-top: 12px !important; }
.planning-cluster-modal .planning-modal-label-row .admin-modal-label { margin: 0; color: var(--muted,#6f7674); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.planning-cluster-modal .drawer-footer { padding: 11px 18px; background: #fff; }
.planning-cluster-loading { width: min(420px, calc(100% - 28px)); }
.planning-modal-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 100px; color: var(--muted,#6f7674); font-size: 12px; }
.planning-loading-dot { width: 12px; height: 12px; border: 2px solid var(--accent-tint,#e9f1ee); border-top-color: var(--accent,#355872); border-radius: 50%; animation: planning-spin .7s linear infinite; }
@keyframes planning-spin { to { transform: rotate(360deg); } }
.planning-cluster-course-search { display:flex; align-items:center; gap:8px; margin:12px 0 10px; padding:0 11px; height:36px; border:1px solid var(--border,#e7eae9); border-radius:9px; background:#fff; color:var(--muted,#6f7674); }
.planning-course-picker .planning-cluster-course-search { margin: 0; }
.planning-available-course-filters { display: flex; align-items: flex-end; gap: 8px; min-width: min(100%, 470px); }
.planning-available-course-filters .planning-cluster-course-search { flex: 1 1 250px; min-width: 180px; margin: 12px 0 10px; }
.planning-available-course-department-filter { display: grid; gap: 4px; min-width: 174px; margin: 0 0 10px; color: var(--muted,#6f7674); font-size: 10px; font-weight: 650; }
.planning-available-course-department-filter .select-input { width: 100%; height: 36px; min-width: 0; padding: 0 26px 0 10px; border-radius: 9px; font-size: 11px; }
.planning-room-picker-filters { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 7px; }
.planning-room-type-select { min-width: 0; height: 36px; padding: 0 9px; border-color: var(--border,#e7eae9); border-radius: 9px; font-size: 11px; }
.planning-cluster-course-search input { width:100%; border:0 !important; outline:0 !important; background:transparent !important; box-shadow:none !important; font-size:12px; color:var(--ink,#191c1b); padding:0 !important; }
.planning-available-course-row[hidden] { display: none; }
.planning-cluster-checklist .planning-room-check[hidden] { display:none; }
.planning-course-picker { display: grid; gap: 9px; }
.planning-course-picker-options { display: grid; gap: 5px; max-height: 224px; overflow-y: auto; padding: 6px; border: 1px solid var(--border,#e7eae9); border-radius: 9px; background: var(--surface-muted,#f7f8f7); }
.planning-course-picker-option { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 7px; background: #fff; color: var(--ink,#191c1b); text-align: left; cursor: pointer; }
.planning-course-picker-option:hover { border-color: var(--border,#e7eae9); background: #fbfcfb; }
.planning-course-picker-option.is-selected { border-color: color-mix(in srgb, var(--accent,#355872) 30%, white); background: color-mix(in srgb, var(--accent,#355872) 9%, white); }
.planning-course-picker-option[hidden] { display: none; }
.planning-course-picker-option > span:nth-child(2) { min-width: 0; }
.planning-course-picker-option strong, .planning-course-picker-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planning-course-picker-option strong { font-size: 11px; font-weight: 650; }
.planning-course-picker-option small { margin-top: 2px; color: var(--muted,#6f7674); font-size: 10px; }
.planning-course-picker-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--border,#d7ddda); border-radius: 6px; color: var(--muted,#6f7674); font-size: 13px; font-weight: 700; }
.planning-course-picker-option.is-selected .planning-course-picker-check { border-color: var(--accent,#355872); background: var(--accent,#355872); color: #fff; }
.planning-course-picker-action { color: var(--muted,#6f7674); font-size: 10px; font-weight: 650; }
.planning-course-picker-option.is-selected .planning-course-picker-action { color: var(--deep-accent,#244a62); }
.planning-course-picker-selected { padding: 9px 10px; border: 1px solid var(--border,#e7eae9); border-radius: 8px; background: #fff; }
.planning-course-picker-selected-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted,#6f7674); font-size: 10px; font-weight: 650; }
.planning-course-picker-selected-label span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent-tint,#e9f1ee); color: var(--deep-accent,#244a62); }
.planning-course-chip-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.planning-course-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 5px 4px 8px; border: 1px solid color-mix(in srgb, var(--accent,#355872) 22%, white); border-radius: 999px; background: var(--accent-tint,#e9f1ee); color: var(--deep-accent,#244a62); font-size: 10px; }
.planning-course-chip button { display: grid; place-items: center; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: currentColor; cursor: pointer; }
.planning-course-chip button:hover { background: rgb(255 255 255 / 60%); }
.planning-cluster-modal .admin-modal-note { margin-top: 2px; color: var(--muted,#6f7674); font-size: 10px; line-height: 1.4; }
.planning-cluster-modal .planning-empty { padding: 16px 10px; color: var(--muted,#6f7674); font-size: 11px; text-align: center; }
.planning-load-error { display: grid; gap: 6px; padding: 28px 20px; }
.planning-load-error strong { color: var(--ink,#191c1b); font-size: 13px; }
.planning-load-error p, .planning-load-error small { margin: 0; color: var(--muted,#6f7674); font-size: 11px; line-height: 1.5; }
.planning-page-ownership-rules .planning-toolbar-actions { align-items: center; }
.planning-ownership-table td small { display: block; margin-top: 3px; color: var(--muted,#6f7674); font-size: 11px; }
.planning-ownership-room-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 280px; }
.planning-ownership-room-tag { display: inline-flex; flex-direction: column; gap: 1px; padding: 5px 8px; border: 1px solid var(--border,#e7eae9); border-radius: 7px; background: #fbfdfc; }
.planning-ownership-room-tag strong { color: var(--ink,#191c1b); font-size: 11px; }
.planning-ownership-room-tag small { margin: 0; color: var(--muted,#6f7674); font-size: 9px; }
.planning-ownership-actions { display: grid; gap: 4px; justify-items: start; }
.planning-ownership-action-group { display: inline-flex; align-items: center; gap: 4px; }
.planning-ownership-action-group .btn { min-height: 25px; padding: 0 7px; font-size: 10px; }
.planning-priority-badge { display: inline-flex; min-width: 28px; justify-content: center; padding: 3px 8px; border-radius: 999px; background: #eef7f4; color: #24594d; font-weight: 700; font-size: 11px; }
.app-error-state { max-width: 560px; margin: 80px auto; padding: 24px; border: 1px solid #e7eae9; border-radius: 12px; background: #fff; color: #191c1b; box-shadow: 0 1px 2px rgba(20,30,28,.03); }
.app-error-state strong { display: block; font-size: 14px; }
.app-error-state p { margin: 8px 0 16px; color: #6f7674; font-size: 12px; }
@media (max-width: 560px) {
  .planning-cluster-modal { width: calc(100% - 20px); }
  .planning-cluster-modal .admin-modal-body { max-height: 72vh; padding: 15px; }
  .planning-course-picker-options { max-height: 190px; }
  .planning-course-picker-option { grid-template-columns: 20px minmax(0,1fr); }
  .planning-course-picker-action { display: none; }
  .planning-cluster-modal .drawer-footer { padding: 10px 15px; }
}
.planning-cluster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.planning-cluster-list { display: grid; gap: 8px; margin-top: 16px; }
.planning-cluster-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e6e2da; border-radius: 9px; background: #fff; }
.planning-cluster-item > div:first-child { min-width: 0; }
.planning-cluster-item strong, .planning-cluster-item small { display: block; }
.planning-cluster-item strong { color: #253333; font-size: 12px; }
.planning-cluster-item small { margin-top: 4px; color: #7a8582; font-size: 10px; line-height: 1.4; }
.planning-cluster-item .admin-card-actions { flex: 0 0 auto; flex-wrap: nowrap; }
.planning-cluster-room-tags { display: flex; flex-wrap: wrap; gap: 5px; max-height: 72px; margin-top: 7px; overflow-y: auto; }
.planning-cluster-room-tag { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--border,#e7eae9); border-radius: 6px; background: var(--surface-muted,#f7f8f7); color: var(--deep-accent,#244a62); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.planning-cluster-no-rooms { color: #a53b3b; font-size: 10px; }
.planning-cycle-picker { display: inline-flex; align-items: center; gap: 6px; color: var(--muted,#6f7674); font-size: 10px; font-weight: 650; white-space: nowrap; }
.planning-cycle-picker .select-input { height: 32px; min-width: 128px; padding: 0 8px; font-size: 11px; }
.planning-cluster-mapping-card { margin-top: 14px; }
.planning-cluster-checklist { max-height: 300px; }
.planning-cluster-mapping-table { min-width: 720px; }
.planning-cluster-mapping-table td:last-child { max-width: none; overflow: visible; }
@media (max-width: 800px) {
  .planning-cluster-grid { grid-template-columns: 1fr; }
  .planning-cluster-item { align-items: flex-start; flex-direction: column; }
  .planning-cluster-item .admin-card-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .planning-room-picker-filters { grid-template-columns: 1fr; }
  .planning-cycle-picker { width: 100%; align-items: stretch; flex-direction: column; }
  .planning-cycle-picker .select-input { width: 100%; }
}

/* RoomSync public user workspace */
.user-dash-shell {
  --user-bg: #f3f7f5;
  --user-surface: #ffffff;
  --user-ink: #173f3c;
  --user-soft-ink: #385a54;
  --user-muted: #71817c;
  --user-line: #e3ece8;
  --user-line-soft: #edf3f0;
  --user-mint: #ddf3eb;
  --user-mint-ink: #26775e;
  --user-action: #245f59;
  min-height: 100vh;
  background: var(--user-bg);
  color: var(--user-ink);
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
}

.user-dash-shell .user-sidebar {
  width: 228px;
  padding: 20px 11px 14px;
  background: var(--user-surface);
  border-right: 1px solid var(--user-line);
  box-shadow: 2px 0 10px rgba(23,63,60,.025);
}

.user-dash-shell .user-workspace {
  display: none;
}

.user-dash-shell .user-sidebar-brand {
  min-height: 34px;
  padding: 0 8px 15px;
  border-bottom: 1px solid var(--user-line-soft);
}

.user-dash-shell .user-sidebar-brand > .brand-name {
  width: 145px;
  height: 52px;
  background-size: contain;
}

.user-dash-shell .user-sidebar-toggle {
  width: 27px;
  height: 27px;
  border-color: var(--user-line);
  border-radius: 8px;
  color: var(--user-muted);
}

.user-dash-shell .user-sidebar-toggle:hover { background: #f0faf5; color: var(--user-mint-ink); }

.user-dash-shell .user-workspace {
  margin: 14px 1px 17px;
  padding: 9px;
  border: 1px solid var(--user-line-soft);
  border-radius: 10px;
  background: #f8fbf9;
}

.user-dash-shell .user-workspace-mark {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 8px;
  background: var(--user-action);
}

.user-dash-shell .user-workspace strong { color: var(--user-ink); font-size: 11.5px; }
.user-dash-shell .user-workspace span { color: #8b9994; font-size: 9px; }
.user-dash-shell .user-workspace-chevron { color: #8b9994; }
.user-dash-shell .user-nav-group-label { margin: 15px 9px 6px; color: #99a7a2; font-size: 9.5px; letter-spacing: .1em; }
.user-dash-shell .user-sidebar-nav { gap: 2px; }
.user-dash-shell .user-side-link, .user-dash-shell .user-side-logout { min-height: 35px; border-radius: 7px; color: #687a74; font-size: 12px; }
.user-dash-shell .user-side-link:hover, .user-dash-shell .user-side-logout:hover { background: #f4faf7; color: var(--user-ink); }
.user-dash-shell .user-side-link.active { background: var(--user-mint); color: var(--user-mint-ink); font-weight: 700; }
.user-dash-shell .user-side-icon { width: 19px; color: currentColor; font-size: 14px; }
.user-dash-shell .user-sidebar-bottom { padding-top: 12px; border-top-color: var(--user-line); }

.user-dash-shell .user-content {
  margin-left: 228px;
  width: calc(100% - 228px);
  min-height: 100vh;
  background: #fbfdfc;
}

.user-dash-shell .user-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--user-line);
  background: rgba(255,255,255,.97);
  box-shadow: none;
}

.user-dash-shell .user-breadcrumb { min-width: 0; justify-self: start; color: #93a19c; font-size: 11.5px; }
.user-dash-shell .user-breadcrumb strong { color: var(--user-ink); font-size: 12px; }
.user-dash-shell .user-breadcrumb b { color: #b0beb8; font-size: 15px; }
.user-dash-shell .topbar-tools { margin: 0; justify-self: center; }
.user-dash-shell .global-search { width: 275px; height: 35px; border-color: var(--user-line); background: #fff; }
.user-dash-shell .global-search:focus-within { border-color: #8bd4b8; box-shadow: 0 0 0 3px rgba(139,212,184,.16); }
.user-dash-shell .quick-add-button { height: 35px; background: var(--user-action); box-shadow: none; }
.user-dash-shell .quick-add-button:hover { background: #174c47; }
.user-dash-shell .dash-header-right { min-width: 0; justify-self: end; }
.user-dash-shell .term-chip { min-height: 31px; background: #f2f8f5; color: var(--user-soft-ink); }
.user-dash-shell .term-chip::before { background: #48a77d; }
.user-dash-shell .icon-btn { width: 32px; height: 32px; color: #75857f; }
.user-dash-shell .icon-btn:hover, .user-dash-shell .user-chip:hover { background: #f3f9f6; }
.user-dash-shell .user-name { color: var(--user-ink); font-size: 11px; }
.user-dash-shell .user-role { color: #97a49f; font-size: 9px; }

.user-dash-shell .user-content .dash-main {
  width: 100%;
  max-width: 1320px;
  padding: 25px 24px 52px;
  box-sizing: border-box;
}

.user-dash-shell .dash-page-head { margin-bottom: 17px; }
.user-dash-shell .dash-page-head h1 { color: var(--user-ink); font-size: 21px; font-weight: 700; letter-spacing: -.035em; }
.user-dash-shell .dash-page-head p { color: var(--user-muted); font-size: 12px; }
.user-dash-shell .panel, .user-dash-shell .stat-card, .user-dash-shell .quick-card, .user-dash-shell .avail-panel, .user-dash-shell .summary-card { border-color: var(--user-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(23,63,60,.025); }
.user-dash-shell .panel-head { border-bottom-color: var(--user-line); }
.user-dash-shell .panel-head h2, .user-dash-shell .panel-head h3 { color: var(--user-ink); font-size: 13.5px; }
.user-dash-shell .text-muted, .user-dash-shell .stat-label { color: var(--user-muted); }
.user-dash-shell .stat-grid, .user-dash-shell .quick-grid { gap: 12px; }
.user-dash-shell .stat-card { padding: 15px 17px; }
.user-dash-shell .stat-value { color: var(--user-ink); font-size: 23px; font-weight: 700; }
.user-dash-shell .quick-card { padding: 14px; border-radius: 10px; }
.user-dash-shell .quick-card:hover { border-color: #c5e7d9; box-shadow: 0 5px 14px rgba(23,63,60,.06); }
.user-dash-shell .quick-icon { background: var(--user-mint); color: var(--user-mint-ink); }
.user-dash-shell .quick-title { color: var(--user-ink); font-size: 13px; }
.user-dash-shell .quick-desc { color: var(--user-muted); font-size: 11px; }
.user-dash-shell .btn-primary { background: var(--user-action); border-color: var(--user-action); box-shadow: none; }
.user-dash-shell .btn-primary:hover:not(:disabled) { background: #174c47; border-color: #174c47; }
.user-dash-shell .filter-chip.active, .user-dash-shell .pill-toggle.selected, .user-dash-shell .time-opt.selected { background: var(--user-action); border-color: var(--user-action); color: #fff; }
.user-dash-shell .select-input, .user-dash-shell .search-box input, .user-dash-shell .field input, .user-dash-shell .field select, .user-dash-shell .field textarea { border-color: var(--user-line); border-radius: 8px; background: #fff; }
.user-dash-shell .select-input:focus, .user-dash-shell .field input:focus, .user-dash-shell .field select:focus, .user-dash-shell .field textarea:focus { border-color: #80cba9; box-shadow: 0 0 0 3px rgba(128,203,169,.16); }
.user-dash-shell .bookings-table th, .user-dash-shell .table-view-head, .user-dash-shell .week-cal-head, .user-dash-shell .month-grid-head { background: #f5f9f7; color: #778780; border-bottom-color: var(--user-line); }
.user-dash-shell .bookings-table td { color: var(--user-soft-ink); border-bottom-color: var(--user-line-soft); }
.user-dash-shell .bookings-table tr:hover td { background: #f8fcfa; }
.user-dash-shell .availability-panel { padding: 16px; }
.user-dash-shell .availability-panel .avail-head { margin: -16px -16px 16px; padding: 16px; background: #f5f9f7; border-bottom-color: var(--user-line); }
.user-dash-shell .availability-panel .avail-head h2 { color: var(--user-ink); font-size: 16px; }
.user-dash-shell .availability-panel .avail-head p { color: var(--user-muted); font-size: 11.5px; }
.user-dash-shell .table-view-scroll { border-color: var(--user-line); border-radius: 9px; }

.user-dash-shell .profile-page-card { border-color: var(--user-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(23,63,60,.025); }
.user-dash-shell .profile-hero { border-color: var(--user-line); background: #fff; }
.user-dash-shell .profile-role-badge { background: var(--user-mint); color: var(--user-mint-ink); }
.user-dash-shell .profile-tab.active { color: var(--user-mint-ink); border-bottom-color: #56af89; background: #f1fbf6; }
.user-dash-shell .profile-info-card-head { border-bottom-color: var(--user-line-soft); }
.user-dash-shell .profile-info-card-head h2 { color: var(--user-ink); }

.user-sidebar-collapsed .user-sidebar { width: 62px; flex-basis: 62px; padding-left: 8px; padding-right: 8px; }
.user-dash-shell.user-sidebar-collapsed .user-content { margin-left: 62px; width: calc(100% - 62px); }

@media (max-width: 1100px) {
  .user-dash-shell .user-topbar { grid-template-columns: minmax(150px, 1fr) auto minmax(180px, 1fr); gap: 9px; }
  .user-dash-shell .global-search { width: 210px; }
}

@media (max-width: 900px) {
  .user-dash-shell .user-content, .user-dash-shell.user-sidebar-collapsed .user-content { width: 100%; margin-left: 0; }
  .user-dash-shell .user-topbar { display: flex; gap: 8px; padding: 0 16px; }
  .user-dash-shell .user-breadcrumb { flex: 1 1 auto; }
  .user-dash-shell .topbar-tools { margin-left: auto; }
  .user-dash-shell .dash-header-right { flex: 0 0 auto; }
  .user-dash-shell .term-chip { display: none; }
  .user-dash-shell .user-content .dash-main { padding: 20px 16px 42px; }
}

@media (max-width: 720px) {
  .user-dash-shell .global-search { display: none; }
  .user-dash-shell .quick-add-button { width: 32px; padding: 0; justify-content: center; }
  .user-dash-shell .quick-add-button span { display: none; }
}

@media (max-width: 620px) {
  .user-dash-shell .user-topbar { padding: 0 12px; }
  .user-dash-shell .user-content .dash-main { padding: 18px 12px 36px; }
  .user-dash-shell .dash-page-head h1 { font-size: 19px; }
}

/* Keep the admin sidebar header icon-only. */
.admin-dash-shell:not(.admin-sidebar-collapsed) .admin-sidebar-brand > .brand-name {
  display: none;
}

.admin-dash-shell:not(.admin-sidebar-collapsed) .admin-sidebar-brand > .brand-mark {
  display: inline-flex;
}

/* RoomSync operational admin system */
.admin-dash-shell {
  --admin-bg: #f2f6f7;
  --admin-surface: #ffffff;
  --admin-ink: #1f2d34;
  --admin-muted: #74818a;
  --admin-line: #e6ecee;
  --admin-line-soft: #eef2f3;
  --admin-signal: #c7f1f6;
  --admin-signal-ink: #126579;
  --admin-action: #147db5;
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
}

.admin-dash-shell .admin-sidebar {
  width: 236px;
  padding: 20px 11px 14px;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-line);
  box-shadow: 2px 0 10px rgba(31, 45, 52, .025);
}

.admin-dash-shell .admin-workspace {
  display: none;
}

.admin-dash-shell .global-search,
.user-dash-shell .global-search {
  display: none;
}

.admin-dash-shell .quick-add-button,
.user-dash-shell .quick-add-button {
  display: none;
}

.admin-dash-shell .admin-sidebar-brand {
  min-height: 34px;
  padding: 0 8px 15px;
  border-bottom: 1px solid var(--admin-line-soft);
}

.admin-dash-shell .admin-sidebar-brand > .brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid #dce7ea;
  border-radius: 9px;
  background-color: #f7fbfc;
}

.admin-dash-shell .admin-sidebar-toggle {
  width: 27px;
  height: 27px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-muted);
}

.admin-dash-shell .admin-sidebar-toggle:hover {
  background: #f5fafb;
  color: var(--admin-signal-ink);
}

.admin-dash-shell .admin-workspace {
  margin: 14px 1px 17px;
  padding: 9px;
  border: 1px solid var(--admin-line-soft);
  border-radius: 10px;
  background: #f8fafb;
}

.admin-dash-shell .admin-workspace-mark {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 8px;
  background: #205d70;
}

.admin-dash-shell .admin-workspace strong { color: var(--admin-ink); font-size: 11.5px; }
.admin-dash-shell .admin-workspace span { color: #8a969d; font-size: 9px; }
.admin-dash-shell .admin-workspace-chevron { color: #8a969d; }

.admin-dash-shell .admin-nav-group-label {
  margin: 15px 9px 6px;
  color: #97a2a8;
  font-size: 9.5px;
  letter-spacing: .1em;
}

.admin-dash-shell .admin-nav-group-label:not(:first-child) {
  margin-top: 17px;
  padding-top: 15px;
  border-top-color: var(--admin-line-soft);
}

.admin-dash-shell .admin-sidebar-nav { gap: 2px; }
.admin-dash-shell .admin-side-link { min-height: 35px; border-radius: 7px; color: #65747c; font-size: 12px; }
.admin-dash-shell .admin-side-link:hover { background: #f5f9fa; color: var(--admin-ink); }
.admin-dash-shell .admin-side-link.active { background: var(--admin-signal); color: var(--admin-signal-ink); font-weight: 700; }
.admin-dash-shell .admin-side-icon { width: 19px; color: currentColor; font-size: 14px; }
.admin-dash-shell .admin-routine-chevron { color: #91a0a7; font-size: 12px; }
.admin-dash-shell .admin-submenu { margin: 1px 0 5px 29px; padding-left: 9px; border-left: 1px solid #dcecef; }
.admin-dash-shell .admin-sub-link { min-height: 28px; border-radius: 6px; color: #849097; font-size: 11px; }
.admin-dash-shell .admin-sub-link:hover, .admin-dash-shell .admin-sub-link.active { background: #effbfc; color: var(--admin-signal-ink); }
.admin-dash-shell .admin-sidebar-bottom { padding-top: 12px; border-top-color: var(--admin-line); }
.admin-dash-shell .admin-sidebar-foot { padding-top: 12px; color: #a1abb0; font-size: 9px; }

.admin-dash-shell .admin-content {
  margin-left: 236px;
  background: #fbfcfc;
}

.admin-dash-shell.admin-sidebar-collapsed .admin-sidebar {
  width: 62px;
  flex-basis: 62px;
  padding-left: 8px;
  padding-right: 8px;
}

.admin-dash-shell.admin-sidebar-collapsed .admin-content {
  margin-left: 62px;
}

.admin-dash-shell .admin-topbar {
  min-height: 64px;
  height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255,255,255,.97);
}

.admin-dash-shell .admin-breadcrumb { color: #99a4aa; font-size: 11.5px; }
.admin-dash-shell .admin-breadcrumb strong { color: var(--admin-ink); font-size: 12px; }
.admin-dash-shell .admin-breadcrumb b { color: #b2bdc2; font-size: 15px; }
.admin-dash-shell .global-search { width: 282px; height: 35px; border-color: var(--admin-line); background: #fff; }
.admin-dash-shell .global-search:focus-within { border-color: #8adbe5; box-shadow: 0 0 0 3px rgba(138,219,229,.18); }
.admin-dash-shell .quick-add-button { height: 35px; background: var(--admin-action); box-shadow: none; }
.admin-dash-shell .quick-add-button:hover { background: #0f6898; }
.admin-dash-shell .term-chip { min-height: 31px; background: #f5f8f9; color: #5d6c73; }
.admin-dash-shell .term-chip::before { background: #39a979; }
.admin-dash-shell .icon-btn { width: 32px; height: 32px; color: #77858c; }
.admin-dash-shell .icon-btn:hover, .admin-dash-shell .user-chip:hover { background: #f4f8f9; }
.admin-dash-shell .user-name { color: var(--admin-ink); font-size: 11px; }
.admin-dash-shell .user-role { color: #98a3a8; font-size: 9px; }

.admin-dash-shell .admin-content .dash-main {
  max-width: 1400px;
  padding: 24px 24px 48px;
}

.admin-dash-shell .dash-page-head { margin-bottom: 17px; }
.admin-dash-shell .dash-page-head h1 { color: var(--admin-ink); font-size: 20px; font-weight: 700; }
.admin-dash-shell .dash-page-head p { color: var(--admin-muted); font-size: 11.5px; }
.admin-dash-shell .admin-card-header { border-color: var(--admin-line); background: #fff; box-shadow: 0 1px 2px rgba(31,45,52,.025); }
.admin-dash-shell .admin-card-header h2 { color: var(--admin-ink); font-size: 14px; }
.admin-dash-shell .admin-card-header p { color: var(--admin-muted); font-size: 11px; }
.admin-dash-shell .admin-card-divider { background: var(--admin-line-soft); }

.admin-dash-shell .admin-rooms-table-wrap,
.admin-dash-shell .admin-users-table-wrap,
.admin-dash-shell .planning-review-scroll,
.admin-dash-shell .planning-room-map { border-color: var(--admin-line); border-radius: 10px; }

.admin-dash-shell .admin-rooms-table th,
.admin-dash-shell .admin-users-table th,
.admin-dash-shell .routine-schedule-table th,
.admin-dash-shell .planning-table th,
.admin-dash-shell .planning-room-table th { background: #f7f9fa; color: #7a878e; border-bottom-color: var(--admin-line); }

.admin-dash-shell .admin-rooms-table td,
.admin-dash-shell .admin-users-table td,
.admin-dash-shell .routine-schedule-table td,
.admin-dash-shell .planning-table td,
.admin-dash-shell .planning-room-table td { color: #526169; border-bottom-color: var(--admin-line-soft); }

.admin-dash-shell .admin-rooms-table tr:hover td,
.admin-dash-shell .admin-users-table tr:hover td,
.admin-dash-shell .planning-table tbody tr:hover td,
.admin-dash-shell .planning-room-table tbody tr:hover td { background: #fbfdfd; }

.admin-dash-shell .admin-overview-heading h2 { color: var(--admin-ink); font-size: 21px; }
.admin-dash-shell .admin-overview-heading p { color: var(--admin-muted); }
.admin-dash-shell .admin-overview-stat, .admin-dash-shell .admin-overview-card { border-color: var(--admin-line); box-shadow: 0 1px 2px rgba(31,45,52,.025); }
.admin-dash-shell .admin-overview-stat-icon { background: #ecfafb; color: #197388; }
.admin-dash-shell .admin-overview-stat-icon.is-green { background: #edf9f2; color: #2f9665; }
.admin-dash-shell .admin-overview-stat-icon.is-blue { background: #edf6fc; color: #3d80b4; }
.admin-dash-shell .admin-overview-stat-icon.is-purple { background: #f4f0fb; color: #8369b3; }
.admin-dash-shell .admin-overview-note { background: #fcfdfd; }

@media (max-width: 900px) {
  .admin-dash-shell .admin-content { margin-left: 0; }
  .admin-dash-shell .admin-content .dash-main { padding: 20px 16px 42px; }
}

@media (max-width: 620px) {
  .admin-dash-shell .admin-content .dash-main { padding: 18px 12px 36px; }
}

/* Final cascade for the settings safety panel. */
.admin-dash-shell .admin-content .panel-body.admin-settings-body { padding: 22px !important; }
.admin-dash-shell .admin-content .admin-settings-backup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
  gap: 28px;
  box-sizing: border-box;
}
.admin-dash-shell .admin-content .admin-settings-backup h3,
.admin-dash-shell .admin-content .admin-settings-danger h3 { font-size: 15px !important; line-height: 1.25; }
.admin-dash-shell .admin-content .admin-settings-backup p,
.admin-dash-shell .admin-content .admin-settings-danger p { font-size: 12px !important; line-height: 1.5; }
.admin-dash-shell .admin-content .admin-settings-backup-actions { width: auto; min-width: 0; }
.admin-dash-shell .admin-content .admin-settings-restore .admin-restore-file-name,
.admin-dash-shell .admin-content .admin-settings-restore small + small {
  display: block;
  margin-top: 3px;
}
.admin-dash-shell .admin-content .admin-settings-restore .admin-restore-file-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--admin-signal-ink, #126579);
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .admin-dash-shell .admin-content .admin-settings-backup { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .admin-dash-shell .admin-content .panel-body.admin-settings-body { padding: 16px !important; }
  .admin-dash-shell .admin-content .admin-settings-restore-row { align-items: stretch; flex-direction: column; }
  .admin-dash-shell .admin-content .admin-settings-restore-row input[type=file],
  .admin-dash-shell .admin-content .admin-settings-restore-row .btn { width: 100%; }
}

/* Section plan: filter bar */
.planning-sections-count { font-size: 12px; white-space: nowrap; padding-top: 4px; }
.planning-sections-filters { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.planning-sections-filters .planning-cluster-course-search { flex: 0 1 380px; max-width: 460px; min-width: 220px; margin: 0; }
.planning-sections-status { display: grid; gap: 4px; flex: 0 0 190px; color: var(--muted,#6f7674); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.planning-sections-status .select-input { width: 100%; height: 36px; min-width: 0; padding: 0 28px 0 10px; border-radius: 9px; font-size: 12px; text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { .planning-sections-filters .planning-cluster-course-search, .planning-sections-status { flex: 1 1 100%; max-width: none; } }
.planning-sections-filters .planning-sections-status:first-of-type { flex: 0 0 230px; }
/* Section plan: add/edit modal */
.planning-section-modal { width: min(660px, 94vw); }
.planning-section-modal .admin-modal-body { max-height: calc(100vh - 220px); overflow-y: auto; }
.psf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.psf-grid .psf-wide { grid-column: 1 / -1; }
.psf-grid input, .psf-grid select { width: 100%; }
.planning-section-error { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: #fdecea; color: #b42318; font-size: 12px; }
@media (max-width: 560px) { .psf-grid { grid-template-columns: 1fr; } }
/* Planning pages: mobile */
@media (max-width: 720px) {
  .planning-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .planning-toolbar-actions, .planning-toolbar .routine-table-filters { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .planning-toolbar-actions > .btn, .planning-toolbar-actions > label.btn { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; white-space: nowrap; }
  .planning-section-heading { flex-wrap: wrap; }
  .planning-allocation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .planning-sections-filters { flex-direction: column; align-items: stretch; }
  .planning-sections-filters .planning-cluster-course-search, .planning-sections-filters .planning-sections-status, .planning-sections-filters .planning-sections-status:first-of-type { flex: 1 1 auto; max-width: none; width: 100%; min-width: 0; }
  .planning-sections-table th:nth-child(4), .planning-sections-table td:nth-child(4),
  .planning-sections-table th:nth-child(7), .planning-sections-table td:nth-child(7),
  .planning-sections-table th:nth-child(8), .planning-sections-table td:nth-child(8) { display: none; }
  .planning-sections-table th, .planning-sections-table td { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
  .planning-section-modal { width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; }
  .planning-section-modal .admin-modal-body { max-height: calc(100vh - 170px); }
}
@media (max-width: 480px) {
  .admin-topbar .admin-breadcrumb { display: none; }
}
@media (max-width: 640px) {
  .planning-sections-filters { flex-direction: row; flex-wrap: wrap; }
  .planning-sections-filters .planning-cluster-course-search { flex: 1 1 100%; }
  .planning-sections-filters .planning-sections-status, .planning-sections-filters .planning-sections-status:first-of-type { flex: 1 1 calc(50% - 6px); width: auto; }
}

/* Mobile navigation drawer (admin + user): full-size labels, scrollable, above content */
@media (max-width: 900px) {
  .admin-dash-shell .admin-sidebar, .user-dash-shell .user-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(290px, 86vw); flex: 0 0 auto; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 20px 14px 16px; }
  .mobile-sidebar-backdrop { z-index: 39; }
  .admin-sidebar-toggle, .user-sidebar-toggle { display: none; }
  .admin-dash-shell .admin-content, .user-dash-shell .user-content { margin-left: 0; width: 100%; min-width: 0; }
  body.mobile-nav-lock { overflow: hidden; }
}

/* Section plan: bulk upload preview */
.planning-section-bulk-modal { width: min(920px, 96vw); }
.planning-section-bulk-modal .admin-modal-body { max-height: calc(100vh - 200px); overflow-y: auto; }
.psb-progress { position: relative; display: flex; height: 12px; margin: 6px 0 10px; border-radius: 999px; background: #ece9e2; overflow: hidden; }
.psb-progress .psb-ok { background: #2e8b78; transition: width .35s ease; }
.psb-progress .psb-fail { background: #d64545; transition: width .35s ease; }
.psb-indeterminate span { position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: 999px; background: #2e8b78; animation: psb-slide 1.1s ease-in-out infinite; }
@keyframes psb-slide { 0% { left: -35%; } 100% { left: 100%; } }
.psb-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12px; }
.psb-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.psb-chip-ok { background: var(--green-bg, #e8f5e9); color: var(--green-text, #176b3a); }
.psb-chip-fail { background: var(--red-bg, #fdecea); color: var(--red-text, #b3261e); }
.psb-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; color: var(--muted, #6f7674); cursor: pointer; }
.psb-table { max-height: 46vh; overflow: auto; }
.psb-table thead th { position: sticky; top: 0; z-index: 1; }
.psb-row-fail td { background: #fff6f5; }
.psb-table td.bulk-row-error { color: #b3261e; min-width: 220px; white-space: normal; }
.psb-table td.bulk-row-ok { color: #176b3a; font-weight: 600; }
@media (max-width: 640px) { .planning-section-bulk-modal { width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; } .planning-section-bulk-modal .admin-modal-body { max-height: calc(100vh - 170px); } }
/* Bulk preview: fixes for global input/label styles */
.psb-progress { height: 12px; min-height: 12px; width: 100%; }
.psb-progress > span { display: block; height: 100%; flex: none; }
.psb-indeterminate > span { height: 100%; }
.psb-toggle { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; width: auto; margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--ink-soft, #44504d); cursor: pointer; }
.psb-toggle input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; min-width: 16px; margin: 0; padding: 0; accent-color: var(--accent, #2e8b78); }
.toast.toast-success { background: #1f6f5c; color: #fff; border: 1px solid rgba(255,255,255,.14); }
/* Time not matching system time slots */
.planning-time-bad { color: #b3261e !important; font-weight: 700; background: #fdecea; white-space: nowrap; }
.planning-time-bad-note { color: #b3261e; font-weight: 650; }
/* Conflicts page */
.pc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.pc-card { display: grid; gap: 4px; padding: 14px 16px; text-align: left; border: 1px solid var(--border, #e6e2da); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.pc-card span { font-size: 12px; font-weight: 650; color: var(--ink, #122b2a); }
.pc-card strong { font-size: 26px; line-height: 1.1; }
.pc-card small { font-size: 11px; color: var(--muted, #6f7674); }
.pc-card-bad strong { color: #b3261e; }
.pc-card-ok strong { color: #176b3a; }
.pc-card.is-active { border-color: var(--accent, #2e8b78); box-shadow: 0 0 0 3px var(--accent-tint, #e3f3ef); }
.pc-filters { justify-content: flex-start; }
.pc-section { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.pc-section + .pc-section { border-top: 1px dashed var(--border, #e6e2da); }
.pc-section span { display: grid; gap: 1px; min-width: 0; }
.pc-section small { color: var(--muted, #6f7674); font-size: 11px; }
.pc-type { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; background: #fdecea; color: #b3261e; }
.pc-type-duplicate_section { background: #fff1de; color: #9a5b00; }
.pc-type-time_problem { background: #fdecea; color: #b3261e; }
.pc-type-room_rule { background: #ece8fb; color: #4b3aa6; }
.pc-message { min-width: 240px; white-space: normal; }
.pc-all-clear { color: #176b3a; }
@media (max-width: 900px) { .pc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pc-message { min-width: 180px; } .planning-conflicts-table th, .planning-conflicts-table td { padding-left: 8px; padding-right: 8px; } }
/* Conflicts: show the full reason, wrapped */
.planning-conflicts-table td.pc-message, .planning-conflicts-table th:last-child { min-width: 280px; max-width: none; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: normal; overflow-wrap: anywhere; line-height: 1.45; }
.planning-conflicts-table td { vertical-align: middle; }
.pc-suggest { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 7px 10px; border-radius: 8px; background: #eef7f4; color: #176b3a; font-size: 12px; }
.pc-type-slot_sharing { background: #fff1de; color: #9a5b00; }
.pc-cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
/* Allocation progress loader */
.planning-alloc-loader { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(25,28,27,.45); backdrop-filter: blur(3px); }
.pal-card { width: min(420px, 100%); padding: 26px 24px 20px; border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(20,30,28,.22); text-align: center; }
.pal-card h3 { margin: 12px 0 6px; font-size: 17px; color: var(--ink, #122b2a); }
.pal-card p { margin: 0 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted, #6f7674); }
.pal-card small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted, #6f7674); }
.pal-spinner { width: 34px; height: 34px; margin: 0 auto; border: 3px solid #dfeeea; border-top-color: #2e8b78; border-radius: 50%; animation: pal-spin .8s linear infinite; }
@keyframes pal-spin { to { transform: rotate(360deg); } }
.pal-fill { display: block; height: 100%; transition: width .25s linear; }
/* Weekly calendar */
.pcal-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.pcal-tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-muted, #f1efe9); }
.pcal-tab { height: 32px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #6f7674); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.pcal-tab.is-active { background: #fff; color: var(--ink, #122b2a); box-shadow: 0 1px 3px rgba(20,30,28,.12); }
.pcal-room-picker { display: flex; align-items: flex-end; gap: 8px; }
.pcal-room-picker label { display: grid; gap: 4px; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6f7674); }
.pcal-room-picker .select-input { min-width: 200px; height: 34px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.pcal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.pcal-summary > div { padding: 10px 14px; border: 1px solid var(--border, #e6e2da); border-radius: 10px; background: #fbfaf7; }
.pcal-summary span { display: block; font-size: 10.5px; color: var(--muted, #6f7674); }
.pcal-summary strong { display: block; margin-top: 2px; font-size: 14px; color: var(--ink, #122b2a); overflow-wrap: anywhere; }
.pcal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; font-size: 11.5px; color: var(--ink-soft, #44504d); }
.pcal-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.pcal-legend-item i { width: 12px; height: 12px; border: 1px solid; border-radius: 4px; }
.pcal-legend-clash { background: #fdecea; border-color: #d64545 !important; }
.pcal-grid { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pcal-grid th, .pcal-grid td { padding: 6px; border-bottom: 1px solid var(--border-faint, #ece9e3); border-right: 1px solid var(--border-faint, #ece9e3); vertical-align: top; }
.pcal-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-muted, #f7f5f0); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6f7674); text-align: center; }
.pcal-grid thead th:first-child, .pcal-time { width: 132px; text-align: left; }
.pcal-time { position: sticky; left: 0; z-index: 1; background: #fff; font-size: 11.5px; font-weight: 650; color: var(--ink-soft, #44504d); white-space: nowrap; }
.pcal-grid td { min-height: 64px; height: 64px; }
.pcal-closed { background: repeating-linear-gradient(45deg, #f4f2ec, #f4f2ec 6px, #efece5 6px, #efece5 12px); color: #a1a7a1; font-size: 11px; text-align: center; vertical-align: middle !important; }
.pcal-closed-head { color: #a1a7a1 !important; }
.pcal-clash { background: #fdecea; box-shadow: inset 0 0 0 1.5px #d64545; }
.pcal-block { display: grid; gap: 1px; width: 100%; margin: 0 0 4px; padding: 5px 7px; border: 1px solid; border-radius: 7px; font: inherit; text-align: left; cursor: pointer; }
.pcal-block:last-child { margin-bottom: 0; }
.pcal-block strong { font-size: 11.5px; }
.pcal-block small { font-size: 10px; opacity: .85; }
.pcal-unplaced { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; }
.pcal-unplaced small { width: 100%; color: var(--muted, #6f7674); }
.pcal-chip { padding: 3px 9px; border: 1px solid var(--border, #e6e2da); border-radius: 999px; background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
@media (max-width: 900px) { .pcal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pcal-controls { flex-direction: column; align-items: stretch; } .pcal-room-picker { width: 100%; } .pcal-room-picker label { flex: 1; } .pcal-room-picker .select-input { min-width: 0; width: 100%; } }
/* Weekly view: day header cells on white */
.pcal-grid thead th { background: #fff; }
.planning-publish-modal .psb-table td { white-space: normal; }
/* Allocation: why sections are unallocated */
.paf-panel { margin: 0 0 16px; }
.paf-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.paf-item { padding: 12px 14px; border: 1px solid #f3d3d0; border-left: 4px solid #d64545; border-radius: 10px; background: #fffaf9; }
.paf-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; font-size: 13px; }
.paf-head strong { color: #b3261e; }
.paf-meta { margin-top: 4px; font-size: 11.5px; color: var(--muted, #6f7674); }
.paf-hint { margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: #eef7f4; color: #176b3a; font-size: 12px; }
/* Routine upload preview */
.routine-preview-summary { margin: 14px 0 6px; }
.psb-chip-warn { background: #fff1de; color: #9a5b00; }
.routine-row-fail { background: #fff8f7; }
.routine-status { display: grid; gap: 3px; }
.routine-ok { font-size: 11px; font-weight: 700; color: #047857; }
.routine-bad { font-size: 11px; font-weight: 700; color: #be123c; }
.routine-warn { font-size: 10.5px; color: #9a5b00; }
.routine-suggest { font-size: 10.5px; color: #176b3a; }
.routine-preview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
/* Active trimester */
.pact { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border, #e6e2da); border-radius: 10px; background: #fbfaf7; }
.pact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pact-row span { display: block; font-size: 10.5px; color: var(--muted, #6f7674); }
.pact-row strong { display: block; margin-top: 2px; font-size: 14px; color: var(--ink, #122b2a); }
.pact-note { margin: 8px 0 0; font-size: 11.5px; }
/* Trimester management */
.tm-section { padding: 4px 0 8px; }
.tm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tm-head h3 { margin: 2px 0 4px; font-size: 17px; }
.tm-head p { margin: 0; max-width: 640px; font-size: 12.5px; color: var(--muted, #6f7674); }
.tm-error { color: #b3261e !important; }
.tm-current { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid #bfe3d9; border-radius: 12px; background: #f1faf7; margin-bottom: 14px; }
.tm-current-main { min-width: 240px; flex: 1; }
.tm-current-main h4 { margin: 8px 0 2px; font-size: 20px; color: var(--ink, #122b2a); }
.tm-current-main p { margin: 0; font-size: 13px; }
.tm-current-main small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted, #6f7674); }
.tm-progress { margin-top: 10px; max-width: 360px; }
.tm-badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #ece9e2; color: #5f6b67; }
.tm-badge-current { background: #2e8b78; color: #fff; }
.tm-group { margin-top: 14px; }
.tm-group-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6f7674); }
.tm-group-title span { padding: 1px 8px; border-radius: 999px; background: #ece9e2; font-size: 11px; }
.tm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border, #e6e2da); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.tm-row-main { display: grid; gap: 2px; min-width: 220px; flex: 1; }
.tm-row-main strong { font-size: 14px; color: var(--ink, #122b2a); }
.tm-row-main span { font-size: 12.5px; }
.tm-row-main small { font-size: 11.5px; color: var(--muted, #6f7674); }
.tm-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-empty { margin: 0; font-size: 12.5px; }
.tm-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; cursor: pointer; }
.tm-check input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; }
.tm-note { margin: 6px 0 0; font-size: 11.5px; }
.trimester-modal { width: min(520px, 94vw); }
@media (max-width: 640px) { .trimester-modal { width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; } .tm-row-actions .btn { flex: 1 1 auto; } }
/* Settings tabs */
.settings-tabs { display: flex; gap: 4px; margin: 4px 0 18px; padding: 0 0 0 2px; border-bottom: 1px solid var(--border, #e6e2da); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.settings-tab { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted, #6f7674); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.settings-tab:hover { color: var(--ink, #122b2a); }
.settings-tab.is-active { color: var(--accent-dark, #1f6f5c); border-bottom-color: var(--accent, #2e8b78); }
.settings-tab:focus-visible { outline: 2px solid var(--accent, #2e8b78); outline-offset: -2px; border-radius: 6px; }
/* Programs */
.program-chip { display: inline-flex; padding: 2px 9px; margin: 0 4px 3px 0; border-radius: 999px; background: #e6f2ee; color: #1f6f5c; font-size: 11px; font-weight: 650; white-space: nowrap; }
.program-modal, .course-programs-modal { width: min(520px, 94vw); }
.course-programs-modal { width: min(640px, 94vw); }
.program-error-list { margin: 8px 0 0; padding-left: 18px; max-height: 46vh; overflow: auto; font-size: 12.5px; line-height: 1.6; color: #b3261e; }
.pcp-group { margin-top: 12px; }
.pcp-group-title { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6f7674); }
.pcp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pcp-inline { max-height: 150px; overflow-y: auto; padding: 4px 0; }
.pcp-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--border, #e6e2da); border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; }
.pcp-item input { width: 15px; height: 15px; flex: 0 0 15px; margin: 0; }
.pcp-item span { display: grid; min-width: 0; }
.pcp-item small { color: var(--muted, #6f7674); font-size: 10.5px; }
.pcp-cell { white-space: normal; }
.pcp-edit { margin-left: 4px; padding: 0 6px; height: 22px; }
@media (max-width: 640px) { .program-modal, .course-programs-modal { width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; } }
.dept-tab-count { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #ece9e2; color: #5f6b67; font-size: 11px; font-weight: 700; }
.settings-tab.is-active .dept-tab-count { background: #dff0ea; color: #1f6f5c; }
/* Departments page */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; }
.adm-search { flex: 1 1 320px; max-width: 520px; margin: 0; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 12px; }
.adm-filter { display: grid; gap: 4px; min-width: 170px; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6f7674); }
.adm-filter .select-input { height: 34px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.adm-empty-row td { text-align: center; padding: 18px; color: var(--muted, #6f7674); }
.adm-badge-warn { background: #fff1de; color: #9a5b00; }
.adm-dept-name { display: flex; align-items: center; gap: 8px; }
.adm-expander { width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid var(--border, #e6e2da); border-radius: 6px; background: #fff; color: var(--muted, #6f7674); font-size: 16px; line-height: 1; cursor: pointer; transition: transform .15s ease; }
.adm-expander.is-open { transform: rotate(90deg); background: #eef7f4; color: #1f6f5c; }
.adm-dept-expand td { background: #fbfaf7; padding: 0 !important; }
.adm-expand { padding: 12px 16px 14px 48px; display: grid; gap: 10px; }
.adm-program-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.adm-program-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.adm-program-list small { color: var(--muted, #6f7674); }
.adm-expand-empty { margin: 0; font-size: 12.5px; }
.program-chip.is-inactive { background: #efede8; color: #8a918d; text-decoration: line-through; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: #cfd5d2; transition: background .15s ease; }
.switch-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,30,28,.3); transition: transform .15s ease; }
.switch input:checked + .switch-slider { background: #2e8b78; }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }
.switch input:focus-visible + .switch-slider { outline: 2px solid #2e8b78; outline-offset: 2px; }
@media (max-width: 640px) { .adm-expand { padding-left: 14px; } .adm-filter { flex: 1 1 100%; } }

.planning-sections-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 4px 2px; font-size: 12.5px; }
.planning-sections-pager > div { display: flex; align-items: center; gap: 10px; }
.planning-sections-pager[hidden] { display: none; }

/* ===== UI refresh: neutral workspace shell (sidebar, top bar, avatar menu, cards, tables) ===== */
:root {
  --ui-bg: #ffffff;
  --ui-side: #f6f6f3;
  --ui-line: #e7e7e2;
  --ui-line-strong: #d9d9d3;
  --ui-hover: #f1f1ed;
  --ui-ink: #1b1b19;
  --ui-text: #3a3a36;
  --ui-muted: #6e6e68;
  --ui-faint: #8d8d86;
}
.dash-shell, .user-content, .admin-content { background: var(--ui-bg); color: var(--ui-ink); }

/* Sidebar */
.admin-sidebar, .user-sidebar { background: var(--ui-side); border-right: 1px solid var(--ui-line); box-shadow: none; padding: 12px 10px 10px; }
.admin-sidebar-brand, .user-sidebar-brand { padding: 4px 8px 14px; }
.admin-sidebar-brand .brand-name, .user-sidebar-brand .brand-name { color: var(--ui-ink); font-size: 15px; font-weight: 650; }
.admin-sidebar-toggle, .user-sidebar-toggle { border-color: transparent; background: transparent; color: var(--ui-muted); }
.admin-sidebar-toggle:hover, .user-sidebar-toggle:hover { background: var(--ui-hover); color: var(--ui-ink); }
.admin-nav-group-label, .user-nav-group-label { margin: 18px 10px 6px; color: var(--ui-faint); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.admin-side-link, .user-side-link { min-height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; color: var(--ui-text); font-size: 13.5px; font-weight: 500; }
.admin-side-link:hover, .user-side-link:hover { background: var(--ui-hover); color: var(--ui-ink); }
.admin-side-link.active, .user-side-link.active { background: #fff; border-color: var(--ui-line); box-shadow: 0 1px 2px rgba(20,20,15,.05); color: var(--ui-ink); font-weight: 600; }
.admin-side-icon, .user-side-icon { width: 20px; height: 20px; color: var(--ui-muted); }
.admin-side-icon svg, .user-side-icon svg { display: block; }
.admin-side-link.active .admin-side-icon, .user-side-link.active .user-side-icon { color: var(--ui-ink); }
.admin-routine-chevron { color: var(--ui-faint); }
.admin-submenu { margin: 2px 0 6px 20px; padding-left: 12px; border-left: 1px solid var(--ui-line-strong); gap: 1px; }
.admin-sub-link { padding: 6px 10px; border-radius: 7px; color: var(--ui-muted); font-size: 12.5px; font-weight: 500; }
.admin-sub-link:hover { background: var(--ui-hover); color: var(--ui-ink); }
.admin-sub-link.active { background: #fff; color: var(--ui-ink); font-weight: 600; box-shadow: 0 0 0 1px var(--ui-line); }
.admin-sidebar-bottom, .user-sidebar-bottom { margin-top: auto; padding-top: 10px; border-top: 0; }
.ui-side-user { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px; border-radius: 10px; color: var(--ui-ink); text-decoration: none; }
.ui-side-user:hover { background: var(--ui-hover); }
.ui-side-user-text { display: grid; min-width: 0; line-height: 1.25; }
.ui-side-user-text strong { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ui-side-user-text small { color: var(--ui-muted); font-size: 11.5px; text-transform: capitalize; }
.admin-sidebar-foot { display: none; }
.admin-sidebar-collapsed .ui-side-user-text, .user-sidebar-collapsed .ui-side-user-text { display: none; }
.admin-sidebar-collapsed .ui-side-user, .user-sidebar-collapsed .ui-side-user { justify-content: center; padding-left: 0; padding-right: 0; }

/* Avatar */
.ui-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: #d6ece6; color: #1d5a4d; font-size: 12px; font-weight: 650; }
.ui-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ui-avatar-lg { width: 42px; height: 42px; font-size: 14px; }

/* Top bar */
.admin-topbar, .user-topbar { min-height: 56px; height: 56px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--ui-line); box-shadow: none; backdrop-filter: none; }
.admin-breadcrumb, .user-breadcrumb { gap: 8px; color: var(--ui-muted); font-size: 13.5px; }
.admin-breadcrumb b, .user-breadcrumb b { font-size: 0; }
.admin-breadcrumb b::before, .user-breadcrumb b::before { content: '/'; color: var(--ui-line-strong); font-size: 14px; font-weight: 400; }
.admin-breadcrumb strong, .user-breadcrumb strong { color: var(--ui-ink); font-weight: 600; }
.topbar-tools { margin-right: 10px; }
.global-search { width: 260px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--ui-line-strong); border-radius: 9px; background: #fff; color: var(--ui-muted); }
.global-search:focus-within { border-color: var(--ui-ink); box-shadow: 0 0 0 3px rgba(27,27,25,.08); }
.global-search input { font-size: 13px; color: var(--ui-ink); }
.global-search kbd { padding: 1px 6px; border: 1px solid var(--ui-line-strong); border-radius: 5px; background: var(--ui-side); color: var(--ui-muted); font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.quick-add-button { height: 34px; padding: 0 12px; border: 1px solid var(--ui-line-strong); border-radius: 9px; background: #fff; color: var(--ui-ink); font-size: 13px; font-weight: 550; }
.quick-add-button:hover { background: var(--ui-hover); color: var(--ui-ink); }
.term-chip { min-height: 30px; border: 1px solid var(--ui-line); border-radius: 999px; background: var(--ui-side); color: var(--ui-text); font-weight: 550; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; color: var(--ui-muted); }
.icon-btn:hover { background: var(--ui-hover); color: var(--ui-ink); }
.ui-avatar-button { display: inline-flex; padding: 2px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ui-avatar-button:hover, .ui-avatar-button[aria-expanded="true"] { background: var(--ui-hover); }
.ui-avatar-button .ui-avatar { width: 32px; height: 32px; }

/* Avatar menu */
.profile-dropdown.ui-menu { top: calc(100% + 8px); right: 0; width: 304px; padding: 0; border: 1px solid var(--ui-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgba(20,20,15,.14); overflow: hidden; }
.ui-menu-head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.ui-menu-name { color: var(--ui-ink); font-size: 14.5px; font-weight: 650; }
.ui-menu-email { max-width: 210px; overflow: hidden; margin-top: 1px; color: var(--ui-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ui-menu-role { display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 999px; background: var(--ui-side); color: var(--ui-muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; }
.ui-menu-group { padding: 6px; border-top: 1px solid var(--ui-line); }
.ui-menu-label { padding: 8px 10px 6px; color: var(--ui-faint); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.ui-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ui-ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.ui-menu-item svg { color: var(--ui-muted); }
.ui-menu-item:hover { background: var(--ui-hover); color: var(--ui-ink); }
.ui-theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 4px 4px; padding: 3px; border-radius: 10px; background: var(--ui-side); }
.ui-theme-option { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ui-muted); font: inherit; font-size: 13px; }
.ui-theme-option.is-active { background: #fff; border-color: var(--ui-line); box-shadow: 0 1px 2px rgba(20,20,15,.06); color: var(--ui-ink); font-weight: 600; }
.ui-theme-option:disabled { opacity: .55; cursor: not-allowed; }

/* Page area */
.admin-content .dash-main, .user-content .dash-main { max-width: 1320px; padding: 28px 28px 72px; }
.admin-content .dash-page-head, .user-content .dash-page-head { margin-bottom: 22px; }
.admin-content .dash-page-head h1, .user-content .dash-page-head h1, .dash-shell .dash-page-head h1 { color: var(--ui-ink); font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.admin-content .dash-page-head p, .user-content .dash-page-head p, .dash-shell .dash-page-head p { color: var(--ui-muted); font-size: 14px; }
.dash-shell .panel, .dash-shell .quick-card, .dash-shell .avail-panel, .dash-shell .summary-card, .dash-shell .planning-card { border: 1px solid var(--ui-line); border-radius: 12px; background: #fff; box-shadow: none; }
.dash-shell .panel:hover, .dash-shell .quick-card:hover { border-color: var(--ui-line-strong); box-shadow: none; }
.dash-shell .panel-head { border-bottom: 1px solid var(--ui-line); }
.dash-shell .panel-head h2, .dash-shell .panel-head h3 { color: var(--ui-ink); font-size: 15px; font-weight: 650; }
.admin-content .admin-card-header { padding: 4px 2px 14px; border-radius: 0; background: transparent; }
.admin-content .admin-card-header h2 { color: var(--ui-ink); font-size: 17px; font-weight: 650; }
.admin-content .admin-card-header p { color: var(--ui-muted); font-size: 13.5px; }
.admin-content .admin-card-divider { background: var(--ui-line); }
.admin-content .panel-body, .user-content .panel-body { padding: 20px; }

/* Stat row: one card with dividers */
.dash-shell .stat-grid { gap: 1px; overflow: hidden; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-line); }
.dash-shell .stat-card { border: 0; border-radius: 0; background: #fff; padding: 18px 22px; box-shadow: none; }
.dash-shell .stat-card:hover { border: 0; box-shadow: none; }
.dash-shell .stat-value { color: var(--ui-ink); font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.dash-shell .stat-label { color: var(--ui-muted); font-size: 13px; font-weight: 500; }

/* Tables */
.dash-shell .admin-rooms-table-wrap, .dash-shell .admin-users-table-wrap, .dash-shell .planning-review-scroll, .dash-shell .planning-room-map, .dash-shell .table-scroll { border: 1px solid var(--ui-line); border-radius: 12px; background: #fff; }
.dash-shell .admin-rooms-table th, .dash-shell .admin-users-table th, .dash-shell .routine-schedule-table th, .dash-shell .planning-table th, .dash-shell .planning-room-table th, .dash-shell table.bookings-table th, .dash-shell .data-table th { background: #fff; border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 12.5px; font-weight: 550; letter-spacing: 0; text-transform: none; }
.dash-shell .admin-rooms-table td, .dash-shell .admin-users-table td, .dash-shell .routine-schedule-table td, .dash-shell .planning-table td, .dash-shell .planning-room-table td, .dash-shell table.bookings-table td, .dash-shell .data-table td { border-color: #f0f0ec; color: var(--ui-ink); font-size: 13.5px; }
.dash-shell .admin-rooms-table tr:hover td, .dash-shell .admin-users-table tr:hover td, .dash-shell .planning-table tbody tr:hover td, .dash-shell .planning-room-table tbody tr:hover td, .dash-shell .bookings-table tr:hover td, .dash-shell .data-table tbody tr:hover td { background: #fafaf8; }

/* Segmented filter chips */
.dash-shell .chip-row { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-side); }
.dash-shell .chip-row .filter-chip { height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ui-muted); font-size: 13px; font-weight: 500; }
.dash-shell .chip-row .filter-chip:hover { color: var(--ui-ink); }
.dash-shell .chip-row .filter-chip.active { background: #fff; border-color: var(--ui-line); box-shadow: 0 1px 2px rgba(20,20,15,.06); color: var(--ui-ink); font-weight: 600; }

/* Buttons and inputs */
.dash-shell .btn { min-height: 34px; padding-inline: 14px; border-radius: 8px; font-size: 13.5px; font-weight: 550; letter-spacing: 0; }
.dash-shell .btn-sm { min-height: 30px; height: 30px; padding-inline: 11px; font-size: 13px; }
.dash-shell .btn-md { min-height: 36px; }
.dash-shell .btn-secondary, .dash-shell .btn-ghost { border-color: var(--ui-line-strong); background: #fff; color: var(--ui-ink); }
.dash-shell .btn-secondary:hover:not(:disabled), .dash-shell .btn-ghost:hover:not(:disabled) { border-color: var(--ui-line-strong); background: var(--ui-hover); }
.dash-shell .btn-primary { box-shadow: none; }
.dash-shell .select-input, .dash-shell .admin-modal input, .dash-shell .admin-modal select { border-color: var(--ui-line-strong); border-radius: 8px; }
.dash-shell .select-input { height: 34px; }
.dash-shell .admin-modal { border-radius: 14px; }
.dash-shell .tag-pill, .dash-shell .term-chip { border-radius: 999px; }

@media (max-width: 900px) {
  .global-search { width: 150px; }
  .global-search kbd { display: none; }
  .admin-topbar, .user-topbar { padding: 0 12px; }
  .admin-content .dash-main, .user-content .dash-main { padding: 20px 14px 56px; }
  .profile-dropdown.ui-menu { width: min(304px, calc(100vw - 24px)); }
}

/* ===== Landing page redesign ===== */
.lp { min-height: 100vh; background: #fff; color: var(--ui-ink, #1b1b19); background-image: radial-gradient(900px 420px at 85% -10%, rgba(80, 160, 140, .10), transparent 70%), radial-gradient(700px 360px at -5% 20%, rgba(120, 130, 150, .08), transparent 70%); }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 22px 28px 0; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.lp-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.lp-nav { display: flex; align-items: center; gap: 6px; }
.lp-nav a { padding: 7px 12px; border-radius: 8px; color: #52524d; font-size: 13.5px; font-weight: 500; text-decoration: none; }
.lp-nav a:hover { background: #f1f1ed; color: #1b1b19; }
.lp-nav .btn { margin-left: 6px; }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 400px); align-items: center; gap: 72px; max-width: 1180px; margin: 0 auto; padding: 72px 28px 80px; }
.lp-eyebrow { display: inline-block; margin-bottom: 14px; color: #5b6f68; font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.lp-copy h1 { margin: 0 0 18px; max-width: 560px; font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.lp-copy > p { max-width: 500px; margin: 0 0 28px; color: #5f5f59; font-size: 16.5px; line-height: 1.6; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.lp-features { display: grid; gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; }
.lp-features li { display: flex; align-items: flex-start; gap: 14px; }
.lp-feature-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #e7e7e2; border-radius: 10px; background: #fff; color: #1d5a4d; }
.lp-features strong { display: block; font-size: 14.5px; font-weight: 600; }
.lp-features span:not(.lp-feature-icon) { display: block; margin-top: 2px; color: #6e6e68; font-size: 13.5px; line-height: 1.45; }

.lp-login.login-card { flex: none; width: 100%; margin: 0; padding: 30px; border: 1px solid #e7e7e2; border-radius: 16px; background: #fff; box-shadow: 0 20px 48px -20px rgba(20, 30, 25, .22); }
.lp-login h2 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.lp-login > p { margin: 0 0 22px; color: #6e6e68; font-size: 14px; }
.lp-login .field label { font-size: 12.5px; font-weight: 600; color: #3a3a36; }
.lp-login .field input { height: 40px; border: 1px solid #d9d9d3; border-radius: 9px; background: #fff; font-size: 14px; }
.lp-login .field input:focus { border-color: #1b1b19; outline: 0; box-shadow: 0 0 0 3px rgba(27, 27, 25, .08); }
.lp-login .btn-primary { height: 42px; margin-top: 6px; border-radius: 9px; font-size: 14px; }
.lp-login-note { margin-top: 14px; color: #8d8d86; font-size: 12px; text-align: center; }

.lp-section { max-width: 1180px; margin: 0 auto; padding: 56px 28px; border-top: 1px solid #efefea; }
.lp-section-head { margin-bottom: 26px; }
.lp-section-head h2 { margin: 0 0 6px; font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
.lp-section-head p { margin: 0; color: #6e6e68; font-size: 14.5px; }
.lp-section .type-card { border: 1px solid #e7e7e2; border-radius: 14px; box-shadow: none; }
.lp-section .type-card:hover { border-color: #d9d9d3; box-shadow: 0 10px 24px -14px rgba(20, 30, 25, .25); }
.lp-section .type-card-photo { height: 120px; background: #f6f6f3; border-bottom: 1px solid #efefea; }
.lp-section .avail-panel { border: 1px solid #e7e7e2; border-radius: 14px; box-shadow: none; }
.lp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 22px 28px 34px; border-top: 1px solid #efefea; color: #8d8d86; font-size: 13px; }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 20px 52px; }
  .lp-copy h1 { font-size: 34px; }
  .lp-top { padding: 16px 20px 0; }
  .lp-nav a { display: none; }
  .lp-section, .lp-footer { padding-left: 20px; padding-right: 20px; }
  .lp-login.login-card { padding: 24px; }
}

/* ===== Landing page: modern pass ===== */
.lp { position: relative; overflow-x: clip; background: #fbfbf9; background-image: radial-gradient(1000px 500px at 80% -12%, rgba(64, 160, 135, .16), transparent 70%), radial-gradient(800px 420px at -8% 8%, rgba(90, 110, 190, .10), transparent 70%), radial-gradient(circle at 1px 1px, rgba(27, 27, 25, .06) 1px, transparent 0); background-size: auto, auto, 22px 22px; }

/* Sticky glass top bar */
.lp-bar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(27, 27, 25, .07); background: rgba(251, 251, 249, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.lp-bar-inner { display: flex; align-items: center; gap: 28px; max-width: 1180px; height: 62px; margin: 0 auto; padding: 0 28px; }
.lp-bar .lp-brand { margin-right: auto; }
.lp-bar .lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-bar .lp-nav a { padding: 7px 12px; border-radius: 8px; color: #52524d; font-size: 13.5px; font-weight: 500; text-decoration: none; }
.lp-bar .lp-nav a:hover { background: rgba(27, 27, 25, .06); color: #1b1b19; }
.lp-bar-cta .btn { height: 36px; padding-inline: 16px; border-radius: 999px; }
.lp-top { display: none; }

/* Hero */
.lp-hero { gap: 64px; padding: 84px 28px 56px; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px 6px 10px; border: 1px solid rgba(27, 27, 25, .1); border-radius: 999px; background: rgba(255, 255, 255, .8); color: #3a3a36; font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(20, 20, 15, .04); }
.lp-pill i { width: 8px; height: 8px; border-radius: 50%; background: #2e9a82; box-shadow: 0 0 0 4px rgba(46, 154, 130, .18); }
.lp-copy h1 { max-width: 620px; margin: 0 0 20px; font-size: 56px; font-weight: 750; line-height: 1.04; letter-spacing: -.04em; }
.lp-grad { background: linear-gradient(100deg, #1d6b59 0%, #2e9a82 45%, #4f7fd1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-copy > p { max-width: 520px; margin: 0 0 30px; color: #5f5f59; font-size: 17.5px; line-height: 1.6; }
.lp-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 8px; padding-top: 24px; border-top: 1px solid rgba(27, 27, 25, .08); }
.lp-stats strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.lp-stats span { color: #6e6e68; font-size: 13px; }
.lp-actions { margin-bottom: 26px; }

/* Sign-in card */
.lp-login.login-card { position: relative; padding: 32px; border: 1px solid rgba(27, 27, 25, .09); border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -28px rgba(20, 40, 35, .35), 0 8px 20px -12px rgba(20, 40, 35, .12); }
.lp-login.login-card::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: 21px; background: linear-gradient(140deg, rgba(46, 154, 130, .45), rgba(79, 127, 209, .25) 50%, transparent 75%); filter: blur(18px); opacity: .55; }
.lp-login h2 { font-size: 24px; font-weight: 700; }
.lp-login .field input { height: 44px; border-radius: 10px; }
.lp-login .btn-primary { height: 46px; border-radius: 11px; background: #17332d; font-size: 14.5px; font-weight: 600; box-shadow: 0 10px 20px -10px rgba(23, 51, 45, .6); }
.lp-login .btn-primary:hover:not(:disabled) { background: #0f241f; }

/* Feature cards */
.lp-features-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 28px 64px; }
.lp-features-wrap .lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.lp-feature { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid rgba(27, 27, 25, .08); border-radius: 16px; background: rgba(255, 255, 255, .75); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lp-feature:hover { transform: translateY(-2px); border-color: rgba(27, 27, 25, .14); box-shadow: 0 14px 30px -18px rgba(20, 40, 35, .3); }
.lp-feature .lp-feature-icon { width: 42px; height: 42px; margin-bottom: 8px; border: 0; border-radius: 12px; background: linear-gradient(140deg, #e3f3ee, #e6ecfa); color: #1d5a4d; }
.lp-feature strong { font-size: 15.5px; font-weight: 650; }
.lp-feature span:not(.lp-feature-icon) { color: #6e6e68; font-size: 13.5px; line-height: 1.5; }

/* Sections */
.lp-section { border-top: 1px solid rgba(27, 27, 25, .07); }
.lp-eyebrow { color: #2a7f6b; }
.lp-section .type-card { background: rgba(255, 255, 255, .85); border-radius: 16px; }

@media (max-width: 900px) {
  .lp-bar-inner { height: 56px; gap: 12px; padding: 0 16px; }
  .lp-bar .lp-nav { display: none; }
  .lp-hero { padding: 44px 20px 36px; }
  .lp-copy h1 { font-size: 38px; }
  .lp-copy > p { font-size: 16px; }
  .lp-features-wrap { padding: 0 20px 44px; }
  .lp-features-wrap .lp-features { grid-template-columns: 1fr; }
  .lp-stats { gap: 24px; }
}

.lp-login.login-card { isolation: isolate; }

/* Landing demo video */
.lp-demo .lp-section-head { text-align: center; }
.lp-video { max-width: 960px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(27, 27, 25, .1); border-radius: 18px; background: #0f1a17; box-shadow: 0 30px 60px -30px rgba(20, 40, 35, .45); }
.lp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f1a17; }

/* ===== Sidebar brand + breadcrumb + page title fixes ===== */
.dash-shell .user-sidebar-brand, .dash-shell .admin-sidebar-brand { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px 14px; border-bottom: 1px solid var(--ui-line); margin-bottom: 4px; }
.dash-shell .user-sidebar-brand > .brand-mark, .dash-shell .admin-sidebar-brand > .brand-mark,
.dash-shell.user-dash-shell:not(.user-sidebar-collapsed) .user-sidebar-brand > .brand-mark,
.dash-shell.admin-dash-shell:not(.admin-sidebar-collapsed) .admin-sidebar-brand > .brand-mark { display: inline-flex !important; flex: 0 0 auto; width: 32px; height: 32px; padding: 3px; border: 1px solid var(--ui-line); border-radius: 9px; background: #fff url('../images/uiu_room_booking_favicon_fixed.png') center / contain no-repeat !important; cursor: pointer; }
.dash-shell .user-sidebar-brand > .brand-mark svg, .dash-shell .admin-sidebar-brand > .brand-mark svg { display: none; }
.dash-shell .user-sidebar-brand > .brand-name, .dash-shell .admin-sidebar-brand > .brand-name { display: block; width: auto; height: auto; overflow: visible; background: none; color: var(--ui-ink); font-size: 16px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; cursor: pointer; }
.dash-shell.user-sidebar-collapsed .user-sidebar-brand > .brand-name, .dash-shell.admin-sidebar-collapsed .admin-sidebar-brand > .brand-name { display: none; }
.dash-shell.user-sidebar-collapsed .user-sidebar-brand, .dash-shell.admin-sidebar-collapsed .admin-sidebar-brand { flex-direction: column; gap: 8px; padding-left: 0; padding-right: 0; }

/* Breadcrumb separator: one slash only */
.admin-breadcrumb b, .user-breadcrumb b { display: none; }
.admin-breadcrumb > span::after, .user-breadcrumb > span::after { content: '/'; margin-left: 8px; color: var(--ui-line-strong); }

/* Page title size */
.dash-shell .dash-main > .dash-page-head h1 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; color: var(--ui-ink); }
.dash-shell .dash-main > .dash-page-head p { font-size: 14px; color: var(--ui-muted); }

/* ===== Profile page redesign ===== */
.dash-shell .profile-page { max-width: 1120px; margin: 0 auto; padding: 0; background: transparent; }
.dash-shell .profile-shell { display: grid; gap: 20px; max-width: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.dash-shell .profile-hero { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border: 1px solid var(--ui-line); border-radius: 14px; background: #fff; }
.dash-shell .profile-hero-avatar { width: 76px; height: 76px; flex-basis: 76px; border: 1px solid var(--ui-line); background: #d6ece6; color: #1d5a4d; font-size: 26px; font-weight: 650; }
.dash-shell .profile-name-row { gap: 10px; }
.dash-shell .profile-name-row h1 { color: var(--ui-ink); font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.dash-shell .profile-role-badge { padding: 3px 10px; border: 1px solid var(--ui-line); background: var(--ui-side); color: var(--ui-text); font-size: 11.5px; font-weight: 600; }
.dash-shell .profile-hero-identity > p { margin: 6px 0 8px; color: var(--ui-muted); font-size: 14px; }
.dash-shell .profile-meta { gap: 8px; color: var(--ui-faint); font-size: 12.5px; }
.dash-shell .profile-meta i { background: var(--ui-line-strong); }
.dash-shell .profile-active-dot { background: #2e9a82; box-shadow: 0 0 0 3px rgba(46, 154, 130, .18); }
.dash-shell .profile-source-banner { margin: 0; padding: 10px 14px; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-side); color: var(--ui-text); font-size: 13px; }
.dash-shell .profile-source-ok { background: #eef7f4; border-color: #cfe6df; color: #1d5a4d; }
.dash-shell .profile-cards-grid { gap: 20px; padding: 0; align-items: start; }
.dash-shell .profile-side-stack { gap: 20px; }
.dash-shell .profile-page-card.profile-info-card, .dash-shell .profile-page-card.profile-photo-card { border: 1px solid var(--ui-line); border-radius: 14px; background: #fff; box-shadow: none; }
.dash-shell .profile-info-card-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--ui-line); }
.dash-shell .profile-info-card-head h2 { color: var(--ui-ink); font-size: 16px; font-weight: 650; }
.dash-shell .profile-info-card-head p { color: var(--ui-muted); font-size: 13px; }
.dash-shell .profile-edit-label { padding: 2px 9px; border-radius: 999px; background: var(--ui-side); color: var(--ui-muted); font-size: 11.5px; font-weight: 600; }
.dash-shell .profile-info-card .profile-page-form { padding: 20px; }
.dash-shell .profile-info-card .profile-page-grid { gap: 16px; }
.dash-shell .profile-info-card .field label { margin-bottom: 6px; color: var(--ui-text); font-size: 12.5px; font-weight: 600; }
.dash-shell .profile-info-card .field input, .dash-shell .profile-info-card .field select { min-height: 40px; border: 1px solid var(--ui-line-strong); border-radius: 9px; background: #fff; font-size: 14px; }
.dash-shell .profile-info-card .field input:focus, .dash-shell .profile-info-card .field select:focus { border-color: var(--ui-ink); outline: 0; box-shadow: 0 0 0 3px rgba(27, 27, 25, .08); }
.dash-shell .profile-page-actions { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ui-line); }
.dash-shell .profile-readonly-list { padding: 4px 20px 10px; }
.dash-shell .profile-readonly-list div { padding: 13px 0; border-bottom: 1px solid #f0f0ec; }
.dash-shell .profile-readonly-list span { color: var(--ui-muted); font-size: 13px; }
.dash-shell .profile-readonly-list strong { color: var(--ui-ink); font-size: 13.5px; font-weight: 600; }
.dash-shell .profile-photo-card { padding-bottom: 18px; }
.dash-shell .profile-photo-card .profile-photo-upload { margin: 18px 20px 0; padding: 12px; border: 1px dashed var(--ui-line-strong); border-radius: 12px; background: #fafaf8; }
.dash-shell .profile-photo-card .profile-photo-preview { width: 56px; height: 56px; flex-basis: 56px; background: #d6ece6; color: #1d5a4d; }
.dash-shell .profile-upload-button { min-height: 34px; padding: 0 14px; border: 1px solid var(--ui-line-strong); border-radius: 8px; background: #fff; color: var(--ui-ink); font-size: 13px; font-weight: 550; }
.dash-shell .profile-upload-button:hover { background: var(--ui-hover); border-color: var(--ui-line-strong); color: var(--ui-ink); }
.dash-shell .profile-upload-hint { margin-top: 6px; color: var(--ui-faint); font-size: 12px; }
.dash-shell .profile-photo-card .profile-image-url { width: calc(100% - 40px); margin: 14px 20px 0; height: 40px; border: 1px solid var(--ui-line-strong); border-radius: 9px; font-size: 13.5px; }
.dash-shell .profile-photo-card > small { margin: 8px 20px 0; color: var(--ui-faint); font-size: 12px; }
@media (max-width: 900px) {
  .dash-shell .profile-cards-grid { grid-template-columns: 1fr; }
  .dash-shell .profile-hero { padding: 18px; gap: 14px; }
  .dash-shell .profile-hero-avatar { width: 60px; height: 60px; flex-basis: 60px; font-size: 20px; }
  .dash-shell .profile-name-row h1 { font-size: 20px; }
}
@media (max-width: 560px) { .dash-shell .profile-page-grid { grid-template-columns: 1fr !important; } }

/* Profile page: full width */
.dash-shell .dash-main:has(> .profile-page) { max-width: none; }
.dash-shell .profile-page { max-width: none; width: 100%; margin: 0; }
.dash-shell .profile-cards-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.dash-shell .profile-info-card .field label { text-transform: none; letter-spacing: 0; }
.dash-shell .profile-info-card .profile-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dash-shell .profile-info-card .profile-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dash-shell .profile-cards-grid { grid-template-columns: 1fr; } }
.dash-shell .profile-main-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Profile page: hero with photo + facts, single form card */
.dash-shell .profile-hero { flex-wrap: wrap; gap: 24px; padding: 24px 28px; }
.dash-shell .profile-avatar-edit { position: relative; display: inline-block; flex: 0 0 auto; cursor: pointer; }
.dash-shell .profile-avatar-edit input { display: none; }
.dash-shell .profile-avatar-edit .profile-hero-avatar { width: 104px; height: 104px; flex-basis: 104px; font-size: 34px; transition: filter .15s ease; }
.dash-shell .profile-avatar-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 3px 10px; border: 1px solid var(--ui-line-strong); border-radius: 999px; background: #fff; color: var(--ui-ink); font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 3px rgba(20, 20, 15, .12); }
.dash-shell .profile-avatar-edit:hover .profile-hero-avatar { filter: brightness(.93); }
.dash-shell .profile-avatar-edit:hover .profile-avatar-badge { background: var(--ui-hover); }
.dash-shell .profile-avatar-edit.is-busy { cursor: progress; opacity: .8; }
.dash-shell .profile-hero-identity { flex: 1 1 260px; }
.dash-shell .profile-facts { display: flex; flex: 0 1 auto; gap: 0; margin: 0; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-side); overflow: hidden; }
.dash-shell .profile-facts > div { padding: 12px 20px; border-right: 1px solid var(--ui-line); min-width: 110px; }
.dash-shell .profile-facts > div:last-child { border-right: 0; }
.dash-shell .profile-facts dt { margin: 0 0 3px; color: var(--ui-muted); font-size: 12px; font-weight: 500; }
.dash-shell .profile-facts dd { margin: 0; color: var(--ui-ink); font-size: 14px; font-weight: 650; text-transform: capitalize; }
.dash-shell .profile-form-card { width: 100%; }
.dash-shell .profile-url-field { grid-column: 1 / -1; padding: 0; }
.dash-shell .profile-url-field summary { display: inline-block; color: var(--ui-muted); font-size: 13px; cursor: pointer; }
.dash-shell .profile-url-field summary:hover { color: var(--ui-ink); }
.dash-shell .profile-url-field input { display: block; width: 100%; max-width: 560px; margin-top: 10px; }
.dash-shell .profile-url-field small { display: block; margin-top: 6px; color: var(--ui-faint); font-size: 12px; }
.dash-shell .profile-page-actions { align-items: center; justify-content: space-between; gap: 16px; }
.dash-shell .profile-actions-hint { color: var(--ui-faint); font-size: 13px; }
@media (max-width: 900px) {
  .dash-shell .profile-hero { padding: 20px; }
  .dash-shell .profile-facts { width: 100%; }
  .dash-shell .profile-facts > div { flex: 1 1 0; min-width: 0; padding: 10px 14px; }
  .dash-shell .profile-actions-hint { display: none; }
  .dash-shell .profile-page-actions { justify-content: flex-end; }
}

/* Publish preview filters */
.psb-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 10px; }
.psb-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(27, 27, 25, .07); color: var(--ui-muted, #6e6e68); font-size: 11.5px; font-weight: 600; text-align: center; }
.chip-row .filter-chip.active .psb-count { background: var(--ui-side, #f6f6f3); color: var(--ui-ink, #1b1b19); }
.psb-search { display: flex; align-items: center; gap: 6px; width: 280px; max-width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--ui-line-strong, #d9d9d3); border-radius: 9px; background: #fff; color: var(--ui-muted, #6e6e68); }
.psb-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ui-ink, #1b1b19); font-size: 13px; }
.psb-search:focus-within { border-color: var(--ui-ink, #1b1b19); }

/* Class schedule conflicts */
.pc-type-rc-clash { background: #fdecea; color: #b3261e; }
.pc-type-rc-booking { background: #ece8fb; color: #4b3aa6; }
.pc-type-rc-offgrid { background: #fff1de; color: #9a5b00; }
.pc-type-rc-shared { background: #e6f1fb; color: #1f5f9a; }
.pc-card-warn { border-color: #cfe0f3; }

/* Availability page: planning-calendar look */
.pcal-page .avail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pcal-page .pcal-controls { align-items: center; }
.pcal-page .pcal-room-picker { align-items: center; flex-wrap: wrap; }
.pcal-page .pcal-room-picker label { display: grid; gap: 4px; }
.pcal-page .pcal-room-picker label span { font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-muted, #6e6e68); }
.pcal-page .pcal-tab { height: 32px; font-size: 13px; }
.pcal-page .pcal-summary > div { background: #fff; border-color: var(--ui-line, #e7e7e2); border-radius: 12px; }
.pcal-page .pcal-summary span { font-size: 12px; }
.pcal-page .pcal-summary strong { font-size: 16px; }
.pcal-page .pcal-legend { font-size: 12.5px; }
.pcal-page .pcal-scroll { border: 1px solid var(--ui-line, #e7e7e2); border-radius: 12px; background: #fff; }
.pcal-page .av-grid { min-width: 860px; }
.pcal-page .av-grid th small { display: block; margin-top: 2px; color: var(--ui-muted, #6e6e68); font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.pcal-page .av-grid th.av-today { color: var(--accent-deep, #1d5a4d); background: #eef7f4; }
.pcal-page .av-grid td { height: 58px; }
.pcal-page .av-cap { font-weight: 500; }
.av-free { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 1px dashed #c6cfcc; border-radius: 8px; background: #fff; color: var(--ui-muted, #6e6e68); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; opacity: .75; transition: opacity .12s ease, background .12s ease, border-color .12s ease; }
.av-free:hover { opacity: 1; background: #eef7f4; border-color: #2e9a82; color: #1d5a4d; }
.av-block { min-height: 44px; }

/* Availability UX: tools, now marker, skeleton, sticky header */
.av-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 12px; }
.av-search { display: flex; align-items: center; gap: 6px; width: 260px; max-width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--ui-line-strong, #d9d9d3); border-radius: 9px; background: #fff; color: var(--ui-muted, #6e6e68); }
.av-search:focus-within { border-color: var(--ui-ink, #1b1b19); box-shadow: 0 0 0 3px rgba(27, 27, 25, .08); }
.av-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ui-ink, #1b1b19); font-size: 13px; }
.av-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--ui-text, #3a3a36); font-size: 13px; cursor: pointer; }
.av-count { margin-left: auto; font-size: 12.5px; }
.av-free-count { color: #1d7a66; font-weight: 650; }
.av-none-count { color: #b3261e; font-weight: 650; }
.pcal-page .av-grid td.av-now { background: #f1f8f6; box-shadow: inset 0 0 0 1.5px rgba(46, 154, 130, .45); }
.pcal-page .av-grid .av-now-time { color: var(--accent-deep, #1d5a4d); }
.pcal-page .av-grid .av-now-time small, .pcal-page .av-grid th.av-today small { color: #1d7a66; font-weight: 650; }
.pcal-page .pcal-scroll { max-height: 72vh; overflow: auto; }
.pcal-page .av-grid thead th { position: sticky; top: 0; z-index: 3; }
.pcal-page .av-grid thead th.pcal-time { z-index: 4; }
.av-skeleton .pcal-summary > div { height: 58px; border-radius: 12px; background: linear-gradient(90deg, #f1f1ed 25%, #f8f8f5 50%, #f1f1ed 75%); background-size: 200% 100%; animation: av-shimmer 1.2s infinite linear; }
.av-skeleton-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.av-skeleton-grid span { height: 46px; border-radius: 8px; background: linear-gradient(90deg, #f1f1ed 25%, #f8f8f5 50%, #f1f1ed 75%); background-size: 200% 100%; animation: av-shimmer 1.2s infinite linear; }
@keyframes av-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .av-skeleton .pcal-summary > div, .av-skeleton-grid span { animation: none; } }
@media (max-width: 700px) { .av-count { margin-left: 0; width: 100%; } .av-search { width: 100%; } }

/* Availability room picker: one aligned row */
.pcal-page .pcal-room-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pcal-page .pcal-room-picker label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.pcal-page .pcal-room-picker label span { margin: 0; line-height: 1; }
.pcal-page .pcal-room-picker .select-input { min-width: 150px; height: 34px; padding-right: 30px; font-size: 13.5px; }
.pcal-page .pcal-room-picker .btn-sm { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 9px; }
.pcal-page .pcal-room-picker .btn-sm:disabled { opacity: .45; cursor: not-allowed; }
.pcal-page .pcal-room-picker .btn-sm svg { display: block; }

/* Availability: room name column wraps instead of overflowing */
.pcal-page .av-grid thead th.pcal-time, .pcal-page .av-grid tbody th.pcal-time { width: 210px; min-width: 210px; max-width: 210px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.3; }
.pcal-page .av-grid tbody th.pcal-time .av-cap { margin-top: 3px; }
.pcal-page .av-grid thead th { white-space: normal; line-height: 1.25; }
.pcal-page .av-cal thead th.pcal-time, .pcal-page .av-cal tbody th.pcal-time { width: 150px; min-width: 150px; max-width: 150px; }

/* Class details drawer */
.cd-hero { padding: 4px 2px 14px; }
.cd-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cd-hero h2 { margin: 0; color: var(--ui-ink, #1b1b19); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cd-hero p { margin: 4px 0 0; color: var(--ui-muted, #6e6e68); font-size: 14.5px; line-height: 1.4; }
.cd-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-badge { padding: 3px 10px; border-radius: 999px; background: #1b1b19; color: #fff; font-size: 11.5px; font-weight: 600; }
.cd-badge-soft { background: var(--ui-side, #f6f6f3); border: 1px solid var(--ui-line, #e7e7e2); color: var(--ui-text, #3a3a36); }
.cd-when { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #cfe6df; border-radius: 12px; background: #eef7f4; }
.cd-when-main strong { display: block; color: #174d41; font-size: 17px; font-weight: 700; }
.cd-when-main span { display: block; margin-top: 2px; color: #3f6f63; font-size: 13px; }
.cd-when-room { text-align: right; }
.cd-when-room span { display: block; color: #3f6f63; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.cd-when-room strong { display: block; margin-top: 2px; color: #174d41; font-size: 20px; font-weight: 700; }
.cd-note { margin-top: 10px; padding: 9px 12px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 10px; background: var(--ui-side, #f6f6f3); color: var(--ui-muted, #6e6e68); font-size: 12.5px; }
.cd-note strong { color: var(--ui-ink, #1b1b19); }
.cd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 16px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 12px; overflow: hidden; }
.cd-field { padding: 12px 14px; border-bottom: 1px solid var(--ui-line, #e7e7e2); }
.cd-field:nth-child(odd) { border-right: 1px solid var(--ui-line, #e7e7e2); }
.cd-field:nth-last-child(-n+2) { border-bottom: 0; }
.cd-field span { display: block; color: var(--ui-muted, #6e6e68); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cd-field strong { display: block; margin-top: 3px; color: var(--ui-ink, #1b1b19); font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 520px) { .cd-grid { grid-template-columns: 1fr; } .cd-field:nth-child(odd) { border-right: 0; } .cd-field:nth-last-child(2) { border-bottom: 1px solid var(--ui-line, #e7e7e2); } }

/* Add class schedule */
.ra-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.ra-card { padding: 20px; }
.ra-card h3 { margin: 0 0 14px; color: var(--ui-ink, #1b1b19); font-size: 16px; font-weight: 650; }
.ra-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ra-wide { grid-column: 1 / -1; }
.ra-field { display: grid; gap: 6px; align-content: start; }
.ra-field label { color: var(--ui-text, #3a3a36); font-size: 12.5px; font-weight: 600; }
.ra-field input, .ra-field select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--ui-line-strong, #d9d9d3); border-radius: 9px; background: #fff; color: var(--ui-ink, #1b1b19); font: inherit; font-size: 14px; }
.ra-field input:focus, .ra-field select:focus { border-color: var(--ui-ink, #1b1b19); outline: 0; box-shadow: 0 0 0 3px rgba(27, 27, 25, .08); }
.ra-field small { color: var(--ui-muted, #6e6e68); font-size: 12.5px; }
.ra-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ra-result { min-height: 220px; }
.ra-empty, .ra-done { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 36px 18px; text-align: center; }
.ra-empty-icon, .ra-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(140deg, #e3f3ee, #e6ecfa); color: #1d5a4d; }
.ra-empty h3, .ra-done h3 { margin: 4px 0 0; }
.ra-empty p, .ra-done p { max-width: 360px; margin: 0; color: var(--ui-muted, #6e6e68); font-size: 13.5px; line-height: 1.5; }
.ra-summary { display: grid; gap: 2px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #cfe6df; border-radius: 12px; background: #eef7f4; }
.ra-summary strong { color: #174d41; font-size: 15px; }
.ra-summary span { color: #3f6f63; font-size: 13px; }
.ra-warn { margin-top: 4px; color: #9a5b00; font-size: 12px; }
.ra-rooms { display: grid; gap: 8px; max-height: 360px; overflow: auto; padding: 2px; }
.ra-room { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 11px; background: #fff; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.ra-room:hover { border-color: var(--ui-line-strong, #d9d9d3); background: #fafaf8; }
.ra-room.is-selected { border-color: #2e9a82; background: #f1f8f6; box-shadow: 0 0 0 1px #2e9a82 inset; }
.ra-room input { accent-color: #2e9a82; }
.ra-room-main { display: grid; flex: 1; min-width: 0; }
.ra-room-main strong { display: flex; align-items: center; gap: 8px; color: var(--ui-ink, #1b1b19); font-size: 14.5px; }
.ra-room-main em { padding: 1px 8px; border-radius: 999px; background: #d6ece6; color: #1d5a4d; font-size: 11px; font-style: normal; font-weight: 650; }
.ra-room-main small, .ra-room-cap { color: var(--ui-muted, #6e6e68); font-size: 12.5px; }
.ra-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ui-line, #e7e7e2); }
.ra-none { padding: 18px; border: 1px dashed var(--ui-line-strong, #d9d9d3); border-radius: 12px; text-align: center; }
.ra-none strong { color: #b3261e; }
.ra-none p { margin: 6px 0 0; color: var(--ui-muted, #6e6e68); font-size: 13.5px; }
.ra-stale-note { display: none; margin-bottom: 10px; padding: 8px 12px; border-radius: 9px; background: #fff1de; color: #9a5b00; font-size: 12.5px; }
.ra-results.is-stale .ra-stale-note { display: block; }
.ra-results.is-stale .ra-rooms, .ra-results.is-stale .ra-footer { opacity: .45; pointer-events: none; }
@media (max-width: 960px) { .ra-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ra-form { grid-template-columns: 1fr; } }
.ra-booking-warn { margin-top: 2px; color: #9a5b00 !important; font-weight: 600; }
.ra-programs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; padding: 6px 10px; border: 1px dashed var(--ui-line-strong, #d9d9d3); border-radius: 9px; background: #fafaf8; font-size: 13px; }
.ra-chip { padding: 2px 10px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 999px; background: #fff; color: var(--ui-ink, #1b1b19); font-size: 12.5px; font-weight: 600; }

/* Add class schedule: no extra frame or padding around the page */
.admin-content .panel:has(> .ra-page) { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.ra-page.planning-module { padding: 0; }
.ra-page .planning-toolbar { padding-bottom: 14px; margin-bottom: 16px; }

.ra-relax { cursor: pointer; padding: 10px 12px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 10px; background: var(--ui-side, #f6f6f3); }
.ra-relax-row { display: flex; align-items: center; gap: 8px; }
.ra-relax-row input { width: 16px; height: 16px; accent-color: #2e9a82; }
.ra-relax small { margin-left: 24px; }
.ra-room-main small.ra-foreign { color: #9a5b00; font-weight: 600; }

.ra-relax-inline { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; color: var(--ui-text, #3a3a36); font-size: 13.5px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.ra-relax-inline input { width: 16px; height: 16px; accent-color: #2e9a82; }

/* Add class: dotted divider above the actions, Suggest button on the right */
.ra-actions-bar { justify-content: space-between; flex-wrap: nowrap; gap: 16px; margin-top: 4px; padding-top: 16px; border-top: 2px dotted var(--ui-line-strong, #d9d9d3); }
.ra-actions-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.ra-actions-bar > .btn { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 560px) { .ra-actions-bar { flex-wrap: wrap; } .ra-actions-bar > .btn { width: 100%; margin-left: 0; } }

/* Searchable course dropdown */
.ra-combo { position: relative; }
.ra-combo input { padding-left: 34px; padding-right: 30px; }
.ra-combo-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-52%); color: var(--ui-muted, #6e6e68); font-size: 17px; pointer-events: none; }
.ra-combo-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ui-muted, #6e6e68); font-size: 12px; pointer-events: none; }
.ra-combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 280px; overflow: auto; padding: 4px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 12px; background: #fff; box-shadow: 0 14px 32px rgba(20, 20, 15, .16); }
.ra-combo-list[hidden] { display: none; }
.ra-combo-opt { display: grid; width: 100%; gap: 1px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ui-ink, #1b1b19); font: inherit; text-align: left; cursor: pointer; }
.ra-combo-opt strong { font-size: 13.5px; font-weight: 650; }
.ra-combo-opt small { color: var(--ui-muted, #6e6e68); font-size: 12px; }
.ra-combo-opt:hover, .ra-combo-opt.is-active { background: var(--ui-hover, #f1f1ed); }
.ra-combo-opt.is-picked strong { color: #1d5a4d; }
.ra-combo-empty { padding: 10px 12px; color: var(--ui-muted, #6e6e68); font-size: 12.5px; }

/* Top bar: profile group always at the right edge; avatar falls back to the initial */
.admin-dash-shell .admin-topbar, .user-dash-shell .user-topbar { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.admin-dash-shell .dash-header-right, .user-dash-shell .dash-header-right { margin-left: auto; justify-self: auto; flex: 0 0 auto; }
.ui-avatar { position: relative; }
.ui-avatar-initial { position: relative; z-index: 0; }
.ui-avatar img { position: absolute; inset: 0; z-index: 1; }

.planning-row-actions { display: flex; gap: 6px; white-space: nowrap; }

/* Section plan table: compact rows */
.planning-sections-table th, .planning-sections-table td { padding: 6px 10px; font-size: 12.5px; line-height: 1.3; vertical-align: middle; }
.planning-sections-table th { white-space: nowrap; }
.planning-sections-table td { white-space: nowrap; }
.planning-sections-table .psec-course { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 360px; }
.planning-sections-table .psec-course strong { flex: 0 0 auto; }
.planning-sections-table .psec-course span { overflow: hidden; color: var(--ui-muted, #6e6e68); text-overflow: ellipsis; }
.planning-sections-table td small { display: none; }
.planning-sections-table .btn-sm { height: 26px; min-height: 26px; padding-inline: 9px; font-size: 12px; }
.planning-sections-table .planning-status { padding: 1px 8px; font-size: 11px; }

.planning-sections-table .psec-course, .planning-sections-table .psec-room { cursor: help; }
.planning-sections-table .psec-course { display: table-cell; max-width: none; }

.psec-rtype { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 650; letter-spacing: .02em; vertical-align: 1px; }
.psec-rtype-class { background: #e6f1fb; color: #1f5f9a; }
.psec-rtype-lab { background: #ece8fb; color: #4b3aa6; }

/* Section plan filter bar: search grows on the left, selects line up on the right */
.planning-sections-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 12px; margin: 4px 0 14px; padding: 0; }
.planning-sections-filters .planning-cluster-course-search { flex: 1 1 320px; min-width: 240px; max-width: none; height: 34px; margin: 0; padding: 0 12px; gap: 8px; border: 1px solid var(--ui-line-strong, #d9d9d3); border-radius: 9px; background: #fff; color: var(--ui-muted, #6e6e68); transition: border-color .12s ease, box-shadow .12s ease; }
.planning-sections-filters .planning-cluster-course-search span { font-size: 17px; line-height: 1; }
.planning-sections-filters .planning-cluster-course-search input { height: 100%; font-size: 13px; color: var(--ui-ink, #1b1b19); }
.planning-sections-filters .planning-cluster-course-search input::placeholder { color: var(--ui-faint, #8d8d86); }
.planning-sections-filters .planning-cluster-course-search:focus-within { border-color: var(--ui-ink, #1b1b19); box-shadow: 0 0 0 3px rgba(27, 27, 25, .08); }
.planning-sections-filters .planning-sections-status, .planning-sections-filters .planning-sections-status:first-of-type { flex: 0 0 170px; gap: 5px; font-size: 11px; letter-spacing: .05em; }
.planning-sections-filters .planning-sections-status .select-input { height: 34px; border-color: var(--ui-line-strong, #d9d9d3); border-radius: 9px; font-size: 13px; }
@media (max-width: 760px) {
  .planning-sections-filters .planning-cluster-course-search { flex: 1 1 100%; }
  .planning-sections-filters .planning-sections-status, .planning-sections-filters .planning-sections-status:first-of-type { flex: 1 1 calc(50% - 6px); }
}

.admin-user-dept { min-width: 190px; max-width: 260px; height: 34px; font-size: 12.5px; }

/* IT approvals: status badges, history, notifications bell, approvals page, settings */
.it-badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; vertical-align: 1px; }
.it-pending { background: #fff1de; color: #9a5b00; }
.it-ok { background: #e3f3ee; color: #1d6a57; }
.it-bad { background: #fdecea; color: #b3261e; }
.it-history { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.it-history li { padding: 8px 10px; border-left: 3px solid; border-radius: 6px; background: var(--ui-side, #f6f6f3); font-size: 12.5px; }
.it-history li.it-ok { border-color: #2e9a82; color: inherit; }
.it-history li.it-bad { border-color: #d64545; color: inherit; }
.it-history small { display: block; margin-top: 2px; color: var(--ui-muted, #6e6e68); }
.notif-menu { position: relative; }
.notif-button { position: relative; }
.notif-badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #d64545; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.profile-dropdown.notif-dropdown { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--ui-line, #e7e7e2); }
.notif-markall { border: 0; background: transparent; color: #1d6a57; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.notif-markall:disabled { color: var(--ui-faint, #8d8d86); cursor: default; }
.notif-list { max-height: 380px; overflow: auto; }
.notif-item { display: grid; gap: 2px; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid #f0f0ec; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.notif-item:hover { background: var(--ui-hover, #f1f1ed); }
.notif-item.is-unread { background: #f1f8f6; }
.notif-item strong { font-size: 13.5px; }
.notif-item span { color: var(--ui-text, #3a3a36); font-size: 12.5px; line-height: 1.4; }
.notif-item small { color: var(--ui-faint, #8d8d86); font-size: 11.5px; }
.notif-empty { padding: 22px 14px; color: var(--ui-muted, #6e6e68); font-size: 13px; text-align: center; }
.approvals-tabs { margin-bottom: 14px; }
.appr-list { display: grid; gap: 12px; }
.appr-card { padding: 16px 18px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 12px; background: #fff; }
.appr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.appr-top h3 { margin: 0; font-size: 16px; }
.appr-top p, .appr-meta { margin: 2px 0 0; color: var(--ui-muted, #6e6e68); font-size: 13px; }
.appr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.appr-grid span { display: block; color: var(--ui-muted, #6e6e68); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.appr-grid strong { display: block; margin-top: 2px; font-size: 13.5px; }
.appr-grid small { display: block; margin-top: 2px; color: var(--ui-muted, #6e6e68); font-size: 12px; }
.appr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ui-line-strong, #d9d9d3); }
.appr-note { flex: 1 1 220px; height: 34px; padding: 0 12px; border: 1px solid var(--ui-line-strong, #d9d9d3); border-radius: 9px; font: inherit; font-size: 13px; }
.itap-intro h3 { margin: 0 0 4px; font-size: 16px; }
.itap-intro p { max-width: 720px; margin: 0 0 16px; color: var(--ui-muted, #6e6e68); font-size: 13.5px; line-height: 1.5; }
.itap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.itap-level { padding: 14px; border: 1px solid var(--ui-line, #e7e7e2); border-radius: 12px; background: #fff; }
.itap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.itap-head h3 { margin: 0; font-size: 15px; }
.itap-head p { margin: 2px 0 0; color: var(--ui-muted, #6e6e68); font-size: 12.5px; }
.itap-total { color: var(--ui-muted, #6e6e68); font-size: 12.5px; white-space: nowrap; }
.itap-search { display: flex; align-items: center; gap: 6px; height: 34px; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--ui-line-strong, #d9d9d3); border-radius: 9px; color: var(--ui-muted, #6e6e68); }
.itap-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.itap-users { display: grid; gap: 2px; max-height: 320px; overflow: auto; }
.itap-user { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.itap-user:hover { background: var(--ui-hover, #f1f1ed); }
.itap-user[hidden] { display: none; }
.itap-user input { accent-color: #2e9a82; }
.itap-user strong { display: block; font-size: 13.5px; }
.itap-user small { display: block; color: var(--ui-muted, #6e6e68); font-size: 12px; }
.itap-actions { margin-top: 16px; }
@media (max-width: 900px) { .itap-grid, .appr-grid { grid-template-columns: 1fr; } }
