/* App layout follows the real StudentPortal and TeacherPortal navigation,
   mobile safe areas, list density and role palettes in the teaching project. */
:root { color-scheme:light; --primary:#95602d; --primary-dark:#805025; --primary-light:#f3ead9; --text:#3e342b; --muted:#786b5b; --body:#faf7f0; --surface:#fffdf9; --border:#e9dece; --border-light:#f1e8da; --danger:#a44135; --radius:14px; --app-rail:184px; --app-header:80px; --app-bottom:72px; font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:16px; color:var(--text); background:var(--body); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; min-height:100dvh; background:var(--body); }
body[data-view="admin"] { --primary:#435f89; --primary-dark:#354f77; --primary-light:#edf2f9; --text:#26364c; --muted:#61728b; --body:#faf9f6; --surface:#fff; --border:#e0e5ed; --border-light:#edf0f5; }
body:not(:has(.app-navigation)) { --app-rail:0px; }
body:has(dialog[open]) { overflow:hidden; }
a { color:var(--primary); }
button,input,select,textarea { font:inherit; }
button,a,input,select,summary { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.45; cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
button svg,a svg,summary svg { flex-shrink:0; }
.skip-link { position:fixed; top:-80px; left:16px; z-index:100; padding:12px 16px; background:var(--surface); }
.skip-link:focus { top:8px; }
.topbar { position:sticky; top:0; z-index:40; padding-top:env(safe-area-inset-top); background:var(--surface); border-bottom:1px solid var(--border); }
.topbar-inner { position:relative; display:flex; align-items:center; gap:28px; min-height:var(--app-header); padding:14px 26px; max-width:1600px; margin:auto; }
.brand { display:flex; align-items:center; gap:12px; min-width:0; color:var(--text); text-decoration:none; flex-shrink:0; }
.brand img { width:46px; height:46px; object-fit:contain; border-radius:9px; }
.brand span { font-size:17px; line-height:1.4; font-weight:650; }
.brand small { display:block; color:var(--muted); font-size:11px; font-weight:400; margin-top:3px; }
.app-context { display:flex; align-items:center; gap:12px; min-width:0; flex:1; }
.app-header-title { margin:0; font-size:21px; font-weight:600; line-height:1.4; min-width:0; }
.app-back { display:inline-flex; justify-content:center; align-items:center; flex-shrink:0; width:44px; height:44px; padding:0; border:1px solid var(--border); border-radius:50%; color:var(--primary); background:var(--surface); }
.app-back svg { width:21px; height:21px; }
.account { flex-shrink:0; margin-left:auto; }
.account-menu { position:relative; }
.account-trigger { display:flex; align-items:center; gap:9px; min-height:44px; cursor:pointer; list-style:none; color:var(--text); font-size:13px; }
.account-trigger::-webkit-details-marker { display:none; }
.account-avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:var(--primary); background:var(--primary-light); font-weight:600; }
.account-avatar svg { width:20px; height:20px; }
.account-name { max-width:140px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.account-panel { position:absolute; top:calc(100% + 12px); right:0; z-index:60; display:flex; flex-direction:column; align-items:stretch; gap:8px; width:min(270px,calc(100vw - 32px)); padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:0 12px 40px #35251412; }
.account-panel .identity { padding:4px 4px 12px; color:var(--text); font-size:14px; line-height:1.7; overflow-wrap:anywhere; border-bottom:1px solid var(--border-light); }
.identity small { display:block; color:var(--muted); font-size:12px; }
.account-panel .btn { width:100%; }
.main { width:calc(100% - var(--app-rail)); max-width:none; margin-left:var(--app-rail); padding:30px max(28px,calc((100vw - var(--app-rail) - 1120px)/2)) 56px; outline:none; }
.main > * { min-width:0; }
#main-content,#booking-calendar,#admin-bookings,#admin-configuration { scroll-margin-top:calc(var(--app-header) + env(safe-area-inset-top) + 16px); }
.app-navigation { position:fixed; top:calc(var(--app-header) + 24px + env(safe-area-inset-top)); bottom:24px; left:16px; z-index:30; display:flex; flex-direction:column; align-items:stretch; gap:8px; width:152px; padding:0; margin:0; overflow-y:auto; }
.app-navigation button,.app-navigation a { display:flex; align-items:center; gap:13px; width:100%; min-height:49px; padding:13px 15px; border:0; border-radius:12px; color:var(--muted); background:transparent; font-size:14px; text-align:left; text-decoration:none; }
.app-navigation svg { width:21px; height:21px; flex-shrink:0; }
.app-navigation [aria-current="page"] { color:var(--primary); background:var(--primary-light); font-weight:600; }
.app-navigation [aria-current="page"] svg { stroke-width:2.3; }
h1 { font-size:26px; line-height:1.4; margin:0 0 8px; font-weight:650; }
h2 { font-size:18px; line-height:1.5; margin:0; font-weight:600; }
h3 { font-size:16px; line-height:1.5; margin:0 0 10px; font-weight:600; }
p { line-height:1.75; margin:0 0 12px; }
.muted,.help { color:var(--muted); }
.help { font-size:13px; line-height:1.75; margin:6px 0 12px; }
.actions,.row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); margin:0 0 20px; min-width:0; }
.card-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; padding:20px 22px; border-bottom:1px solid var(--border-light); }
.card-header > div { min-width:0; }
.card-header p { font-size:13px; color:var(--muted); margin:5px 0 0; }
.card-body { padding:22px; min-width:0; }
body[data-view="public"] #booking-calendar { background:transparent; border:0; border-radius:0; }
body[data-view="public"] #booking-calendar > .card-header { padding:0 0 16px; border:0; justify-content:flex-end; }
body[data-view="public"] #booking-calendar > .card-header > div:first-child,
body[data-booking-stage="campus"] .main > .card > .card-header h2 { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body[data-view="public"] #booking-calendar > .card-body { padding:0; }
body[data-booking-stage="campus"] .main > .card { border:0; background:transparent; }
body[data-booking-stage="campus"] .main > .card > .card-body { padding:0; }
body[data-booking-stage="campus"] .main > .card > .card-header { padding:0 0 16px; border:0; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:46px; padding:10px 16px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); text-decoration:none; line-height:1.5; font-size:14px; font-weight:500; }
.btn-primary { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:600; }
.btn-danger { border-color:#e5c7be; color:var(--danger); }
.btn-sm { padding:8px 12px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; border:0; margin:0; padding:0; min-width:0; }
.form-field { display:block; min-width:0; }
.form-label { display:block; margin-bottom:8px; font-size:14px; font-weight:500; }
.form-control { display:block; width:100%; min-width:0; min-inline-size:0; min-height:48px; padding:11px 12px; border:1px solid var(--border); border-radius:10px; color:var(--text); background:var(--surface); font-size:16px; line-height:1.5; }
.form-control:focus { border-color:var(--primary); }
.form-control:disabled { background:var(--body); color:var(--muted); }
textarea.form-control { min-height:100px; resize:vertical; }
.wide { grid-column:1/-1; }
.form-check { display:flex; align-items:flex-start; gap:10px; line-height:1.75; font-size:14px; }
.form-check input { width:20px; height:20px; margin:3px 0 0; flex-shrink:0; accent-color:var(--primary); }
.form-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; padding-top:18px; margin-top:22px; border-top:1px solid var(--border-light); }
.form-actions .btn { min-height:48px; }
.empty { display:block; padding:28px 12px; color:var(--muted); line-height:1.75; font-size:15px; text-align:center; }
.notice { display:block; margin:16px 0; padding:14px 16px; border:1px solid var(--border); background:var(--primary-light); color:var(--primary-dark); border-radius:10px; line-height:1.75; font-size:14px; overflow-wrap:anywhere; }
.notice p { margin:0; }
.notice .actions { margin-top:12px; }
.notice.error { border-color:#e8c9bd; background:#fff3ee; color:#9b3e31; }
.filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px 12px; padding-bottom:18px; margin-bottom:16px; border-bottom:1px solid var(--border-light); }
.filters .form-field { flex:1 1 170px; }
.filters .btn { min-height:48px; }
.table-responsive { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th { text-align:left; font-size:13px; font-weight:600; color:var(--muted); background:var(--body); white-space:nowrap; }
th,td { padding:14px 16px; border-bottom:1px solid var(--border-light); vertical-align:top; line-height:1.65; }
tbody tr:last-child td { border-bottom:0; }
td { min-width:100px; max-width:340px; overflow-wrap:anywhere; }
td .cell-sub { display:block; color:var(--muted); font-size:13px; white-space:pre-wrap; line-height:1.65; margin-top:3px; }
.row-actions { min-width:140px; }
body[data-view="admin"] .table-responsive table { min-width:800px; }
body[data-view="admin"] #admin-bookings .table-responsive table { min-width:1040px; }
.details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 22px; margin:0 0 22px; }
.details div { min-width:0; }
.details dt { font-size:13px; color:var(--muted); margin-bottom:5px; }
.details dd { margin:0; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.bookings-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:18px; margin-top:18px; }
.bookings-list .card { margin:0; }
.bookings-list .details { grid-template-columns:1fr; gap:14px; }
.site-footer { margin-left:var(--app-rail); padding:20px 28px; color:var(--muted); font-size:12px; text-align:center; line-height:1.8; }
dialog { border:1px solid var(--border); border-radius:18px; padding:0; width:min(720px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; color:var(--text); background:var(--surface); box-shadow:0 16px 48px #35251424; }
dialog::backdrop { background:#211a2b66; }
dialog .dialog-header { position:sticky; top:0; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 22px; border-bottom:1px solid var(--border); background:var(--surface); }
dialog .dialog-header h2 { font-size:19px; }
dialog .dialog-header p { color:var(--muted); font-size:13px; margin:6px 0 0; }
dialog .dialog-body { padding:22px; }
dialog .close-button { flex-shrink:0; min-width:44px; padding:8px; font-size:22px; line-height:1; }
dialog.confirmation { max-width:460px; }
.booking-filters { border:1px solid var(--border); border-radius:10px; margin-bottom:16px; }
.booking-filters > .accordion-summary { min-height:46px; padding:11px 14px; font-size:14px; cursor:pointer; }
.booking-filters > .accordion-summary::marker { color:var(--primary); }
.booking-filters[open] > .accordion-summary { border-bottom:1px solid var(--border-light); }
.booking-filters .accordion-content { padding:16px; }
.booking-filters .filters { border:0; padding:0; margin:0; }
.admin-configuration { margin:0; border:0; background:transparent; }
.admin-configuration > .accordion-summary { display:none; }
.admin-configuration .card { margin:0 0 20px; }
.room-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.room-option { display:grid; grid-template-columns:112px minmax(0,1fr); align-content:start; align-items:start; gap:12px 16px; min-width:0; padding:16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); text-align:left; overflow-wrap:anywhere; }
.room-option > .room-photos { grid-column:1; grid-row:1/3; width:112px; height:120px; overflow:hidden; border-radius:10px; }
.room-option .room-cover { display:block; width:100%; height:100%; object-fit:cover; }
.room-option-content { min-width:0; }
.room-option-name { margin:0 0 6px; font-size:18px; line-height:1.5; }
.room-option-content > p { margin:0 0 6px; font-size:14px; line-height:1.65; }
.room-option-content > p.help { font-size:11px; color:var(--muted); }
.room-equipment { color:var(--muted); white-space:pre-wrap; }
.room-select { grid-column:2; justify-self:start; min-height:44px; padding:9px 20px; border-radius:24px; }
.room-more { margin-top:4px; font-size:13px; }
.room-more > summary { width:fit-content; min-height:44px; padding:10px 0; color:var(--primary); cursor:pointer; }
.room-more-content { padding-top:8px; }
.room-more-content p { margin:0 0 12px; font-size:14px; line-height:1.75; }
.room-gallery-images { display:grid; gap:8px; margin-top:12px; }
.room-gallery-images img { display:block; width:100%; height:auto; border-radius:9px; }
.room-description { white-space:pre-wrap; }
.room-configuration { padding-top:12px; margin-top:12px; border-top:1px solid var(--border-light); }
.room-configuration strong { display:block; font-size:13px; margin-bottom:6px; }
.photo-editor { border-top:1px solid var(--border); padding-top:18px; }
.photo-editor-item { min-width:0; display:grid; grid-template-columns:140px minmax(0,1fr); gap:16px; padding:16px 0; border-bottom:1px solid var(--border-light); }
.photo-editor-item img { width:140px; height:110px; object-fit:cover; border-radius:10px; }
.photo-editor-item .actions { grid-column:2; }
.booking-calendar { color:var(--text); font-size:15px; --fc-border-color:var(--border); }
.booking-calendar .fc-header-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:18px; }
.fc-toolbar-chunk { display:flex; align-items:center; gap:8px; }
.fc-toolbar-title { margin:0; font-size:20px; font-weight:600; text-align:center; }
.fc .fc-button { min-height:44px; border-radius:22px; font-size:14px; padding:9px 14px; background:var(--surface); color:var(--primary); border-color:var(--border); box-shadow:none; }
.selected-room-summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 18px; padding:16px 18px; margin-bottom:22px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.selected-room-summary > div { flex:1 1 180px; min-width:0; }
.selected-room-summary h2 { margin:0 0 4px; font-size:18px; }
.selected-room-summary p { margin:0; font-size:13px; }
.selected-room-summary .btn { border-radius:22px; font-size:13px; }
.date-strip-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.date-strip-heading h2 { margin:0; font-size:15px; }
.date-strip-heading .btn { border-radius:20px; padding:8px 12px; }
.booking-date-strip { display:flex; gap:7px; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; padding:3px 2px 10px; margin:0 0 14px; }
.date-strip-day { display:flex; flex:1 0 54px; flex-direction:column; justify-content:center; gap:5px; min-height:84px; padding:9px 5px; border:0; border-radius:11px; color:var(--muted); background:transparent; scroll-snap-align:center; }
.date-strip-month,.date-strip-weekday { font-size:11px; line-height:1.4; }
.date-strip-number { color:var(--text); font-size:23px; font-weight:600; line-height:1.2; font-variant-numeric:tabular-nums; }
.date-strip-day[aria-pressed="true"] { background:var(--primary); color:#fff; }
.date-strip-day[aria-pressed="true"] .date-strip-number { color:#fff; }
.date-strip-day[aria-current="date"]:not([aria-pressed="true"]) { background:var(--primary-light); }
.booking-preview { padding:20px; margin-bottom:18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.booking-preview h3 { margin-bottom:18px; }
.booking-preview .details { margin-bottom:18px; }
.booking-calendar-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0 0 18px; }
.fc .fc-scrollgrid { table-layout:fixed; border:1px solid var(--fc-border-color); background:var(--surface); }
.fc .fc-scrollgrid th,.fc .fc-scrollgrid td { min-width:0; max-width:none; padding:0; border:1px solid var(--fc-border-color); }
.fc .fc-col-header-cell { background:var(--body); text-align:center; }
.fc .fc-col-header-cell-cushion { display:block; padding:12px 4px; font-weight:500; color:var(--muted); }
.fc .fc-daygrid-day-frame { display:flex; align-items:flex-start; justify-content:flex-end; min-height:80px; width:100%; border:0; border-radius:0; padding:0; background:transparent; color:var(--text); font-size:15px; }
.fc .fc-daygrid-day-number { padding:10px 12px; font-variant-numeric:tabular-nums; }
.fc .fc-day-today { background:var(--primary-light); }
.fc .fc-day-other .fc-daygrid-day-number { opacity:.4; }
.fc .fc-day-selected:not(.fc-day-today) { background:var(--primary-light); }
.fc .fc-daygrid-day-frame:disabled { opacity:.35; cursor:default; }
.fc .fc-list { overflow:hidden; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.fc .fc-list-table { border-style:hidden; width:100%; table-layout:auto; }
.fc .fc-list-table tr > * { border-left:0; border-right:0; border-bottom:1px solid var(--border-light); min-width:0; max-width:none; }
.fc .fc-list-table th { padding:11px 18px; font-size:12px; font-weight:500; background:var(--body); color:var(--muted); }
.fc .fc-list-table td { padding:10px 18px; }
.fc .fc-list-table tbody tr:last-child td { border-bottom:0; }
.fc .fc-list-event.is-selected td { background:var(--primary-light); }
.fc-list-event-time { font-variant-numeric:tabular-nums; font-size:17px; font-weight:600; white-space:nowrap; }
.fc-list-event-title { color:var(--primary); font-size:13px; }
.fc-list-event td > label { display:flex; min-height:48px; align-items:center; cursor:pointer; }
.fc .booking-time-choice { width:62px; padding:10px; }
.fc .booking-radio { justify-content:center; min-width:42px; }
.booking-radio input { width:20px; height:20px; margin:0; accent-color:var(--primary); }
.hours-summary { white-space:pre-line; }
.hours-day { display:grid; grid-template-columns:110px minmax(0,1fr) minmax(0,1fr); align-items:end; gap:14px; padding:16px 0; border-bottom:1px solid var(--border-light); }
.hours-day:first-child { padding-top:0; }
.hours-day-toggle { min-height:48px; align-items:center; }
.hours-day .form-control { min-width:0; }
.public-reservations table { table-layout:fixed; }
.public-reservations th:first-child { width:32%; }
.public-reservations th:last-child { width:80px; }
.public-reservations td { min-width:0; max-width:none; }
.campus-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:18px; }
.campus-option { display:flex; flex-direction:column; align-items:flex-start; min-width:0; gap:16px; border:1px solid var(--border); border-radius:16px; padding:24px; background:var(--surface); }
.campus-cover { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:12px; }
.campus-option h3 { margin:0; font-size:22px; }
.campus-option > .btn { margin-top:auto; min-height:48px; width:100%; border-radius:25px; }
.campus-count { font-size:13px; color:var(--primary); background:var(--primary-light); border-radius:20px; padding:5px 11px; margin:0; }
.campus-address-block { width:100%; min-width:0; }
.campus-address { display:flex; flex-direction:column; gap:6px; font-style:normal; margin:0 0 12px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.campus-address strong { font-size:12px; font-weight:500; color:var(--muted); }
.campus-address span { font-size:15px; color:var(--text); }
.campus-address-block .btn { border-radius:22px; }
.booking-section { min-width:0; margin-top:22px; padding-top:22px; border-top:1px solid var(--border); scroll-margin-top:calc(var(--app-header) + 16px); }
.booking-section-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.booking-section h3 { font-size:17px; margin-bottom:16px; }
.booking-section-heading h3 { margin:0; }
#available-rooms { margin:0; padding:0; border:0; }
.chosen-date { color:var(--text); font-weight:500; font-variant-numeric:tabular-nums; }
#booking-details { padding:22px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
@media(hover:hover) {
 .btn:hover:enabled,a.btn:hover { background:var(--primary-light); border-color:var(--border); }
 .btn-primary:hover:enabled,a.btn-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); }
 .btn-danger:hover:enabled { background:#fff1ed; border-color:#d6b1aa; }
 .app-navigation button:hover:enabled,.app-navigation a:hover { color:var(--primary); background:var(--primary-light); }
 .fc .fc-button:hover:enabled,.fc .fc-daygrid-day-frame:hover:enabled,.fc .fc-list-event:hover td { background:var(--primary-light); }
 .date-strip-day[aria-pressed="true"]:hover:enabled { background:var(--primary-dark); color:white; }
}
@media(prefers-reduced-motion:no-preference) { .btn,.app-navigation button { transition:background-color .15s,color .15s,border-color .15s; } }
@media(max-width:1100px) { :root { --app-rail:164px; } .app-navigation { left:12px; width:140px; } .main { padding:26px 22px 48px; } .room-list { gap:14px; } .room-option { grid-template-columns:96px minmax(0,1fr); padding:14px; gap:12px; } .room-option > .room-photos { width:96px; height:110px; } }
@media(max-width:760px) {
 :root { --app-rail:0px; --app-header:72px; --app-bottom:calc(60px + max(7px,env(safe-area-inset-bottom))); }
 .topbar-inner { min-height:72px; padding:12px 18px; gap:10px; }
 .brand { width:44px; flex-basis:44px; }
 .brand img { width:40px; height:40px; border-radius:8px; }
 .brand > span { display:none; }
 .app-context { position:absolute; left:68px; right:68px; min-height:44px; justify-content:center; pointer-events:none; }
 .app-context .app-back { position:absolute; left:-52px; pointer-events:auto; border:0; background:transparent; }
 .app-header-title { width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:center; font-size:18px; }
 .topbar:has(.app-back) .brand { visibility:hidden; }
 .account-trigger { width:44px; height:44px; justify-content:center; }
 .account-name { display:none; }
 .account-avatar { width:36px; height:36px; }
 .account-panel { top:calc(100% + 10px); right:-2px; }
 .main { width:100%; margin:0; padding:20px 16px calc(98px + env(safe-area-inset-bottom)); }
 .app-navigation { position:fixed; top:auto; bottom:0; left:0; z-index:50; display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:0; width:100%; overflow:visible; padding:6px 10px calc(7px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:var(--surface); box-shadow:0 -4px 18px #65482e06; }
 .app-navigation button,.app-navigation a { display:flex; flex-direction:column; justify-content:center; gap:5px; min-height:54px; padding:6px 2px; border-radius:10px; font-size:11px; text-align:center; }
 .app-navigation svg { width:22px; height:22px; }
 .app-navigation [aria-current="page"] { background:transparent; }
 .main > .actions { margin-bottom:16px; }
 .main > .actions .btn { flex:1; }
 .card { margin:0 0 16px; }
 .card-header { padding:18px; gap:12px; }
 .card-header h2 { font-size:17px; }
 .card-body { padding:18px; }
 body[data-view="public"] #booking-calendar > .card-header { display:none; }
 body[data-booking-stage="campus"] .main > .card > .card-header { padding:0 0 14px; justify-content:flex-end; }
 .form-grid,.details { grid-template-columns:minmax(0,1fr); }
 .form-actions .btn { flex:1 1 auto; }
 .filters { gap:14px 10px; }
 .filters .form-field { flex:1 1 100%; }
 .filters .btn { flex:1; }
 .site-footer { display:none; }
 dialog { width:100%; max-width:100%; max-height:calc(100dvh - 20px - env(safe-area-inset-top)); margin:auto 0 0; inset:auto 0 0; border-radius:20px 20px 0 0; border-bottom:0; padding-bottom:env(safe-area-inset-bottom); }
 dialog .dialog-header,dialog .dialog-body { padding:18px; }
 dialog .dialog-header h2 { font-size:18px; }
 dialog.confirmation { width:calc(100vw - 32px); max-width:420px; margin:auto; inset:0; border-radius:16px; border-bottom:1px solid var(--border); padding-bottom:0; }
 .room-list { grid-template-columns:minmax(0,1fr); gap:12px; }
 .room-option { grid-template-columns:96px minmax(0,1fr); padding:15px; gap:10px 14px; }
 .room-option > .room-photos { width:96px; height:108px; border-radius:9px; }
 .room-option-name { font-size:16px; margin-bottom:5px; }
 .room-option-content > p { font-size:14px; }
 .room-option-content > p.help { font-size:11px; }
 .room-select { width:100%; min-height:44px; padding:9px 14px; font-size:14px; }
 .room-more > summary { min-height:44px; }
 .room-gallery-images img { border-radius:7px; }
 .selected-room-summary { padding:15px 16px; gap:10px; margin-bottom:20px; }
 .selected-room-summary > div { flex-basis:170px; }
 .selected-room-summary h2 { font-size:17px; }
 .selected-room-summary .btn { min-height:44px; padding:9px 12px; }
 .date-strip-heading { gap:8px; }
 .date-strip-heading .actions { gap:5px; }
 .date-strip-heading .btn { padding:8px 10px; font-size:12px; }
 .booking-date-strip { gap:5px; margin-bottom:12px; scrollbar-width:none; }
 .booking-date-strip::-webkit-scrollbar { display:none; }
 .date-strip-day { flex-basis:50px; min-height:78px; border-radius:10px; }
 .date-strip-number { font-size:23px; }
 .booking-calendar-filters { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px; margin-bottom:16px; }
 .booking-calendar-filters .form-label { font-size:13px; }
 .booking-calendar-filters .form-control { padding:11px 10px; }
 .fc .fc-header-toolbar { gap:12px 8px; margin-bottom:16px; }
 .fc-toolbar-title { font-size:18px; }
 .fc .fc-button { font-size:13px; padding:9px 12px; }
 .fc .fc-daygrid-day-frame { min-height:52px; justify-content:center; align-items:center; }
 .fc .fc-daygrid-day-number { padding:8px 4px; }
 .fc .fc-col-header-cell-cushion { padding:11px 0; font-size:12px; }
 .fc .fc-list-table th { padding:10px 12px; }
 .fc .fc-list-table td { padding:10px 12px; }
 .fc-list-event-time { font-size:16px; white-space:normal; }
 .fc-list-event-title { font-size:12px; }
 .fc .booking-time-choice { width:48px; padding:10px 4px; }
 .booking-preview { padding:18px; margin-bottom:16px; }
 .booking-preview .details { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
 .booking-preview h3 { font-size:17px; }
 #booking-details { padding:18px; }
 body[data-booking-stage="preview"] .main { padding-bottom:calc(180px + env(safe-area-inset-bottom)); }
 #booking-details .booking-submit-bar { position:fixed; left:0; right:0; bottom:var(--app-bottom); z-index:35; min-height:72px; align-items:center; justify-content:stretch; gap:10px; padding:12px 16px; margin:0; border-top:1px solid var(--border); background:var(--surface); }
 #booking-details .booking-submit-bar .btn { min-height:48px; }
 .photo-editor-item { grid-template-columns:minmax(0,1fr); }
 .photo-editor-item .actions { grid-column:auto; }
 .hours-day { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hours-day-toggle { grid-column:1/-1; }
 .public-reservations th,.public-reservations td { padding:12px 8px; font-size:13px; }
 .campus-option { padding:22px; gap:16px; }
 .campus-option h3 { font-size:21px; }
 .campus-option > .btn { min-height:48px; }
 .booking-section { margin-top:18px; padding-top:18px; }
 .booking-section-heading { margin-bottom:14px; }
 .booking-section-heading h3 { font-size:16px; }
 #admin-bookings .table-responsive { overflow:visible; }
 body[data-view="admin"] #admin-bookings .table-responsive table { display:block; min-width:0; }
 #admin-bookings thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 #admin-bookings tbody { display:grid; gap:14px; }
 #admin-bookings tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; padding:18px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
 #admin-bookings td { display:flex; flex-direction:column; min-width:0; max-width:none; padding:0; border:0; font-size:15px; }
 #admin-bookings td::before { content:attr(data-label); display:block; margin-bottom:4px; color:var(--muted); font-size:12px; font-weight:500; }
 #admin-bookings td:nth-child(n+3),#admin-bookings td[colspan] { grid-column:1/-1; }
 #admin-bookings td[colspan]::before { display:none; }
 #admin-bookings td .cell-sub { font-size:14px; }
 #admin-bookings td:nth-child(5) { flex-direction:row; align-items:center; gap:8px; }
 #admin-bookings td:nth-child(5)::before { margin:0; }
 #admin-bookings .row-actions { min-width:0; }
 #admin-bookings .row-actions .btn { flex:1; }
 body[data-view="admin"] #admin-bookings { border:0; background:transparent; }
 body[data-view="admin"] #admin-bookings > .card-header { padding:0 0 16px; border:0; }
 body[data-view="admin"] #admin-bookings > .card-body { padding:0; }
}
@media(max-width:374px) {
 .topbar-inner { padding-left:12px; padding-right:12px; }
 .main { padding-left:12px; padding-right:12px; }
 .room-option { grid-template-columns:82px minmax(0,1fr); gap:10px; padding:13px; }
 .room-option > .room-photos { width:82px; height:98px; }
 .room-select { padding:9px 10px; }
 .booking-calendar-filters { gap:10px; }
 .booking-calendar-filters .form-control { font-size:15px; padding:11px 8px; }
 .date-strip-heading .btn { padding:8px; }
 .card-body { padding:16px; }
}
