:root {
    color-scheme: light;
    --ink: #15223b;
    --muted: #475977;
    --soft: #edf3fc;
    --surface: #fff;
    --page: #f1f5fc;
    --border: #d6e0ef;
    --accent: #0956d5;
    --accent-dark: #143462;
    --sidebar: #102343;
    --radius: 16px;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #397adc; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -.052em; line-height: 1.1; font-weight: 720; }
h2 { font-size: 1.24rem; letter-spacing: -.029em; line-height: 1.25; }
h3 { font-size: 1.04rem; letter-spacing: -.015em; }
p { line-height: 1.5; }
small { font-size: .83rem; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.workspace { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; padding: 26px 15px 18px; background: var(--sidebar); color: #e8f1ea; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: #f2f8f2; font-size: 1.3rem; font-weight: 720; letter-spacing: -.055em; text-decoration: none; width: fit-content; line-height: 1.1; }
.sidebar > .brand { padding: 3px 8px; margin-bottom: 34px; }
.brand small { display: block; margin-top: 4px; color: #a8c9b8; font-size: .73rem; font-weight: 500; letter-spacing: .015em; white-space: nowrap; }
.brand-icon { width: 37px; height: 37px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 8px; background: #bce6c6; border-radius: 11px; flex: none; }
.brand-icon i { background: #1a5d42; border-radius: 2px; }
.brand-icon i:nth-child(2) { opacity: .54; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 7px 11px; border-radius: 9px; color: #bdd2c5; font-size: .9rem; font-weight: 560; text-decoration: none; }
.sidebar nav a:hover { background: #204236; color: white; }
.sidebar nav a.active { background: #28523f; color: #f1f9f2; box-shadow: inset 3px 0 #a6dcb0; }
.nav-icon { width: 22px; flex: none; font-size: 1.16rem; line-height: 1; text-align: center; color: #b7d6c3; }
.sidebar-footer { margin-top: auto; padding-top: 22px; }
.campus-link { display: flex; align-items: center; gap: 10px; padding: 11px; background: #1a3b31; border: 1px solid #325143; border-radius: 12px; color: #f2f8f4; text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.campus-link small { display: block; color: #b1c9ba; margin-top: 3px; }
.avatar { display: grid; place-items: center; background: #dcecd9; color: #1d563d; flex: none; width: 32px; height: 32px; border-radius: 50%; font-weight: 740; font-size: .85rem; }
.topbar { min-height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 8px clamp(16px, 3.1vw, 45px); border-bottom: 1px solid var(--border); background: #fbfcf9; }
.breadcrumb, .account-bar { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.breadcrumb strong, .account-name { color: var(--ink); font-weight: 650; }
.top-alert { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; text-decoration: none; color: #4b6657; }
.sign-out { padding: 4px 0 4px 8px; border: 0; background: none; color: var(--accent); font-size: .85rem; font-weight: 700; }
.main { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1600px; padding: 29px clamp(16px, 3.1vw, 45px) 44px; margin: 0 auto; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.page-heading p, .section-heading p { color: var(--muted); margin-top: 5px; }
.section-heading p { font-size: .88rem; }
.date-stamp { width: max-content; padding: 8px 12px; background: #fbfcff; border: 1px solid var(--border); border-radius: 9px; font-size: .85rem; color: #425a7c; white-space: nowrap; }

.hero { min-height: 227px; display: flex; align-items: center; padding: 25px clamp(20px, 4vw, 43px); isolation: isolate; border-radius: var(--radius); color: white; background: linear-gradient(90deg, #122c58 0%, #122c58ed 24%, #122c5880 46%, transparent 70%), #12294b url('../images/campus.png') center right / cover no-repeat; }
.hero > div { max-width: 460px; }
.hero-campus { display: inline-block; font-size: .81rem; color: #b8d5ff; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; overflow-wrap: anywhere; }
.hero h2 { margin-top: 7px; font-size: clamp(1.9rem, 3.5vw, 3.15rem); letter-spacing: -.06em; }
.hero p { margin: 6px 0 17px; color: #e4efff; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; font-size: .88rem; white-space: nowrap; line-height: 1.2; text-decoration: none; font-weight: 680; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: #0848b3; }
.button.secondary { background: #fff; color: #183b70; border-color: #cad8eb; }
.button.secondary:hover { background: #edf4ff; }
.button.light { background: #e4f0ff; color: #163665; }
.button.light:hover { background: #fff; }
.button.hero-secondary { background: #17396d; color: #f6faff; border-color: #739bd1; }
.button.hero-secondary:hover { background: #2358a3; }
.text-link { font-size: .88rem; color: var(--accent); font-weight: 680; white-space: nowrap; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric, .panel { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px #0d29130a; }
.metric { min-height: 128px; padding: 14px; }
.metric-top { display: flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 650; }
.metric-icon { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border-radius: 9px; font-size: 1.18rem; font-weight: 700; }
.metric-icon.green { background: #e3f2e7; color: #185c3d; }
.metric-icon.blue { background: #e9eef7; color: #325886; }
.metric-icon.amber { background: #fff2d9; color: #81501d; }
.metric-icon.rose { background: #f8e9e5; color: #8f453b; }
.metric > strong { display: block; font-size: 2rem; line-height: 1; margin-top: 11px; letter-spacing: -.055em; }
.metric > small { display: block; margin-top: 4px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.onboarding { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-color: #c3dac6; background: #f2f8f0; }
.onboarding p { margin-top: 4px; color: var(--muted); }
.empty { display: grid; min-height: 122px; place-content: center; text-align: center; gap: 6px; padding: 16px; color: var(--muted); }
.empty b { color: var(--ink); }
.empty span { font-size: .87rem; }
.pill { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 999px; background: #eef2ee; color: #4d6053; font-weight: 650; font-size: .77rem; line-height: 1.25; }
.pill.available, .pill.present, .pill.approved, .pill.completed { background: #e2f2e7; color: #20563b; }
.pill.occupied, .pill.scheduled, .pill.reserved { background: #e8eef8; color: #315782; }
.pill.delayed, .pill.verification_required, .pill.unconfirmed, .pill.pending, .pill.class_delayed, .pill.verify_not_started, .pill.late { background: #fff0d7; color: #784c16; }
.pill.maintenance, .pill.occupancy_overrun, .pill.teacher_absent, .pill.capacity_exceeded, .pill.absent, .pill.rejected { background: #f9e7e2; color: #843e33; }
.pill.inactive { color: #5b625d; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th { color: var(--muted); font-size: .82rem; font-weight: 670; background: #edf2fa; white-space: nowrap; }
td, th { padding: 10px 12px; border-bottom: 1px solid #e5edf8; }
td small, .list-item small, .schedule-time small { display: block; margin-top: 3px; }
tbody tr:last-child td { border-bottom: none; }

.stack { display: grid; gap: 14px; align-content: start; }
label { display: grid; gap: 5px; text-align: left; color: #304762; font-size: .88rem; font-weight: 650; min-width: 0; }
input, select { width: 100%; min-width: 0; min-height: 39px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid #c9d6e8; border-radius: 8px; font-size: .93rem; }
input::placeholder { color: #617491; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #506583 50%), linear-gradient(135deg, #506583 50%, transparent 50%); background-position: calc(100% - 14px) 53%, calc(100% - 9px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-grid, .filter-bar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); align-items: end; }
.section-heading + .form-grid, summary + .form-grid, summary + .stack { margin-top: 14px; }
.filter-bar { grid-template-columns: repeat(auto-fit, minmax(100px, max-content)); align-items: end; }
.filter-bar .text-link { padding: 10px 2px; }
.notice { padding: 11px 14px; border-radius: 10px; color: #244c39; border: 1px solid #c3dac6; background: #edf6ec; line-height: 1.4; }
.notice.error { background: #fff0ed; border-color: #e8bcb5; color: #74382d; }
.notice.success { color: #215338; }
.expandable > summary { font-weight: 720; }
details summary { color: #1c497e; font-size: .88rem; font-weight: 650; }
details + details { margin-top: 7px; }
.expandable > summary { font-size: 1.05rem; }
.room-grid, .setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.room-group > header { margin-bottom: 11px; }
.room-card .section-heading { align-items: start; }
.room-card .section-heading h3 { font-size: 1.38rem; }
.room-card .actions, .room-card details { margin-top: 11px; }
.facts { display: grid; grid-template-columns: minmax(90px, .9fr) 1fr; gap: 8px; align-items: center; margin: 15px 0; font-size: .87rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.list-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #e5edf8; }
.list-item:last-child { border: 0; }
.list-item p { color: var(--muted); margin-top: 4px; }
.setup-grid .panel > form { margin: 13px 0 8px; }
.setup-grid .button { justify-self: start; }
.compact { gap: 8px; }
.list-item.compact { font-size: .88rem; }
.schedule-row { display: grid; grid-template-columns: 85px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e5edf8; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-main p { margin-top: 3px; color: var(--muted); font-size: .91rem; }
.schedule-main details { margin-top: 7px; }
.row-actions:not(:empty) { margin-top: 8px; }
.small-input { width: 110px; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-story { background: linear-gradient(180deg, #122c58 0%, #122c5890 52%, #122c5800 100%), #122c58 url('../images/campus.png') 72% bottom / auto 65% no-repeat; color: #f6f9ff; display: flex; align-items: flex-start; }
.auth-story-inner { padding: clamp(30px, 6vw, 85px); }
.auth-story h1 { margin-top: clamp(38px, 8vh, 92px); font-size: clamp(2.7rem, 5.8vw, 5.6rem); letter-spacing: -.069em; max-width: 650px; }
.auth-story p { margin-top: 14px; max-width: 390px; color: #e1ebff; font-size: 1.08rem; }
.auth-main { padding: 24px; display: grid; place-items: center; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; width: 100%; max-width: 480px; padding: clamp(24px, 4.2vw, 48px); box-shadow: 0 12px 35px #142e590d; }
.auth-card h2 { margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.055em; }
.auth-card > p { margin: 7px 0 21px; }
.auth-card .button { min-height: 44px; }
.auth-card .notice { margin-bottom: 13px; }
@media (max-width: 1070px) {
    .workspace { grid-template-columns: 188px minmax(0,1fr); }
    .sidebar { padding-inline: 11px; }
    .metric { padding: 11px; }
    .metrics { gap: 8px; }
}
@media (max-width: 850px) {
    .workspace { display: block; }
    .sidebar { position: relative; height: auto; padding: 12px 15px; flex-direction: row; align-items: center; gap: 14px; }
    .sidebar > .brand { margin: 0; padding: 0; }
    .sidebar nav { display: flex; overflow: auto; min-width: 0; }
    .sidebar nav a { white-space: nowrap; padding: 6px 9px; min-height: 37px; }
    .sidebar-footer { display: none; }
    .hero { background-position: 72% center; }
}
@media (max-width: 610px) {
    .main { gap: 14px; padding-top: 18px; }
    .sidebar { display: block; }
    .sidebar > .brand { margin-bottom: 8px; }
    .topbar { min-height: 48px; }
    .breadcrumb > span, .account-name { display: none; }
    .date-stamp { display: none; }
    .page-heading { align-items: start; flex-wrap: wrap; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .onboarding, .list-item { align-items: start; flex-wrap: wrap; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 210px; padding: 20px; background-image: linear-gradient(90deg, #122c58 3%, #122c58b0 65%, #122c5880), url('../images/campus.png'); }
    .hero h2 { font-size: 2.05rem; }
    .hero p { font-size: .92rem; }
    .schedule-row { grid-template-columns: 64px minmax(0, 1fr); }
    .schedule-row > .pill { grid-column: 2; grid-row: 1; justify-self: end; margin-top: 26px; }
    .schedule-main { padding-right: 0; }
    .schedule-main > p { padding-right: 65px; min-height: 28px; }
    .auth-shell { display: block; }
    .auth-story-inner { padding: 22px; }
    .auth-story h1 { margin-top: 22px; font-size: 2.2rem; }
    .auth-story h1 br { display: none; }
    .auth-story p { font-size: .9rem; }
    .auth-story { background-position: right bottom; background-size: cover; }
    .auth-main { padding: 17px; }
}
.avatar-link { text-decoration: none; }

.tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.tabs a { color: var(--accent-dark); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; font-size: .88rem; font-weight: 680; text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--accent); color: white; border-color: var(--accent); }
.access-search { width: min(220px, 45%); }
.editor-span { grid-column: 1 / -1; }
.choice-set { margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 7px; }
.choice-set legend { padding-inline: 5px; font-weight: 680; font-size: .9rem; }
.choice { display: flex; align-items: center; gap: 7px; padding: 6px 8px; background: var(--page); border-radius: 6px; }
.choice input { width: 16px; height: 16px; min-height: 0; accent-color: var(--accent); }
.qr-panel { display: grid; grid-template-columns: minmax(0,320px) minmax(0,1fr); gap: 24px; }
.qr-poster { text-align: center; border: 1px solid var(--border); border-radius: 12px; padding: 16px; color: #142920; background: #fff; }
.qr-poster img { display: block; width: min(100%,256px); height: auto; margin: 7px auto; image-rendering: pixelated; }
.qr-controls { align-self: center; display: grid; gap: 12px; }
@media(max-width: 650px) { .qr-panel { grid-template-columns: 1fr; } }
@media print {
    body.workspace { display: block; }
    body:has(.qr-poster) .sidebar, body:has(.qr-poster) .topbar, body:has(.qr-poster) .page-heading,
    body:has(.qr-poster) .notice, .qr-controls { display: none; }
    .qr-panel { display: block; border: none; box-shadow: none; }
    .qr-poster { max-width: 340px; margin: 0 auto; }
}

.live-heading .actions { justify-content: flex-end; }
.view-switch { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 10px; padding: 3px; background: white; }
.view-switch a { border-radius: 6px; padding: 7px 10px; text-decoration: none; font-size: .85rem; font-weight: 680; white-space: nowrap; }
.view-switch a[aria-current="page"] { background: var(--accent); color: white; }
.live-metrics .metric { display: flex; align-items: center; gap: 11px; min-height: 77px; padding: 12px 14px; }
.live-metrics .metric > div { display: grid; gap: 3px; }
.live-metrics .metric > div span { font-size: .88rem; font-weight: 680; }
.live-metrics .metric > div strong { font-size: 1.7rem; line-height: 1; }
.live-filters { display: grid; grid-template-columns: repeat(4,minmax(110px,1fr)) auto; gap: 12px; align-items: end; padding: 13px; }
.live-typebar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.room-type-tabs, .room-detail-tabs { display: flex; align-items: center; gap: 5px; overflow: auto; }
.room-type-tabs a, .room-detail-tabs a { text-decoration: none; padding: 8px 9px; border-bottom: 2px solid transparent; font-size: .85rem; white-space: nowrap; color: #405a7d; }
.room-type-tabs a[aria-current="page"], .room-detail-tabs a[aria-current="page"] { border-color: var(--accent); color: var(--accent-dark); font-weight: 750; }
.room-search { min-width: 145px; width: min(100%,260px); }
.live-rooms-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,37%); align-items: start; gap: 15px; }
.live-rooms-layout.full { grid-template-columns: minmax(0,1fr); }
.live-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.live-rooms-layout.full .live-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); }
.live-card { min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 13px; padding: 8px; box-shadow: 0 1px 3px #113a2610; }
.live-card.selected { border-color: #73a1eb; box-shadow: 0 0 0 1px #a9c8f8; }
.room-card-image { position: relative; height: clamp(90px, 11vw, 136px); }
.room-photo { display: block; width: 100%; height: 100%; border-radius: 9px; overflow: hidden; object-fit: cover; background: #dce8dc; }
.illustrative { position: relative; }
.illustrative::before { content: ""; position: absolute; width: 100%; aspect-ratio: 1.5; left: 0; top: 50%; transform: translateY(-50%); background-image: url('../images/room-types.png'); background-size: 200% 200%; background-position: 0 0; }
.illustrative.lab::before { background-position: 0 100%; }
.illustrative.seminar::before { background-position: 100% 0; }
.illustrative.library::before { background-position: 100% 100%; }
.illustrative small { position: absolute; left: 7px; bottom: 6px; color: white; background: #142e26d9; border-radius: 4px; padding: 2px 5px; font-size: .69rem; }
.room-card-status { position: absolute; right: 8px; top: 8px; }
.room-card-status .pill { box-shadow: 0 1px 4px #152c2c30; border: 1px solid #ffffff94; }
.room-card-content { padding: 7px 3px 0; }
.room-card-content h2 { margin-bottom: 3px; }
.room-card-content h2 a { color: var(--ink); font-size: 1.23rem; text-decoration: none; }
.room-card-content h2 a:hover { text-decoration: underline; }
.room-name { font-size: .86rem; }
.room-card-content p { color: var(--muted); font-size: .83rem; }
.room-seat-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.room-seat-metrics > div { display: grid; gap: 1px; }
.room-seat-metrics small { font-size: .75rem; }
.room-seat-metrics b { font-size: 1rem; }
.room-meter { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .78rem; }
.room-meter progress { width: 100%; height: 10px; accent-color: var(--accent); border: 0; }
.room-meter progress::-webkit-progress-bar { background: #e3ebf5; border-radius: 999px; }
.room-meter progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.room-meter span { min-width: 31px; text-align: right; }
.room-card-links { display: flex; justify-content: space-between; gap: 5px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 8px; padding: 7px 0 3px; }
.room-card-links a { font-size: .78rem; text-decoration: none; font-weight: 700; }
.room-list-panel { margin-top: 0; padding: 8px; }
.room-detail { padding: 13px; }
.room-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-close { font-size: 1.15rem; min-height: 30px; padding: 4px 8px; }
.room-detail-intro { display: grid; grid-template-columns: 33% minmax(0,1fr); gap: 10px; margin: 10px 0 5px; }
.room-detail-intro img,.room-detail-intro .room-photo { height: 90px; }
.room-detail-intro .illustrative small { font-size: .61rem; }
.room-detail-intro h3 { font-size: 1.16rem; margin-bottom: 4px; }
.room-detail-intro p { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.room-detail-tabs { border-bottom: 1px solid var(--border); }
.room-detail-facts { margin: 7px 0 0; display: grid; grid-template-columns: minmax(100px,.8fr) minmax(0,1fr); font-size: .83rem; }
.room-detail-facts dt, .room-detail-facts dd { margin: 0; padding: 6px 3px; border-bottom: 1px solid #e9eee9; }
.room-detail-facts dt { color: var(--muted); }
.room-detail-facts dd { font-weight: 650; overflow-wrap: anywhere; }
.room-detail-section { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--border); }
.room-detail-section p { margin-top: 4px; font-size: .84rem; }
.room-detail-actions { border-top: 1px solid var(--border); margin-top: 13px; padding-top: 10px; }
.floor-plan-preview { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.amenities { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.amenities span { display: inline-block; padding: 4px 7px; border-radius: 6px; background: #edf4ee; font-weight: 650; font-size: .75rem; }
.room-master-form { display: grid; gap: 14px; }
.room-fields { margin-top: 12px; }
.designer { display: grid; grid-template-columns: minmax(170px,220px) minmax(0,1fr); align-items: start; gap: 16px; }
.designer-tools, .designer-items { display: grid; gap: 8px; }
.designer-tools p { font-size: .86rem; color: var(--muted); }
.designer-items { grid-template-columns: 1fr 1fr; }
.designer-items button { white-space: normal; }
.designer-tools button:disabled { opacity: .55; cursor: default; }
.room-canvas { width: 100%; height: auto; display: block; border: 1px solid #ccd9ce; background: #fbfdfb; border-radius: 8px; }
.designer .room-canvas { margin-top: 10px; touch-action: none; cursor: move; }
.layout-preview { margin-top: 7px; }
@media (max-width: 1150px) {
    .live-filters { grid-template-columns: repeat(4,minmax(80px,1fr)); }
    .live-filters > .actions { grid-column: 1 / -1; }
    .live-rooms-layout { grid-template-columns: minmax(0,1fr) minmax(285px,39%); }
}
@media (max-width: 900px) {
    .live-typebar { flex-wrap: wrap; }
    .room-type-tabs { max-width: 100%; }
    .live-rooms-layout { grid-template-columns: minmax(0,1fr); }
    .live-rooms-layout .room-detail { grid-row: 1; }
    .room-card-image { height: 140px; }
}
@media (max-width: 590px) {
    .live-heading { flex-wrap: wrap; }
    .live-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .room-card-image { height: 95px; }
    .designer { grid-template-columns: 1fr; }
    .designer-items { grid-template-columns: repeat(3,1fr); }
    .room-search { width: 100%; }
}

.tt-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.tt-steps a { display:grid; gap:2px; padding:10px 13px; min-height:57px; border:1px solid var(--border); border-radius:11px; color:var(--ink); background:var(--surface); text-decoration:none; }
.tt-steps a[aria-current="page"] { background:var(--accent); color:white; border-color:var(--accent); }
.tt-steps a[aria-current="page"] small { color:#e5efff; }
.tt-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:13px; align-items:start; }
.tt-workspace.editing { grid-template-columns:minmax(0,1fr) minmax(200px,24%); }
.tt-grid-panel,.tt-editor { min-width:0; }
.tt-filter .form-grid,.tt-tools,.tt-create,.tt-actions { margin-top:10px; }
.tt-copy { display:grid; grid-template-columns:minmax(100px,1fr) 2fr auto; align-items:end; gap:8px; margin-top:8px; padding:9px; border:1px solid var(--border); border-radius:9px; background:var(--page); }
.tt-copy .choice-set { display:flex; flex-wrap:wrap; }
.tt-copy small { grid-column:1/-1; }
.tt-grid { min-width:580px; table-layout:fixed; }
.tt-grid th:first-child { width:57px; }
.tt-grid td { vertical-align:top; padding:3px; border:1px solid #e5edf8; }
.tt-grid th { padding:6px; }
.tt-grid thead small { display:block; font-weight:480; }
.tt-grid tbody th { text-align:center; }
.tt-period { min-width:0; padding:6px; margin-bottom:3px; border-radius:6px; background:#e5f1e8; overflow-wrap:anywhere; }
.tt-period.tone-1 { background:#e5eefb; color:#26446e; }.tt-period.tone-2 { background:#f7ead9; color:#654823; }.tt-period.tone-3 { background:#efe7fb; color:#503b71; }
.tt-period strong { font-size:.81rem; }.tt-period a { color:inherit; text-decoration:none; }.tt-period a:hover { text-decoration:underline; }
.tt-period small { display:block; font-size:.71rem; color:inherit; }
.tt-select { width:14px; height:14px; min-height:0; accent-color:var(--accent); vertical-align:middle; }
.tt-empty-slot { min-height:39px; display:grid; place-items:center; text-decoration:none; font-size:.8rem; }
.tt-empty-slot:hover { background:#edf4ee; }
.tt-editor .stack,.faculty-form .form-grid { margin-top:11px; }

.ops-metrics { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:9px; }
.ops-metric { display:flex; align-items:center; gap:8px; min-height:76px; padding:11px 9px; border-radius:12px; border:1px solid #cfdfd6; color:#153c35; background:#e6f2eb; }
.ops-metric > span { font-size:1.25rem; line-height:1; margin-left:2px; }
.ops-metric strong { display:block; font-size:clamp(1.25rem,2.4vw,1.8rem); line-height:1.05; }
.ops-metric small { color:inherit; display:block; font-size:.76rem; margin-top:3px; }
.ops-metric.indigo,.faculty-actions .indigo { background:#e8effb; color:#274671; border-color:#d6e1f7; }
.ops-metric.lilac,.faculty-actions .lilac { background:#f0eafb; color:#553c7a; border-color:#e3d8f8; }
.ops-metric.coral,.faculty-actions .coral { background:#fcebea; color:#8d3536; border-color:#f4d1d2; }
.ops-metric.sky,.faculty-actions .sky { background:#e4f2f8; color:#245774; border-color:#cee5ef; }
.ops-metric.sand,.faculty-actions .sand { background:#fcf0d9; color:#785319; border-color:#f0dfb7; }
.ops-metric.mint,.faculty-actions .mint { background:#e4f3e8; color:#215739; border-color:#cfe7d6; }
.ops-split { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(330px,1fr); align-items:start; gap:14px; }
.ops-split > section,.faculty-main > section { min-width:0; }
.ops-tabs,.ops-legend { margin-bottom:11px; }
.ops-legend { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.ops-legend span { padding:3px 7px; font-size:.75rem; }
.ops-building-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:10px; }
.ops-building { padding:9px; border:1px solid var(--border); border-radius:11px; }
.ops-building header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:7px; align-items:center; }
.ops-building header p { font-size:.76rem; color:var(--muted); }
.ops-building-icon { display:grid; place-items:center; background:#e2eee8; color:#1b6044; border-radius:8px; width:32px; height:32px; font-size:1.05rem; }
.building-utilization { display:flex; gap:8px; align-items:center; margin:6px 0; font-size:.77rem; color:var(--muted); white-space:nowrap; }
.building-utilization progress { flex:1; accent-color:var(--accent); height:9px; min-width:0; }
.ops-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
.ops-tiles.grid-mode { grid-template-columns:repeat(auto-fit,minmax(65px,1fr)); }
.room-tile { font-size:.78rem; border-radius:6px; padding:4px; border:1px solid #e1e8e1; background:#f1f4f2; color:#40594d; text-decoration:none; text-align:center; }
.room-tile strong,.room-tile small { display:block; overflow-wrap:anywhere; }
.room-tile small { color:inherit; font-size:.64rem; }
.room-tile.available { color:#255e3b; background:#e8f5e9; border-color:#c9e9d0; }
.room-tile.occupied { color:#89353b; background:#fce7e8; border-color:#f4cfd1; }
.room-tile.scheduled,.room-tile.verification_required { color:#765212; background:#fbf0cd; border-color:#ecdba6; }
.room-tile.maintenance,.room-tile.reserved { color:#295d8f; background:#e7effd; border-color:#d4e0f8; }
.ops-building details { margin-top:6px; }
.ops-filters { margin:7px 0; }.ops-filters label { flex:1; }.ops-attendance-counts { margin:10px 0; }
.ops-highlights { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; }
.ops-highlights div { display:grid; gap:2px; }.ops-highlights strong { font-size:1.4rem; }.ops-highlights span { font-size:.8rem; color:var(--muted); }
.faculty-tabs { margin-top:-5px; }.faculty-tabs a { padding:6px 8px; }
.faculty-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); }
.faculty-main { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr); align-items:start; gap:13px; }
.faculty-side { display:grid; gap:13px; }
.faculty-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:8px; }
.faculty-actions a { display:grid; place-content:center; gap:3px; min-height:59px; padding:6px; text-align:center; text-decoration:none; border-radius:8px; border:1px solid; font-size:.77rem; font-weight:670; line-height:1.2; }
.faculty-actions a b { font-size:1.15rem; }
.faculty-room > div { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:center; margin-top:8px; }
.faculty-room .room-photo { height:90px; }.faculty-room p { color:var(--muted); font-size:.84rem; }
.faculty-bottom,.faculty-request-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.faculty-schedule { min-width:480px; }.class-running { background:#eaf3fb; }
.pill.running { background:#e3effc; color:#224f84; }.pill.upcoming { background:#fff0db; color:#76501b; }
.faculty-form textarea,.faculty-request-grid textarea,.faculty-review-row textarea,.panel textarea:not([hidden]) { width:100%; min-height:71px; padding:7px 9px; border:1px solid var(--border); border-radius:7px; font:inherit; }
.faculty-review-row { padding:8px 0; border-bottom:1px solid var(--border); }
@media(max-width:1100px) { .ops-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }.faculty-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:920px) { .ops-split,.faculty-main,.tt-workspace.editing { grid-template-columns:1fr; }
    .tt-workspace.editing .tt-editor { grid-row:1; }.faculty-bottom,.faculty-request-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); } }
@media(max-width:560px) { .ops-metrics,.tt-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }.tt-copy { grid-template-columns:1fr; }
    .ops-metric { min-height:59px; }.tt-grid { min-width:580px; } }

.faculty-month { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; margin-top:12px; }
.faculty-month > strong { font-size:.8rem; color:var(--muted); text-align:center; padding:4px; }
.faculty-month a,.faculty-month > span { min-height:37px; padding:4px 5px; border:1px solid var(--border); text-decoration:none; }
.faculty-month a:hover { background:var(--page); }.faculty-month a small { display:block;font-size:.67rem; }

/* Auto room layout designer */
.layout-heading .actions { flex-wrap: wrap; }
.layout-studio-grid { display: grid; grid-template-columns: minmax(202px, .78fr) minmax(0, 1.9fr) minmax(218px, .85fr); gap: 15px; align-items: start; margin-top: 14px; }
.layout-studio-grid .panel { min-width: 0; padding: 15px; }
.layout-studio-grid .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 13px; }
.layout-studio-grid .section-heading p { color: var(--muted); font-size: .83rem; margin-top: 2px; }
.layout-room-summary { display: flex; justify-content: space-between; gap: 10px; background: var(--soft); border-radius: 10px; padding: 10px; margin-bottom: 14px; }
.layout-room-summary strong, .layout-metrics strong { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.layout-config .notice { margin: 8px 0 13px; font-size: .82rem; }
.layout-section { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--border); }
.layout-mini-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.layout-mini-fields label { font-size: .78rem; }
.layout-mini-fields :is(input, select) { min-width: 0; padding-inline: 7px; }
.layout-facility-checks { display: grid; gap: 6px; margin-block: 12px; }
.layout-facility-checks .choice, .layout-history .choice { font-size: .83rem; }
.layout-generate { width: 100%; text-align: center; }
.layout-center .view-switch { display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 8px; }
.layout-center .view-switch button, .room-master-layout .view-switch button { padding: 7px 9px; background: transparent; border: 0; border-radius: 7px; color: var(--accent-dark); font-size: .77rem; font-weight: 650; }
.layout-center .view-switch button[aria-pressed="true"], .room-master-layout .view-switch button[aria-pressed="true"] { background: var(--accent); color: white; }
.layout-canvas-frame { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #f9fcfb; }
[data-layout-stage] { width: 100%; min-height: 310px; }
[data-layout-stage]:focus-visible { outline-offset: -3px; }
.layout-toolbox, .layout-item-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.layout-toolbox .button, .layout-item-controls .button { min-height: 30px; padding: 4px 9px; font-size: .76rem; }
.layout-item-controls [role="status"] { flex-basis: 100%; min-height: 1.5em; font-size: .8rem; }
.layout-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
.layout-metrics > div { padding: 8px; border-radius: 7px; background: var(--soft); }
.layout-metrics small { font-size: .73rem; }
.layout-metrics strong { color: var(--accent); font-size: .9rem; }
.layout-metrics .layout-status-attention { color: #934b13; }
.layout-aside { display: grid; gap: 12px; }
.layout-model-slot, .layout-model-main { overflow: hidden; border: 1px solid #d7e3f2; border-radius: 9px; background: #e8f0ea; }
.layout-model-slot { height: 172px; }
.layout-model-main { height: clamp(320px, 39vw, 560px); }
[data-three-host] { width: 100%; height: 100%; cursor: grab; touch-action: none; }
[data-three-host]:active { cursor: grabbing; }
[data-three-host] canvas { display: block; }
[data-three-host].layout-model-unavailable { display: grid; place-items: center; padding: 12px; cursor: default; text-align: center; font-size: .85rem; }
[data-model-help] { font-size: .8rem; margin-top: 8px; }
.layout-templates, .layout-history { display: grid; gap: 7px; }
.layout-templates .section-heading, .layout-history .section-heading { margin-bottom: 3px; }
.layout-templates button { display: flex; align-items: center; gap: 9px; text-align: left; color: var(--ink); border: 1px solid var(--border); background: #f8faf8; padding: 8px; border-radius: 8px; }
.layout-templates button:hover, .layout-templates button[aria-pressed="true"] { border-color: #699ada; background: #e9f2ff; }
.layout-templates .template-symbol { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 5px; background: #dce9fa; color: var(--accent); font-size: 1.13rem; }
.layout-templates strong, .layout-templates small { display: block; }
.layout-templates strong { font-size: .81rem; }
.layout-templates small, .layout-history .text-link, .layout-history p { font-size: .75rem; }
.layout-history .button { justify-self: start; }
@media (max-width: 1240px) {
    .layout-studio-grid { grid-template-columns: minmax(195px,.8fr) minmax(0,2fr); }
    .layout-aside { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
}
@media (max-width: 790px) {
    .layout-studio-grid { grid-template-columns: 1fr; }
    .layout-aside { grid-column: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 515px) {
    .layout-aside, .layout-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .layout-aside .panel { grid-column: 1 / -1; }
}

/* Admin module links and pending actions */
.admin-alert-count { position:absolute; top:-5px; right:-5px; min-width:16px; height:16px; padding-inline:3px; display:grid; place-items:center; border-radius:20px; background:#d72938; color:white; font-size:.66rem; font-weight:700; }
.admin-kicker { color: var(--accent); font-weight: 720; font-size: .83rem; margin-bottom: 5px; }
.admin-module-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: 14px; }
.admin-module-grid .admin-tool { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); margin: 0; }
.admin-tool:hover { border-color: #709ee0; background-color: #f6f9ff; }
.admin-tool h2 { font-size: 1.05rem; }
.admin-tool p { font-size: .88rem; color: var(--muted); margin-top: 7px; }
.admin-tool > span { color: var(--accent); font-weight: 760; }
.admin-queue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.admin-queue h2 { margin-right: auto; }
.admin-queue .text-link { font-size: .85rem; }
.admin-queue .text-link strong { font-variant-numeric: tabular-nums; }
.faculty-core-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.faculty-calendar-slot { padding-block: 3px; }
.attendance-actions { margin-bottom: 15px; }
.faculty-leave-month .faculty-leave-day { min-width: 0; min-height: 52px; display: grid; place-content: center; gap: 2px; background: var(--soft); border-radius: 7px; text-align: center; font-size: .82rem; }
.faculty-leave-day.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.faculty-leave-day .available { color: #1c6946; }
.faculty-leave-day .pending { color: #86501b; }
@media (max-width: 630px) { .faculty-core-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Shared Smart Classroom ERP theme */
:root { --navy:#102345; --erp-blue:#075ce4; --erp-head-height:55px; --erp-sidebar-width:clamp(192px,15.1vw,380px); --radius:12px; }
.erp-icon-library { position:absolute; width:0; height:0; overflow:hidden; }
.erp-icon,.erp-logo { width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.erp-skip { position:fixed; z-index:20; left:8px; top:8px; transform:translateY(-150%); padding:9px; background:white; }
.erp-skip:focus { transform:none; }
.workspace { display:grid; grid-template:auto 1fr / var(--erp-sidebar-width) minmax(0,1fr); }
.erp-top { grid-column:1/-1; position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:16px;
    min-height:var(--erp-head-height); padding:4px 14px; color:white; background:linear-gradient(101deg,#112746,#203c70 40%,#10254a 80%,#0d2042); border-bottom:1px solid #315181; box-shadow:0 2px 10px #0c244126; }
.erp-top-start,.erp-header-actions { display:flex; align-items:center; gap:clamp(7px,1.1vw,20px); min-width:0; }
.erp-brand { gap:10px; color:#fff; white-space:nowrap; font-size:clamp(1rem,1.58vw,1.65rem); letter-spacing:-.034em; }
.erp-brand small { color:#e1eaff; font-size:clamp(.58rem,.87vw,.92rem); letter-spacing:0; margin-top:3px; }
.erp-logo { width:clamp(31px,3vw,51px); height:clamp(31px,3vw,51px); color:#87b7ff; }
.erp-header-icon { position:relative; display:grid; place-items:center; width:34px; height:34px; padding:0; border:0; border-radius:6px;
    text-decoration:none; color:#f2f6ff; background:none; flex:none; }
.erp-header-icon:hover,.erp-account summary:hover { background:#ffffff16; }
.erp-header-icon .erp-icon { width:23px; height:23px; }
.erp-menu-toggle { margin-left:clamp(2px,1vw,18px); }
.erp-top .admin-alert-count { right:-1px; top:-2px; background:#e82430; }
.erp-scope { display:flex; align-items:center; justify-content:space-between; min-width:0; gap:10px; padding:7px 10px;
    color:#192740; background:#f8faff; border:1px solid #c0d0eb; border-radius:8px; text-decoration:none; font-size:clamp(.72rem,1vw,.99rem); font-weight:680; }
.erp-scope span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.erp-scope .erp-icon,.erp-account summary > .erp-icon { width:16px; height:16px; }
.erp-scope:hover { background:#eaf2ff; }
.erp-campus { min-width:min(140px,11vw); }
.erp-account { position:relative; }
.erp-account summary { display:flex; align-items:center; gap:7px; max-width:230px; padding:3px 5px; border-radius:7px; list-style:none; color:#f5f8ff; }
.erp-account summary::-webkit-details-marker,.erp-nav-group summary::-webkit-details-marker,.erp-staff-actions summary::-webkit-details-marker { display:none; }
.erp-account .avatar { width:33px; height:33px; border:2px solid #d3e5ff; background:#d9e9ff; color:#245795; }
.erp-account-text { display:grid; gap:1px; min-width:0; overflow:hidden; }
.erp-account-text :is(strong,small) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.erp-account-text small { color:#c9d8f5; font-size:.68rem; }
.erp-account-menu { position:absolute; right:0; top:calc(100% + 8px); display:grid; min-width:200px; padding:5px; border:1px solid #c7d6ef;
    border-radius:8px; box-shadow:0 7px 22px #0d244634; background:white; }
.erp-account-menu a,.erp-account-menu button { display:block; width:100%; border:0; border-radius:5px; background:none;
    padding:8px 10px; color:var(--ink); font-size:.84rem; text-align:left; text-decoration:none; }
.erp-account-menu a:hover,.erp-account-menu button:hover { background:#e9f1ff; }
.erp-sidebar { grid-column:1; grid-row:2; position:sticky; top:var(--erp-head-height); height:calc(100dvh - var(--erp-head-height));
    padding:17px 8px 11px; align-self:start; border-radius:0 15px 15px 0; background:linear-gradient(156deg,#102445,#122644 58%,#0d1d3a); color:#e7efff; }
.erp-sidebar nav,.erp-sidebar .admin-navigation { display:grid; gap:2px; min-width:0; overflow:visible; }
.erp-sidebar nav > a,.erp-nav-group summary { display:flex; align-items:center; gap:10px; min-height:39px; padding:7px 11px; white-space:normal;
    border-radius:7px; color:#eef3ff; background:transparent; font-size:clamp(.77rem,1.03vw,1.02rem); font-weight:590; line-height:1.2; text-decoration:none; list-style:none; }
.erp-sidebar nav > a > .erp-icon,.erp-nav-group summary > .erp-icon { width:20px; height:20px; }
.erp-sidebar nav > a > span,.erp-nav-group summary > span { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.erp-sidebar nav > a:hover,.erp-nav-group summary:hover { background:#253f6a; color:white; }
.erp-sidebar nav > a[aria-current="page"],.erp-nav-group summary.active { color:white; background:linear-gradient(105deg,#0568e9,#1057ce); box-shadow:0 2px 5px #0003; }
.erp-nav-group + .erp-nav-group { margin-top:0; }
.erp-nav-group summary .erp-nav-caret { width:15px; height:15px; margin-left:auto; }
.erp-nav-alert { margin-left:auto; min-width:18px; padding:2px 4px; border-radius:7px; color:white; background:#e82430; text-align:center; font-size:.68rem; }
.erp-nav-group[open] summary .erp-nav-caret { transform:rotate(180deg); }
.erp-sidebar nav .erp-nav-sub { display:grid; gap:1px; margin:2px 0 4px 29px; border-left:1px solid #5a79a75c; padding-left:6px; }
.erp-sidebar nav .erp-nav-sub a { min-height:31px; padding:4px 7px; border-radius:5px; color:#cfddf4; font-size:.79rem; white-space:normal; }
.erp-sidebar nav .erp-nav-sub a:is(:hover,[aria-current]) { background:#294d81; color:white; }
.erp-sidebar-buildings { width:100%; max-height:200px; min-height:84px; margin-top:auto; flex-shrink:0; fill:none; stroke:#3978cf; opacity:.48;
    stroke-width:3.4; stroke-linejoin:round; }
.erp-sidebar-campus { display:flex; align-items:center; gap:7px; padding:6px 10px; min-height:31px; border-radius:6px; overflow-wrap:anywhere;
    color:#c4d6f5; text-decoration:none; font-size:.74rem; }
.erp-sidebar-campus .erp-icon { width:15px; height:15px; }
.erp-sidebar-campus:hover { background:#253f6a; color:white; }
.workarea { grid-column:2; grid-row:2; min-width:0; }
.workspace.erp-menu-closed { grid-template-columns:0 minmax(0,1fr); }
.workspace.erp-menu-closed .erp-sidebar { display:none; }
.main { max-width:1900px; }
.command-workspace .main { max-width:none; padding:13px 12px 18px; gap:12px; }
.auth-story { background-blend-mode:normal,luminosity; }
@media(max-width:1000px) {
    .erp-top { padding-inline:10px; }.erp-header-actions { gap:7px; }.erp-account-text { max-width:116px; }
}
@media(max-width:850px) {
    .workspace,.workspace.erp-menu-closed { grid-template:auto 1fr / minmax(0,1fr); }
    .erp-top,.workarea { grid-column:1; }
    .erp-sidebar { display:none; position:fixed; top:var(--erp-head-height); left:0; bottom:0; z-index:9; height:auto; width:min(240px,85vw); box-shadow:12px 0 22px #152b5240; }
    .workspace.erp-menu-open .erp-sidebar { display:flex; }.erp-college { display:none; }
}
@media(max-width:610px) {
    .erp-top { gap:5px; }.erp-top-start { gap:3px; }.erp-brand { gap:5px; font-size:1rem; }.erp-top .erp-brand small { display:none; }
    .erp-logo { width:26px; height:26px; }.erp-header-icon { width:28px; height:31px; }.erp-header-icon .erp-icon { width:20px; height:20px; }
    .erp-campus,.erp-fullscreen,.erp-account-text { display:none; }.erp-account summary { padding:2px; gap:3px; }
    .erp-account .avatar { width:28px; height:28px; }.erp-account summary > .erp-icon { width:12px; height:12px; }
}

/* Command Center */
.erp-dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:50px; padding:0 3px; }
.erp-heading-title,.erp-heading-controls { display:flex; align-items:center; gap:10px; }
.erp-heading-title > .erp-icon { color:#10294b; width:31px; height:31px; }
.erp-heading-title h1 { color:#101b33; font-size:clamp(1.45rem,1.8vw,2.15rem); letter-spacing:-.037em; line-height:1.1; }
.erp-heading-title p { margin-top:2px; color:#394e71; font-size:clamp(.74rem,.98vw,1.06rem); }
.erp-date { display:inline-flex; align-items:center; gap:8px; min-height:39px; padding:5px 10px; color:#14213b; background:#fbfcff; border:1px solid #d5dfed;
    border-radius:8px; box-shadow:0 1px 2px #183a6413; font-size:clamp(.75rem,.94vw,1rem); text-decoration:none; white-space:nowrap; font-weight:680; }
.erp-date .erp-icon { width:20px; height:20px; }.erp-date time { font-variant-numeric:tabular-nums; font-weight:760; }
.erp-dashboard-date-picker label { display:flex; }
.erp-dashboard-date-picker input[type="date"] { width:auto; min-height:32px; padding:3px 6px; color:inherit; font:inherit; }
.erp-dashboard-date-picker button { min-height:32px; padding:3px 10px; border:1px solid #cddcf2; border-radius:6px;
    background:#eaf1ff; color:#15396f; font:inherit; cursor:pointer; }
.erp-dashboard-date-picker button:hover { background:#dce9ff; }
.erp-refresh:hover { background:#eaf1ff; }.erp-live { color:white; background:#138d34; padding:2px 8px; border-radius:999px; font-size:.72em; }
.erp-live.is-offline { background:#7c4b0b; }
.tone-blue { --tone:#075bd6; --tone-dark:#0b3d83; --tone-bg:#e2efff; --tone-border:#c9dff8; }
.tone-purple { --tone:#6e1fce; --tone-dark:#4a2086; --tone-bg:#eee6ff; --tone-border:#e0d3f6; }
.tone-green { --tone:#14852b; --tone-dark:#116227; --tone-bg:#e1f7e7; --tone-border:#ccead1; }
.tone-red { --tone:#d52b38; --tone-dark:#a51921; --tone-bg:#ffe6e9; --tone-border:#f6d1d6; }
.tone-amber { --tone:#b76405; --tone-dark:#8e4400; --tone-bg:#fff3d2; --tone-border:#fae7b5; }
.tone-navy { --tone:#1255c5; --tone-dark:#132955; --tone-bg:#f0f5fe; --tone-border:#d3e0f3; }
.erp-kpis { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.erp-kpi { display:flex; align-items:center; gap:clamp(6px,1vw,15px); min-height:76px; padding:8px 10px; border:1px solid var(--tone-border);
    border-radius:9px; background:var(--tone-bg); color:var(--tone-dark); box-shadow:0 2px 4px #183a6408; }
.erp-kpi > .erp-icon { color:var(--tone); width:clamp(25px,2.6vw,45px); height:clamp(25px,2.6vw,45px); }
.erp-kpi div { min-width:0; }.erp-kpi strong,.erp-kpi span,.erp-kpi small { display:block; }
.erp-kpi strong { font-size:clamp(1.2rem,2vw,2.08rem); line-height:1; font-weight:780; font-variant-numeric:tabular-nums; }
.erp-kpi span,.erp-kpi small { color:#182744; font-size:clamp(.67rem,.89vw,.97rem); font-weight:630; line-height:1.16; margin-top:3px; }
.erp-kpis .erp-kpi { gap:8px; padding-inline:9px; }
.erp-kpis .erp-kpi > .erp-icon { width:clamp(26px,2.25vw,43px); height:clamp(26px,2.25vw,43px); }
.erp-kpis .erp-kpi span,.erp-kpis .erp-kpi small { font-size:clamp(.66rem,.84vw,.95rem); }
.erp-monitor-grid { display:grid; grid-template-columns:minmax(0,1.63fr) minmax(0,1fr); gap:10px; align-items:stretch; }
.erp-monitor-grid > .panel { min-width:0; padding:10px; border-radius:13px; }
.erp-building-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 10px; margin-bottom:12px; }
.erp-segment { display:flex; width:max-content; max-width:100%; padding:2px; gap:2px; border-radius:8px; background:#eaf0f8; }
.erp-segment a { display:flex; align-items:center; justify-content:center; min-height:33px; padding:6px 10px; border-radius:6px;
    color:#1b2b47; text-decoration:none; text-align:center; font-size:clamp(.70rem,.88vw,.94rem); font-weight:670; }
.erp-segment a:hover { background:#dce9ff; }.erp-segment a[aria-current="page"] { color:#fff; background:linear-gradient(110deg,#0968ec,#0759d8); box-shadow:0 1px 3px #0752c62a; }
.erp-legend { display:flex; flex-wrap:wrap; align-items:center; gap:4px 9px; list-style:none; padding:0; margin:0; color:#283b59; font-size:clamp(.61rem,.75vw,.82rem); font-weight:650; }
.erp-legend li { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.erp-legend li::before { content:""; display:inline-block; width:10px; height:10px; border-radius:3px; background:var(--status-dot); }
.available { --status-dot:#1a9c38; --status-text:#125c26; --status-bg:#e3f7e6; --status-border:#cbeacf; }
.occupied { --status-dot:#de2938; --status-text:#a82028; --status-bg:#ffe8ea; --status-border:#fad1d6; }
.scheduled,.verification_required { --status-dot:#e59c00; --status-text:#875306; --status-bg:#fff4d3; --status-border:#f8e5af; }
.maintenance { --status-dot:#246de4; --status-text:#1a4e9d; --status-bg:#e4efff; --status-border:#cfe0fb; }
.reserved { --status-dot:#7a41cb; --status-text:#5d298e; --status-bg:#f1e8ff; --status-border:#e5d7fa; }
.pill:is(.available,.occupied,.scheduled,.verification_required,.maintenance,.reserved) { color:var(--status-text); background:var(--status-bg); }
.erp-building-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.erp-building { min-width:0; padding:7px; border:1px solid #d7e1ef; border-radius:10px; background:linear-gradient(175deg,#fcfdff,#f7faff);
    box-shadow:0 1px 2px #183a640f; }
.erp-building-head { display:grid; grid-template-columns:clamp(49px,5.5vw,132px) minmax(0,1fr) 15px; align-items:start; width:100%; gap:8px; padding:0;
    border:0; background:none; color:var(--ink); text-align:left; }
.erp-building-head > .erp-icon { color:#1d3354; width:15px; height:15px; margin-top:5px; }
.erp-building-head[aria-expanded="true"] > .erp-icon { transform:rotate(180deg); }
.erp-building-photo { display:block; position:relative; height:clamp(39px,3.85vw,89px); overflow:hidden; border-radius:5px; background:#d8e8fb; }
.erp-building-photo span { position:absolute; inset:50% 0 auto; transform:translateY(-50%); aspect-ratio:1;
    background:url('../images/dashboard-buildings.png') var(--photo-x,0%) var(--photo-y,0%) / 400% 200% no-repeat; }
.photo-1,.photo-5 { --photo-x:33.3333%; }.photo-2,.photo-6 { --photo-x:66.6667%; }.photo-3,.photo-7 { --photo-x:100%; }
.photo-4,.photo-5,.photo-6,.photo-7 { --photo-y:100%; }
.erp-building-info { display:grid; gap:2px; padding-top:2px; }.erp-building-info strong { font-size:clamp(.85rem,1.07vw,1.15rem); line-height:1.1; }
.erp-building-info small { color:#405475; font-size:clamp(.67rem,.80vw,.89rem); line-height:1.1; }
.erp-building-use { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:end; gap:8px; margin:-1px 1px 8px; font-size:.78rem; }
.erp-building-use span { display:flex; align-items:center; gap:4px; white-space:nowrap; font-weight:670; }
.erp-building-use .erp-icon { width:16px; height:16px; }.erp-building-use div { display:grid; gap:3px; text-align:right; font-variant-numeric:tabular-nums; }
.erp-building-use progress { width:100%; height:7px; border:0; border-radius:999px; overflow:hidden; appearance:none; background:#dde6f2; accent-color:#1e9b34; }
.erp-building-use progress::-webkit-progress-bar { background:#dde6f2; }.erp-building-use progress::-webkit-progress-value { background:#23a73a; border-radius:999px; }
.erp-building-use progress::-moz-progress-bar { background:#23a73a; border-radius:999px; }
.erp-room-tiles { --room-tile-gap:4px; display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,max(64px,calc((100% - 3 * var(--room-tile-gap)) / 4))),1fr));
    gap:var(--room-tile-gap); align-content:start; min-height:86px; }
.erp-room-tiles.erp-room-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,78px),1fr)); min-height:0; }
.erp-room-tiles.erp-extra-rooms { min-height:0; margin-top:4px; }
.erp-room-tile { display:grid; align-content:center; justify-items:center; gap:2px; min-width:0; min-height:39px; padding:3px 1px; text-decoration:none;
    color:var(--ink); background:var(--status-bg,#ecf1f8); border:1px solid var(--status-border,#d9e3ed); border-radius:6px; line-height:1.12; }
.erp-room-tile strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(.68rem,.77vw,.88rem); }
.erp-room-tile small { color:var(--status-text,#465c7d); font-size:clamp(.57rem,.64vw,.75rem); font-weight:690; text-align:center; }
.erp-room-tile small::before { display:inline-block; content:""; height:6px; width:6px; margin-right:2px; border-radius:50%; background:var(--status-dot,#8497af); vertical-align:1px; }
.erp-room-tile.scheduled small::before,.erp-more-rooms small::before { content:none; }
.erp-room-time { color:var(--status-text,#465c7d); font-size:clamp(.55rem,.61vw,.7rem); text-align:center; font-variant-numeric:tabular-nums; }
.erp-room-tile:is(.reserved,.maintenance) .erp-room-time { white-space:nowrap; }
.erp-room-status-note { margin:0 0 10px; font-size:.8rem; }
.erp-room-schedule-heading { flex-wrap:wrap; }
.erp-campus-summary { container-type:inline-size; }
.live-heading .actions { flex-wrap:wrap; }
.room-card-booking { margin-top:8px; padding:6px 8px; background:#f3f0fd; border-radius:6px; }
.room-card-booking small { display:block; }
.erp-kpis.erp-campus-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:1fr; }
.erp-kpis.erp-campus-kpis .erp-kpi { min-width:0; min-height:80px; padding:9px 10px; gap:8px; }
.erp-kpis.erp-campus-kpis .erp-kpi > .erp-icon { flex:0 0 auto; width:clamp(22px,2.2cqw,30px); height:clamp(22px,2.2cqw,30px); }
.erp-kpis.erp-campus-kpis .erp-kpi :is(span,small) { font-size:clamp(.72rem,.94cqw,.875rem); overflow-wrap:anywhere; }
.erp-kpi-action { position:relative; }
.erp-kpi-link { color:inherit; text-underline-offset:3px; }
.erp-kpi-link::after { content:""; position:absolute; inset:0; border-radius:inherit; }
.erp-kpi-action:hover,.erp-kpi-action:focus-within,.erp-kpi-action:has([aria-current="true"]) {
    border-color:var(--tone); box-shadow:inset 0 0 0 1px var(--tone);
}
.erp-dashboard-room-list th[scope="row"] { color:var(--ink); background:transparent; }
.erp-dashboard-room-list th[scope="row"] small { display:block; margin-top:3px; font-weight:600; }
.erp-dashboard-booking-slots { margin:0; padding:0; list-style:none; }
.erp-dashboard-booking-slots li { display:grid; gap:4px; }
.erp-dashboard-booking-slots li + li { margin-top:8px; padding-top:8px; border-top:1px solid #e5edf8; }
.erp-dashboard-booking-slots li small { margin-top:0; }
@container (min-width:660px) {
    .erp-kpis.erp-campus-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
    .erp-kpis.erp-campus-kpis:not(:has(.erp-kpi:nth-child(9))) { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@container (min-width:1500px) {
    .erp-campus-summary .erp-kpis.erp-campus-kpis { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
}
@container (min-width:500px) {
    .live-room-summary .erp-kpis.erp-campus-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@container (min-width:900px) {
    .live-room-summary .erp-kpis.erp-campus-kpis { grid-template-columns:repeat(6,minmax(0,1fr)); grid-auto-flow:row; }
}
.erp-room-tile:hover,.erp-more-rooms:hover { border-color:#659ae4; box-shadow:inset 0 0 0 1px #659ae4; }
.erp-more-rooms { color:#254779; background:#eaf1ff; }
.erp-more-buildings { display:inline-block; margin-top:7px; border:0; border-radius:6px; padding:5px 8px; color:#1954ad; background:#edf4ff;
    font-size:.74rem; font-weight:690; }.erp-more-buildings:hover { background:#dbeaff; }
.erp-monitor-panel { display:flex; flex-direction:column; }
.erp-monitor-tabs { display:flex; flex-wrap:wrap; width:100%; }.erp-monitor-tabs a { flex:1 0 auto; padding-inline:7px; }
.erp-dashboard-report { display:grid; gap:10px; margin-top:10px; }
.erp-dashboard-report .table-scroll { margin-top:0; }
.erp-dashboard-report .erp-monitor-filters { margin:0; }
.erp-dashboard-report caption { padding:6px 2px; text-align:left; font-weight:720; }
.erp-dashboard-report td { vertical-align:top; }
.erp-report-counts { white-space:nowrap; }
.faculty-register { min-width:0; }
.faculty-register-legend { display:flex; flex-wrap:wrap; gap:6px 12px; padding:0; margin:10px 0; list-style:none; font-size:.79rem; }
.faculty-register-holidays { margin-block:6px; font-size:.86rem; }
.faculty-register-table { width:max-content; min-width:100%; }
.faculty-register-table :is(th,td) { padding:6px 4px; text-align:center; white-space:nowrap; }
.faculty-register-table th:first-child { position:sticky; z-index:1; left:0; text-align:left; padding:6px 10px; background:#f7f9fd; }
.faculty-register-table th small { display:block; font-size:.65rem; font-weight:550; }
.faculty-register-table th.register-day-off,.faculty-register-table td.register-day-off { background:#f2f4f8; }
.register-status { display:inline-grid; min-width:24px; min-height:24px; place-items:center; padding:2px; border-radius:5px;
    color:#42546d; background:#eaf0f8; text-decoration:none; font-size:.73rem; font-weight:750; }
.register-present { background:#ddf5e5; color:#17612b; }
.register-absent { background:#ffe7e9; color:#a32432; }
.register-on_leave { background:#eee6ff; color:#5d298e; }
.register-holiday { background:#e4efff; color:#1a4e9d; }
.register-unmarked { background:#fff4d3; color:#875306; }
.erp-monitor-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:7px; margin:10px 0; }
.erp-monitor-filters :is(input,select,.button) { min-height:34px; height:34px; padding-block:4px; border-radius:6px; font-size:.78rem; }
.erp-monitor-filters .button { padding-inline:8px; }.erp-monitor-filters button .erp-icon { width:16px; height:16px; }
.erp-field-icon { position:relative; }.erp-field-icon > .erp-icon { position:absolute; left:7px; top:9px; pointer-events:none; width:16px; height:16px; color:#3a4e71; }
.erp-field-icon input { padding-left:26px; }
.erp-staff-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.erp-staff-metrics .erp-kpi { gap:5px; min-height:53px; padding:5px; border-radius:7px; }
.erp-staff-metrics .erp-icon { width:clamp(16px,1.55vw,26px); height:clamp(16px,1.55vw,26px); }
.erp-staff-metrics strong { font-size:clamp(1.05rem,1.45vw,1.5rem); }.erp-staff-metrics span { font-size:clamp(.61rem,.73vw,.79rem); }
.erp-monitor-table { margin:10px 0; border:1px solid #dce6f4; border-radius:8px; }.erp-monitor-table th { background:#eaf0fa; }
.erp-monitor-table :is(th,td) { font-size:clamp(.68rem,.79vw,.90rem); border-bottom-color:#e4ecf7; line-height:1.2; padding:7px 5px; }
.erp-monitor-table :is(th,td):is(:nth-child(4),:last-child) { text-align:center; }.erp-monitor-table tbody tr:nth-child(even) { background:#f7faff; }
.erp-monitor-table td strong { font-weight:670; }.erp-monitor-table .pill { padding:3px 7px; font-size:.69rem; }
.erp-monitor-table .pill.absent { background:#d72938; color:#fff; }.erp-monitor-table .pill.on_leave { background:#fff1d6; color:#875007; }
.erp-staff-actions summary,.erp-staff-action { list-style:none; color:var(--erp-blue); }
.erp-staff-actions summary .erp-icon,.erp-staff-action .erp-icon { width:17px; height:17px; }
.erp-staff-actions .stack { min-width:97px; margin-top:7px; }.erp-staff-actions .stack select { padding-left:3px; }
.erp-monitor-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; padding-top:8px; margin-top:auto; }
.erp-monitor-actions a { display:grid; justify-items:center; align-content:center; gap:5px; min-height:65px; padding:5px 2px; border-radius:8px;
    background:var(--tone-bg); border:1px solid var(--tone-border); color:var(--tone-dark); text-align:center; text-decoration:none;
    font-size:clamp(.64rem,.76vw,.86rem); font-weight:690; line-height:1.15; }
.erp-monitor-actions a:hover { border-color:var(--tone); }.erp-monitor-actions .erp-icon { width:25px; height:25px; color:var(--tone); }
.erp-monitor-title { margin-top:13px; }
.erp-highlights { display:grid; grid-template-columns:auto repeat(4,minmax(0,1fr)) auto; align-items:center; gap:8px; padding:11px 10px; }
.erp-highlights h2 { display:flex; align-items:center; gap:6px; color:#172744; font-size:clamp(.80rem,1vw,1.09rem); white-space:nowrap; }
.erp-highlights > div { display:flex; align-items:center; gap:7px; border-left:1px solid #dce5f2; padding-left:8px; }
.erp-highlights .erp-icon { color:var(--tone,#163961); width:23px; height:23px; }.erp-highlights strong,.erp-highlights small { display:block; }
.erp-highlights strong { color:var(--tone-dark); font-size:clamp(1rem,1.48vw,1.5rem); line-height:1; }
.erp-highlights small { color:#354962; font-size:clamp(.65rem,.78vw,.83rem); }
.erp-highlights .button { gap:6px; color:#104fae; }.erp-highlights .button .erp-icon { width:16px; height:16px; }
@media(min-width:1770px) {
    :root { --erp-head-height:clamp(64px,3.33vw,76px); font-size:clamp(16px,.96vw,22px); }
    .erp-logo { width:clamp(51px,2.82vw,65px); height:clamp(51px,2.82vw,65px); }
    .erp-header-icon { width:44px; height:44px; }.erp-header-icon .erp-icon { width:30px; height:30px; }
    .erp-college { min-width:clamp(220px,13vw,300px); }.erp-campus { min-width:clamp(185px,15.5vw,350px); }
    .erp-scope { padding:10px 14px; }.erp-account .avatar { width:48px; height:48px; }
    .erp-sidebar { padding-top:clamp(22px,1.25vw,29px); }.erp-sidebar nav > a,.erp-nav-group summary { min-height:clamp(45px,2.55vw,58px); }
    .erp-sidebar nav > a > .erp-icon,.erp-nav-group summary > .erp-icon { width:27px; height:27px; }
    .erp-nav-group summary .erp-nav-caret { width:18px; height:18px; }.erp-sidebar-buildings { max-height:258px; }
    .command-workspace .main { padding:18px 14px 24px; gap:17px; }.erp-dashboard-heading { min-height:74px; }
    .erp-heading-title > .erp-icon { width:40px; height:40px; }.erp-date { min-height:55px; padding-inline:15px; }.erp-date .erp-icon { width:24px; height:24px; }
    .erp-kpi { min-height:clamp(92px,5.15vw,118px); }.erp-kpis .erp-kpi { padding-inline:clamp(12px,1.3vw,30px); gap:13px; }
    .erp-monitor-grid { min-height:clamp(610px,35.6vw,816px); }.erp-monitor-grid > .panel { padding:12px; }
    .erp-segment a { min-height:clamp(38px,2.25vw,52px); padding-inline:14px; }.erp-monitor-tabs a { padding-inline:5px; }
    .erp-building-toolbar .erp-segment a { min-width:clamp(155px,9.2vw,211px); }.erp-legend li::before { width:14px; height:14px; }
    .erp-building-toolbar { margin-bottom:18px; }.erp-building-grid { gap:12px; }.erp-building { padding:clamp(8px,.54vw,12px); }
    .erp-building-head { gap:14px; }.erp-building-use { margin:4px 1px 12px; }.erp-building-use progress { height:10px; }
    .erp-room-tiles { min-height:clamp(112px,6.2vw,142px); --room-tile-gap:7px; }.erp-room-tile { min-height:clamp(49px,2.95vw,68px); }
    .erp-monitor-filters { gap:9px; margin:14px 0; }.erp-monitor-filters :is(input,select,.button) { height:46px; min-height:46px; }
    .erp-field-icon > .erp-icon { top:15px; }.erp-staff-metrics .erp-kpi { min-height:clamp(61px,3.35vw,77px); }
    .erp-monitor-table :is(th,td) { padding:10px 7px; }.erp-monitor-actions a { min-height:clamp(75px,4.4vw,101px); }
    .erp-monitor-actions .erp-icon { width:33px; height:33px; }.erp-highlights { min-height:clamp(72px,4.2vw,96px); }
}
@media(min-width:1271px) {
    .erp-heading-controls .erp-date:first-child { min-width:clamp(175px,14.4vw,300px); justify-content:center; }
    .erp-heading-controls .erp-date:nth-child(2) { min-width:clamp(144px,12vw,238px); justify-content:center; }
}
@media(max-width:1270px) {
    .erp-dashboard-heading { align-items:start; }.erp-heading-controls { gap:4px; }
    .erp-monitor-grid { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); }
    .erp-building-grid { gap:6px; }.erp-building { padding:5px; }.erp-building-head { gap:5px; }
}
@media(max-width:1130px) {
    .erp-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }.erp-monitor-grid { grid-template-columns:minmax(0,1fr); }.erp-monitor-actions { margin-top:0; }
    .erp-highlights { grid-template-columns:repeat(4,minmax(0,1fr)); }.erp-highlights h2,.erp-highlights > .button { grid-column:span 2; }
    .erp-highlights > .button { grid-row:1; grid-column:3/-1; justify-self:end; }
}
@media(max-width:650px) {
    .erp-dashboard-heading { flex-direction:column; }.erp-heading-controls { flex-wrap:wrap; }.erp-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .erp-kpi { min-height:59px; }.erp-building-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.erp-monitor-grid > .panel { padding:7px; }
    .erp-highlights > div { align-items:flex-start; padding-left:3px; gap:3px; }.erp-highlights > div .erp-icon { width:15px; height:15px; }
}
@media(max-width:380px) {
    .erp-building-grid { grid-template-columns:minmax(0,1fr); }.erp-staff-metrics,.erp-monitor-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Faculty dashboard */
.faculty-workspace .main { max-width:none; padding:clamp(15px,1.2vw,25px); gap:clamp(12px,1vw,22px); }
.faculty-navigation .faculty-utility-start { margin-top:13px; }
.faculty-term { cursor:default; }
.faculty-term:hover { background:#f8faff; }
.faculty-heading { min-height:clamp(53px,3.5vw,79px); }
.faculty-home-metrics.erp-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(9px,1vw,20px); }
.faculty-home-metrics .erp-kpi { min-height:clamp(74px,5vw,114px); gap:clamp(9px,1.5vw,24px); padding-inline:clamp(10px,1.35vw,30px); }
.faculty-home-metrics .erp-kpi > .erp-icon { width:clamp(29px,3vw,56px); height:clamp(29px,3vw,56px); }
.faculty-home-metrics .erp-kpi span { font-size:clamp(.72rem,1.05vw,1rem); }
.faculty-home-main { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:clamp(10px,1vw,20px); align-items:stretch; }
.faculty-home-main .panel,.faculty-home-bottom .panel { min-width:0; padding:clamp(11px,1vw,21px); }
.faculty-home-main h2,.faculty-home-bottom h2 { color:var(--ink); font-size:clamp(1.05rem,1.37vw,1.55rem); }
.faculty-home-schedule .section-heading h2 span { white-space:nowrap; }
.faculty-home-schedule .section-heading,.faculty-home-room .section-heading,.faculty-home-bottom .section-heading { margin-bottom:clamp(9px,.8vw,16px); }
.faculty-panel-link,.faculty-room-link { display:inline-flex; align-items:center; gap:4px; color:var(--accent); text-decoration:none; font-weight:690;
    font-size:clamp(.73rem,.84vw,.91rem); white-space:nowrap; }
.faculty-panel-link:hover,.faculty-room-link:hover { text-decoration:underline; }
.faculty-panel-link .erp-icon,.faculty-room-link .erp-icon { width:clamp(14px,.85vw,19px); height:clamp(14px,.85vw,19px); }
.faculty-schedule-wrap { border:1px solid var(--border); border-radius:8px; }
.faculty-schedule { min-width:540px; }
.faculty-schedule :is(th,td) { padding:clamp(8px,.7vw,15px) clamp(7px,.75vw,16px); font-size:clamp(.76rem,.83vw,.93rem); }
.faculty-schedule th { background:#e8eff9; color:#283f60; }
.faculty-schedule td { vertical-align:middle; }
.faculty-schedule td small { line-height:1.25; }
.faculty-schedule .class-running { background:#e7f1ff; }
.faculty-class-time { display:block; white-space:nowrap; }
.faculty-class-pill { gap:4px; white-space:nowrap; }
.faculty-class-pill .erp-icon { width:15px; height:15px; }
.faculty-class-actions .button { min-height:28px; padding:4px 7px; font-size:.72rem; }
.faculty-class-actions .faculty-end-action { background:#fff1f2; color:#ac1f29; border-color:#f1a8af; }
.faculty-class-actions .faculty-end-action:hover { background:#ffe4e8; }
.faculty-schedule-empty { min-height:165px; border:1px dashed #d6e4f6; border-radius:8px; background:#f7faff; }
.faculty-home-side { display:grid; gap:clamp(10px,.8vw,18px); min-width:0; }
.faculty-home-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(6px,.65vw,14px); margin-top:clamp(8px,.7vw,16px); }
.faculty-home-actions a { color:var(--tone-dark); border:1px solid var(--tone-border); background:var(--tone-bg); border-radius:9px; text-decoration:none;
    display:grid; justify-items:center; align-content:center; gap:clamp(4px,.5vw,10px); min-height:clamp(70px,5.6vw,128px); padding:5px;
    font-size:clamp(.71rem,.83vw,.92rem); text-align:center; font-weight:700; line-height:1.2; }
.faculty-home-actions a:hover { border-color:var(--tone); box-shadow:0 1px 4px #264c8221; }
.faculty-home-actions .tone-cyan { --tone:#14789f; --tone-dark:#104e69; --tone-bg:#e0f5fc; --tone-border:#c5eaf6; }
.faculty-home-actions .erp-icon { width:clamp(24px,1.85vw,43px); height:clamp(24px,1.85vw,43px); color:var(--tone); }
.faculty-home-room-content { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:clamp(10px,.9vw,20px); }
.faculty-home-room-content .room-photo { height:clamp(96px,8vw,170px); }
.faculty-room-assignment { font-size:clamp(.76rem,.9vw,.95rem); font-weight:680; line-height:1.2; margin-bottom:6px; }
.faculty-home-room-content dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 7px; margin:0; font-size:clamp(.72rem,.8vw,.91rem); }
.faculty-home-room-content dt { display:flex; align-items:center; gap:4px; color:var(--muted); }
.faculty-home-room-content dt .erp-icon { width:15px; height:15px; color:#245395; }
.faculty-home-room-content dd { margin:0; font-weight:620; overflow-wrap:anywhere; }
.faculty-home-room .empty { min-height:96px; }
.faculty-home-bottom { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(10px,.85vw,18px); }
.faculty-home-bottom h2 small { color:var(--muted); font-size:.63em; font-weight:620; white-space:nowrap; }
.faculty-week-summary { display:grid; grid-template-columns:auto minmax(0,1fr); gap:clamp(8px,1.1vw,24px); align-items:center; }
.faculty-attendance-ring { position:relative; display:grid; place-items:center; width:clamp(70px,6.8vw,151px); aspect-ratio:1; }
.faculty-attendance-ring svg { position:absolute; inset:0; width:100%; height:100%; fill:none; stroke:#e2ecfa; stroke-width:10; }
.faculty-attendance-ring .faculty-attendance-value { stroke:#1c9c42; }
.faculty-attendance-ring > div { display:grid; align-content:center; text-align:center; width:81%; aspect-ratio:1; border-radius:50%; background:white; }
.faculty-attendance-ring strong { display:block; font-size:clamp(1.02rem,1.7vw,1.9rem); line-height:1.1; font-variant-numeric:tabular-nums; }
.faculty-attendance-ring small { font-size:clamp(.57rem,.72vw,.79rem); }
.faculty-week-summary dl { margin:0; }
.faculty-summary-row { display:grid; align-items:center; grid-template-columns:minmax(0,1fr) auto; gap:4px; padding:6px 0; border-bottom:1px solid var(--border); }
.faculty-summary-row:last-child { border-bottom:0; }
.faculty-summary-row dt { display:flex; align-items:center; gap:5px; font-size:clamp(.72rem,.81vw,.9rem); }
.faculty-summary-row dd { margin:0; font-weight:730; }
.faculty-summary-row .erp-icon { width:17px; height:17px; color:var(--tone); }
.faculty-feed-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:7px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border);
    font-size:clamp(.72rem,.85vw,.93rem); }
.faculty-feed-row:last-child { border-bottom:0; }
.faculty-feed-row > .erp-icon { color:var(--accent); width:18px; height:18px; }
.faculty-feed-row strong { display:block; line-height:1.25; }
.faculty-feed-row div small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.25; }
.faculty-feed-row time { white-space:nowrap; color:var(--muted); font-size:.9em; }
.faculty-panel-empty { color:var(--muted); padding:12px 0; font-size:.9rem; }
@media(max-width: 1050px) {
    .faculty-home-main { grid-template-columns:minmax(0,1fr); }
    .faculty-home-side { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .faculty-home-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width: 650px) {
    .faculty-workspace .main { padding:12px; }
    .faculty-home-metrics.erp-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .faculty-home-side,.faculty-home-bottom { grid-template-columns:minmax(0,1fr); }
    .faculty-home-bottom { gap:10px; }
    .faculty-home-room-content .room-photo { height:100px; }
}

/* Faculty timetable workspace */
.timetable-workspace .main { max-width:none; padding:clamp(12px,1.1vw,25px); gap:clamp(10px,.95vw,20px); }
.tt-heading { min-height:clamp(53px,3.5vw,78px); }
.tt-heading p a { text-decoration:none; }.tt-heading p a:hover { text-decoration:underline; }
.tt-header-status { display:inline-flex; align-items:center; gap:7px; color:#146028; background:#e1f8e7; padding:8px 13px;
    border:1px solid #cdecd4; border-radius:8px; font-size:.84rem; font-weight:720; white-space:nowrap; }
.tt-header-status::before { width:8px; height:8px; border-radius:50%; content:""; background:#218d36; }
.tt-header-status.locked { color:#294275; background:#eaf1fe; border-color:#d5e1f6; }.tt-header-status.locked::before { background:var(--accent); }
.tt-workflow { width:min(100%,76%); }
.tt-workflow a { display:flex; gap:clamp(9px,1vw,20px); align-items:center; padding:clamp(8px,.85vw,18px) clamp(9px,1vw,24px);
    border-color:#cfdcef; border-radius:9px; min-height:clamp(55px,4vw,92px); }
.tt-workflow a .erp-icon { width:clamp(22px,1.8vw,43px); height:clamp(22px,1.8vw,43px); }
.tt-workflow a span { display:grid; gap:2px; }.tt-workflow strong { font-size:clamp(.79rem,1vw,1.04rem); }.tt-workflow small { font-size:clamp(.68rem,.85vw,.87rem); line-height:1.15; }
.tt-scope { display:flex; align-items:end; flex-wrap:wrap; gap:8px 11px; padding:clamp(10px,.85vw,19px); }
.tt-scope-form { display:flex; flex:1 1 520px; align-items:end; gap:7px; min-width:0; }
.tt-scope-form label { flex:1 1 0; }.tt-scope-form label:nth-of-type(3) { flex:1.35 1 0; }
.tt-scope-form label select { width:100%; }.tt-scope .erp-icon,.tt-toolbar .erp-icon,.tt-copy-button .erp-icon { width:16px; height:16px; margin-right:4px; }
.tt-scope .erp-segment a { min-height:34px; padding-inline:8px; }
.tt-timings { scroll-margin-top:85px; }
.tt-timings h2 { margin:0 0 10px; font-size:1.05rem; }
.tt-timings p { margin:0 0 10px; }
.tt-timings .form-grid { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
.tt-timings .actions { align-self:end; }
.tt-studio { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; gap:clamp(8px,.8vw,17px); align-items:start; }
.tt-studio.tt-studio-editing { grid-template-columns:minmax(160px,.82fr) minmax(0,2.65fr) minmax(190px,1fr); }
.tt-studio-side { display:grid; gap:clamp(8px,.75vw,16px); min-width:0; }
.tt-studio .panel { min-width:0; padding:clamp(8px,.8vw,17px); border-radius:11px; }
.tt-studio .section-heading { margin-bottom:9px; }.tt-studio h2 { font-size:clamp(.92rem,1.12vw,1.2rem); }
.tt-studio .muted { font-size:.76rem; }.tt-studio .section-heading > .erp-icon { width:17px; height:17px; color:#44668e; }
.tt-subject-modes { width:100%; }
.tt-subject-modes button { flex:1; min-width:0; padding:6px 4px; border:0; border-radius:5px; background:none; color:#244265; font-size:.7rem; font-weight:700; }
.tt-subject-modes button[aria-pressed="true"] { background:#fff; box-shadow:inset 0 -2px var(--accent); color:var(--accent); }
.tt-search { position:relative; margin:9px 0; }.tt-search > .erp-icon { position:absolute; top:9px; left:7px; width:16px; height:16px; color:#597393; pointer-events:none; }
.tt-search input { min-height:34px; padding:5px 5px 5px 28px; font-size:.73rem; }
.tt-subject-list { display:grid; gap:6px; max-height:clamp(215px,26vw,560px); overflow:auto; }
.tt-subject-card { display:flex; align-items:center; gap:6px; padding:7px; text-decoration:none; background:var(--tt-fill); color:var(--tt-ink);
    border:1px solid var(--tt-border); border-radius:7px; overflow-wrap:anywhere; }
.tt-subject-card:hover,.tt-subject-card[aria-current] { border-color:var(--accent); }
.tt-subject-card .erp-icon { width:18px; height:18px; color:var(--tt-ink); }
.tt-subject-card span > :is(strong,span,small) { display:block; font-size:.72rem; line-height:1.25; }.tt-subject-card span > small { color:var(--tt-ink); }
.tt-tone-0 { --tt-fill:#e0f4e5; --tt-ink:#1b5b33; --tt-border:#cbe8d4; }
.tt-tone-1 { --tt-fill:#e1efff; --tt-ink:#174c88; --tt-border:#ccdef7; }
.tt-tone-2 { --tt-fill:#fff0d9; --tt-ink:#74450b; --tt-border:#f7e1b7; }
.tt-tone-3 { --tt-fill:#eee4ff; --tt-ink:#4b2984; --tt-border:#e6d6f9; }
.tt-copy-panel { display:grid; gap:8px; scroll-margin-top:calc(var(--erp-head-height) + 10px); }
.tt-copy-panel:target,.tt-edit-form:target { outline:2px solid #84adf4; }
.tt-copy-panel .section-heading { margin:0; }
.tt-copy-days { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; min-width:0; margin:0; }.tt-copy-days .choice { gap:3px; font-size:.69rem; }
.tt-copy-button { justify-self:start; }.tt-copy-panel p { line-height:1.35; }
.tt-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-bottom:9px; }
.tt-overview { margin-bottom: 10px; }
.tt-overview h2 { font-size: 1rem; margin: 0 0 7px; }
.tt-overview dl { display:grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,115px),1fr)); gap: 6px; margin: 0; }
.tt-overview dl > div { background:#f1f6ff; border-radius:6px; padding:6px 8px; }
.tt-overview dt { color:#455979; font-size:.72rem; }
.tt-overview dd { margin:2px 0 0; font-size:.8rem; font-weight:700; }
.tt-overview small { display:block; font-weight:400; }
.tt-toolbar .button,.tt-copy-button { font-size:clamp(.67rem,.78vw,.86rem); min-height:32px; padding:5px 7px; }
.tt-toolbar [aria-pressed="true"] { color:#104495; background:#e3efff; border-color:#8ab2f4; }
.tt-toolbar [disabled] { opacity:.45; cursor:default; }.tt-amber { color:#a86608; }.tt-green { color:#218135; }.button.tt-danger { color:#b5232f; }
.tt-table-wrap { margin:0; border:1px solid var(--border); border-radius:8px; }
.tt-week-grid { min-width:580px; }
.tt-week-grid.tt-day-grid { min-width:350px; }
.tt-week-grid thead th { height:clamp(42px,3vw,70px); color:#142744; background:#e8effa; text-align:center; }
.tt-week-grid thead th:first-child { width:clamp(63px,6vw,132px); white-space:normal; }
.tt-week-grid tbody th { background:#f3f6fc; border:1px solid var(--border); font-size:.72rem; white-space:normal; }
.tt-week-grid tbody th :is(strong,span) { display:block; }
.tt-week-grid tbody th strong { color:var(--ink); font-weight:760; font-size:.83rem; margin-bottom:2px; }
.tt-week-grid tbody td { height:clamp(47px,3.65vw,84px); padding:3px; border-color:#d9e4f0; background:#fbfcff; vertical-align:top; }
.tt-week-grid .tt-lunch td { height:auto; min-height:32px; padding:7px; text-align:center; background:#fff3cb; color:#6f4907; font-size:.8rem; font-weight:730; }
.tt-lunch small { font-size:inherit; margin-left:6px; font-weight:580; }
.tt-period { position:relative; padding:5px 5px 4px; color:var(--tt-ink); background:var(--tt-fill); border:1px solid var(--tt-border); }
.tt-period.tt-period-selected { box-shadow:inset 0 0 0 1px #77a4e9; }
.tt-period a { display:flex; justify-content:space-between; align-items:center; gap:3px; }
.tt-period a .erp-icon { width:clamp(11px,.8vw,17px); height:clamp(11px,.8vw,17px); }
.tt-period .tt-select { margin:0 0 3px; }.tt-period small { overflow-wrap:anywhere; }
.tt-empty-slot { min-height:clamp(38px,2.8vw,66px); color:#425b7c; border-radius:5px; }.tt-empty-slot:hover { background:#e8f2ff; }
.tt-class-details dl { margin:0 0 8px; font-size:.72rem; }.tt-class-details dl > div {
    display:grid; grid-template-columns:minmax(65px,.8fr) minmax(0,1.2fr); gap:4px; align-items:start; padding:6px 0; border-bottom:1px solid #e5edf8; }
.tt-class-details dt { display:flex; align-items:center; gap:4px; color:#344d70; }
.tt-class-details dt .erp-icon { width:14px; height:14px; }.tt-class-details dd { margin:0; font-weight:680; overflow-wrap:anywhere; }
.tt-detail-actions,.tt-status-actions { display:flex; flex-wrap:wrap; gap:5px; }
.tt-detail-actions .button,.tt-status-actions .button { font-size:.68rem; min-height:31px; padding:4px 6px; }
.tt-edit-form,.tt-edit-form select { scroll-margin-top:calc(var(--erp-head-height) + 14px); }.tt-edit-form .button { justify-self:start; }
.tt-edit-form :is(select,input) { font-size:.78rem; min-height:34px; padding-block:5px; }
.tt-status-panel ol { display:grid; grid-template-columns:repeat(3,1fr); list-style:none; margin:5px 0 10px; padding:0; }
.tt-status-panel li { position:relative; display:grid; justify-items:center; gap:4px; font-size:.75rem; font-weight:700; }
.tt-status-panel li:not(:last-child)::after { content:""; position:absolute; top:11px; left:calc(50% + 13px); right:calc(-50% + 13px); height:2px; background:#d2dff0; }
.tt-status-panel li span { color:#7f97ba; }.tt-status-panel li.active span { color:#218934; }
.tt-status-panel li .erp-icon { width:22px; height:22px; }.tt-status-actions { margin-bottom:7px; }
.tt-status-actions .primary { border-color:#18882f; background:#18882f; }.tt-status-actions .primary:hover { background:#136d25; }
.tt-status-panel > .text-link { font-size:.73rem; }
@media(max-width:1180px) {
    .tt-workflow { width:100%; }
    .tt-studio.tt-studio-editing { grid-template-columns:minmax(145px,1fr) minmax(0,3.2fr); }
    .tt-studio.tt-studio-editing > aside:last-child { grid-column:1/-1; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); }
}
@media(max-width:680px) {
    .tt-workflow { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tt-scope-form { flex-wrap:wrap; }.tt-scope-form label { flex:1 1 44%; }.tt-scope-form label:nth-of-type(3) { flex:1 1 44%; }
    .tt-studio.tt-studio-editing { grid-template-columns:minmax(0,1fr); }
    .tt-studio .tt-studio-side:first-child { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tt-copy-days { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Faculty management */
.faculty-admin-workspace .main { max-width:none; gap:14px; padding:20px clamp(15px,1.6vw,34px) 30px; min-width:0; }
.faculty-management-heading, .faculty-directory-header, .faculty-directory-footer, .faculty-workload-heading {
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.faculty-page-title, .faculty-directory-header h2, .faculty-directory-person {
    display:flex; align-items:center; min-width:0; gap:10px;
}
.faculty-page-title { gap:13px; }
.faculty-page-title h1 { color:#101e3a; font-size:clamp(1.55rem,2.3vw,2.3rem); }
.faculty-page-title p, .faculty-directory-header p { color:var(--muted); font-size:.87rem; margin-top:4px; }
.faculty-heading-icon, .faculty-metric-icon {
    display:grid; place-items:center; border-radius:50%; flex:none; width:50px; aspect-ratio:1; color:#075bd6; background:#e1efff;
}
.faculty-heading-icon .erp-icon, .faculty-metric-icon .erp-icon { width:27px; height:27px; }
.faculty-admin-workspace .button { gap:7px; }
.faculty-admin-workspace .button .erp-icon, .faculty-management-nav .erp-icon, .faculty-row-actions .erp-icon {
    width:17px; height:17px; flex:none;
}
.faculty-management-nav { flex-wrap:wrap; width:fit-content; }
.faculty-management-nav a { gap:7px; font-size:.79rem; }
.faculty-admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.faculty-admin-metric { display:flex; gap:14px; align-items:center; padding:13px 15px; box-shadow:0 2px 5px #10284b0b; }
.faculty-metric-icon { color:var(--tone); background:var(--tone-bg); }
.faculty-admin-metric strong { display:block; font-size:clamp(1.45rem,2vw,2rem); line-height:1.14; letter-spacing:-.035em; }
.faculty-admin-metric div > span { font-size:.83rem; font-weight:700; }
.faculty-admin-metric small { display:block; font-size:.75rem; margin-top:3px; }
.faculty-directory, .faculty-admin-panel { padding:14px; min-width:0; box-shadow:0 2px 6px #10284b0c; }
.faculty-directory h2 .erp-icon { width:22px; height:22px; color:#0a5edc; }
.faculty-photo-field { display:grid; gap:4px; justify-items:center; text-align:center; min-width:0; }
.faculty-avatar { display:grid; place-items:center; border-radius:50%; width:35px; height:35px; object-fit:cover; flex:none; font-weight:750; }
.faculty-avatar-initials { background:#e7effb; color:#275184; }
.faculty-photo-preview { position:relative; width:80px; height:80px; }
.faculty-photo-preview .faculty-avatar { width:100%; height:100%; }
.faculty-photo-preview .faculty-avatar .erp-icon { width:45px; height:45px; stroke-width:1.2; }
.faculty-camera { position:absolute; bottom:0; right:0; display:grid; width:24px; height:24px; border:2px solid #fff; border-radius:50%; place-items:center; background:#0956d5; color:#fff; }
.faculty-camera .erp-icon { width:13px; height:13px; }
.faculty-photo-picker { position:relative; display:inline-block; margin-top:6px; color:#0b55c2; cursor:pointer; }
.faculty-photo-picker:focus-within { outline:2px solid #397adc; outline-offset:3px; }
.faculty-photo-picker input { position:absolute; inset:0; width:100%; min-height:0; opacity:0; cursor:pointer; }
.faculty-photo-field small { font-size:.72rem; }
.faculty-admin-panel .choice-set { margin:0 0 12px; min-width:0; padding:12px; border:1px solid #dce6f4; border-radius:8px; }
.faculty-admin-panel .choice-set legend { padding:0 6px; color:#1f3b64; font-weight:700; }
.faculty-subject-search { max-width:380px; margin-bottom:10px; }
.faculty-subject-options { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(205px,100%),1fr)); gap:7px; max-height:285px; overflow:auto; }
.faculty-subject-options .choice { display:flex; align-items:flex-start; padding:8px; background:#fff; border:1px solid #e0e8f5; border-radius:7px; }
.faculty-subject-options span { min-width:0; overflow-wrap:anywhere; }
.faculty-subject-options small { display:block; margin-top:3px; font-weight:450; font-size:.73rem; }
.faculty-directory-header { margin-bottom:12px; }
.faculty-directory-filters, .faculty-screen-filters { display:flex; flex-wrap:wrap; align-items:end; gap:7px; }
.faculty-directory-filters input { width:clamp(175px,14vw,300px); }
.faculty-directory-filters select { max-width:195px; }
.faculty-table-wrap { overflow-x:auto; }
.faculty-admin-table { min-width:730px; font-size:.82rem; background:#fff; }
.faculty-admin-table th { color:#213c62; background:#eaf1fb; }
.faculty-admin-table td, .faculty-admin-table th { padding:7px 8px; vertical-align:middle; }
.faculty-admin-table tbody tr:hover { background:#f7faff; }
.faculty-directory-person a { color:var(--ink); font-weight:700; text-decoration:none; }
.faculty-directory-person a:hover { text-decoration:underline; }
.faculty-directory-person small { font-size:.71rem; }
.faculty-subject-pills, .faculty-row-actions, .faculty-pager, .faculty-pager nav { display:flex; align-items:center; gap:5px; }
.faculty-subject-pills span { border:1px solid #dce6f4; border-radius:7px; padding:3px 6px; background:#f0f5fc; }
.faculty-subject-pills span + span { color:#1b58a4; background:#e5effe; }
.faculty-state { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border-radius:999px; padding:4px 8px; font-size:.75rem; font-weight:700; background:#edf1f7; color:#41506a; }
.faculty-state::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.faculty-state.active { color:#147031; background:#e0f5e6; }
.faculty-state.on_leave { color:#95480a; background:#fff1d8; }
.faculty-row-actions a, .faculty-pager nav a { display:grid; min-width:30px; height:30px; place-items:center; border:1px solid #dbe5f4; border-radius:7px; color:#204473; text-decoration:none; }
.faculty-row-actions a:hover, .faculty-pager nav a:hover { background:#e6f0ff; }
.faculty-row-actions .faculty-delete { color:#b92035; }
.faculty-row-actions .faculty-delete:hover { background:#ffeff1; }
.faculty-directory-footer { padding-top:12px; font-size:.82rem; color:var(--muted); }
.faculty-pager { gap:12px; flex-wrap:wrap; }
.faculty-pager label { display:flex; align-items:center; gap:7px; white-space:nowrap; font-size:.8rem; }
.faculty-pager select { min-height:30px; width:auto; min-width:55px; padding:3px 5px; font-size:.8rem; }
.faculty-pager nav a[aria-current="page"] { background:#0956d5; border-color:#0956d5; color:white; }
.faculty-empty { color:var(--muted); padding:15px 3px; }
.faculty-profile-heading .faculty-avatar { width:56px; height:56px; font-size:1.3rem; }
.faculty-profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.faculty-profile-details { display:grid; gap:5px; margin-bottom:0; }
.faculty-profile-details div { display:grid; grid-template-columns:115px minmax(0,1fr); gap:10px; border-bottom:1px solid #e5edf6; padding:4px 0; align-items:center; }
.faculty-profile-details dt { font-size:.82rem; font-weight:700; color:#304762; }
.faculty-profile-details dd { margin:0; overflow-wrap:anywhere; }
.faculty-admin-panel > p, .faculty-archive p, .faculty-workload-heading p { color:var(--muted); margin:5px 0 11px; }
.faculty-archive summary { color:#a02334; font-weight:700; }
.faculty-archive .button.danger { background:#b92035; color:white; }
.faculty-screen-filters { margin-bottom:15px; }
.faculty-screen-filters select { max-width:380px; }
.faculty-workload-stats { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px; }
.faculty-workload-stats div { display:grid; border-radius:8px; background:#eef5ff; padding:8px 11px; }
.faculty-workload-stats strong { font-size:1.15rem; }
.faculty-workload-stats span { font-size:.78rem; color:var(--muted); }
@media (max-width:790px) {
    .faculty-admin-metrics, .faculty-profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .faculty-profile-grid { grid-template-columns:1fr; }
    .faculty-admin-metric { gap:8px; padding:9px; }
    .faculty-metric-icon { width:34px; }
    .faculty-metric-icon .erp-icon { width:20px; height:20px; }
    .faculty-directory-filters label { flex:1 1 145px; }
    .faculty-directory-filters input, .faculty-directory-filters select { width:100%; max-width:none; }
}
@media (max-width:530px) {
    .faculty-management-nav { width:100%; }
    .faculty-management-nav a { flex:1 1 46%; padding:7px 4px; gap:5px; }
    .faculty-directory .faculty-admin-table { display:block; min-width:0; }
    .faculty-directory .faculty-admin-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .faculty-directory .faculty-admin-table tbody { display:grid; gap:8px; }
    .faculty-directory .faculty-admin-table tr {
        display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"person status" "employee department" "designation subjects" "actions actions";
        gap:7px 10px; padding:9px; border:1px solid #e0e8f5; border-radius:9px;
    }
    .faculty-directory .faculty-admin-table td { padding:0; border:0; min-width:0; overflow-wrap:anywhere; }
    .faculty-directory .faculty-admin-table td[data-label]::before {
        content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:.7rem; font-weight:650;
    }
    .faculty-directory .faculty-admin-table td:nth-child(1) { display:none; }
    .faculty-directory .faculty-admin-table td:nth-child(2) { grid-area:person; }
    .faculty-directory .faculty-admin-table td:nth-child(3) { grid-area:employee; }
    .faculty-directory .faculty-admin-table td:nth-child(4) { grid-area:department; }
    .faculty-directory .faculty-admin-table td:nth-child(5) { grid-area:designation; }
    .faculty-directory .faculty-admin-table td:nth-child(6) { grid-area:subjects; }
    .faculty-directory .faculty-admin-table td:nth-child(7) { grid-area:status; justify-self:end; align-self:center; }
    .faculty-directory .faculty-admin-table td:nth-child(8) { grid-area:actions; }
    .faculty-directory .faculty-subject-pills { flex-wrap:wrap; }
    .faculty-directory .faculty-row-actions a { min-width:36px; height:36px; }
}


/* Faculty registration */
.faculty-register-crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:.78rem; color:var(--muted); }
.faculty-register-crumbs a { color:#365681; text-decoration:none; }
.faculty-register-crumbs a:hover { text-decoration:underline; }
.faculty-register-crumbs [aria-current] { color:var(--ink); font-weight:650; }
.faculty-register, .faculty-register-section { display:grid; gap:13px; }
.faculty-register-steps {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; padding:8px; gap:5px; list-style:none;
}
.faculty-register-steps button {
    display:flex; width:100%; align-items:center; gap:10px; padding:10px; min-height:62px; text-align:left;
    border:1px solid transparent; border-radius:8px; background:none; color:#1b3153;
}
.faculty-register-steps button:not(:disabled):hover { background:#eef5ff; }
.faculty-register-steps button[aria-current="step"] { color:#0755c8; border-color:#cfe3ff; background:#e6f1ff; box-shadow:inset 0 -2px #0b62df; }
.faculty-register-steps button:disabled { cursor:default; }
.faculty-register-steps small { display:block; margin-top:2px; font-size:.74rem; }
.faculty-register-number {
    display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:50%;
    background:#edf2fa; color:#244367; border:1px solid #cfdbed; font-weight:750;
}
.faculty-register-steps button[aria-current="step"] .faculty-register-number { background:#095bd8; color:white; border-color:transparent; }
.faculty-register-basic { display:grid; grid-template-columns:minmax(160px, 205px) minmax(0,1fr); gap:13px; }
.faculty-register-card h2 { display:flex; align-items:center; gap:8px; margin-bottom:14px; font-size:1.05rem; }
.faculty-register-card h2 .erp-icon { color:#075bd6; width:21px; height:21px; }
.faculty-register-card .section-heading { flex-wrap:wrap; align-items:baseline; margin-bottom:9px; }
.faculty-register-card .section-heading h2 { margin-bottom:0; }
.faculty-register-photo .faculty-photo-field { border:1px dashed #cdddf4; border-radius:9px; background:#f4f8fe; padding:14px 8px; }
.faculty-register-photo .faculty-photo-preview { width:88px; height:88px; }
.faculty-register-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 14px; }
.faculty-register-wide { grid-column:span 3; }
.faculty-register textarea { width:100%; border:1px solid #c9d6e8; border-radius:8px; padding:8px 10px; resize:vertical; font:inherit; font-weight:400; }
.faculty-register .choice-set { min-width:0; margin:12px 0 0; padding:11px; border:1px solid #dce6f4; border-radius:8px; }
.faculty-register .choice-set legend { padding-inline:5px; color:#1f3b64; font-weight:680; font-size:.9rem; }
.faculty-register-actions { justify-content:flex-end; }
.faculty-register-actions button, .faculty-register-actions a { min-width:96px; }
@media(max-width:1000px) {
    .faculty-register-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .faculty-register-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .faculty-register-wide { grid-column:span 2; }
}
@media(max-width:560px) {
    .faculty-register-basic, .faculty-register-fields { grid-template-columns:1fr; }
    .faculty-register-wide { grid-column:auto; }
    .faculty-register-steps button { gap:5px; padding:6px; min-height:48px; font-size:.81rem; }
    .faculty-register-steps small { display:none; }
    .faculty-register-number { width:26px; height:26px; }
}


/* Student admissions */
.student-editor, .student-directory { scroll-margin-top:63px; }
.student-editor-grid { display:grid; grid-template-columns:minmax(115px,155px) minmax(0,1fr); align-items:start; gap:17px; }
.student-photo { border:1px solid #e0eaf7; background:#f1f6fd; padding:14px 7px; border-radius:9px; text-align:center; }
.student-editor-content { display:grid; gap:10px; min-width:0; }
.student-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 12px; }
.student-admission-field { grid-column:span 2; }
.student-extra-fields { border-top:1px solid #e5edf8; padding-top:9px; }
.student-extra-fields summary { margin-bottom:6px; color:#334d72; font-size:.84rem; font-weight:650; }
.student-form-actions { justify-content:flex-end; }
.student-directory-filters { align-items:end; }
.student-directory-filters select { max-width:230px; }
.student-course { display:inline-block; padding:3px 7px; border-radius:7px; color:#154d99; background:#e8f1ff; font-size:.77rem; font-weight:660; }
@media (max-width:1050px) {
    .student-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
    .student-editor-grid { grid-template-columns:1fr; gap:12px; }
    .student-photo { width:min(155px,100%); align-self:center; justify-self:center; }
}
@media (max-width:530px) {
    .student-directory-filters select { max-width:none; }
}


/* Single-room overview */
.single-room-heading { flex-wrap:wrap; }
.single-room-title { display:flex; align-items:center; gap:13px; min-width:0; }
.single-room-title h1, .single-room-title p { overflow-wrap:anywhere; }
.single-room-icon { display:grid; place-items:center; width:52px; height:52px; flex:none; border-radius:13px; color:#075bd6; background:#e5f0ff; }
.single-room-icon .erp-icon { width:26px; height:26px; }
.single-room-timeline, .single-room-info { display:grid; gap:14px; min-width:0; }
.single-room-timeline { grid-template-columns:repeat(2,minmax(0,1fr)); }
.single-class-card { min-width:0; border-top:3px solid #a6c9f7; }
.single-class-card.class-running { border-top-color:#35a954; }
.single-class-card.class-overrun { border-top-color:#e1a83d; }
.single-class-card header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:13px; }
.single-class-card h2 { display:flex; align-items:center; gap:8px; }
.single-class-card h2 .erp-icon { width:20px; height:20px; color:#075bd6; }
.single-class-card h3 { font-size:1.27rem; }
.single-class-title, .single-class-empty { color:var(--muted); margin-top:5px; }
.single-class-empty { margin-bottom:12px; }
.single-class-facts { display:grid; gap:7px; margin:11px 0 0; }
.single-class-facts div { display:grid; grid-template-columns:minmax(100px,.65fr) minmax(0,1.35fr); align-items:baseline; gap:8px; }
.single-class-facts dt { color:var(--muted); font-size:.81rem; font-weight:650; }
.single-class-facts dd { margin:0; font-size:.9rem; overflow-wrap:anywhere; }
.single-room-schedule-heading { flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.single-room-schedule-totals { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.single-room-schedule-totals > div { display:flex; align-items:center; gap:12px; padding:8px 12px;
    color:var(--tone-dark); background:var(--tone-bg); border:1px solid var(--tone-border); border-radius:8px; }
.single-room-schedule-totals dt { font-size:.83rem; font-weight:650; }
.single-room-schedule-totals dd { margin:0; font-weight:780; font-variant-numeric:tabular-nums; }
.single-room-period { display:grid; grid-template-columns:minmax(7.5rem,.55fr) minmax(0,1.55fr) minmax(0,1fr);
    gap:12px; padding:12px; border:1px solid #dbe5f2; border-radius:9px; }
.single-room-period + .single-room-period { margin-top:8px; }
.single-room-period-time { display:grid; justify-items:start; align-content:start; gap:5px; font-variant-numeric:tabular-nums; }
.single-room-period-time small { color:var(--muted); }
.single-room-period-subject { min-width:0; overflow-wrap:anywhere; }
.single-room-subject-code { color:#225bad; font-size:.74rem; font-weight:750; }
.single-room-period-attendance { margin:0; padding:8px 10px; align-content:start; border-radius:7px; background:#f3f7fc; }
.single-room-period-attendance div { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.room-week-panel { container-type:inline-size; }
.room-week-controls { margin-bottom:14px; }
.room-week-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.room-week-day { min-width:0; padding:8px; border:1px solid #dbe5f2; border-radius:9px; background:#f7f9fd; }
.room-week-day h3 { margin:0 0 8px; font-size:.93rem; }
.room-week-empty { padding:7px 2px; font-size:.8rem; }
.room-week-slot { display:grid; justify-items:start; align-content:start; gap:4px; padding:8px; border:1px solid #d6e5fa;
    border-radius:7px; background:#fff; font-size:.81rem; overflow-wrap:anywhere; }
.room-week-slot + .room-week-slot { margin-top:7px; }
.room-week-slot h4 { font-size:.84rem; line-height:1.24; }
.room-week-slot small { color:var(--muted); }
.room-week-time { color:#204984; font-variant-numeric:tabular-nums; }
@container (min-width:720px) {
    .room-week-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@container (min-width:990px) {
    .room-week-grid { grid-template-columns:repeat(7,minmax(0,1fr)); }
}
@container (max-width:290px) {
    .room-week-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:950px) {
    .single-room-period { grid-template-columns:minmax(0,1fr); }
    .single-room-period-time { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
}
.single-room-info { grid-template-columns:minmax(0,1fr) minmax(0,1.45fr); align-items:start; }
.single-room-facts, .single-room-facilities { min-width:0; }
.single-room-image { margin-top:10px; height:clamp(130px,18vw,215px); overflow:hidden; border-radius:9px; }
.single-room-image .room-photo { width:100%; height:100%; object-fit:cover; }
.single-room-facts .room-detail-facts { margin-block:12px; }
.single-room-facilities .room-detail-section:first-child { margin-top:0; padding-top:0; border-top:0; }
@media(max-width:730px) {
    .single-room-timeline, .single-room-info { grid-template-columns:1fr; }
    .single-room-icon { width:42px; height:42px; }
    .single-room-icon .erp-icon { width:22px; height:22px; }
}


/* Room Master */
.room-master-heading { flex-wrap:wrap; }
.room-master-heading .single-room-title p { margin-top:5px; }
.room-master-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; padding:7px; }
.room-master-tabs button {
    display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:7px 8px; font:inherit; font-size:.88rem; font-weight:675;
    background:#f2f6fc; color:#233d61; border:1px solid #e1eaf7; border-radius:9px;
}
.room-master-tabs button:hover { background:#e4efff; }
.room-master-tabs button[aria-pressed="true"] { color:#fff; background:#0956d5; border-color:#0956d5; }
.room-master-tabs .erp-icon, .room-master-card h2 .erp-icon, .room-master-actions .erp-icon { width:19px; height:19px; flex:none; }
.room-master-panels { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:13px; align-items:start; }
.room-master-panels[data-tab="facilities"], .room-master-panels[data-tab="usage"], .room-master-panels[data-tab="media"] { grid-template-columns:minmax(0,1fr); }
.room-master-column { display:grid; align-content:start; gap:13px; min-width:0; }
.room-master-column:not(:has(> :not([hidden]))) { display:none; }
.room-master-card { min-width:0; padding:15px; }
.room-master-card h2 { display:flex; align-items:center; gap:7px; margin:0 0 13px; color:#152948; }
.room-master-card h2 .erp-icon { color:#0b5bd4; }
.room-master-card header h2 { margin:0; }
.room-master-card .section-heading { flex-wrap:wrap; margin-bottom:12px; gap:8px; }
.room-master-fields { display:grid; gap:10px; }
.room-master-fields.identity-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.room-master-fields.dimensions-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
.room-master-fields textarea { width:100%; border:1px solid #c9d6e8; border-radius:8px; padding:8px 10px; resize:vertical; font:inherit; font-weight:400; }
.room-master-amenities { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.room-master-amenities .choice { padding:9px 8px; min-height:39px; border:1px solid #dae5f5; border-radius:8px; background:#f6f9ff; }
.room-master-amenities .choice:has(:checked) { border-color:#c8dffd; color:#11458d; background:#edf5ff; }
.room-master-amenities input { accent-color:#0956d5; }
.room-master-layout-body { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(134px,.75fr); gap:11px; }
.room-master-layout-visual, .room-master-layout-summary { min-width:0; }
.room-master-layout-summary { align-self:start; padding:10px; border:1px solid #d9e5f4; border-radius:8px; background:#f3f7fd; }
.room-master-layout-summary dl { display:grid; gap:8px; margin:8px 0 12px; }
.room-master-layout-summary dt { color:var(--muted); font-size:.77rem; }
.room-master-layout-summary dd { margin:1px 0 0; color:#19335a; font-size:1.02rem; font-weight:730; }
.room-master-layout-summary .button { width:100%; }
.room-master-model { overflow:hidden; height:clamp(165px,21vw,410px); border:1px solid #d9e5f4; border-radius:8px; background:#edf5f0; }
.room-master-model > div { width:100%; height:100%; touch-action:none; }
.room-master-model canvas { display:block; width:100%; height:100%; }
.room-master-empty { padding:12px 0; color:var(--muted); }
.room-master-upload { display:grid; align-content:start; gap:7px; border:1px dashed #cdddf3; border-radius:8px; padding:9px; background:#f7faff; min-width:0; }
.room-master-upload input { font-weight:400; }
.room-master-photo { display:block; width:100%; max-height:170px; object-fit:cover; border-radius:7px; }
.room-master-description { margin:8px 0; color:var(--muted); overflow-wrap:anywhere; white-space:pre-line; }
.room-master-model .layout-model-unavailable { display:grid; place-items:center; padding:12px; text-align:center; }
.room-master-usage-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:15px; }
.room-master-usage-summary > div { padding:10px; border:1px solid #dbe6f5; border-radius:8px; background:#f4f8ff; min-width:0; }
.room-master-usage-summary p { margin-top:4px; overflow-wrap:anywhere; }
.room-master-card > .table-scroll { margin-bottom:14px; }
.room-master-actions { justify-content:flex-end; }
.room-master-actions .button { gap:6px; }
.layout-toolbox [draggable="true"] { cursor:grab; }
.layout-canvas-frame.layout-drop-target { outline:2px solid #176ad9; outline-offset:2px; }

@media(max-width:1250px) {
    .room-master-layout-body { grid-template-columns:minmax(0,1fr); }
    .room-master-layout-summary dl { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .room-master-amenities { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:950px) {
    .room-master-panels { grid-template-columns:minmax(0,1fr); }
    .room-master-tabs { grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); }
}
@media(max-width:540px) {
    .room-master-card { padding:12px; }
    .room-master-fields.dimensions-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .room-master-upload { grid-column:1/-1; }
    .room-master-actions { gap:6px; }
}


/* Campus access */
.access-main-tabs a { padding-inline:14px; }
.access-panel { min-width:0; }
.access-panel > h2 { margin-bottom:10px; }
.access-role-layout { display:grid; grid-template-columns:minmax(200px,.74fr) minmax(0,2.15fr); gap:13px; align-items:start; }
.access-role-layout .erp-icon { width:18px; height:18px; flex:none; color:#1259b5; }
.access-role-list { padding:13px; }
.access-role-list h2, .access-role-scope h3 { display:flex; align-items:center; gap:8px; margin-bottom:9px; }
.access-role-list ul { display:grid; gap:4px; list-style:none; padding:0; margin:9px 0 0; }
.access-role-list a {
    display:flex; gap:10px; align-items:center; padding:8px; text-decoration:none; border-radius:8px;
    color:#213c62; border:1px solid transparent;
}
.access-role-list a:hover { background:#f1f6ff; }
.access-role-list a[aria-current="page"] { background:#e6f0ff; border-color:#c9e0ff; color:#09499f; }
.access-role-list a small { display:block; font-size:.77rem; }
.access-role-panel { min-width:0; padding:0; }
.access-role-heading { padding:14px; flex-wrap:wrap; }
.access-role-tabs { margin:0 14px 8px; max-width:calc(100% - 28px); flex-wrap:wrap; }
.access-role-tabs button { background:none; color:#26476c; border:0; font:inherit; padding:7px 11px; min-height:35px; border-radius:6px; font-size:.85rem; font-weight:680; }
.access-role-tabs button[aria-pressed="true"] { background:#e0edff; color:#0547aa; }
.access-role-body { padding:13px 14px; border-top:1px solid #e2ebf8; }
.access-role-scope h3 { margin-bottom:9px; }
.access-scope-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.access-role-scope p, .access-overrides p { margin-top:7px; font-size:.84rem; }
.access-matrix-heading { flex-wrap:wrap; }
.access-matrix-heading select { min-width:150px; }
.access-matrix-scroll { max-height:490px; overflow:auto; }
.access-matrix { min-width:610px; }
.access-matrix th:first-child { min-width:170px; }
.access-matrix :is(th,td):not(:first-child) { width:12%; text-align:center; }
.access-matrix tbody th { background:transparent; white-space:normal; }
.access-matrix tbody th .erp-icon { width:16px; height:16px; vertical-align:middle; margin-right:5px; }
.access-matrix input { width:17px; height:17px; min-height:17px; margin:0; vertical-align:middle; accent-color:#0956d5; }
.access-matrix td > span { color:#73849f; }
.access-role-actions { padding:12px 14px; justify-content:flex-end; border-top:1px solid #e2ebf8; }
.access-overrides { margin-top:14px; padding-top:10px; border-top:1px solid #e1ebf8; }
.access-overrides .button { margin-top:9px; }
.access-user-table, .access-audit-table { min-width:720px; }
@media(max-width:930px) {
    .access-role-layout { grid-template-columns:1fr; }
    .access-role-list ul { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); }
}
@media(max-width:520px) {
    .access-scope-fields { grid-template-columns:1fr; }
    .access-main-tabs { width:100%; }
}

