:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #C9632D;
  --primary-strong: #B45325;
  --primary-soft: #FFF7F1;
  --sidebar: #111827;
  --sidebar-soft: #1f2937;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --warning: #a16207;
  --warning-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --info: #0369a1;
  --info-soft: #EAF1F4;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 30px rgba(15, 23, 42, .04);
  --radius: 14px;
  --radius-sm: 9px;
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .35rem; }
.mt-2 { margin-top: .65rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .35rem; }
.mb-2 { margin-bottom: .65rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.gap-1 { gap: .35rem; }
.gap-2 { gap: .65rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0,1fr); }
.sidebar { background: var(--sidebar); color: #e5e7eb; min-height: 100vh; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 14px; z-index: 40; }
.brand { display: flex; gap: 11px; align-items: center; padding: 6px 8px 22px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#C9632D,#C9632D); color: white; font-weight: 800; letter-spacing: -.03em; box-shadow: 0 8px 24px rgba(201,99,45,.25); }
.brand-title { font-weight: 700; color: white; line-height: 1.1; }
.brand-subtitle { margin-top: 3px; font-size: 11px; color: #94a3b8; }
.nav-section { margin: 14px 0 18px; }
.nav-label { padding: 0 10px 7px; color: #64748b; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin: 2px 0; border-radius: 9px; color: #cbd5e1; font-size: 14px; transition: .15s ease; }
.nav-link:hover { background: rgba(255,255,255,.06); color: white; }
.nav-link.active { background: #25334a; color: white; box-shadow: inset 3px 0 0 #D98250; }
.nav-dot { width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .8; }
.sidebar-footer { margin-top: 20px; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #64748b; }
.main { min-width: 0; }
.topbar { height: 66px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); }
.topbar-title { font-size: 13px; color: var(--muted); }
.user-menu { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 12px; }
.user-meta { line-height: 1.15; }
.user-name { font-size: 13px; font-weight: 650; }
.user-role { font-size: 11px; color: var(--muted); margin-top: 3px; }
.mobile-toggle { display: none; border: 1px solid var(--border); background: white; border-radius: 9px; width: 38px; height: 38px; }
.content { max-width: 1500px; margin: 0 auto; padding: 28px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-header h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.page-header p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card-body { padding: 20px; }
.card-title { margin: 0; font-size: 15px; font-weight: 700; }
.card-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.kpi-card { padding: 18px; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-value { font-size: 25px; font-weight: 760; letter-spacing: -.025em; margin-top: 9px; }
.kpi-foot { font-size: 11px; color: var(--muted); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.dashboard-main { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 14px; }
.dashboard-lower { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; font-weight: 650; font-size: 13px; transition: .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: white; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; min-height: auto; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 700; color: #334155; }
.required { color: var(--danger); }
.input, .select, .textarea { width: 100%; border: 1px solid #cbd5e1; background: white; color: var(--text); border-radius: 9px; min-height: 40px; padding: 9px 11px; outline: none; transition: .15s ease; }
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #D98250; box-shadow: 0 0 0 3px rgba(201,99,45,.09); }
.input:disabled, .select:disabled, .textarea:disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.help { color: var(--muted); font-size: 11px; line-height: 1.45; }
.field-error { color: var(--danger); font-size: 11px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #334155; }
.checkbox-row input { margin-top: 2px; }
.form-section { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h2,.form-section h3 { margin: 0 0 14px; font-size: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }

.toolbar { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input, .toolbar .select { min-height: 36px; width: auto; }
.toolbar .search { flex: 1; min-width: 220px; max-width: 420px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { padding: 11px 14px; text-align: left; color: #64748b; font-size: 11px; letter-spacing: .02em; font-weight: 750; background: #fbfcfd; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid; padding: 3px 8px; font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--success-soft); border-color: #bbf7d0; }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: #fde68a; }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: #fecaca; }
.badge-info { color: var(--info); background: var(--info-soft); border-color: #C8D8DF; }
.badge-primary { color: var(--primary); background: var(--primary-soft); border-color: #F9D1B7; }
.badge-muted { color: #64748b; background: #f8fafc; border-color: #e2e8f0; }

.alert { border: 1px solid; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #166534; }
.alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-soft); border-color: #fde68a; color: #854d0e; }
.alert-info { background: var(--info-soft); border-color: #C8D8DF; color: #075985; }
.alert-close { border: 0; background: transparent; color: inherit; opacity: .65; }
.error-list { margin: 0; padding-left: 18px; }

.empty { padding: 48px 18px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 5px; font-size: 14px; }
.stat-strip { display: flex; gap: 24px; flex-wrap: wrap; }
.stat-item .label { font-size: 11px; color: var(--muted); }
.stat-item .value { margin-top: 4px; font-weight: 750; }

.room-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.room-card { overflow: hidden; }
.room-cover { height: 145px; background: linear-gradient(135deg,#FDEBDD,#e2e8f0); display: grid; place-items: center; color: #475569; font-weight: 800; letter-spacing: .05em; }
.room-cover img { width: 100%; height: 100%; object-fit: cover; }
.room-info { padding: 17px; }
.facility-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.facility { font-size: 10.5px; color: #475569; background: #f1f5f9; border-radius: 7px; padding: 4px 7px; }

.progress { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.chart { height: 230px; display: flex; align-items: end; gap: 7px; padding: 16px 5px 6px; border-bottom: 1px solid var(--border); }
.chart-item { height: 100%; flex: 1; min-width: 12px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart-bar { width: min(28px,75%); min-height: 2px; background: linear-gradient(180deg,#C9632D,#C9632D); border-radius: 6px 6px 2px 2px; position: relative; }
.chart-bar:hover::after { content: attr(data-value); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: #0f172a; color: white; padding: 4px 7px; border-radius: 6px; font-size: 10px; white-space: nowrap; z-index: 3; }
.chart-label { color: var(--muted); font-size: 9px; white-space: nowrap; }

.schedule-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; }
.schedule-day { min-height: 190px; padding: 12px; }
.schedule-day.today { border-color: #F9D1B7; box-shadow: 0 0 0 2px rgba(201,99,45,.08); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.day-name { font-size: 10px; color: var(--muted); font-weight: 750; text-transform: uppercase; }
.day-number { font-size: 18px; font-weight: 780; }
.event { border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 8px; padding: 8px; margin-top: 7px; background: white; font-size: 10.5px; }
.event.block { border-left-color: #d97706; background: #fffbeb; }
.event-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.event-title { font-weight: 700; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-sub { color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabs { display: flex; gap: 5px; padding: 5px; background: #e9eef5; border-radius: 11px; width: fit-content; margin-bottom: 14px; }
.tab { padding: 7px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #64748b; }
.tab.active { color: var(--text); background: white; box-shadow: 0 1px 2px rgba(15,23,42,.07); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
.pagination-links { display: flex; gap: 5px; }
.page-link { min-width: 32px; height: 32px; padding: 0 9px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 11px; }
.page-link.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-link.disabled { opacity: .45; pointer-events: none; }

.detail-list { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 10px 18px; font-size: 13px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; }
pre.json { max-height: 280px; overflow: auto; background: #0f172a; color: #FDEBDD; border-radius: 9px; padding: 12px; font-size: 10px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: white; }
.auth-visual { padding: 54px; background: radial-gradient(circle at 20% 20%,rgba(201,99,45,.25),transparent 32%), linear-gradient(145deg,#111827,#172033 70%,#3A2B22); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual h1 { font-size: clamp(30px,4vw,48px); line-height: 1.08; letter-spacing: -.04em; max-width: 650px; margin: 0; }
.auth-visual p { color: #cbd5e1; max-width: 560px; line-height: 1.65; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fbfcfe; }
.auth-card { width: min(480px,100%); padding: 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; padding: 4px; border-radius: 10px; margin-bottom: 22px; }
.auth-tab { border: 0; background: transparent; padding: 9px; border-radius: 8px; font-size: 12px; color: #64748b; font-weight: 700; }
.auth-tab.active { background: white; color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.08); }

.portal-shell { min-height: 100vh; }
.portal-header { background: #111827; color: white; }
.portal-bar { max-width: 1200px; margin: auto; padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.portal-nav { display: flex; align-items: center; gap: 6px; }
.portal-link { color: #cbd5e1; font-size: 12px; padding: 8px 10px; border-radius: 8px; }
.portal-link:hover,.portal-link.active { background: #25334a; color: white; }
.portal-content { max-width: 1200px; margin: auto; padding: 28px 22px; }

.summary-box { padding: 14px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; font-size: 12px; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 10px; font-size: 14px; font-weight: 750; }
.availability { padding: 10px 12px; border-radius: 9px; font-size: 12px; display: none; }
.availability.show { display: block; }
.availability.ok { background: var(--success-soft); color: #166534; border: 1px solid #bbf7d0; }
.availability.bad { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .schedule-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; width: 258px; transition: left .2s ease; box-shadow: 20px 0 50px rgba(15,23,42,.25); }
  .sidebar.open { left: 0; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .topbar { padding: 0 18px; }
  .content { padding: 20px 18px; }
  .dashboard-main,.dashboard-lower { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .form-grid,.form-grid-3 { grid-template-columns: 1fr; }
  .grid-3,.grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .content,.portal-content { padding: 17px 13px; }
  .topbar { padding: 0 13px; }
  .user-meta { display: none; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .kpi-grid,.grid-2,.grid-3,.grid-4,.room-grid,.schedule-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 22px; }
  .card-header,.card-body { padding-left: 14px; padding-right: 14px; }
  .toolbar { align-items: stretch; }
  .toolbar > * { width: 100% !important; max-width: none !important; }
  .portal-bar { align-items: flex-start; flex-direction: column; }
  .portal-nav { width: 100%; overflow-x: auto; }
  .detail-list { grid-template-columns: 1fr; gap: 3px; }
  .detail-list dd { margin-bottom: 10px; }
}
@media print {
  .sidebar,.topbar,.page-actions,.toolbar,.no-print,.portal-header,.alert { display: none !important; }
  .app-shell { display: block; }
  .content,.portal-content { max-width: none; padding: 0; }
  body { background: white; font-size: 11px; }
  .card { box-shadow: none; break-inside: avoid; }
  .page-header { margin-bottom: 10px; }
  table { font-size: 9px; }
  th,td { padding: 5px 6px; }
}

/* --------------------------------------------------------------------------
   Tiger Studio public booking + customer account experience
   -------------------------------------------------------------------------- */
.btn-lg { min-height: 46px; padding: 0 18px; border-radius: 11px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: #111827; color: white; border-color: #111827; }
.btn-dark:hover { background: #0b1220; }
.btn-light { background: white; color: #172033; border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: #f8fafc; }
.back-link { display: inline-flex; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--primary); }
.eyebrow { display: inline-block; margin-bottom: 9px; font-size: 10.5px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .13em; }
.eyebrow.light { color: #F9D1B7; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-footer { border-top: 1px solid var(--border); border-bottom: 0; }
.toggle-row { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.toggle-row input { margin-top: 3px; }
.toggle-row span { display: grid; gap: 3px; }
.toggle-row small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.gateway-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--border); border-radius: 11px; padding: 14px; margin-bottom: 14px; background: #fbfdff; }
.gateway-status strong { display: block; }

.public-body { background: #fbfcfd; }
.public-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.public-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(226,232,240,.9); backdrop-filter: blur(14px); }
.public-nav-wrap { width: min(1240px, calc(100% - 40px)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; }
.public-brand > span:last-child { display: grid; line-height: 1.05; }
.public-brand strong { font-size: 14px; letter-spacing: -.015em; }
.public-brand small { color: #94a3b8; margin-top: 4px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.public-nav { display: flex; align-items: center; gap: 5px; }
.public-nav > a:not(.btn) { padding: 9px 11px; border-radius: 8px; font-size: 12.5px; color: #475569; font-weight: 650; }
.public-nav > a:not(.btn):hover,.public-nav > a.active:not(.btn) { color: var(--text); background: #f1f5f9; }
.public-nav form { margin: 0; }
.public-menu-toggle { display: none; width: 39px; height: 39px; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--text); }
.public-flash { width: min(1180px, calc(100% - 40px)); margin: 16px auto -4px; }

.hero-public { overflow: hidden; padding: 82px 0 78px; color: white; background:
  radial-gradient(circle at 78% 10%, rgba(217,130,80,.34), transparent 27%),
  radial-gradient(circle at 20% 85%, rgba(180,83,37,.18), transparent 31%),
  linear-gradient(145deg,#1D1B18,#24211D 62%,#2A211C); }
.hero-grid-public { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); align-items: center; gap: 54px; }
.hero-copy h1 { margin: 0; max-width: 720px; font-size: clamp(38px,5.5vw,68px); line-height: .98; letter-spacing: -.052em; }
.hero-copy > p { max-width: 660px; margin: 22px 0 0; color: #cbd5e1; font-size: clamp(15px,1.6vw,18px); line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 25px; color: #F9D1B7; font-size: 11px; font-weight: 650; }
.hero-panel { background: rgba(255,255,255,.98); color: var(--text); border-color: rgba(255,255,255,.28); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.hero-panel .btn { margin: 0 20px 20px; width: calc(100% - 40px); }
.hero-panel-top { padding: 17px 20px; border-bottom: 1px solid var(--border); font-size: 11px; color: #475569; font-weight: 700; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }
.hero-mini-schedule { padding: 9px 20px 16px; }
.mini-row { display: grid; grid-template-columns: 110px 1fr 105px; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2f7; }
.mini-row:last-child { border-bottom: 0; }
.mini-row > div:first-child { display: grid; }
.mini-row small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; margin-top: 3px; }
.mini-row > strong { text-align: right; font-size: 11px; }
.mini-slot { height: 8px; background: #e9eef5; border-radius: 999px; overflow: hidden; }
.mini-slot span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#C9632D,#D98250); }

.public-section { padding: 72px 0; }
.public-section.compact { padding: 42px 0 68px; }
.section-soft { background: #f2f5f8; border-top: 1px solid #e8edf3; border-bottom: 1px solid #e8edf3; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.section-heading.centered { justify-content: center; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(28px,3vw,38px); letter-spacing: -.035em; }
.section-heading p { max-width: 650px; margin: 9px 0 0; color: var(--muted); line-height: 1.6; }
.public-room-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.public-room-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.public-room-card:hover { transform: translateY(-3px); box-shadow: 0 15px 45px rgba(15,23,42,.09); }
.public-room-image { position: relative; height: 215px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg,#FDEBDD,#e2e8f0); color: #334155; font-size: 32px; font-weight: 850; }
.public-room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.public-room-card:hover .public-room-image img { transform: scale(1.025); }
.room-category { position: absolute; left: 13px; top: 13px; padding: 5px 9px; border-radius: 999px; color: #172033; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(15,23,42,.1); font-size: 10px; font-weight: 800; }
.public-room-content { padding: 18px; }
.public-room-content h3 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.025em; }
.public-room-content p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 12px; }
.room-price { text-align: right; flex: 0 0 auto; }
.room-price strong { display: block; font-size: 13px; }
.room-price span { color: var(--muted); font-size: 10px; }
.room-meta { display: flex; justify-content: space-between; gap: 8px; margin: 15px 0; padding-top: 13px; border-top: 1px solid var(--border); color: #64748b; font-size: 10.5px; }
.step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.step-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 25px; }
.step-card > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-weight: 850; font-size: 11px; }
.step-card h3 { margin: 20px 0 7px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 12.5px; }
.cta-panel { padding: 38px 42px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: white; background: linear-gradient(135deg,#2A211C,#C9632D); box-shadow: 0 25px 70px rgba(180,83,37,.18); }
.cta-panel h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.cta-panel p { margin: 9px 0 0; color: #FDEBDD; }

.public-page-head { padding: 54px 0 30px; background: linear-gradient(180deg,#f8fbff,#fbfcfd); border-bottom: 1px solid #eef2f7; }
.public-page-head h1 { margin: 0; font-size: clamp(31px,4vw,46px); letter-spacing: -.045em; }
.public-page-head p { color: var(--muted); margin: 10px 0 0; }
.public-filter { padding: 14px; display: grid; grid-template-columns: minmax(0,1fr) 230px auto; align-items: end; gap: 12px; margin-bottom: 22px; }
.search-grow { min-width: 0; }
.public-footer { margin-top: 30px; padding: 44px 0; color: #cbd5e1; background: #0f172a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 35px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid p,.footer-grid span,.footer-grid a { color: #94a3b8; font-size: 11px; line-height: 1.6; }
.footer-grid > div > strong { color: white; font-size: 12px; }
.footer-brand { margin-bottom: 4px; }

.room-detail-hero { padding: 45px 0; background: linear-gradient(180deg,#f8fbff,#fbfcfd); border-bottom: 1px solid #edf2f7; }
.room-detail-grid { display: grid; grid-template-columns: minmax(340px,.92fr) minmax(0,1.08fr); gap: 42px; align-items: center; }
.room-detail-image { height: 350px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: linear-gradient(145deg,#FDEBDD,#cbd5e1); color: #334155; font-size: 50px; font-weight: 850; box-shadow: 0 18px 50px rgba(15,23,42,.08); }
.room-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.room-detail-copy h1 { margin: 0; font-size: clamp(36px,5vw,56px); letter-spacing: -.05em; }
.room-detail-copy .lead { margin: 13px 0 24px; max-width: 650px; color: #64748b; font-size: 16px; line-height: 1.65; }
.room-detail-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.room-detail-stats > div { min-width: 135px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.room-detail-stats small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9.5px; }
.room-detail-stats strong { font-size: 15px; }
.room-detail-stats em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; }
.room-content-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,390px); align-items: start; gap: 22px; }
.public-info-card { box-shadow: none; }
.public-info-card h2 { margin-top: 0; }
.public-info-card p,.policy-list { color: #64748b; line-height: 1.75; font-size: 13px; }
.facility-public { display: flex; flex-wrap: wrap; gap: 8px; }
.facility-public span { padding: 7px 10px; border-radius: 9px; color: #334155; background: #f1f5f9; font-size: 11px; }
.policy-list { padding-left: 20px; }
.booking-widget { position: sticky; top: 88px; box-shadow: 0 18px 50px rgba(15,23,42,.08); }
.booking-widget h2 { margin: 0 0 17px; font-size: 23px; }
.slot-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-help { margin: 15px 0 9px; color: var(--muted); font-size: 10.5px; }
.slot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; transition: opacity .15s ease; }
.slot-grid.is-loading { opacity: .42; pointer-events: none; }
.slot-button { min-height: 54px; display: grid; place-items: center; align-content: center; gap: 1px; border: 1px solid #cbd5e1; border-radius: 9px; color: #334155; background: white; transition: .15s ease; }
.slot-button strong { font-size: 12px; }
.slot-button span { color: var(--muted); font-size: 9px; }
.slot-button:not(:disabled):hover { border-color: #D98250; background: #FFF7F1; }
.slot-button.selected { color: white; background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,99,45,.13); }
.slot-button.selected span { color: #FDEBDD; }
.slot-button.disabled { color: #94a3b8; background: #f1f5f9; border-color: #e2e8f0; cursor: not-allowed; text-decoration: line-through; }
.slot-loading,.slot-empty { grid-column: 1 / -1; padding: 22px 10px; text-align: center; color: var(--muted); font-size: 11px; }
.slot-empty.error { color: var(--danger); background: var(--danger-soft); border-radius: 9px; }
.selected-slot { margin-top: 15px; }

.customer-header { box-shadow: 0 1px 12px rgba(15,23,42,.03); }
.customer-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 60px; }
.customer-page { width: 100%; }
.customer-page.narrow { max-width: 860px; margin: 0 auto; }
.customer-hero-card { padding: 24px; background: linear-gradient(135deg,#2A211C,#3A2B22); color: white; border: 0; }
.account-booking-list { display: grid; gap: 12px; }
.account-booking-card h2 { margin: 4px 0 5px; font-size: 17px; }
.account-booking-card p { color: var(--muted); margin: 0; }
.booking-row-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 16px; padding: 13px; border-radius: 10px; background: #f8fafc; }
.booking-row-meta > div { display: grid; gap: 3px; }
.booking-row-meta small { color: var(--muted); font-size: 9.5px; }
.booking-row-meta strong { font-size: 11px; }
.booking-detail-customer { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr); gap: 17px; align-items: start; }
.payment-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.payment-history-row:last-child { border-bottom: 0; }
.payment-history-row > div { display: grid; gap: 3px; }
.payment-history-row small { color: var(--muted); }
.payment-page-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); gap: 16px; align-items: start; }
.payment-choice { display: flex; gap: 11px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 9px; cursor: pointer; }
.payment-choice:has(input:checked) { border-color: #F9D1B7; background: #FFF7F1; }
.payment-choice input { margin-top: 4px; }
.payment-choice span { display: flex; justify-content: space-between; gap: 15px; flex: 1; }
.payment-choice small { color: var(--primary); font-weight: 750; }
.sandbox-card { overflow: hidden; }
.sandbox-mark { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; margin-bottom: 15px; padding: 5px 9px; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.sandbox-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 980px) {
  .hero-grid-public,.room-detail-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 650px; }
  .public-room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-content-grid { grid-template-columns: minmax(0,1fr) 340px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 760px) {
  .public-nav-wrap,.public-container,.customer-main,.public-flash { width: min(100% - 28px,1180px); }
  .public-menu-toggle { display: inline-grid; place-items: center; }
  .public-nav { display: none; position: absolute; top: 62px; left: 14px; right: 14px; padding: 10px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 50px rgba(15,23,42,.14); }
  .public-nav.open { display: flex; }
  .public-nav > a,.public-nav > form,.public-nav > form .btn { width: 100%; }
  .hero-public { padding: 58px 0; }
  .hero-grid-public { gap: 35px; }
  .hero-copy h1 { font-size: clamp(37px,11vw,58px); }
  .mini-row { grid-template-columns: 95px 1fr; }
  .mini-row > strong { grid-column: 2; }
  .public-section { padding: 52px 0; }
  .section-heading,.cta-panel { align-items: flex-start; flex-direction: column; }
  .public-room-grid,.step-grid { grid-template-columns: 1fr; }
  .public-filter { grid-template-columns: 1fr; }
  .room-content-grid,.booking-detail-customer,.payment-page-grid { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
  .room-detail-image { height: 290px; }
  .booking-row-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px; }
}
@media (max-width: 460px) {
  .public-nav-wrap,.public-container,.customer-main,.public-flash { width: min(100% - 22px,1180px); }
  .hero-actions .btn { width: 100%; }
  .hero-trust { display: grid; gap: 8px; }
  .room-detail-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .room-detail-stats > div { min-width: 0; }
  .slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .slot-filter { grid-template-columns: 1fr; }
  .booking-row-meta { grid-template-columns: 1fr 1fr; }
  .sandbox-actions,.sandbox-actions form,.sandbox-actions .btn { width: 100%; }
}
.checkout-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 17px; align-items: start; }
.checkout-summary { position: sticky; top: 88px; }
.detail-stack { display: grid; gap: 10px; }
.detail-stack > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #edf2f7; }
.detail-stack small { color: var(--muted); }
.next-booking { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.next-booking h2 { margin: 0 0 6px; }
.next-booking p { margin: 0; color: var(--muted); }
.next-booking-status { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .next-booking { align-items: flex-start; flex-direction: column; }
  .next-booking-status { justify-content: flex-start; }
}

/* Customer reschedule */
.reschedule-current { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; padding:13px 15px; border:1px solid var(--border); border-radius:10px; background:#f8fafc; }
.reschedule-current span { color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.reschedule-current strong { font-size:13px; text-align:right; }
.slot-grid form { margin:0; min-width:0; }
.slot-grid form .slot-button { width:100%; }
.reschedule-slot { min-height:58px; }
.reschedule-slot:hover { border-color:#C9632D; background:#FFF7F1; }
.detail-list.compact dt,.detail-list.compact dd { padding-top:9px; padding-bottom:9px; }
@media (max-width:640px){ .reschedule-current { align-items:flex-start; flex-direction:column; } .reschedule-current strong { text-align:left; } }
.mini-availability { color:#475569; font-size:10.5px; font-weight:700; white-space:nowrap; }
.mini-availability .live-dot { width:6px; height:6px; margin-right:5px; box-shadow:none; }

/* Public availability search */
.hero-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.7fr) auto;gap:12px;align-items:end;padding:14px;margin:24px 0 12px;background:rgba(255,255,255,.96)}
.hero-search-field{display:flex;flex-direction:column;gap:7px;min-width:0}.hero-search-field label{font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
@media (max-width:760px){.hero-search{grid-template-columns:1fr}.hero-search .btn{width:100%}}

/* ========================================================================== 
   v3 Responsive & Performance Polish
   Progressive enhancement layer: no framework/runtime dependency required.
   ========================================================================== */
:root {
  --content-max: 1560px;
  --content-pad: clamp(14px, 2.15vw, 32px);
  --tap: 42px;
  --shadow-soft: 0 1px 2px rgba(15,23,42,.035), 0 10px 32px rgba(15,23,42,.045);
  --shadow-float: 0 18px 50px rgba(15,23,42,.14);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; text-rendering: optimizeLegibility; }
body.sidebar-open { overflow: hidden; }
::selection { background: #FDEBDD; color: #172033; }
:focus-visible { outline: 3px solid rgba(201,99,45,.26); outline-offset: 2px; }
.skip-link { position: fixed; left: 12px; top: 10px; z-index: 9999; transform: translateY(-160%); padding: 9px 12px; border-radius: 8px; color: white; background: #0f172a; font-size: 12px; font-weight: 750; transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }

/* Fast server-navigation feedback */
.page-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 9998; pointer-events: none; opacity: 0; overflow: hidden; transition: opacity .12s ease; }
.page-progress span { display: block; width: 38%; height: 100%; background: linear-gradient(90deg,#C9632D,#D98250); transform: translateX(-110%); }
.page-progress.is-active { opacity: 1; }
.page-progress.is-active span { animation: page-progress 1s ease-in-out infinite; }
@keyframes page-progress { 0% { transform: translateX(-110%); } 60% { transform: translateX(155%); } 100% { transform: translateX(285%); } }

/* Management shell */
.app-shell { grid-template-columns: 260px minmax(0,1fr); }
.sidebar { width: 260px; padding-bottom: max(20px, env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 99px; }
.nav-link { min-height: 40px; line-height: 1.25; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 35; border: 0; background: rgba(15,23,42,.46); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
.topbar { min-height: 66px; height: auto; padding-left: var(--content-pad); padding-right: var(--content-pad); }
.topbar-start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-start > div { min-width: 0; display: grid; gap: 2px; }
.topbar-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-context { display: none; color: #94a3b8; font-size: 10px; }
.content { width: 100%; max-width: var(--content-max); padding: var(--content-pad); }
.page-header { margin-bottom: clamp(17px,2vw,24px); }
.page-header h1 { font-size: clamp(22px,2vw,28px); }
.page-header p { max-width: 850px; line-height: 1.55; }
.card { box-shadow: var(--shadow-soft); }
.card-header { min-height: 58px; }
.card-title { line-height: 1.3; }
.card-subtitle { line-height: 1.45; }

/* Better adaptive grids */
.kpi-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.kpi-card { min-width: 0; }
.kpi-label { line-height: 1.35; }
.kpi-value { overflow-wrap: anywhere; line-height: 1.08; }
.grid-2,.dashboard-lower { gap: clamp(12px,1.5vw,18px); }
.dashboard-main { gap: clamp(12px,1.5vw,18px); }
.room-grid { grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); }

/* Buttons/forms: touch friendly without becoming oversized on desktop */
.btn { min-height: 40px; }
.btn-sm { min-height: 34px; }
.input,.select,.textarea { min-height: 42px; }
.form-grid,.form-grid-3 { gap: clamp(12px,1.5vw,18px); }
.form-actions { flex-wrap: wrap; }
button.is-loading, input.is-loading { cursor: wait; }
button.is-loading::before { content: ""; width: 13px; height: 13px; flex: 0 0 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; opacity: .72; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Filter bars */
.toolbar { gap: 8px; }
.toolbar .search { min-width: min(280px,100%); }
.toolbar .input,.toolbar .select { flex: 0 1 190px; }
.toolbar .search { flex: 1 1 320px; }

/* Tables: horizontal scroll by default, card mode added progressively by JS on phones */
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
table { min-width: 680px; }
th,td { line-height: 1.4; }
.row-actions { min-width: max-content; }
.table-wrap[data-table-scroll] table { min-width: 620px; }

/* Charts */
.chart { min-width: 0; isolation: isolate; }
.chart-bar { transition: filter .15s ease, transform .15s ease; }
.chart-bar:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Toast notification system */
.toast-region { position: fixed; right: max(16px, env(safe-area-inset-right)); top: max(82px, calc(env(safe-area-inset-top) + 70px)); z-index: 1200; width: min(390px, calc(100vw - 28px)); display: grid; gap: 9px; pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 10px minmax(0,1fr) 28px; align-items: start; gap: 10px; padding: 13px 12px 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-float); animation: toast-in .2s ease-out; backdrop-filter: blur(10px); }
.toast.is-leaving { opacity: 0; transform: translateX(12px); transition: opacity .18s ease, transform .18s ease; }
.toast-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #64748b; }
.toast-success .toast-dot { background: #16a34a; }
.toast-danger .toast-dot { background: #dc2626; }
.toast-info .toast-dot { background: #0284c7; }
.toast-copy { min-width: 0; display: grid; gap: 3px; }
.toast-copy strong { font-size: 12px; }
.toast-copy span { color: #475569; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.toast-close { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #64748b; font-size: 18px; line-height: 1; }
.toast-close:hover { background: #f1f5f9; color: #0f172a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Custom confirmation dialog */
.confirm-dialog { width: min(440px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 16px; color: var(--text); background: transparent; box-shadow: none; }
.confirm-dialog::backdrop { background: rgba(15,23,42,.55); backdrop-filter: blur(2px); }
.confirm-dialog[open] { animation: dialog-in .16s ease-out; }
.confirm-dialog-card { margin: 0; padding: 22px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: white; box-shadow: 0 28px 80px rgba(15,23,42,.25); }
.confirm-dialog-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #b91c1c; background: #fef2f2; font-weight: 850; }
.confirm-dialog-copy h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.confirm-dialog-copy p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.confirm-dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Skeletons / async states */
.skeleton { position: relative; overflow: hidden; background: #edf1f5 !important; color: transparent !important; border-color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); animation: skeleton-shimmer 1.15s ease-in-out infinite; }
.slot-skeleton { min-height: 54px; border-radius: 9px; }
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }
.availability.loading { color: #475569; background: #f8fafc; border: 1px solid var(--border); }
.slot-empty { display: grid; gap: 7px; place-items: center; }
.slot-empty strong { color: var(--text); font-size: 12px; }
.slot-empty span { color: var(--muted); }
.slot-empty.error strong,.slot-empty.error span { color: var(--danger); }

/* Public site */
.public-container,.public-nav-wrap,.public-flash,.customer-main { max-width: 1240px; }
.public-nav-wrap { position: relative; min-height: 68px; }
.public-header { isolation: isolate; }
.public-brand { min-width: 0; }
.public-brand strong { white-space: nowrap; }
.public-menu-toggle { min-width: var(--tap); min-height: var(--tap); }
.hero-public { padding: clamp(58px,7vw,88px) 0; }
.hero-grid-public { gap: clamp(32px,5vw,62px); }
.hero-copy h1 { text-wrap: balance; }
.hero-copy > p { text-wrap: pretty; }
.hero-search { margin-top: 26px; }
.public-section { padding: clamp(48px,6vw,76px) 0; }
.public-room-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.public-room-card,.step-card { content-visibility: auto; contain-intrinsic-size: 320px; }
.public-room-image { aspect-ratio: 16 / 10; height: auto; }
.public-room-image img,.room-detail-image img,.room-cover img { display: block; }
.public-room-content p { min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-meta { flex-wrap: wrap; }
.room-price { min-width: max-content; }
.cta-panel h2,.section-heading h2 { text-wrap: balance; }
.room-content-grid { gap: clamp(16px,2vw,24px); }
.booking-widget { max-height: calc(100vh - 105px); overflow: auto; scrollbar-width: thin; }
.slot-button { touch-action: manipulation; }
.slot-button:focus-visible { z-index: 1; }

/* Customer */
.customer-main { padding-top: clamp(20px,3vw,32px); padding-bottom: clamp(44px,6vw,72px); }
.account-booking-card { content-visibility: auto; contain-intrinsic-size: 220px; }
.booking-row-meta { gap: 10px; }

/* Desktop XL */
@media (min-width: 1500px) {
  .app-shell { grid-template-columns: 272px minmax(0,1fr); }
  .sidebar { width: 272px; padding-left: 18px; padding-right: 18px; }
  .content { max-width: 1640px; }
  .dashboard-main { grid-template-columns: minmax(0,2.15fr) minmax(330px,.85fr); }
  .public-container { max-width: 1320px; }
  .public-nav-wrap { max-width: 1360px; }
  .public-room-grid { gap: 22px; }
}

/* Laptop / small desktop */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-main { grid-template-columns: minmax(0,1.55fr) minmax(280px,.85fr); }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Tablet */
@media (max-width: 960px) {
  .dashboard-main,.dashboard-lower { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-grid-public,.room-detail-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: none; }
  .room-content-grid { grid-template-columns: minmax(0,1fr) minmax(300px,340px); }
  .booking-widget { max-height: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

/* Management mobile/tablet sidebar */
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { left: 0; width: min(290px,86vw); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { left: 0; transform: translateX(0); }
  .sidebar-backdrop { display: block; }
  .mobile-toggle { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); }
  .topbar { min-height: 62px; }
  .topbar-context { display: block; }
  .content { max-width: none; }
  .schedule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Public/customer mobile menu and single-column content */
@media (max-width: 760px) {
  .public-nav-wrap,.public-container,.customer-main,.public-flash { width: min(100% - 28px,1240px); }
  .public-menu-toggle { display: inline-grid; place-items: center; }
  .public-nav { top: calc(100% + 7px); left: 0; right: 0; max-height: calc(100vh - 88px); overflow-y: auto; padding: 10px; }
  .public-nav > a:not(.btn),.public-nav > .btn { min-height: 42px; display: flex; align-items: center; }
  .public-nav > form .btn { min-height: 42px; }
  .hero-public { padding: 48px 0 54px; }
  .hero-copy h1 { font-size: clamp(34px,10vw,52px); line-height: 1.02; }
  .hero-copy > p { margin-top: 17px; }
  .hero-search { margin-top: 20px; padding: 12px; }
  .public-room-grid,.step-grid { grid-template-columns: 1fr; }
  .public-room-card { display: grid; grid-template-columns: minmax(150px,38%) minmax(0,1fr); }
  .public-room-image { aspect-ratio: auto; min-height: 100%; }
  .public-room-content { min-width: 0; }
  .public-room-content .btn-block { width: 100%; }
  .public-room-content p { min-height: auto; }
  .public-filter { grid-template-columns: 1fr 1fr; }
  .public-filter .search-grow { grid-column: 1 / -1; }
  .public-filter > .btn { grid-column: 1 / -1; width: 100%; }
  .room-content-grid,.booking-detail-customer,.payment-page-grid,.checkout-grid { grid-template-columns: 1fr; }
  .booking-widget,.checkout-summary { position: static; max-height: none; }
  .room-detail-image { height: min(52vw,360px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cta-panel { padding: 27px; }
}

/* Phone */
@media screen and (max-width: 640px) {
  .content { padding: 16px 12px 32px; }
  .topbar { padding: 8px 12px; }
  .topbar-context { display: none; }
  .user-menu { gap: 6px; }
  .user-meta { display: none; }
  .page-header { align-items: stretch; flex-direction: column; gap: 13px; }
  .page-header h1 { font-size: 22px; }
  .page-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-actions > .btn,.page-actions > form,.page-actions > form .btn { width: 100%; }
  .kpi-grid,.grid-2,.grid-3,.grid-4,.schedule-grid { grid-template-columns: 1fr; }
  .kpi-card { padding: 15px; }
  .kpi-value { font-size: 22px; }
  .card-header { padding: 14px; align-items: flex-start; flex-wrap: wrap; }
  .card-body { padding: 14px; }
  .form-grid,.form-grid-3 { grid-template-columns: 1fr; gap: 13px; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions .btn,.form-actions form,.form-actions form .btn { width: 100%; }
  .toolbar { padding: 12px; align-items: stretch; }
  .toolbar > *,.toolbar .input,.toolbar .select,.toolbar .search { width: 100% !important; max-width: none !important; flex-basis: 100%; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .pagination-links { width: 100%; overflow-x: auto; padding-bottom: 2px; }

  /* Phone tables become semantic visual cards; JS injects labels from <th>. */
  .table-responsive-cards { overflow: visible; }
  .table-responsive-cards table,.table-responsive-cards tbody,.table-responsive-cards tr,.table-responsive-cards td { display: block; width: 100%; min-width: 0; }
  .table-responsive-cards thead { display: none; }
  .table-responsive-cards tbody { padding: 10px; display: grid; gap: 10px; }
  .table-responsive-cards tr { overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: white; box-shadow: 0 1px 2px rgba(15,23,42,.025); }
  .table-responsive-cards td { min-height: 42px; padding: 9px 11px; display: grid; grid-template-columns: minmax(88px,34%) minmax(0,1fr); align-items: center; gap: 10px; border-bottom: 1px solid #edf1f5; text-align: left !important; overflow-wrap: anywhere; }
  .table-responsive-cards td:last-child { border-bottom: 0; }
  .table-responsive-cards td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.25; }
  .table-responsive-cards td.table-empty-cell { display: block; padding: 0; border: 0; }
  .table-responsive-cards td.table-empty-cell::before { content: none; }
  .table-responsive-cards .row-actions { justify-content: flex-start; flex-wrap: wrap; min-width: 0; }
  .table-responsive-cards .row-actions .btn { flex: 1 1 auto; }
  .table-responsive-cards details { min-width: 0; }
  .table-responsive-cards pre.json { max-width: 100%; }

  .detail-list { grid-template-columns: 1fr; }
  .detail-list dd { margin-bottom: 8px; }
  .toast-region { top: max(70px, calc(env(safe-area-inset-top) + 62px)); right: 10px; width: calc(100vw - 20px); }
  .confirm-dialog-card { grid-template-columns: 38px minmax(0,1fr); padding: 18px; }
  .confirm-dialog-icon { width: 38px; height: 38px; }
  .confirm-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .confirm-dialog-actions .btn { width: 100%; }

  .public-room-card { grid-template-columns: 1fr; }
  .public-room-image { aspect-ratio: 16 / 9; min-height: 0; }
  .public-filter { grid-template-columns: 1fr; }
  .public-filter .search-grow,.public-filter > .btn { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .booking-row-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payment-history-row { align-items: flex-start; }
}

/* Narrow phone */
@media screen and (max-width: 420px) {
  .public-nav-wrap,.public-container,.customer-main,.public-flash { width: calc(100% - 20px); }
  .brand-mark { width: 36px; height: 36px; }
  .public-brand small { display: none; }
  .page-actions { grid-template-columns: 1fr; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .room-detail-stats { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .booking-row-meta { grid-template-columns: 1fr; }
  .summary-row { gap: 10px; }
  .summary-row strong { text-align: right; }
  .confirm-dialog-actions { grid-template-columns: 1fr; }
}

/* Motion and low-power friendliness */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (hover: none) {
  .btn:hover,.public-room-card:hover { transform: none; }
  .public-room-card:hover .public-room-image img { transform: none; }
}

/* Final grid corrections */
@media (min-width: 1181px) {
  .kpi-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
.public-filter { grid-template-columns: minmax(260px,1fr) minmax(150px,220px) minmax(160px,200px) auto; }
@media (max-width: 760px) {
  .public-filter { grid-template-columns: 1fr 1fr; }
  .public-filter .search-grow { grid-column: 1 / -1; }
  .public-filter > .btn { grid-column: 1 / -1; }
}
@media screen and (max-width: 640px) {
  .public-filter { grid-template-columns: 1fr; }
  .public-filter .search-grow,.public-filter > .btn { grid-column: auto; }
}
@media screen and (max-width: 640px) {
  .table-responsive-cards td { min-width: 0 !important; }
}
.schedule-day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,23,42,.025); }
.schedule-day .empty { color: #94a3b8; font-size: 11px; }
.event { overflow: hidden; }

/* Keep print output clean after the v3 override layer. */
@media print {
  .sidebar,.sidebar-backdrop,.topbar,.page-actions,.toolbar,.no-print,.portal-header,.public-header,.public-footer,.toast-region,.page-progress,.confirm-dialog { display: none !important; }
  .app-shell { display: block !important; }
  .content,.portal-content,.customer-main,.public-container { width: 100% !important; max-width: none !important; padding: 0 !important; }
  body { background: white !important; }
  .card,.schedule-day { box-shadow: none !important; }
  .table-wrap { overflow: visible !important; }
  table { min-width: 0 !important; }
}

/* ========================================================================== 
   v4 Tiger Studio Editorial Design System
   Modern Editorial Venue Management — Blade + vanilla JS only.
   ========================================================================== */
:root {
  --bg: #F7F6F2;
  --canvas: #F7F6F2;
  --surface: #FFFFFF;
  --surface-soft: #F1F0EC;
  --surface-raised: #FBFAF7;
  --text: #1A1917;
  --ink: #1A1917;
  --ink-secondary: #55524D;
  --muted: #77736D;
  --border: #E5E2DB;
  --border-strong: #D6D2CA;
  --primary: #C9632D;
  --primary-strong: #B45325;
  --primary-soft: #FFF7F1;
  --brand-100: #FDEBDD;
  --brand-200: #F9D1B7;
  --sidebar: #1D1B18;
  --sidebar-soft: #2A2722;
  --success: #32705A;
  --success-soft: #EAF4EF;
  --warning: #95651D;
  --warning-soft: #FAF2DF;
  --danger: #AD4141;
  --danger-soft: #FAEAEA;
  --info: #476A7C;
  --info-soft: #EAF1F4;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: none;
  --shadow-soft: none;
  --shadow-float: 0 18px 50px rgba(30, 27, 22, .12);
  --shadow-dialog: 0 24px 70px rgba(30, 27, 22, .20);
  --content-max: 1540px;
  --content-pad: clamp(16px, 2.1vw, 32px);
  --tap: 44px;
  --motion-fast: 150ms ease-out;
  --motion: 180ms ease-out;
}

html { color: var(--ink); background: var(--canvas); }
body { background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.55; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 2px solid rgba(201,99,45,.42); outline-offset: 2px; }
.ui-icon { display: inline-block; flex: 0 0 auto; vertical-align: -0.15em; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.help { color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-error { color: var(--danger); font-size: 12px; }

/* Brand */
.tiger-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.tiger-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); color: #fff; }
.tiger-mark svg { width: 30px; height: 30px; }
.tiger-mark path { stroke: currentColor; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }
.tiger-brand-copy { display: grid; min-width: 0; line-height: 1.08; }
.tiger-brand-copy strong { color: inherit; font-size: 14px; font-weight: 760; letter-spacing: -.02em; }
.tiger-brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .04em; }
.tiger-brand-compact .tiger-mark { width: 34px; height: 34px; flex-basis: 34px; }
.tiger-brand-compact .tiger-brand-copy small { display: none; }

/* Core structure */
.app-shell { grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { width: 264px; padding: 20px 14px 18px; background: var(--sidebar); color: #EFECE6; border-right: 1px solid rgba(255,255,255,.04); }
.sidebar-brand { display: block; padding: 4px 8px 22px; }
.sidebar .tiger-brand-copy strong { color: #FFF; }
.sidebar .tiger-brand-copy small { color: #918B81; }
.sidebar .tiger-mark { background: var(--primary); box-shadow: none; }
.management-nav { display: grid; }
.nav-section { margin: 9px 0 17px; }
.nav-section-primary { margin-top: 0; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-label { padding: 0 11px 8px; color: #756F66; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 760; }
.nav-link { min-height: 42px; margin: 2px 0; padding: 10px 11px; gap: 11px; border-radius: 8px; color: #BDB7AD; font-size: 13.5px; font-weight: 560; transition: color var(--motion-fast), background var(--motion-fast); }
.nav-link .ui-icon { color: #8D867C; }
.nav-link:hover { background: rgba(255,255,255,.055); color: #FFF; }
.nav-link:hover .ui-icon { color: #D9D3C9; }
.nav-link.active { background: #302C27; color: #FFF; box-shadow: none; }
.nav-link.active .ui-icon { color: #E58A57; }
.nav-link.active::before { content: ""; width: 3px; align-self: stretch; margin: -3px 0 -3px -11px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav-external { margin-left: auto; color: #6E685F; display: inline-flex; }
.sidebar-footer { margin-top: auto; padding: 18px 10px 4px; border-top: 1px solid rgba(255,255,255,.07); display: flex; gap: 10px; align-items: flex-start; color: #7D776E; }
.sidebar-footer-mark { width: 6px; height: 6px; margin-top: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--primary); }
.sidebar-footer > span:last-child { display: grid; gap: 3px; }
.sidebar-footer strong { color: #C9C3B9; font-size: 11px; font-weight: 650; }
.sidebar-footer small { max-width: 190px; color: #746E65; font-size: 10px; line-height: 1.45; }
.sidebar::-webkit-scrollbar-thumb { background: #403B35; }
.sidebar { scrollbar-color: #403B35 transparent; }
.sidebar-backdrop { background: rgba(29,27,24,.48); }

.topbar { min-height: 68px; background: rgba(247,246,242,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.topbar-start { gap: 12px; }
.topbar-heading { min-width: 0; display: grid; gap: 1px; }
.topbar-title { color: var(--ink); font-size: 13px; font-weight: 680; }
.topbar-context { display: block; color: var(--muted); font-size: 10.5px; }
.icon-button { width: 40px; height: 40px; min-width: 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
.icon-button:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.avatar { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-100); color: var(--primary-strong); font-size: 11px; font-weight: 800; }
.user-name { font-size: 13px; font-weight: 680; }
.user-role { margin-top: 2px; color: var(--muted); font-size: 11px; }
.logout-button { color: var(--ink-secondary); }
.content { max-width: var(--content-max); padding: var(--content-pad); }

/* Type hierarchy */
.page-header { align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 0; color: var(--ink); font-size: clamp(26px, 2.25vw, 34px); line-height: 1.15; letter-spacing: -.035em; font-weight: 730; }
.page-header p { margin: 8px 0 0; max-width: 760px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.page-kicker, .card-kicker { display: block; margin-bottom: 6px; color: var(--primary); font-size: 10.5px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.card-kicker { margin-bottom: 4px; }
.page-actions { gap: 8px; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: none; }
.card-header { min-height: 0; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-raised); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.card-footer .form-actions { margin: 0; padding: 0; border: 0; }
.card-title { color: var(--ink); font-size: 15px; font-weight: 720; letter-spacing: -.012em; }
.card-subtitle { margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Buttons & links */
.btn { min-height: 40px; padding: 0 14px; gap: 7px; border-radius: var(--radius-control); font-size: 13px; font-weight: 680; transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); transform: none; }
.btn:hover { transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #FFF; box-shadow: none; }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-soft); border-color: #C8C3BA; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-secondary); }
.btn-ghost:hover { background: var(--surface-soft); color: var(--ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #963636; border-color: #963636; }
.btn-sm { min-height: 34px; padding-inline: 10px; font-size: 12px; }
.btn-lg { min-height: 46px; padding-inline: 18px; }
.btn-link, .text-link { color: var(--primary-strong); font-weight: 680; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.text-link:hover, .btn-link:hover { color: var(--primary); }

/* Forms */
label { color: var(--ink-secondary); font-size: 12.5px; font-weight: 680; }
.form-group { gap: 7px; }
.input, .select, .textarea { min-height: 42px; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: #FFF; color: var(--ink); box-shadow: none; transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast); }
.input:hover, .select:hover, .textarea:hover { border-color: #C1BBB1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,99,45,.10); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-soft); color: #918B83; }
.textarea { min-height: 104px; }
.form-grid, .form-grid-3 { gap: 18px; }
.form-section { margin-top: 24px; padding-top: 24px; border-top-color: var(--border); }
.form-section h2, .form-section h3 { margin-bottom: 16px; color: var(--ink); font-size: 15px; font-weight: 720; }
.form-actions { margin-top: 22px; padding-top: 18px; border-top-color: var(--border); }
.checkbox-row { color: var(--ink-secondary); font-size: 12.5px; }
.search-input { min-width: 220px; }
.role-select { min-width: 120px; }
.password-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.password-toggle { min-width: 74px; }

/* Filters and data tables */
.toolbar { padding: 14px 16px; gap: 8px; background: var(--surface-raised); border-bottom-color: var(--border); }
.toolbar .search { max-width: 460px; }
.table-wrap { scrollbar-color: var(--border-strong) transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border-strong); }
table { font-size: 13px; }
th { padding: 12px 14px; color: var(--muted); background: #FAF9F6; border-bottom-color: var(--border); font-size: 10.5px; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
td { height: 52px; padding: 12px 14px; border-bottom: 1px solid #EEECE7; color: var(--ink-secondary); }
td strong, td .btn-link { color: var(--ink); }
tbody tr:hover { background: #FBFAF7; }
.row-actions { gap: 6px; }
.utilization-cell { min-width: 210px; }
.pagination { padding: 14px 16px; border-top-color: var(--border); }
.page-link { min-width: 34px; height: 34px; border-color: var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--ink-secondary); }
.page-link:hover:not(.disabled):not(.active) { background: var(--surface-soft); }
.page-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs { padding: 4px; gap: 3px; background: #EDEAE4; border-radius: 10px; }
.tab { padding: 8px 12px; border-radius: 7px; color: var(--muted); font-size: 12.5px; }
.tab.active { background: #FFF; color: var(--ink); box-shadow: none; }

/* Status & feedback */
.badge { padding: 4px 8px; border-width: 1px; font-size: 10.5px; font-weight: 720; letter-spacing: .005em; }
.badge-success { color: var(--success); background: var(--success-soft); border-color: #C5DFD2; }
.badge-warning { color: var(--warning); background: var(--warning-soft); border-color: #E9D8B0; }
.badge-danger { color: var(--danger); background: var(--danger-soft); border-color: #EBC7C7; }
.badge-info { color: var(--info); background: var(--info-soft); border-color: #C8D8DF; }
.badge-primary { color: var(--primary-strong); background: var(--primary-soft); border-color: var(--brand-200); }
.badge-muted { color: #6F6A63; background: #F4F2ED; border-color: var(--border); }
.alert { border-radius: 10px; padding: 13px 14px; display: grid; grid-template-columns: 22px minmax(0,1fr) 30px; }
.alert-icon { display: inline-flex; margin-top: 1px; }
.alert-copy { min-width: 0; }
.alert-success { color: #285B49; background: var(--success-soft); border-color: #C5DFD2; }
.alert-danger { color: #8C3434; background: var(--danger-soft); border-color: #EBC7C7; }
.alert-warning { color: #795016; background: var(--warning-soft); border-color: #E9D8B0; }
.alert-info { color: #3D5D6D; background: var(--info-soft); border-color: #C8D8DF; }
.alert-close { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; }
.alert-close:hover { background: rgba(0,0,0,.04); }
.empty { padding: 52px 22px; color: var(--muted); }
.empty-icon { width: 42px; height: 42px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--muted); }
.empty strong { margin-bottom: 5px; color: var(--ink); font-size: 14px; font-weight: 710; }
.empty-message { max-width: 420px; margin: 0 auto; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.empty-action { margin-top: 16px; }

/* Progress & charts */
.progress { width: 100%; height: 7px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: #E9E6E0; }
.progress::-webkit-progress-bar { background: #E9E6E0; border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
div.progress > span { background: var(--primary); }
.chart { height: 250px; gap: 8px; padding: 18px 4px 8px; border-bottom-color: var(--border); }
.chart-bar { height: var(--chart-height, 0%); width: min(26px,72%); background: var(--primary); border-radius: 5px 5px 2px 2px; transition: opacity var(--motion-fast); }
.chart-bar:hover { filter: none; transform: none; opacity: .78; }
.chart-bar:hover::after { background: var(--ink); color: #fff; border-radius: 6px; }
.chart-label { color: var(--muted); font-size: 10px; }

/* Dashboard */
.dashboard-page-header { margin-bottom: 24px; }
.dashboard-overview { display: grid; grid-template-columns: 1.35fr repeat(4,minmax(0,1fr)); gap: 12px; }
.metric-card { min-width: 0; min-height: 166px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.metric-card-primary { background: var(--ink); border-color: var(--ink); color: #FFF; }
.metric-icon { width: 34px; height: 34px; margin-bottom: auto; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
.metric-card-primary .metric-icon { background: rgba(255,255,255,.10); color: #F2AD83; }
.metric-label { margin-top: 20px; color: var(--muted); font-size: 11px; font-weight: 680; }
.metric-card-primary .metric-label, .metric-card-primary .metric-caption { color: #AAA49B; }
.metric-value { margin-top: 5px; color: var(--ink); font-size: clamp(22px,2vw,29px); line-height: 1.05; font-weight: 760; letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric-card-primary .metric-value { color: #FFF; font-size: clamp(25px,2.25vw,34px); }
.metric-value > span { color: var(--muted); font-size: .55em; font-weight: 600; }
.metric-caption { margin-top: 7px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.dashboard-main { grid-template-columns: minmax(0,1.8fr) minmax(290px,.8fr); gap: 14px; }
.dashboard-lower { gap: 14px; }
.dashboard-panel { overflow: hidden; }
.utilization-list { display: grid; gap: 18px; }
.utilization-row { display: grid; gap: 7px; }
.utilization-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.utilization-head strong { color: var(--ink); font-weight: 680; }
.utilization-head span { color: var(--muted); font-size: 11.5px; }
.schedule-timeline { padding-top: 10px; padding-bottom: 10px; }
.timeline-row { display: grid; grid-template-columns: 48px 16px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 70px; padding: 8px 0; border-bottom: 1px solid #EEECE7; }
.timeline-row:last-child { border-bottom: 0; }
.timeline-time { color: var(--ink); font-size: 12px; font-weight: 720; line-height: 1.2; }
.timeline-time span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 550; }
.timeline-rule { align-self: stretch; position: relative; display: grid; place-items: center; }
.timeline-rule::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-rule span { position: relative; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline-copy { min-width: 0; display: grid; gap: 4px; }
.timeline-copy strong { overflow: hidden; color: var(--ink); font-size: 12.5px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.timeline-copy span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-list { padding-top: 8px; padding-bottom: 8px; }
.transaction-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 66px; padding: 8px 0; border-bottom: 1px solid #EEECE7; }
.transaction-row:last-child { border-bottom: 0; }
.transaction-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.transaction-copy { min-width: 0; display: grid; gap: 3px; }
.transaction-copy strong { color: var(--ink); font-size: 12.5px; }
.transaction-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-amount { display: grid; gap: 3px; text-align: right; }
.transaction-amount strong { color: var(--ink); font-size: 12.5px; }
.transaction-amount span { color: var(--muted); font-size: 10px; }

/* Management room & schedule surfaces */
.room-cover { background: #EDE9E2; color: #756F66; }
.room-cover-lg { height: 220px; }
.facility { color: var(--ink-secondary); background: var(--surface-soft); border: 1px solid var(--border); }
.schedule-day { border-radius: var(--radius-card); box-shadow: none; }
.schedule-day.today { border-color: var(--brand-200); box-shadow: 0 0 0 2px rgba(201,99,45,.07); }
.day-name { color: var(--muted); font-size: 10px; }
.day-number { color: var(--ink); }
.event { border-color: var(--border); border-left-color: var(--primary); border-radius: 8px; background: var(--surface); font-size: 11px; }
.event.block { border-left-color: var(--warning); background: var(--warning-soft); }
.event-title { color: var(--ink); }
.event-time, .event-sub { color: var(--muted); }
.schedule-empty { padding: 24px 8px; color: #9B958D; font-size: 11px; text-align: center; }

/* Public shell */
.public-body, .customer-body { background: var(--canvas); }
.public-header { background: rgba(247,246,242,.94); border-bottom: 1px solid rgba(229,226,219,.94); backdrop-filter: blur(16px); }
.public-nav-wrap { min-height: 72px; }
.public-brand .tiger-brand-copy strong { color: var(--ink); }
.public-brand .tiger-brand-copy small { color: var(--muted); text-transform: none; letter-spacing: .015em; }
.public-nav { gap: 2px; }
.public-nav > a:not(.btn) { padding: 9px 11px; color: var(--ink-secondary); font-size: 13px; font-weight: 620; border-radius: 7px; }
.public-nav > a:not(.btn):hover { color: var(--ink); background: #EEECE6; }
.public-nav > a.active:not(.btn) { color: var(--ink); background: transparent; box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.public-menu-toggle { border-color: var(--border); background: var(--surface); }
.public-flash { margin-top: 16px; }

/* Public hero: editorial, not SaaS */
.hero-public { padding: clamp(54px,7vw,92px) 0 64px; overflow: hidden; color: var(--ink); background: var(--canvas); }
.hero-grid-public { grid-template-columns: minmax(0,1fr) minmax(360px,.82fr); gap: clamp(40px,6vw,82px); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--primary); font-size: 10.5px; font-weight: 790; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #EBA77E; }
.hero-copy h1 { max-width: 760px; margin: 11px 0 0; color: var(--ink); font-size: clamp(44px,6.2vw,76px); line-height: .98; letter-spacing: -.058em; font-weight: 720; text-wrap: balance; }
.hero-copy > p { max-width: 660px; margin: 22px 0 0; color: var(--ink-secondary); font-size: clamp(15px,1.4vw,18px); line-height: 1.7; }
.hero-search { margin: 30px 0 0; padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.58fr) auto; gap: 8px; align-items: end; border: 1px solid var(--border); border-radius: 12px; background: #FFF; box-shadow: 0 14px 34px rgba(30,27,22,.055); }
.hero-search-field { gap: 5px; }
.hero-search-field label { color: var(--muted); font-size: 10px; letter-spacing: .075em; }
.hero-search .input { border-color: transparent; background: #FBFAF7; }
.hero-search .input:focus { border-color: var(--primary); background: #FFF; }
.hero-note-list { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 20px; color: var(--muted); font-size: 11.5px; }
.hero-note-list span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note-list .ui-icon { color: var(--primary); }
.hero-editorial-media { min-width: 0; position: relative; }
.hero-editorial-media::before { content: ""; position: absolute; width: 170px; height: 170px; right: -32px; top: -34px; border-radius: 50%; background: var(--brand-100); z-index: 0; }
.hero-feature-image { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-panel); background: #EAE5DD; color: var(--primary); }
.hero-feature-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-image-fallback { font-size: 48px; font-weight: 800; letter-spacing: -.04em; }
.hero-feature-caption { position: relative; z-index: 2; width: calc(100% - 32px); margin: -38px auto 0; padding: 16px 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 14px 34px rgba(30,27,22,.08); backdrop-filter: blur(12px); }
.hero-feature-caption > div:first-child { min-width: 0; display: grid; gap: 3px; }
.hero-feature-kicker { color: var(--primary); font-size: 9.5px; font-weight: 770; letter-spacing: .1em; text-transform: uppercase; }
.hero-feature-caption strong { color: var(--ink); font-size: 14px; }
.hero-feature-caption small { overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.hero-feature-price { flex: 0 0 auto; text-align: right; }
.hero-feature-price strong { display: block; font-size: 13px; }
.hero-feature-price span { color: var(--muted); font-size: 10px; }
.hero-feature-placeholder { min-height: 430px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-panel); background: #ECE8E0; }

/* Public sections */
.public-section { padding: clamp(58px,7vw,88px) 0; }
.public-section.compact { padding: 46px 0 76px; }
.room-discovery-section { background: #FFF; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-soft { background: #EFECE6; border-color: #E4E0D8; }
.section-heading { align-items: flex-end; margin-bottom: 32px; }
.section-heading h2 { max-width: 760px; margin-top: 7px; color: var(--ink); font-size: clamp(30px,3.5vw,45px); line-height: 1.08; letter-spacing: -.043em; font-weight: 710; }
.section-heading p { max-width: 620px; margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.public-room-grid { gap: 28px 20px; }
.public-room-card { overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; transition: none; }
.public-room-card:hover { transform: none; box-shadow: none; }
.public-room-image { aspect-ratio: 16 / 10; height: auto; border-radius: 12px; background: #E8E4DD; color: var(--primary); }
.public-room-image img { transition: opacity var(--motion); }
.public-room-card:hover .public-room-image img { transform: none; opacity: .94; }
.room-category { left: 12px; top: 12px; padding: 5px 8px; border: 1px solid rgba(229,226,219,.85); border-radius: 7px; color: var(--ink-secondary); background: rgba(255,255,255,.92); box-shadow: none; font-size: 9.5px; }
.public-room-content { padding: 14px 2px 0; }
.room-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.public-room-content h3 { margin: 0 0 5px; color: var(--ink); font-size: 17px; font-weight: 710; letter-spacing: -.02em; }
.public-room-content p { min-height: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.room-price strong { color: var(--ink); font-size: 13px; }
.room-price span { color: var(--muted); font-size: 10px; }
.room-meta { justify-content: flex-start; gap: 14px; margin: 13px 0 12px; padding-top: 12px; border-top-color: var(--border); color: var(--muted); font-size: 11px; }
.room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-card-link { font-size: 12.5px; }
.editorial-empty { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--radius-card); background: #FFF; }
.booking-story { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(42px,7vw,90px); align-items: start; }
.booking-story-intro h2 { margin: 8px 0 0; color: var(--ink); font-size: clamp(31px,3.4vw,45px); line-height: 1.1; letter-spacing: -.044em; font-weight: 710; }
.booking-story-intro p { max-width: 520px; color: var(--muted); line-height: 1.7; }
.step-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-strong); }
.step-list li { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--border-strong); }
.step-number { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.step-list h3 { margin: 0 0 5px; color: var(--ink); font-size: 16px; }
.step-list p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.final-cta-section { background: #FFF; }
.cta-panel.editorial-cta, .cta-panel { padding: clamp(30px,4.5vw,54px); border-radius: var(--radius-panel); color: #FFF; background: var(--ink); box-shadow: none; }
.cta-panel h2 { margin-top: 7px; color: #FFF; font-size: clamp(28px,3.4vw,42px); line-height: 1.1; }
.cta-panel p { color: #B9B3A9; font-size: 13.5px; line-height: 1.65; }
.btn-light { background: #FFF; border-color: #FFF; color: var(--ink); }
.btn-light:hover { background: #F1EDE7; border-color: #F1EDE7; }

/* Public listing */
.public-page-head { padding: 58px 0 34px; background: var(--canvas); border-bottom-color: var(--border); }
.public-page-head h1 { margin-top: 7px; color: var(--ink); font-size: clamp(34px,4.6vw,54px); line-height: 1.05; letter-spacing: -.05em; font-weight: 710; }
.public-page-head p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.public-filter { padding: 12px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #FFF; box-shadow: none; }
.result-heading { margin: 0 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-heading > div { display: flex; align-items: baseline; gap: 8px; }
.result-heading strong { color: var(--ink); font-size: 13px; }
.result-heading span { color: var(--muted); font-size: 11.5px; }

/* Public room detail */
.room-detail-hero { padding: 52px 0; background: #FFF; border-bottom-color: var(--border); }
.room-detail-grid { grid-template-columns: minmax(340px,.9fr) minmax(0,1.1fr); gap: clamp(36px,6vw,76px); }
.room-detail-image { height: 390px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: #E8E4DD; color: var(--primary); box-shadow: none; }
.room-detail-copy .back-link { margin-bottom: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--ink); }
.room-detail-copy h1 { margin-top: 8px; color: var(--ink); font-size: clamp(38px,5vw,60px); line-height: 1; letter-spacing: -.055em; font-weight: 720; }
.room-detail-copy .lead { color: var(--ink-secondary); }
.room-detail-stats { gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.room-detail-stats > div { min-width: 0; flex: 1 1 150px; position: relative; padding: 17px 18px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; }
.room-detail-stats > div:first-child { padding-left: 0; }
.room-detail-stats > div:last-child { border-right: 0; }
.room-detail-stats .stat-icon { display: none; }
.room-detail-stats small { color: var(--muted); font-size: 10px; }
.room-detail-stats strong { color: var(--ink); font-size: 15px; }
.room-editorial-copy { display: grid; gap: 0; }
.public-info-section { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.public-info-section:last-child { margin-bottom: 0; }
.public-info-section h2 { margin: 7px 0 12px; color: var(--ink); font-size: 27px; letter-spacing: -.035em; }
.public-info-section h3 { margin: 0 0 14px; color: var(--ink); font-size: 15px; }
.public-info-section p, .policy-list { color: var(--ink-secondary); font-size: 13.5px; line-height: 1.75; }
.facility-public { gap: 8px; }
.facility-public span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-control); background: #FFF; color: var(--ink-secondary); font-size: 11.5px; }
.facility-public .ui-icon { color: var(--success); }
.policy-list { margin-bottom: 0; padding-left: 19px; }
.policy-list li + li { margin-top: 8px; }
.booking-widget { position: sticky; top: 92px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: #FFF; box-shadow: 0 14px 38px rgba(30,27,22,.06); }
.booking-widget-head { margin-bottom: 18px; }
.booking-widget-head h2 { margin: 6px 0 5px; color: var(--ink); font-size: 24px; letter-spacing: -.03em; }
.booking-widget-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.slot-help { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.slot-grid { gap: 7px; }
.slot-button { min-height: 52px; border: 1px solid var(--border); border-radius: 8px; background: #FFF; color: var(--ink); }
.slot-button:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.slot-button.selected { border-color: var(--primary); background: var(--primary); color: #FFF; box-shadow: none; }
.slot-button.disabled, .slot-button:disabled { background: #F1EFEB; color: #A29C93; border-color: #EBE8E2; }
.summary-box { border-color: var(--border); border-radius: 10px; background: var(--surface-raised); }
.summary-row { font-size: 12px; }
.summary-row.total { border-top-color: var(--border); }

/* Public footer */
.public-footer { margin-top: 0; padding: 54px 0; color: #BFB8AE; background: var(--sidebar); }
.footer-grid { gap: 44px; }
.footer-grid p, .footer-grid span, .footer-grid a { color: #948E85; font-size: 11.5px; }
.footer-grid a:hover { color: #FFF; }
.footer-grid > div > strong { color: #EAE6DF; font-size: 11.5px; }
.public-footer .tiger-brand-copy strong { color: #FFF; }
.public-footer .tiger-brand-copy small { color: #817B72; }
.footer-intro p { max-width: 360px; }

/* Customer */
.customer-main { padding-top: 28px; }
.customer-header { background: rgba(247,246,242,.96); }
.kpi-value-date { font-size: 20px; }
.kpi-status-value { font-size: 18px; }
.account-booking-card { border-color: var(--border); }

/* Auth */
.auth-body { background: var(--canvas); }
.auth-shell { min-height: 100vh; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); background: var(--canvas); }
.auth-visual { position: relative; overflow: hidden; padding: clamp(36px,5vw,68px); background: var(--sidebar); color: #FFF; }
.auth-visual::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: 15%; border: 1px solid rgba(201,99,45,.30); border-radius: 50%; }
.auth-visual::after { content: ""; position: absolute; width: 430px; height: 1px; right: -140px; top: 43%; background: rgba(201,99,45,.35); transform: rotate(-34deg); transform-origin: center; }
.auth-brand { position: relative; z-index: 1; align-self: flex-start; }
.auth-visual .tiger-brand-copy strong { color: #FFF; }
.auth-visual .tiger-brand-copy small { color: #8F887E; }
.auth-story { position: relative; z-index: 1; max-width: 650px; }
.auth-story h1 { margin: 10px 0 0; max-width: 620px; color: #FFF; font-size: clamp(38px,4.5vw,58px); line-height: 1.02; letter-spacing: -.052em; font-weight: 700; }
.auth-story > p { max-width: 540px; margin: 20px 0 0; color: #B8B1A7; font-size: 14px; line-height: 1.75; }
.auth-story-points { display: grid; gap: 10px; margin-top: 28px; color: #D6D0C7; font-size: 12px; }
.auth-story-points span { display: flex; align-items: center; gap: 8px; }
.auth-story-points .ui-icon { color: #DF8D5C; }
.auth-back-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; color: #A9A299; font-size: 12px; font-weight: 620; }
.auth-back-link:hover { color: #FFF; }
.auth-panel { padding: 42px clamp(24px,5vw,72px); background: var(--canvas); }
.auth-card { width: min(520px,100%); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-tabs { margin-bottom: 34px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #EEECE6; }
.auth-tab { min-height: 38px; border-radius: 7px; color: var(--muted); font-size: 12.5px; }
.auth-tab.active { background: #FFF; color: var(--ink); box-shadow: none; }
.auth-form-heading { margin-bottom: 25px; }
.auth-form-heading h2 { margin: 7px 0 7px; color: var(--ink); font-size: 29px; letter-spacing: -.035em; }
.auth-form-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-form-meta { margin: 2px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-simple-shell, .error-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: var(--canvas); }
.auth-simple-card, .error-card { width: min(500px,100%); padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: #FFF; }
.auth-simple-brand { display: inline-block; margin-bottom: 32px; }
.auth-simple-card h1, .error-card h1 { margin: 7px 0 8px; color: var(--ink); font-size: 29px; line-height: 1.15; letter-spacing: -.035em; }
.auth-simple-lead, .error-card p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-simple-actions { margin-top: 22px; }
.error-card { text-align: left; }
.error-card .tiger-brand { margin-bottom: 36px; }
.error-code { display: block; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; }

/* Toast, dialog, skeleton */
.page-progress span { background: var(--primary); }
.toast { border-radius: 10px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-float); }
.toast-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; }
.toast-success .toast-icon { color: var(--success); background: var(--success-soft); }
.toast-danger .toast-icon { color: var(--danger); background: var(--danger-soft); }
.toast-info .toast-icon { color: var(--info); background: var(--info-soft); }
.toast { grid-template-columns: 28px minmax(0,1fr) 28px; }
.toast-copy strong { color: var(--ink); font-size: 12.5px; }
.toast-copy span { color: var(--muted); font-size: 12px; }
.toast-close { color: var(--muted); }
.toast-close:hover { background: var(--surface-soft); color: var(--ink); }
.confirm-dialog::backdrop { background: rgba(29,27,24,.58); }
.confirm-dialog-card { border: 1px solid var(--border); background: #FFF; box-shadow: var(--shadow-dialog); }
.confirm-dialog-icon { color: var(--danger); background: var(--danger-soft); }
.confirm-dialog-copy h2 { color: var(--ink); }
.skeleton { background: #EAE7E1 !important; }
.skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.66), transparent); }
.availability.loading { color: var(--ink-secondary); background: var(--surface-raised); border-color: var(--border); }
.availability.ok { color: var(--success); background: var(--success-soft); border-color: #C5DFD2; }
.availability.bad { color: var(--danger); background: var(--danger-soft); border-color: #EBC7C7; }

/* Misc details */
.detail-list { color: var(--ink-secondary); font-size: 13px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { color: var(--ink); font-weight: 620; }
pre.json { background: #24211D; color: #E9E4DB; }
.gateway-status { border-color: var(--border); background: var(--surface-raised); }
.reschedule-current { border-color: var(--border); background: var(--surface-raised); }
.reschedule-slot:hover { border-color: var(--primary); background: var(--primary-soft); }

/* Responsive */
@media (min-width: 1500px) {
  .app-shell { grid-template-columns: 276px minmax(0,1fr); }
  .sidebar { width: 276px; padding-inline: 18px; }
  .public-container { max-width: 1320px; }
  .public-nav-wrap { max-width: 1360px; }
  .dashboard-overview { gap: 14px; }
}

@media (max-width: 1220px) {
  .dashboard-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric-card-primary { grid-column: span 2; }
}

@media (max-width: 960px) {
  .hero-grid-public, .room-detail-grid, .booking-story { grid-template-columns: 1fr; }
  .hero-editorial-media { width: min(620px,100%); }
  .hero-feature-image { aspect-ratio: 16 / 10; }
  .booking-story { gap: 38px; }
  .room-content-grid { grid-template-columns: minmax(0,1fr) minmax(300px,350px); }
  .dashboard-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card-primary { grid-column: span 2; }
}

@media (max-width: 860px) {
  .sidebar { width: min(290px,86vw); transform: translateX(-105%); box-shadow: 20px 0 55px rgba(29,27,24,.24); }
  .topbar-context { display: block; }
}

@media (max-width: 760px) {
  .public-nav { background: #FFF; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-float); }
  .public-nav > a:not(.btn).active { padding-left: 11px; box-shadow: inset 3px 0 0 var(--primary); border-radius: 7px; background: var(--primary-soft); }
  .hero-public { padding: 46px 0 56px; }
  .hero-copy h1 { font-size: clamp(39px,11vw,56px); }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .btn { width: 100%; }
  .hero-editorial-media { margin-top: 2px; }
  .public-room-card { display: grid; grid-template-columns: minmax(150px,38%) minmax(0,1fr); gap: 15px; align-items: start; }
  .public-room-content { padding: 2px 0 0; }
  .public-room-image { min-height: 100%; aspect-ratio: auto; }
  .room-card-heading { display: block; }
  .room-price { margin-top: 10px; text-align: left; }
  .room-meta { display: grid; gap: 5px; }
  .room-content-grid { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
  .room-detail-stats > div { flex-basis: 33%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 34px 20px; }
  .auth-card::before { content: ""; display: block; width: 42px; height: 4px; margin-bottom: 30px; border-radius: 99px; background: var(--primary); }
}

@media (max-width: 640px) {
  .content { padding: 18px 13px 34px; }
  .topbar { padding: 8px 13px; }
  .topbar-context { display: none; }
  .logout-button span { display: none; }
  .logout-button { width: 36px; padding: 0; }
  .page-header { gap: 16px; }
  .page-header h1 { font-size: 25px; }
  .dashboard-overview { grid-template-columns: 1fr; }
  .metric-card-primary { grid-column: auto; }
  .metric-card { min-height: 145px; }
  .metric-label { margin-top: 15px; }
  .timeline-row { grid-template-columns: 44px 14px minmax(0,1fr); }
  .timeline-row .badge { grid-column: 3; justify-self: start; }
  .transaction-row { grid-template-columns: 32px minmax(0,1fr); }
  .transaction-amount { grid-column: 2; text-align: left; }
  .card-header { padding: 16px; }
  .card-body { padding: 16px; }
  .table-responsive-cards tbody { padding: 10px; }
  .table-responsive-cards tr { border-color: var(--border); border-radius: 10px; box-shadow: none; }
  .table-responsive-cards td { min-height: 44px; border-bottom-color: #EEECE7; }
  .table-responsive-cards td::before { color: var(--muted); font-size: 10px; }
  .public-room-card { grid-template-columns: 1fr; gap: 0; }
  .public-room-image { aspect-ratio: 16 / 10; }
  .public-room-content { padding-top: 13px; }
  .room-card-heading { display: flex; }
  .room-price { margin-top: 0; text-align: right; }
  .room-meta { display: flex; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .booking-story-intro h2 { font-size: 31px; }
  .step-list li { grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
  .room-detail-image { height: min(60vw,330px); }
  .room-detail-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .room-detail-stats > div { border-right: 0; border-bottom: 1px solid var(--border); padding-left: 0; }
  .room-detail-stats > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .booking-widget { padding: 16px; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .auth-form-meta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .tiger-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .tiger-mark svg { width: 27px; height: 27px; }
  .tiger-brand-copy small { display: none; }
  .hero-copy h1 { font-size: 39px; }
  .hero-note-list { display: grid; }
  .room-card-heading { display: block; }
  .room-price { margin-top: 9px; text-align: left; }
  .room-meta { display: grid; }
  .room-detail-stats { grid-template-columns: 1fr; }
  .room-detail-stats > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .sidebar,.sidebar-backdrop,.topbar,.page-actions,.toolbar,.no-print,.portal-header,.public-header,.public-footer,.toast-region,.page-progress,.confirm-dialog { display: none !important; }
  .app-shell { display: block !important; }
  .content,.portal-content,.customer-main,.public-container { width: 100% !important; max-width: none !important; padding: 0 !important; }
  body { background: white !important; }
  .card,.schedule-day { box-shadow: none !important; }
  .table-wrap { overflow: visible !important; }
  table { min-width: 0 !important; }
}

/* Editorial cleanup for customer/payment/detail patterns retained from v3 */
.customer-header { box-shadow: none; }
.customer-hero-card { background: var(--ink); color: #FFF; border: 0; }
.customer-hero-card p, .customer-hero-card .text-muted { color: #B9B3A9; }
.booking-row-meta { border: 1px solid var(--border); background: var(--surface-raised); }
.payment-history-row { border-bottom-color: var(--border); }
.payment-choice { border-color: var(--border); border-radius: var(--radius-control); }
.payment-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.payment-choice small { color: var(--primary-strong); }
.sandbox-mark { color: var(--warning); background: var(--warning-soft); border-color: #E9D8B0; }
.detail-stack > div { border-bottom-color: var(--border); }
.reschedule-current { border-color: var(--border); background: var(--surface-raised); }
.reschedule-slot:hover { border-color: var(--primary); background: var(--primary-soft); }
.slot-button.selected span { color: #FDEBDD; }
.mini-availability { color: var(--ink-secondary); }
.gateway-status { border-radius: var(--radius-card); }

@media print {
  .sidebar,.sidebar-backdrop,.topbar,.page-actions,.toolbar,.no-print,.portal-header,.public-header,.public-footer,.toast-region,.page-progress,.confirm-dialog { display: none !important; }
}

/* Settings workspace */
.settings-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 92px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #FFF; }
.settings-nav-label { padding: 8px 10px 10px; color: var(--muted); font-size: 10px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.settings-nav a { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; color: var(--ink-secondary); font-size: 12px; font-weight: 620; }
.settings-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.settings-nav .ui-icon { color: var(--muted); }
.settings-content { display: grid; gap: 16px; }
.settings-section { scroll-margin-top: 92px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #FFF; }
.settings-section-head { margin-bottom: 20px; }
.settings-section-head h2 { margin: 0; color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.settings-section-head p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.settings-toggle { margin-bottom: 20px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-raised); }
.settings-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.settings-note .ui-icon { margin-top: 1px; color: var(--primary); }
.settings-hours-table table { min-width: 620px; }
.settings-hours-table td { height: 58px; }
.settings-hours-table .input { min-width: 120px; }
.settings-savebar { position: sticky; bottom: 14px; z-index: 12; margin: 18px 0 4px 214px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 14px 36px rgba(30,27,22,.08); backdrop-filter: blur(12px); }
.settings-savebar span { color: var(--muted); font-size: 11.5px; }
@media (max-width: 960px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; grid-template-columns: repeat(5,minmax(max-content,1fr)); overflow-x: auto; }
  .settings-nav-label { display: none; }
  .settings-savebar { margin-left: 0; }
}
@media (max-width: 640px) {
  .settings-nav { display: flex; padding: 6px; }
  .settings-nav a { flex: 0 0 auto; }
  .settings-section { padding: 16px; }
  .settings-savebar { bottom: 8px; align-items: stretch; flex-direction: column; }
  .settings-savebar .btn { width: 100%; }
}

/* Alert compatibility: legacy inline alerts remain flexible; icon alerts opt in. */
.alert { display: flex; align-items: flex-start; justify-content: space-between; }
.alert.alert-with-icon { display: grid; grid-template-columns: 22px minmax(0,1fr); justify-content: initial; }
.alert.alert-with-icon.alert-dismissible { grid-template-columns: 22px minmax(0,1fr) 30px; }

/* =========================================================
   Public Homepage — Premium Editorial Venue Experience
   Scoped to .venue-home so booking and management flows stay intact.
   ========================================================= */
.venue-home {
  --venue-rule: #DDD9D1;
  --venue-ink-soft: #3F3C37;
  --venue-dark: #1E1C19;
  overflow: clip;
  background: var(--canvas);
}
.venue-home .public-container { width: min(1240px, calc(100% - 48px)); }
.venue-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.venue-kicker-on-dark { color: #EBA77E; }
.venue-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
}
.venue-inline-link .ui-icon { transition: transform var(--motion); }
.venue-inline-link:hover { color: var(--primary-strong); }
.venue-inline-link:hover .ui-icon { transform: translateX(3px); }

/* Hero */
.venue-hero {
  padding: clamp(58px, 7vw, 104px) 0 clamp(68px, 8vw, 112px);
  background: var(--canvas);
}
.venue-hero-inner { display: grid; gap: clamp(34px, 5vw, 64px); }
.venue-hero-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(280px, .48fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}
.venue-hero-copy h1 {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(46px, 6.15vw, 82px);
  line-height: .96;
  font-weight: 680;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.venue-hero-copy h1 span { color: var(--primary); }
.venue-hero-intro { padding-bottom: 6px; }
.venue-hero-intro p {
  max-width: 420px;
  margin: 0;
  color: var(--venue-ink-soft);
  font-size: 15px;
  line-height: 1.75;
}
.venue-search {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(180px, .72fr) auto;
  align-items: end;
  gap: 0;
  border: 1px solid var(--venue-rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.venue-search-field {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 15px 11px;
  border-right: 1px solid var(--venue-rule);
}
.venue-search-field label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.venue-search .input {
  min-height: 31px;
  padding: 3px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 610;
}
.venue-search .input:focus { border: 0; box-shadow: none; outline: none; }
.venue-search-field:focus-within { background: #FBF7F3; box-shadow: inset 0 -2px 0 var(--primary); }
.venue-search-submit {
  min-height: 58px;
  margin: 5px;
  padding-inline: 20px;
  border-radius: 8px;
}
.venue-hero-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .55fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: stretch;
}
.venue-feature-media {
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: #E9E3DA;
  color: var(--primary);
}
.venue-feature-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.venue-feature-fallback,
.venue-room-fallback {
  font-weight: 720;
  letter-spacing: -.055em;
}
.venue-feature-fallback { font-size: clamp(54px, 8vw, 96px); }
.venue-feature-detail {
  min-width: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.venue-feature-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--venue-rule);
}
.venue-overline {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.venue-feature-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.02;
  font-weight: 680;
  letter-spacing: -.045em;
}
.venue-feature-head h2 a:hover { color: var(--primary); }
.venue-feature-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.venue-feature-price { margin-top: 19px; }
.venue-feature-price strong {
  display: inline-block;
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.venue-feature-price span { margin-left: 3px; color: var(--muted); font-size: 12px; }
.venue-feature-facts {
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  border-bottom: 1px solid var(--venue-rule);
}
.venue-feature-facts div { min-width: 0; }
.venue-feature-facts dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.venue-feature-facts dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-feature-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 20px 0;
}
.venue-feature-facilities span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-secondary);
  background: rgba(255,255,255,.58);
  font-size: 10.5px;
  line-height: 1.3;
}
.venue-feature-detail > .venue-inline-link { margin-top: 2px; align-self: flex-start; }
.venue-hero-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-block: 1px solid var(--venue-rule);
}

/* Room discovery */
.venue-spaces {
  padding: clamp(74px, 8vw, 118px) 0;
  border-top: 1px solid var(--venue-rule);
  background: var(--surface);
}
.venue-section-head {
  margin-bottom: clamp(34px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}
.venue-section-head h2 {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.venue-section-aside { display: grid; gap: 14px; }
.venue-section-aside p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.venue-section-aside .venue-inline-link { justify-self: start; }
.venue-room-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 46px 22px;
}
.venue-room-card {
  grid-column: span 4;
  min-width: 0;
}
.venue-room-card:first-child { grid-column: span 7; }
.venue-room-card:nth-child(2) { grid-column: span 5; }
.venue-room-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #E9E3DA;
  color: var(--primary);
}
.venue-room-card:first-child .venue-room-media { aspect-ratio: 16 / 9; }
.venue-room-card:nth-child(2) .venue-room-media { aspect-ratio: 5 / 4; }
.venue-room-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity var(--motion), transform 280ms ease-out;
}
.venue-room-media:hover img { opacity: .95; transform: scale(1.012); }
.venue-room-fallback { font-size: clamp(38px, 5vw, 64px); }
.venue-room-category {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(229,226,219,.9);
  border-radius: 7px;
  background: rgba(255,255,255,.92);
  color: var(--ink-secondary);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 680;
}
.venue-room-copy { padding-top: 15px; }
.venue-room-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.venue-room-title-row > div:first-child { min-width: 0; }
.venue-room-title-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 690;
  letter-spacing: -.025em;
}
.venue-room-title-row h3 a:hover { color: var(--primary); }
.venue-room-title-row p {
  max-width: 480px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.venue-room-price { flex: 0 0 auto; text-align: right; }
.venue-room-price strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.venue-room-price span { color: var(--muted); font-size: 10px; }
.venue-room-meta {
  min-height: 29px;
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  align-items: center;
  color: var(--muted);
  font-size: 10.5px;
}
.venue-room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.venue-room-action {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--venue-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 680;
}
.venue-room-action .ui-icon { color: var(--primary); transition: transform var(--motion); }
.venue-room-action:hover { color: var(--primary-strong); }
.venue-room-action:hover .ui-icon { transform: translateX(3px); }
.venue-room-empty { grid-column: 1 / -1; border-block: 1px solid var(--venue-rule); }

/* Booking flow */
.venue-booking-flow {
  padding: clamp(76px, 8vw, 116px) 0;
  background: var(--canvas);
}
.venue-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(54px, 9vw, 128px);
  align-items: start;
}
.venue-flow-intro h2 {
  max-width: 520px;
  margin: 9px 0 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.06;
  font-weight: 680;
  letter-spacing: -.048em;
}
.venue-flow-intro p {
  max-width: 490px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}
.venue-flow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-strong); }
.venue-flow-steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 27px 0;
  border-bottom: 1px solid var(--border-strong);
}
.venue-step-index {
  padding-top: 2px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .1em;
}
.venue-flow-steps h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -.018em;
}
.venue-flow-steps p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}

/* Studio value proposition */
.venue-values {
  padding: clamp(76px, 8vw, 116px) 0;
  color: #FFF;
  background: var(--venue-dark);
}
.venue-values-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(54px, 9vw, 132px);
  align-items: start;
}
.venue-values-statement h2 {
  max-width: 620px;
  margin: 10px 0 0;
  color: #FFF;
  font-size: clamp(36px, 4.8vw, 59px);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.venue-values-statement p {
  max-width: 540px;
  margin: 20px 0 0;
  color: #BEB8AF;
  font-size: 14px;
  line-height: 1.75;
}
.venue-values-list { border-top: 1px solid rgba(255,255,255,.17); }
.venue-values-list > div {
  position: relative;
  padding: 25px 0 25px 46px;
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.venue-values-index {
  position: absolute;
  left: 0;
  top: 28px;
  color: #EBA77E;
  font-size: 10px;
  font-weight: 790;
  letter-spacing: .1em;
}
.venue-values-list h3 {
  margin: 0 0 6px;
  color: #FFF;
  font-size: 15.5px;
  font-weight: 650;
}
.venue-values-list p {
  max-width: 540px;
  margin: 0;
  color: #AFA99F;
  font-size: 12.5px;
  line-height: 1.62;
}

/* Final CTA */
.venue-final {
  padding: clamp(72px, 8vw, 110px) 0;
  border-bottom: 1px solid var(--venue-rule);
  background: var(--surface);
}
.venue-final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
}
.venue-final h2 {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.03;
  font-weight: 680;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.venue-final-action { display: grid; gap: 19px; justify-items: start; }
.venue-final-action p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.venue-final-action .btn { min-height: 44px; padding-inline: 18px; }

@media (min-width: 1500px) {
  .venue-home .public-container { width: min(1320px, calc(100% - 72px)); }
  .venue-feature-media { min-height: 560px; }
  .venue-room-grid { gap-inline: 26px; }
}

@media (max-width: 1080px) {
  .venue-hero-heading,
  .venue-section-head { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 42px; }
  .venue-hero-feature { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 34px; }
  .venue-room-card:first-child,
  .venue-room-card:nth-child(2),
  .venue-room-card { grid-column: span 6; }
  .venue-room-card:first-child .venue-room-media,
  .venue-room-card:nth-child(2) .venue-room-media,
  .venue-room-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 860px) {
  .venue-home .public-container { width: min(100% - 32px, 760px); }
  .venue-hero { padding-top: 52px; }
  .venue-hero-heading,
  .venue-section-head,
  .venue-hero-feature,
  .venue-flow-layout,
  .venue-values-layout,
  .venue-final-layout { grid-template-columns: 1fr; }
  .venue-hero-heading,
  .venue-section-head { gap: 20px; }
  .venue-hero-intro p,
  .venue-section-aside p { max-width: 620px; }
  .venue-search { width: 100%; }
  .venue-feature-media { min-height: 0; aspect-ratio: 16 / 10; }
  .venue-feature-detail { padding-top: 0; }
  .venue-feature-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: end; }
  .venue-feature-price { margin-top: 0; text-align: right; }
  .venue-flow-layout,
  .venue-values-layout { gap: 44px; }
  .venue-final-layout { gap: 26px; }
}

@media (max-width: 640px) {
  .venue-home .public-container { width: calc(100% - 28px); }
  .venue-hero { padding: 42px 0 68px; }
  .venue-hero-inner { gap: 30px; }
  .venue-hero-copy h1 { font-size: clamp(40px, 12.2vw, 58px); line-height: .98; }
  .venue-hero-intro p { font-size: 14px; }
  .venue-search { grid-template-columns: 1fr; overflow: visible; border: 0; background: transparent; gap: 8px; }
  .venue-search-field {
    min-height: 57px;
    padding: 9px 13px 10px;
    border: 1px solid var(--venue-rule);
    border-radius: var(--radius-control);
    background: var(--surface);
  }
  .venue-search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(201,99,45,.08); }
  .venue-search-submit { width: 100%; min-height: 46px; margin: 0; }
  .venue-feature-media { aspect-ratio: 4 / 3; border-radius: 12px; }
  .venue-feature-head { grid-template-columns: 1fr; gap: 12px; }
  .venue-feature-price { text-align: left; }
  .venue-feature-facts { grid-template-columns: 1fr 1fr; gap: 17px; }
  .venue-feature-facts div:last-child { grid-column: 1 / -1; }
  .venue-spaces,
  .venue-booking-flow,
  .venue-values,
  .venue-final { padding-block: 68px; }
  .venue-section-head { margin-bottom: 30px; }
  .venue-section-head h2,
  .venue-flow-intro h2,
  .venue-final h2 { font-size: 34px; }
  .venue-room-grid { grid-template-columns: 1fr; gap: 38px; }
  .venue-room-card,
  .venue-room-card:first-child,
  .venue-room-card:nth-child(2) { grid-column: auto; }
  .venue-room-media,
  .venue-room-card:first-child .venue-room-media,
  .venue-room-card:nth-child(2) .venue-room-media { aspect-ratio: 16 / 10; }
  .venue-room-title-row { gap: 13px; }
  .venue-room-title-row h3 { font-size: 17px; }
  .venue-room-meta { gap: 7px 11px; }
  .venue-flow-steps li { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 23px 0; }
  .venue-values-statement h2 { font-size: 39px; }
  .venue-final-action .btn { width: 100%; }
}

@media (max-width: 420px) {
  .venue-home .public-container { width: calc(100% - 22px); }
  .venue-hero-copy h1 { font-size: 38px; }
  .venue-feature-facts { grid-template-columns: 1fr; }
  .venue-feature-facts div:last-child { grid-column: auto; }
  .venue-room-title-row { display: block; }
  .venue-room-price { margin-top: 9px; text-align: left; }
  .venue-room-meta { display: flex; }
  .venue-values-statement h2 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .venue-inline-link .ui-icon,
  .venue-room-action .ui-icon,
  .venue-room-media img { transition: none !important; }
}

/* ========================================================================== 
   Premium room discovery + room detail marketplace experience
   Scoped to public room pages so backend/admin/customer account UI is intact.
   ========================================================================== */
.marketplace-spaces,
.marketplace-room-detail {
  --market-rule: #DEDAD2;
  --market-soft: #F0EDE7;
  --market-ink-soft: #5F5A53;
  color: var(--ink);
  background: var(--canvas);
}

/* Room discovery */
.spaces-intro {
  padding: clamp(52px, 7vw, 88px) 0 30px;
  background: var(--canvas);
}
.spaces-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .58fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
}
.spaces-intro h1 {
  max-width: 800px;
  margin: 9px 0 0;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: .99;
  letter-spacing: -.057em;
  font-weight: 715;
}
.spaces-intro p {
  max-width: 500px;
  margin: 0 0 4px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.72;
}
.spaces-search-section {
  padding: 0 0 30px;
  background: var(--canvas);
  border-bottom: 1px solid var(--market-rule);
}
.spaces-searchbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(160px, .65fr) minmax(170px, .62fr) auto;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--market-rule);
  border-radius: 14px;
  background: var(--surface);
}
.spaces-search-field {
  min-width: 0;
  padding: 12px 15px 13px;
  border-right: 1px solid var(--market-rule);
}
.spaces-search-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: .025em;
}
.spaces-search-field input,
.spaces-search-field select {
  width: 100%;
  min-height: 26px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13.5px;
}
.spaces-search-field input::placeholder { color: #A09A91; }
.spaces-search-field:focus-within { background: #FCFAF7; box-shadow: inset 0 -2px 0 var(--primary); }
.spaces-input-wrap { display: flex; align-items: center; gap: 8px; }
.spaces-input-wrap .ui-icon { flex: 0 0 auto; color: #8A847B; }
.spaces-search-submit {
  min-height: 72px;
  margin: 5px;
  padding-inline: 20px;
  border-radius: 10px;
  white-space: nowrap;
}
.spaces-results-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}
.spaces-results-copy { display: grid; gap: 4px; }
.spaces-results-copy strong { font-size: 13.5px; font-weight: 690; }
.spaces-results-copy span { color: var(--muted); font-size: 12px; }
.spaces-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 650;
}
.spaces-reset:hover { color: var(--primary); }
.spaces-results-section { padding: 42px 0 clamp(72px, 8vw, 106px); background: #FFF; }
.spaces-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 58px) 28px;
}
.spaces-room-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(210px, 44%) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--market-rule);
}
.spaces-room-media {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #E8E3DB;
}
.spaces-room-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--motion); }
.spaces-room-media:hover img { opacity: .92; }
.spaces-room-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--primary);
  font-size: 38px;
  font-weight: 740;
  letter-spacing: -.04em;
}
.spaces-room-body { min-width: 0; display: flex; flex-direction: column; }
.spaces-room-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: start; }
.spaces-room-category {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.spaces-room-heading h2 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -.032em; }
.spaces-room-heading h2 a:hover { color: var(--primary); }
.spaces-room-price { text-align: right; }
.spaces-room-price strong { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spaces-room-price span { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.spaces-room-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  margin: 13px 0 0;
  color: var(--ink-secondary);
  font-size: 12.5px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.spaces-room-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 16px;
  color: var(--ink-secondary);
  font-size: 11.5px;
}
.spaces-room-facts span { display: inline-flex; align-items: center; gap: 6px; }
.spaces-room-facts .ui-icon { color: #817B72; }
.spaces-room-facilities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.spaces-room-facilities span {
  padding: 5px 7px;
  border: 1px solid var(--market-rule);
  border-radius: 6px;
  color: var(--muted);
  background: #FCFBF9;
  font-size: 10px;
}
.spaces-room-action { margin-top: auto; padding-top: 18px; }
.spaces-room-action .btn { min-height: 38px; }
.spaces-empty { grid-column: 1 / -1; padding: 36px 0; }
.spaces-pagination { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--market-rule); }

/* Room detail hero */
.room-market-hero { padding: 26px 0 52px; background: #FFF; border-bottom: 1px solid var(--market-rule); }
.room-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11.5px;
}
.room-breadcrumb a:hover { color: var(--ink); }
.room-breadcrumb .ui-icon { color: #AAA39A; }
.room-market-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .72fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}
.room-market-media {
  min-height: 430px;
  aspect-ratio: 16 / 10.5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #E8E3DB;
}
.room-market-media img { width: 100%; height: 100%; object-fit: cover; }
.room-market-placeholder { color: var(--primary); font-size: 58px; font-weight: 750; letter-spacing: -.05em; }
.room-market-identity h1 {
  margin: 9px 0 12px;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: .98;
  letter-spacing: -.057em;
  font-weight: 715;
}
.room-market-identity > p { max-width: 540px; margin: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.7; }
.room-market-price { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--market-rule); }
.room-market-price span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10.5px; }
.room-market-price strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.room-market-price small { margin-left: 4px; color: var(--muted); font-size: 11px; }
.room-market-facts { margin: 25px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--market-rule); }
.room-market-facts > div { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--market-rule); }
.room-market-facts dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.room-market-facts dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 640; }
.room-market-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 720;
}
.room-market-jump .ui-icon { transition: transform var(--motion); }
.room-market-jump:hover .ui-icon { transform: translateX(3px); }

/* Room detail content + booking selector */
.room-market-content { padding: clamp(52px, 7vw, 88px) 0 100px; background: var(--canvas); }
.room-market-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  gap: clamp(42px, 7vw, 90px);
  align-items: start;
}
.room-market-story { min-width: 0; }
.room-market-section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--market-rule);
}
.room-market-section:last-child { margin-bottom: 0; }
.room-market-section-index { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.room-market-kicker { margin: 0 0 7px !important; color: var(--muted) !important; font-size: 10.5px !important; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.room-market-section h2 { max-width: 620px; margin: 0 0 14px; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.038em; }
.room-market-section > div > p:not(.room-market-kicker) { max-width: 720px; margin: 0; color: var(--ink-secondary); font-size: 13.5px; line-height: 1.78; }
.room-market-facilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.room-market-facilities span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 0;
  border-bottom: 1px solid var(--market-rule);
  color: var(--ink-secondary);
  font-size: 12px;
}
.room-market-facilities .ui-icon { color: var(--success); }
.room-market-policy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--market-rule); }
.room-market-policy > div { padding: 17px 0; border-bottom: 1px solid var(--market-rule); }
.room-market-policy strong { display: block; margin-bottom: 5px; font-size: 12.5px; }
.room-market-policy p { margin: 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.62; }

.room-availability {
  position: sticky;
  top: 90px;
  padding: 22px;
  border: 1px solid var(--market-rule);
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0 16px 42px rgba(32, 29, 25, .07);
  scroll-margin-top: 92px;
}
.availability-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.availability-head h2 { margin: 5px 0 0; font-size: 26px; line-height: 1.06; letter-spacing: -.04em; }
.availability-price-mini { text-align: right; }
.availability-price-mini strong { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.availability-price-mini span { color: var(--muted); font-size: 10px; }
.availability-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 19px 0 18px;
  padding: 0;
  list-style: none;
}
.availability-steps li { display: flex; align-items: center; gap: 5px; color: #9A948B; font-size: 9.5px; font-weight: 690; }
.availability-steps li::after { content: ""; height: 1px; flex: 1; background: var(--market-rule); }
.availability-steps li:last-child::after { display: none; }
.availability-steps li span { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--market-rule); border-radius: 50%; background: #FFF; font-size: 9px; }
.availability-steps li.is-current { color: var(--ink); }
.availability-steps li.is-current span { border-color: var(--primary); color: #FFF; background: var(--primary); }
.availability-controls { display: grid; grid-template-columns: 1fr .72fr; gap: 10px; }
.availability-context { margin: 18px 0 11px; padding-top: 16px; border-top: 1px solid var(--market-rule); }
.availability-context > div:first-child { display: grid; gap: 3px; }
.availability-context strong { font-size: 12px; }
.availability-context > div:first-child span { color: var(--muted); font-size: 10.5px; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 7px 11px; margin-top: 12px; color: var(--muted); font-size: 9.5px; }
.slot-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.slot-legend-dot { width: 9px; height: 9px; border: 1px solid var(--market-rule); border-radius: 3px; background: #FFF; }
.slot-legend-dot.is-selected { border-color: var(--primary); background: var(--primary); }
.slot-legend-dot.is-unavailable { border-color: #DEDAD3; background: #EEECE7; }
.room-market-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.room-market-slot-grid .slot-button {
  min-height: 61px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "start state" "end state";
  align-content: center;
  gap: 1px 5px;
  padding: 8px 9px;
  place-items: initial;
  text-align: left;
  border: 1px solid var(--market-rule);
  border-radius: 8px;
  background: #FFF;
}
.room-market-slot-grid .slot-button strong { grid-area: start; font-size: 12px; font-variant-numeric: tabular-nums; }
.room-market-slot-grid .slot-button > span { grid-area: end; color: var(--muted); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.room-market-slot-grid .slot-button small { grid-area: state; align-self: center; color: var(--success); font-size: 8.5px; font-weight: 720; }
.room-market-slot-grid .slot-button.is-available:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.room-market-slot-grid .slot-button.selected {
  border-color: var(--primary);
  color: #FFF;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(201,99,45,.11);
}
.room-market-slot-grid .slot-button.selected > span,
.room-market-slot-grid .slot-button.selected small { color: #FDEBDD; }
.room-market-slot-grid .slot-button.is-unavailable,
.room-market-slot-grid .slot-button:disabled {
  color: #A39E96;
  background: #F1EFEB;
  border-color: #E6E2DC;
  text-decoration: none;
  opacity: 1;
}
.room-market-slot-grid .slot-button.is-unavailable > span,
.room-market-slot-grid .slot-button:disabled > span,
.room-market-slot-grid .slot-button.is-unavailable small,
.room-market-slot-grid .slot-button:disabled small { color: #AAA59D; }
.room-market-slot-grid .slot-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.room-market-slot-grid .slot-empty { min-height: 132px; border: 1px dashed var(--market-rule); border-radius: 10px; background: #FCFBF9; }
.slot-skeleton { min-height: 61px; }
.selected-schedule-panel { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--market-rule); }
.selected-schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.selected-schedule-heading > div { display: grid; gap: 4px; }
.selected-schedule-heading strong { font-size: 12.5px; }
.selected-schedule-check { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-soft); }
.selected-schedule-summary { border-top: 1px solid var(--market-rule); }
.selected-schedule-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--market-rule); }
.selected-schedule-summary span { color: var(--muted); font-size: 10.5px; }
.selected-schedule-summary strong { text-align: right; font-size: 12px; }
.selected-schedule-total strong { color: var(--primary); font-size: 14px; font-variant-numeric: tabular-nums; }
.selected-schedule-cta { margin-top: 14px; }
.selected-schedule-note { margin: 8px 4px 0; color: var(--muted); text-align: center; font-size: 9.5px; line-height: 1.5; }

@media (max-width: 1180px) {
  .spaces-room-card { grid-template-columns: 1fr; gap: 14px; }
  .spaces-room-media { min-height: 0; aspect-ratio: 16 / 10; }
  .room-market-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr); gap: 40px; }
}

@media (max-width: 960px) {
  .spaces-intro-grid { grid-template-columns: 1fr; gap: 18px; }
  .spaces-intro p { max-width: 640px; }
  .spaces-searchbar { grid-template-columns: 1fr 1fr; border: 0; gap: 8px; background: transparent; overflow: visible; }
  .spaces-search-field { border: 1px solid var(--market-rule); border-radius: 9px; background: #FFF; }
  .spaces-search-field-query { grid-column: 1 / -1; }
  .spaces-search-submit { grid-column: 1 / -1; width: 100%; min-height: 44px; margin: 0; }
  .room-market-hero-grid { grid-template-columns: 1fr; }
  .room-market-media { min-height: 0; aspect-ratio: 16 / 9; }
  .room-market-identity { max-width: 720px; }
  .room-market-content-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); gap: 34px; }
  .room-market-slot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .spaces-intro { padding-top: 42px; }
  .spaces-results-section { padding-top: 32px; }
  .spaces-room-grid { grid-template-columns: 1fr; gap: 34px; }
  .spaces-room-card { grid-template-columns: minmax(170px, 37%) minmax(0, 1fr); gap: 17px; }
  .spaces-room-media { min-height: 100%; aspect-ratio: auto; }
  .spaces-room-description { min-height: auto; }
  .room-market-hero { padding-top: 18px; }
  .room-market-content-grid { grid-template-columns: 1fr; }
  .room-availability { position: static; }
  .room-market-story { order: 2; }
  .room-availability { order: 1; }
}

@media (max-width: 640px) {
  .spaces-intro h1 { font-size: clamp(38px, 11vw, 51px); }
  .spaces-searchbar { grid-template-columns: 1fr; }
  .spaces-search-field-query,
  .spaces-search-submit { grid-column: auto; }
  .spaces-results-bar { flex-direction: column; gap: 10px; }
  .spaces-room-card { grid-template-columns: 1fr; gap: 13px; }
  .spaces-room-media { min-height: 0; aspect-ratio: 16 / 10; }
  .spaces-room-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .spaces-room-action .btn { width: 100%; }
  .room-market-media { border-radius: 11px; }
  .room-market-identity h1 { font-size: 42px; }
  .room-market-facts > div { grid-template-columns: 110px minmax(0,1fr); }
  .room-market-section { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .room-market-facilities,
  .room-market-policy { grid-template-columns: 1fr; }
  .room-availability { padding: 17px; border-radius: 13px; }
  .availability-controls { grid-template-columns: 1fr 1fr; }
  .availability-price-mini { display: none; }
  .room-market-slot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 420px) {
  .spaces-room-heading { grid-template-columns: 1fr; gap: 8px; }
  .spaces-room-price { text-align: left; }
  .spaces-room-price strong,
  .spaces-room-price span { display: inline; }
  .room-market-identity h1 { font-size: 38px; }
  .room-market-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .availability-controls { grid-template-columns: 1fr; }
  .availability-steps { grid-template-columns: 1fr; gap: 6px; }
  .availability-steps li::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spaces-room-media img,
  .room-market-jump .ui-icon { transition: none !important; }
}

/* ======================================================================
   TIGER STUDIO MANAGEMENT SHELL — final editorial pass
   Navigation-only refinement. Business pages and application flow remain
   unchanged.
   ====================================================================== */
.management-body .app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.management-body .sidebar {
  width: 264px;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  background: #1D1B18;
  border-right: 1px solid rgba(255,255,255,.055);
  color: #EDE9E2;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 6px 18px;
}
.sidebar-brand {
  min-width: 0;
  flex: 1;
  padding: 0;
}
.sidebar .tiger-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 9px;
  background: var(--primary);
}
.sidebar .tiger-mark svg { width: 28px; height: 28px; }
.sidebar .tiger-brand-copy strong {
  color: #F8F5EF;
  font-size: 13.5px;
  letter-spacing: -.018em;
}
.sidebar .tiger-brand-copy small {
  margin-top: 3px;
  color: #8F887E;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: #CFC8BD;
}
.sidebar-close:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: #FFF;
}

.management-nav {
  flex: 1;
  display: block;
  min-height: 0;
  padding: 3px 0 8px;
}
.nav-section {
  margin: 0 0 19px;
}
.nav-section-primary {
  margin: 0 0 19px;
  padding: 0 0 17px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.nav-label {
  padding: 0 10px 8px;
  color: #746D64;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: .145em;
  text-transform: uppercase;
}
.nav-link {
  position: relative;
  min-height: 43px;
  margin: 2px 0;
  padding: 6px 10px 6px 8px;
  gap: 9px;
  border-radius: 9px;
  color: #B9B2A8;
  font-size: 13px;
  font-weight: 570;
  letter-spacing: -.005em;
  transition: color var(--motion-fast), background-color var(--motion-fast);
}
.nav-link::before { display: none; }
.nav-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #837C73;
  transition: color var(--motion-fast), background-color var(--motion-fast);
}
.nav-icon .ui-icon { color: inherit; }
.nav-link:hover {
  background: rgba(255,255,255,.045);
  color: #F5F1EB;
}
.nav-link:hover .nav-icon {
  color: #CFC8BE;
  background: rgba(255,255,255,.035);
}
.nav-link.active,
.nav-link[aria-current="page"] {
  background: #2C2925;
  color: #FFF;
  font-weight: 680;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.nav-link.active .nav-icon,
.nav-link[aria-current="page"] .nav-icon {
  color: #E99665;
  background: rgba(201,99,45,.13);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 7px 2px;
  border-top: 1px solid rgba(255,255,255,.065);
  color: #827B71;
}
.sidebar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-identity-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  color: #B86A40;
  background: rgba(255,255,255,.025);
}
.sidebar-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.sidebar-identity strong {
  color: #BCB5AA;
  font-size: 10.5px;
  font-weight: 650;
}
.sidebar-identity small {
  color: #716A61;
  font-size: 9.5px;
  line-height: 1.35;
}

.management-body .sidebar::-webkit-scrollbar { width: 4px; }
.management-body .sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #39352F;
}
.management-body .sidebar { scrollbar-color: #39352F transparent; }
.management-body .sidebar-backdrop { background: rgba(24,22,19,.56); }

/* Quieter, task-oriented topbar. */
.management-body .topbar {
  min-height: 64px;
  padding-inline: var(--content-pad);
  background: rgba(247,246,242,.96);
  border-bottom: 1px solid rgba(214,210,202,.78);
  backdrop-filter: blur(16px);
}
.topbar-start {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.topbar-context {
  order: 0;
  display: block;
  color: #8B857D;
  font-size: 9px;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.topbar-title {
  order: 1;
  display: block;
  max-width: min(46vw, 620px);
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 690;
  line-height: 1.3;
  letter-spacing: -.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.topbar-public-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 650;
  transition: background-color var(--motion-fast), color var(--motion-fast);
}
.topbar-public-link:hover {
  color: var(--ink);
  background: #EEEBE5;
}
.topbar-public-link .ui-icon { color: var(--primary); }
.topbar-divider {
  width: 1px;
  height: 26px;
  flex: 0 0 1px;
  background: var(--border);
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 9px;
}
.management-body .avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #EEE9E1;
  color: #7F4A2D;
  font-size: 10.5px;
  font-weight: 820;
  letter-spacing: .01em;
}
.user-meta { min-width: 0; line-height: 1.15; }
.user-name {
  max-width: 160px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-role {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}
.logout-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-color: transparent;
  background: transparent;
  color: #7D776F;
}
.logout-button:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--danger);
}

.mobile-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-color: var(--border);
  background: var(--surface);
}

@media (min-width: 1500px) {
  .management-body .app-shell { grid-template-columns: 276px minmax(0,1fr); }
  .management-body .sidebar { width: 276px; padding-inline: 17px; }
}

@media (max-width: 1040px) {
  .topbar-public-link span { display: none; }
  .topbar-public-link {
    width: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .management-body .sidebar {
    width: min(292px, 88vw);
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    box-shadow: 22px 0 60px rgba(24,22,19,.28);
  }
  .sidebar-head { padding-top: 2px; }
  .sidebar-close { display: inline-grid; }
  .management-body .sidebar-backdrop { display: block; }
  .management-body .topbar { min-height: 62px; }
}

@media (max-width: 640px) {
  .management-body .topbar { padding: 8px 12px; }
  .topbar-actions { gap: 7px; }
  .topbar-divider { display: none; }
  .user-meta { display: none; }
  .topbar-context { display: none; }
  .topbar-title { max-width: 48vw; font-size: 13px; }
  .topbar-public-link,
  .logout-button { width: 36px; min-width: 36px; height: 36px; }
}

@media (max-width: 390px) {
  .topbar-public-link { display: none; }
  .topbar-title { max-width: 50vw; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-icon,
  .topbar-public-link,
  .logout-button,
  .sidebar-close { transition: none !important; }
}

/* ======================================================================
   Tiger Studio — Operational Decision Dashboard
   Editorial hierarchy with minimal boxing and warm brand accents.
   ====================================================================== */
.ops-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ops-dashboard-header { margin-bottom: 30px; }
.ops-dashboard-header p { max-width: 690px; }
.ops-dashboard-actions .btn { min-height: 40px; }

.ops-today {
  margin-bottom: 20px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.ops-section-heading { margin-bottom: 22px; }
.ops-section-heading-inline { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ops-section-heading h2,
.ops-panel-header h2 { margin: 4px 0 0; color: var(--ink); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.25; letter-spacing: -.025em; font-weight: 720; }
.ops-eyebrow { display: block; color: var(--primary); font-size: 10.5px; line-height: 1.2; letter-spacing: .11em; text-transform: uppercase; font-weight: 760; }
.ops-section-note { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.ops-primary-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(190px, .65fr) minmax(190px, .65fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ops-revenue-primary,
.ops-primary-stat { min-width: 0; padding: 24px 24px 24px 0; }
.ops-primary-stat { display: flex; align-items: center; gap: 14px; padding-left: 24px; border-left: 1px solid var(--border); }
.ops-revenue-primary { display: flex; flex-direction: column; justify-content: center; }
.ops-metric-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.ops-revenue-value { margin-top: 8px; color: var(--ink); font-size: clamp(34px, 3.5vw, 52px); line-height: .98; letter-spacing: -.05em; font-weight: 760; }
.ops-metric-support { margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.ops-primary-stat-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--ink-secondary); }
.ops-primary-stat.is-live .ops-primary-stat-icon { color: var(--success); background: var(--success-soft); }
.ops-primary-stat > div { min-width: 0; display: grid; gap: 5px; }
.ops-primary-stat strong { color: var(--ink); font-size: clamp(25px,2.15vw,34px); line-height: 1; letter-spacing: -.035em; font-weight: 750; }
.ops-primary-stat > div > span:last-child { color: var(--muted); font-size: 10.5px; line-height: 1.45; }

.ops-secondary-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding-top: 18px; }
.ops-secondary-item { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 0 20px; border-left: 1px solid var(--border); }
.ops-secondary-item:first-child { padding-left: 0; border-left: 0; }
.ops-secondary-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: var(--muted); }
.ops-secondary-item > span:last-child { min-width: 0; display: grid; gap: 2px; }
.ops-secondary-item small { overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ops-secondary-item strong { color: var(--ink); font-size: 15px; line-height: 1.3; font-weight: 720; }
.ops-secondary-item strong em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }

.ops-dashboard-grid { display: grid; gap: 20px; }
.ops-dashboard-grid-top { grid-template-columns: minmax(0,1.75fr) minmax(300px,.75fr); margin-bottom: 20px; }
.ops-dashboard-grid-bottom { grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); }
.ops-panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.ops-panel-header { min-height: 84px; padding: 20px 22px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.ops-panel-header p { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.ops-panel-header .text-link { margin-top: 4px; flex: 0 0 auto; }

.ops-revenue-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 0 22px; border-bottom: 1px solid var(--border); }
.ops-revenue-summary > div { min-width: 0; padding: 17px 18px; border-left: 1px solid var(--border); }
.ops-revenue-summary > div:first-child { padding-left: 0; border-left: 0; }
.ops-revenue-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10.5px; }
.ops-revenue-summary strong { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: clamp(15px,1.2vw,18px); line-height: 1.25; font-weight: 720; }
.ops-revenue-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; }

.ops-revenue-chart { position: relative; min-height: 284px; padding: 24px 22px 17px; }
.ops-chart-grid { position: absolute; z-index: 0; top: 28px; right: 22px; bottom: 50px; left: 22px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.ops-chart-grid span { display: block; width: 100%; border-top: 1px dashed #E9E5DE; }
.ops-chart-bars { position: relative; z-index: 1; height: 242px; display: grid; grid-template-columns: repeat(14,minmax(0,1fr)); align-items: end; gap: clamp(5px,.75vw,10px); }
.ops-chart-item { min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0,1fr) 24px; gap: 7px; align-items: end; }
.ops-chart-track { height: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.ops-chart-bar { position: relative; width: min(24px,72%); height: var(--chart-height,0%); min-height: 0; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #D87842 0%, var(--primary) 100%); transition: opacity var(--motion-fast), background-color var(--motion-fast); }
.ops-chart-bar[data-chart-height="0"] { height: 2px; background: var(--border-strong); }
.ops-chart-item:hover .ops-chart-bar { opacity: .78; }
.ops-chart-bar::after { content: attr(data-value); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; padding: 5px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 9.5px; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%,4px); transition: opacity var(--motion-fast), transform var(--motion-fast); }
.ops-chart-item:hover .ops-chart-bar::after { opacity: 1; transform: translate(-50%,0); }
.ops-chart-label { overflow: hidden; color: var(--muted); font-size: 9.5px; text-align: center; text-overflow: clip; white-space: nowrap; }

.ops-utilization-list { padding: 7px 22px 18px; }
.ops-utilization-row { padding: 16px 0; border-bottom: 1px solid #EEEAE4; }
.ops-utilization-row:last-child { border-bottom: 0; }
.ops-utilization-head { margin-bottom: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ops-utilization-head > div { min-width: 0; display: grid; gap: 3px; }
.ops-utilization-head strong { color: var(--ink); font-size: 12.5px; font-weight: 690; }
.ops-utilization-head span { color: var(--muted); font-size: 10px; }
.ops-utilization-value { flex: 0 0 auto; color: var(--ink) !important; font-size: 13px !important; }
.ops-progress { width: 100%; height: 5px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: #ECE8E2; }
.ops-progress::-webkit-progress-bar { background: #ECE8E2; border-radius: 999px; }
.ops-progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.ops-progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.ops-utilization-meta { display: block; margin-top: 6px; color: var(--muted); font-size: 9.5px; }

.ops-timeline { padding: 4px 22px 12px; }
.ops-timeline-row { position: relative; min-width: 0; display: grid; grid-template-columns: 54px 14px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid #EEEAE4; }
.ops-timeline-row:last-child { border-bottom: 0; }
.ops-timeline-row:hover .ops-timeline-copy strong { color: var(--primary); }
.ops-timeline-time { color: var(--ink); font-size: 11.5px; line-height: 1.15; font-weight: 720; }
.ops-timeline-time span { display: block; margin-top: 4px; color: var(--muted); font-size: 9.5px; font-weight: 550; }
.ops-timeline-marker { position: relative; align-self: stretch; display: grid; place-items: center; }
.ops-timeline-marker::before { content: ""; position: absolute; top: -8px; bottom: -8px; left: 50%; width: 1px; background: var(--border); transform: translateX(-50%); }
.ops-timeline-marker::after { content: ""; position: relative; width: 7px; height: 7px; border-radius: 50%; background: #A8A198; box-shadow: 0 0 0 3px var(--surface); }
.ops-timeline-row.is-ongoing .ops-timeline-marker::after { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.ops-timeline-copy { min-width: 0; display: grid; gap: 3px; }
.ops-timeline-copy strong { overflow: hidden; color: var(--ink); font-size: 12.5px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; transition: color var(--motion-fast); }
.ops-timeline-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.ops-transaction-list { padding: 4px 22px 12px; }
.ops-transaction-row { min-width: 0; display: grid; grid-template-columns: minmax(150px,1.35fr) minmax(105px,.8fr) minmax(112px,.85fr) auto; gap: 14px; align-items: center; min-height: 58px; padding: 8px 0; border-bottom: 1px solid #EEEAE4; }
.ops-transaction-row:last-child { border-bottom: 0; }
.ops-transaction-copy { min-width: 0; display: grid; gap: 3px; }
.ops-transaction-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.ops-transaction-copy small,
.ops-transaction-booking,
.ops-transaction-date { overflow: hidden; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.ops-transaction-amount { color: var(--ink); font-size: 12px; font-weight: 720; text-align: right; white-space: nowrap; }
.ops-transaction-row:hover .ops-transaction-copy strong { color: var(--primary); }

@media (min-width: 1500px) {
  .ops-primary-metrics { grid-template-columns: minmax(0,1.8fr) minmax(230px,.65fr) minmax(230px,.65fr); }
  .ops-dashboard-grid-top { grid-template-columns: minmax(0,2fr) minmax(330px,.7fr); }
  .ops-revenue-chart { min-height: 310px; }
  .ops-chart-bars { height: 266px; }
}

@media (max-width: 1180px) {
  .ops-primary-metrics { grid-template-columns: 1.25fr repeat(2,minmax(180px,.7fr)); }
  .ops-dashboard-grid-top { grid-template-columns: minmax(0,1.5fr) minmax(280px,.85fr); }
  .ops-dashboard-grid-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .ops-primary-metrics { grid-template-columns: 1fr 1fr; }
  .ops-revenue-primary { grid-column: 1 / -1; padding-right: 0; }
  .ops-primary-stat { border-top: 1px solid var(--border); }
  .ops-primary-stat:nth-child(2) { padding-left: 0; border-left: 0; }
  .ops-dashboard-grid-top { grid-template-columns: 1fr; }
  .ops-utilization-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
  .ops-utilization-row:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .ops-dashboard-header { margin-bottom: 22px; }
  .ops-section-heading-inline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ops-section-note { white-space: normal; }
  .ops-today { padding: 20px; }
  .ops-primary-metrics { grid-template-columns: 1fr; }
  .ops-revenue-primary { padding: 22px 0; }
  .ops-primary-stat { padding: 18px 0; border-top: 1px solid var(--border); border-left: 0; }
  .ops-secondary-metrics { grid-template-columns: 1fr; padding-top: 8px; }
  .ops-secondary-item,
  .ops-secondary-item:first-child { padding: 10px 0; border-top: 1px solid #EEEAE4; border-left: 0; }
  .ops-secondary-item:first-child { border-top: 0; }
  .ops-panel-header { padding: 18px; }
  .ops-revenue-summary { margin: 0 18px; grid-template-columns: 1fr 1fr; }
  .ops-revenue-summary > div { padding: 14px 12px; }
  .ops-revenue-summary > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--border); border-left: 0; }
  .ops-revenue-chart { padding-right: 18px; padding-left: 18px; overflow-x: auto; }
  .ops-chart-grid { right: 18px; left: 18px; min-width: 560px; }
  .ops-chart-bars { min-width: 560px; }
  .ops-utilization-list { display: block; padding-right: 18px; padding-left: 18px; }
  .ops-utilization-row:nth-last-child(-n+2) { border-bottom: 1px solid #EEEAE4; }
  .ops-utilization-row:last-child { border-bottom: 0; }
  .ops-timeline { padding-right: 18px; padding-left: 18px; }
  .ops-transaction-list { padding-right: 18px; padding-left: 18px; }
  .ops-transaction-row { grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; padding: 11px 0; }
  .ops-transaction-booking { grid-column: 1; }
  .ops-transaction-date { grid-column: 1; }
  .ops-transaction-amount { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

@media (max-width: 520px) {
  .ops-dashboard-actions { grid-template-columns: 1fr !important; }
  .ops-today { margin-right: -2px; margin-left: -2px; padding: 18px; border-radius: 12px; }
  .ops-revenue-value { font-size: clamp(30px,10vw,42px); }
  .ops-panel-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ops-panel-header .text-link { margin-top: 0; }
  .ops-revenue-summary { grid-template-columns: 1fr; }
  .ops-revenue-summary > div,
  .ops-revenue-summary > div:first-child,
  .ops-revenue-summary > div:nth-child(3) { grid-column: auto; padding: 12px 0; border-top: 1px solid var(--border); border-left: 0; }
  .ops-revenue-summary > div:first-child { border-top: 0; }
  .ops-timeline-row { grid-template-columns: 47px 12px minmax(0,1fr); gap: 8px; }
  .ops-timeline-row > .badge { grid-column: 3; justify-self: start; margin-top: -2px; }
  .ops-timeline-copy strong { white-space: normal; }
  .ops-timeline-copy small { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-chart-bar,
  .ops-timeline-copy strong { transition: none; }
}

/* ======================================================================
   Professional server-rendered data table system
   ====================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.data-table-shell {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-card, 12px);
  background: var(--surface);
  overflow: visible;
}

.data-table-toolbar {
  position: relative;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.data-table-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.table-search {
  min-width: 250px;
  max-width: 460px;
  flex: 1 1 360px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control, 8px);
  background: var(--surface);
  color: var(--muted);
  transition: border-color var(--motion-fast, .16s ease), box-shadow var(--motion-fast, .16s ease);
}

.table-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,99,45,.10);
}

.table-search input {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink, var(--text));
  font-size: 13px;
}

.table-search input::placeholder { color: #99938A; }
.table-search-submit { flex: 0 0 auto; }
.table-primary-action { margin-left: auto; flex: 0 0 auto; }

.table-filter { position: relative; flex: 0 0 auto; }
.table-filter > summary { list-style: none; }
.table-filter > summary::-webkit-details-marker { display: none; }
.table-filter-trigger { display: inline-flex; align-items: center; gap: 7px; }
.filter-count {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink, #1A1917);
  color: white;
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.table-filter[open] .table-filter-trigger {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.table-filter-panel {
  position: absolute;
  z-index: 85;
  top: calc(100% + 9px);
  right: 0;
  width: min(680px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(30,27,22,.14);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.filter-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.filter-actions {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.data-table-summary {
  min-height: 38px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: #FBFAF7;
  font-size: 11.5px;
}
.data-table-summary strong { color: var(--ink); font-weight: 720; font-variant-numeric: tabular-nums; }
.data-table-summary-filtered { color: var(--primary-strong); }

.data-table-shell .table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.data-table-sticky .table-wrap { max-height: min(72vh, 760px); overflow: auto; }

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.data-table th {
  height: 43px;
  padding: 0 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  background: #FAF9F6;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 740;
  letter-spacing: .045em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table-sticky .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 var(--border);
}
.data-table td {
  height: 52px;
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #EEECE7;
  color: var(--ink-secondary);
  background: var(--surface);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #FBFAF7; }
.data-table th.text-right, .data-table td.text-right { text-align: right; }
.data-table .action-column { width: 48px; min-width: 48px; padding-right: 10px; padding-left: 8px; text-align: right; }
.data-table .table-empty-cell { height: auto; padding: 0; }

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  line-height: 1;
  transition: color var(--motion-fast, .16s ease);
}
.sort-link:hover, .sort-link.is-active { color: var(--ink); }
.sort-link.justify-end { width: 100%; justify-content: flex-end; }
.sort-indicator { width: 14px; height: 14px; display: inline-grid; place-items: center; opacity: .42; }
.sort-link.is-active .sort-indicator { color: var(--primary); opacity: 1; }

.table-primary-link {
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.table-primary-link:hover { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.table-secondary-link { color: var(--ink-secondary); font-weight: 620; }
.table-secondary-link:hover { color: var(--primary-strong); }
.table-secondary { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.table-code { color: var(--ink-secondary); font-size: 12px; }
.table-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-money strong { color: var(--ink); font-weight: 720; }
.table-meta-label { color: var(--ink-secondary); font-size: 12px; font-weight: 620; }
.table-description { max-width: 420px; line-height: 1.45; }
.table-action-name { color: var(--ink-secondary); font-size: 11.5px; }

.row-menu { position: relative; display: inline-block; }
.row-menu > summary { list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-trigger,
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.row-menu-trigger:hover,
.row-menu[open] .row-menu-trigger,
.icon-button:hover {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--ink);
}
.row-menu-panel {
  position: fixed;
  z-index: 110;
  top: var(--row-menu-top, 0);
  left: var(--row-menu-left, 0);
  width: 196px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(30,27,22,.14);
}
.row-menu-item {
  width: 100%;
  min-height: 36px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
}
.row-menu-item:hover { background: var(--surface-soft); color: var(--ink); }
.row-menu-item.is-danger { color: var(--danger); }
.row-menu-item.is-danger:hover { background: var(--danger-soft); color: var(--danger); }
.row-menu-panel form { margin: 0; }

.inline-role-form { display: inline-flex; align-items: center; gap: 5px; }
.inline-role-form .role-select { min-width: 112px; min-height: 34px; height: 34px; padding: 5px 28px 5px 9px; font-size: 11.5px; }

.audit-change > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}
.audit-change > summary::-webkit-details-marker { display: none; }
.audit-change[open] > summary { color: var(--primary-strong); }
.audit-change[open] > summary .ui-icon { transform: rotate(180deg); }
.audit-change-panel { min-width: min(520px, 70vw); margin-top: 10px; }

.table-date-range {
  flex: 0 1 330px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.table-date-range .input { min-width: 132px; height: 40px; }
.table-export-actions { margin-left: auto; display: flex; gap: 7px; }
.report-table-tools .table-search { min-width: 220px; max-width: 380px; }

.data-table-shell > .pagination { margin: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-card, 12px) var(--radius-card, 12px); }

@media (max-width: 1080px) {
  .data-table-tools { flex-wrap: wrap; }
  .table-search { max-width: none; flex: 1 1 420px; }
  .table-primary-action, .table-export-actions { margin-left: 0; }
  .report-table-tools .table-date-range { order: 1; }
  .report-table-tools .table-search { order: 2; flex: 1 1 300px; max-width: none; }
  .report-table-tools .table-filter { order: 3; }
  .report-table-tools .table-search-submit { order: 4; }
  .report-table-tools .table-export-actions { order: 5; margin-left: auto; }
}

@media (max-width: 760px) {
  .data-table-shell { margin-right: -2px; margin-left: -2px; border-radius: 11px; }
  .data-table-toolbar { padding: 10px; }
  .data-table-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .table-search { grid-column: 1 / -1; min-width: 0; max-width: none; width: 100%; }
  .table-filter { grid-column: 1; }
  .table-search-submit { grid-column: 2; }
  .table-primary-action { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .table-export-actions { grid-column: 1 / -1; width: 100%; }
  .table-export-actions .btn { flex: 1; justify-content: center; }
  .table-filter-panel { position: fixed; z-index: 120; top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; max-height: min(72vh, 620px); overflow-y: auto; padding: 16px; border-radius: 14px; }
  .filter-grid, .filter-grid-2 { grid-template-columns: 1fr; }
  .filter-actions { position: sticky; bottom: -16px; margin-right: -16px; margin-bottom: -16px; margin-left: -16px; padding: 12px 16px; background: rgba(255,255,255,.97); }
  .filter-actions .btn { flex: 1; }
  .data-table-summary { min-height: 36px; padding: 8px 11px; font-size: 10.5px; }
  .data-table-summary-filtered { display: none; }

  .data-table-shell .table-wrap { overflow: visible; }
  .data-table-shell .table-responsive-cards { overflow: visible; }
  .data-table-shell .data-table,
  .data-table-shell .data-table tbody,
  .data-table-shell .data-table tr,
  .data-table-shell .data-table td { display: block; width: 100%; min-width: 0; }
  .data-table-shell .data-table thead { display: none; }
  .data-table-shell .data-table tbody { padding: 9px; display: grid; gap: 9px; }
  .data-table-shell .data-table tr { overflow: visible; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
  .data-table-shell .data-table td {
    min-height: 42px;
    height: auto;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: minmax(92px, 32%) minmax(0,1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #EEECE7;
    background: transparent;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  .data-table-shell .data-table td:last-child { border-bottom: 0; }
  .data-table-shell .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.25; text-transform: none; }
  .data-table-shell .data-table td.table-empty-cell { display: block; padding: 0; border: 0; }
  .data-table-shell .data-table td.table-empty-cell::before { content: none; }
  .data-table-shell .data-table .action-column { width: auto; min-width: 0; padding: 7px 11px; }
  .data-table-shell .data-table .action-column::before { content: "Aksi"; }
  .data-table-shell .table-money { white-space: normal; }
  .data-table-shell .table-description { max-width: none; }
  .row-menu-panel { position: absolute; top: calc(100% + 5px); right: 0; left: auto; width: min(210px, 70vw); }
  .table-date-range { grid-column: 1 / -1; width: 100%; flex: none; }
  .table-date-range .input { width: 100%; min-width: 0; }
  .report-table-tools .table-date-range,
  .report-table-tools .table-search,
  .report-table-tools .table-filter,
  .report-table-tools .table-search-submit,
  .report-table-tools .table-export-actions { order: initial; }
}

@media (max-width: 420px) {
  .data-table-tools { grid-template-columns: 1fr 1fr; }
  .table-filter-trigger, .table-search-submit { width: 100%; justify-content: center; }
  .data-table-shell .data-table td { grid-template-columns: 84px minmax(0,1fr); padding: 9px 10px; }
  .table-date-range { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .table-date-range > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .table-search, .sort-link, .row-menu-trigger, .row-menu-item { transition: none !important; }
}
@media (max-width: 760px) {
  .data-table-sticky .table-wrap { max-height: none; }
}

/* =========================================================
   v7 Management Form System
   Consistent professional forms for Customer, Room, Booking,
   User, Payment and Settings. Presentation only.
   ========================================================= */
.form-page-narrow { width: min(100%, 940px); }
.form-page-wide { width: min(100%, 1180px); }
.form-stack { display: grid; gap: 16px; }

.form-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.form-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FFF 0%, #FDFCF9 100%);
}
.form-panel-head:not(:has(.form-panel-icon)) { grid-template-columns: 1fr; }
.form-panel-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #EADFD7;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.form-panel-heading { min-width: 0; }
.form-panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 790;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.form-panel-head h2,
.form-panel > h2,
.booking-price-panel h2,
.payment-summary-panel h2,
.access-principles h2,
.account-context-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 710;
  letter-spacing: -.018em;
}
.form-panel-head p,
.booking-price-panel > p,
.payment-summary-panel > p,
.access-principles > p,
.account-context-panel > p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.form-panel-body { display: grid; gap: 18px; padding: 22px; }
.form-panel-compact .form-panel-head { padding: 16px 18px 14px; }
.form-panel-compact .form-panel-body { padding: 18px; }

.management-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px 20px;
}
.management-form .form-field,
.form-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.management-form .form-field-full,
.form-field-full { grid-column: 1 / -1; }
.form-field > label,
.field-label {
  color: var(--ink-secondary);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 690;
}
.required {
  margin-left: 2px;
  color: var(--danger);
  font-size: .92em;
  font-weight: 760;
}

.management-form .input,
.management-form .select,
.management-form .textarea {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: #FFF;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 0 rgba(30,27,22,.015);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast), color var(--motion-fast);
}
.management-form .input:hover:not(:disabled):not([readonly]),
.management-form .select:hover:not(:disabled):not([readonly]),
.management-form .textarea:hover:not(:disabled):not([readonly]) { border-color: #BDB6AC; }
.management-form .input:focus,
.management-form .select:focus,
.management-form .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,99,45,.105);
  outline: none;
}
.management-form .input[readonly],
.management-form .select[readonly],
.management-form .textarea[readonly] {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  cursor: default;
}
.management-form .input:disabled,
.management-form .select:disabled,
.management-form .textarea:disabled,
.management-form fieldset:disabled .input,
.management-form fieldset:disabled .textarea,
.management-form fieldset:disabled select {
  border-color: var(--border);
  background: #F2F0EB;
  color: #8B857D;
  opacity: 1;
  cursor: not-allowed;
}
.management-form .input.is-invalid,
.management-form .select.is-invalid,
.management-form .textarea.is-invalid,
.management-form [aria-invalid="true"] {
  border-color: #CE7777;
  background: #FFFCFC;
  box-shadow: 0 0 0 2px rgba(173,65,65,.07);
}
.management-form .input.is-invalid:focus,
.management-form .select.is-invalid:focus,
.management-form .textarea.is-invalid:focus,
.management-form [aria-invalid="true"]:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(173,65,65,.10);
}
.management-form .input.is-valid,
.management-form .select.is-valid,
.management-form .textarea.is-valid {
  border-color: #79A591;
  box-shadow: 0 0 0 2px rgba(50,112,90,.06);
}
.management-form .field-error {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  margin-top: -1px;
  color: var(--danger);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 590;
}
.management-form .help {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.management-form .textarea { min-height: 108px; padding-block: 11px; }
.management-form .textarea-lg { min-height: 148px; }
.management-form .file-input { padding: 7px 9px; }
.management-form .file-input::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.management-form .file-input::file-selector-button:hover { background: #EAE7E1; color: var(--ink); }

.form-time-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.form-grid-spaced { margin-top: 20px; }
.form-field-toggle { justify-content: flex-end; }
.form-toggle-control {
  min-height: 54px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--ink-secondary);
}
.form-toggle-control:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.form-toggle-control input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--primary);
}
.form-toggle-control strong { color: var(--ink); font-size: 12.5px; font-weight: 680; }
.form-toggle-control small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-toggle-feature { margin-bottom: 2px; padding: 14px; }

.form-reference,
.form-inline-note,
.form-side-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}
.form-reference {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.form-reference .ui-icon,
.form-inline-note .ui-icon,
.form-side-note .ui-icon { flex: 0 0 auto; margin-top: 1px; color: var(--primary); }

.form-action-bar {
  margin-top: 16px;
  min-height: 68px;
  padding: 13px 14px 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.97);
}
.form-action-bar.is-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  box-shadow: 0 14px 34px rgba(30,27,22,.08);
  backdrop-filter: blur(12px);
}
.form-action-copy { min-width: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.form-action-buttons { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; }
.form-action-buttons .btn { min-height: 42px; }

.booking-form-workspace,
.payment-entry-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 18px;
  align-items: start;
}
.booking-price-panel,
.payment-summary-panel,
.account-context-panel,
.access-principles {
  position: sticky;
  top: 86px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.booking-price-panel .form-summary-box,
.payment-summary-panel .form-summary-box { margin-top: 18px; }
.form-summary-box {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}
.form-summary-box .summary-row { padding: 10px 12px; }
.form-summary-box .summary-row + .summary-row { border-top: 1px solid var(--border); }
.form-summary-box .summary-row.total { background: #FFF; }
.form-summary-box .summary-row.total strong { color: var(--primary-strong); font-size: 15px; }
.form-side-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-side-alert { margin: 14px 0 0; }
.form-availability { margin-top: 2px; }

.user-create-layout {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(290px,.65fr);
  gap: 16px;
  align-items: start;
}
.access-principles { position: relative; top: auto; }
.access-principles dl { margin: 18px 0 0; display: grid; gap: 0; }
.access-principles dl > div { padding: 12px 0; border-top: 1px solid var(--border); }
.access-principles dt { color: var(--ink); font-size: 12px; font-weight: 700; }
.access-principles dd { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

.user-edit-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 18px;
  align-items: start;
}
.account-context-panel h2 { margin-top: 4px; }
.account-context-list { margin: 18px 0 0; }
.account-context-list > div { padding: 11px 0; border-top: 1px solid var(--border); }
.account-context-list dt { color: var(--muted); font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.account-context-list dd { margin: 5px 0 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.5; }

/* Settings form uses the same form language while keeping existing route and payload. */
.settings-form .settings-layout { grid-template-columns: 190px minmax(0,1fr); }
.settings-form-panel { scroll-margin-top: 92px; }
.settings-form .settings-content { gap: 16px; }
.settings-form .settings-form-panel .form-panel-head { padding: 20px 22px 17px; }
.settings-form .settings-form-panel .form-panel-body { padding: 22px; }
.settings-form .settings-nav { border-radius: var(--radius-card); box-shadow: none; }
.settings-form .settings-nav a:focus-visible { outline-offset: -2px; }
.settings-form-actions { margin-left: 214px; }
.hours-editor { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-control); }
.hours-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 120px minmax(260px,1fr) minmax(180px,220px);
  gap: 18px;
  align-items: center;
  padding: 11px 13px;
  background: #FFF;
}
.hours-row + .hours-row { border-top: 1px solid var(--border); }
.hours-row:hover { background: #FEFDFB; }
.hours-day { display: grid; gap: 2px; }
.hours-day strong { color: var(--ink); font-size: 12.5px; }
.hours-day span { color: var(--muted); font-size: 10.5px; }
.hours-time { display: grid; grid-template-columns: minmax(100px,1fr) auto minmax(100px,1fr); gap: 8px; align-items: end; }
.hours-time .form-field { gap: 4px; }
.hours-time .form-field > label { color: var(--muted); font-size: 10px; font-weight: 650; }
.hours-time .input { min-height: 40px; }
.hours-separator { padding-bottom: 10px; color: var(--muted); }
.hours-closed .form-toggle-control { min-height: 48px; padding: 8px 10px; }
.settings-form fieldset:disabled .form-panel { opacity: .82; }
.settings-form fieldset:disabled .form-toggle-control { cursor: default; }
.settings-form fieldset:disabled .settings-note,
.settings-form fieldset:disabled .gateway-status,
.settings-form fieldset:disabled .alert { opacity: 1; }

/* Keep old generic form classes compatible, but new management forms use the v7 system. */
.management-form .form-section { margin: 0; padding: 0; border: 0; }
.management-form .form-actions { margin: 0; padding: 0; border: 0; }

@media (max-width: 1100px) {
  .booking-form-workspace,
  .payment-entry-layout,
  .user-edit-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .user-create-layout { grid-template-columns: minmax(0,1fr) 280px; }
}

@media (max-width: 960px) {
  .booking-form-workspace,
  .payment-entry-layout,
  .user-create-layout,
  .user-edit-layout { grid-template-columns: 1fr; }
  .booking-price-panel,
  .payment-summary-panel,
  .account-context-panel,
  .access-principles { position: static; }
  .booking-price-panel,
  .payment-summary-panel { order: -1; }
  .settings-form .settings-layout { grid-template-columns: 1fr; }
  .settings-form-actions { margin-left: 0; }
  .hours-row { grid-template-columns: 100px minmax(250px,1fr) minmax(160px,190px); gap: 12px; }
}

@media (max-width: 760px) {
  .management-form .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .management-form .form-field-full { grid-column: auto; }
  .form-time-pair { grid-template-columns: 1fr 1fr; }
  .form-panel-head { padding: 17px 17px 15px; }
  .form-panel-body { padding: 17px; }
  .form-action-bar { align-items: stretch; flex-direction: column; gap: 10px; padding: 13px; }
  .form-action-bar.is-sticky { bottom: 8px; }
  .form-action-buttons { width: 100%; }
  .form-action-buttons .btn { flex: 1 1 0; }
  .settings-form .settings-form-panel .form-panel-head,
  .settings-form .settings-form-panel .form-panel-body { padding-inline: 17px; }
  .hours-editor { border: 0; border-radius: 0; display: grid; gap: 10px; }
  .hours-row {
    grid-template-columns: 1fr;
    gap: 11px;
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-control);
    background: #FFF;
  }
  .hours-day { grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; }
  .hours-time { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .hours-closed .form-toggle-control { width: 100%; }
}

@media (max-width: 480px) {
  .management-form .input,
  .management-form .select,
  .management-form .textarea { min-height: 46px; font-size: 16px; }
  .management-form .textarea { min-height: 112px; }
  .form-time-pair { grid-template-columns: 1fr; }
  .form-panel-head { grid-template-columns: 1fr; }
  .form-panel-icon { display: none; }
  .form-action-buttons { display: grid; grid-template-columns: 1fr; }
  .form-action-buttons .btn { width: 100%; }
  .hours-time { grid-template-columns: 1fr; }
  .hours-separator { display: none; }
  .booking-price-panel,
  .payment-summary-panel,
  .account-context-panel,
  .access-principles { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .management-form .input,
  .management-form .select,
  .management-form .textarea,
  .form-toggle-control { transition: none; }
}

/* ========================================================================== 
   Tiger Studio operational detail pages — v8
   Booking, Customer, Room, Transaction.
   Presentation-only redesign: no business-flow or route changes.
   ========================================================================== */
.record-page {
  --record-gap: 18px;
  min-width: 0;
}
.record-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.record-hero-copy { min-width: 0; max-width: 820px; }
.record-hero .back-link {
  width: max-content;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 640;
}
.record-hero .back-link:hover { color: var(--ink); }
.record-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.record-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 735;
  text-wrap: balance;
}
.record-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.record-meta-line > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.record-meta-line .ui-icon { flex: 0 0 auto; color: #9B8B7E; }
.record-statuses { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.record-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.record-actions form { margin: 0; }
.record-actions .btn { min-height: 40px; }

.record-summary-strip,
.record-financial-strip {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1.35fr repeat(2,minmax(0,1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.record-financial-strip { grid-template-columns: 1.35fr repeat(3,minmax(0,1fr)); }
.record-summary-primary,
.record-summary-item,
.record-financial-primary,
.record-financial-item {
  min-width: 0;
  min-height: 112px;
  padding: 19px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.record-summary-item,
.record-financial-item { border-left: 1px solid var(--border); }
.record-summary-primary,
.record-financial-primary { background: #FCFAF6; }
.record-summary-primary > span,
.record-summary-item > span,
.record-financial-primary > span,
.record-financial-item > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 680;
}
.record-summary-primary strong,
.record-financial-primary strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(24px,2.1vw,31px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.record-summary-item strong,
.record-financial-item strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}
.record-summary-primary small,
.record-summary-item small,
.record-financial-primary small,
.record-financial-item small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}
.record-financial-item.is-outstanding { background: var(--warning-soft); }
.record-financial-item.is-outstanding strong { color: #7F5318; }
.record-financial-item.is-settled strong { color: var(--success); }

.record-workspace {
  display: grid;
  grid-template-columns: minmax(0,1.72fr) minmax(280px,.68fr);
  gap: 20px;
  align-items: start;
}
.record-workspace-customer { grid-template-columns: minmax(0,1.65fr) minmax(270px,.62fr); }
.record-main { min-width: 0; display: grid; gap: var(--record-gap); }
.record-sidebar { min-width: 0; display: grid; gap: 14px; position: sticky; top: 86px; }
.record-section,
.record-side-panel,
.record-next-action,
.record-danger-zone {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.record-section { padding: 22px; }
.record-section-head,
.record-side-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.record-section-head > .ui-icon { flex: 0 0 auto; color: #A1978D; }
.record-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 790;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.record-section-head h2,
.record-side-panel-head h2,
.record-next-action h2,
.record-danger-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -.02em;
  font-weight: 720;
}
.record-section-count {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.record-context-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--border);
}
.record-context-item {
  min-width: 0;
  min-height: 108px;
  padding: 17px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  background: #FFF;
}
.record-context-item-wide { grid-column: 1 / -1; }
.record-context-icon,
.record-list-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary);
}
.record-context-icon { width: 36px; height: 36px; }
.record-context-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.record-context-title {
  display: block;
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 710;
  overflow-wrap: anywhere;
}
a.record-context-title:hover { color: var(--primary-strong); }
.record-context-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.record-prose-grid,
.record-profile-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.86fr);
  gap: 28px;
}
.record-prose-primary,
.record-profile-primary {
  min-width: 0;
  padding-right: 4px;
}
.record-prose-primary > span,
.record-profile-primary > span,
.transaction-document-row > div > span,
.record-note > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 660;
}
.record-prose-primary > strong,
.record-profile-primary > strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(18px,1.8vw,23px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 720;
}
.record-prose-primary > p,
.record-profile-primary > p {
  margin: 10px 0 0;
  color: var(--ink-secondary);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-line;
}
.record-facts,
.record-side-facts,
.room-record-facts { margin: 0; }
.record-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 18px;
  align-content: start;
}
.record-facts > div {
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.record-facts > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.record-facts .record-fact-wide { grid-column: 1 / -1; }
.record-facts dt,
.record-side-facts dt,
.room-record-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 630;
}
.record-facts dd,
.record-side-facts dd,
.room-record-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 640;
  overflow-wrap: anywhere;
}
.record-facts .is-danger dd { color: var(--danger); }
.record-note {
  margin-top: 20px;
  padding: 15px 16px;
  border-left: 2px solid var(--brand-200);
  background: #FCFAF6;
}
.record-note p { margin: 5px 0 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.65; white-space: pre-line; }

.record-list { display: grid; }
.record-list-row {
  min-width: 0;
  min-height: 66px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #EEECE7;
}
.record-list-row:first-child { padding-top: 0; }
.record-list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.record-list-icon { width: 34px; height: 34px; color: #8E7D70; }
.record-list-copy { min-width: 0; display: grid; gap: 3px; }
.record-list-title {
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 690;
  overflow-wrap: anywhere;
}
a.record-list-title:hover { color: var(--primary-strong); }
.record-list-copy > span { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.record-list-value { min-width: 90px; display: grid; justify-items: end; gap: 5px; text-align: right; }
.record-list-value > strong { color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.record-activity-timeline { position: relative; display: grid; }
.record-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px 125px minmax(0,1fr);
  gap: 12px;
  min-height: 66px;
  padding: 9px 0;
}
.record-activity-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -12px;
  width: 1px;
  background: var(--border);
}
.record-activity-marker {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid #FFF;
  border-radius: 50%;
  background: #AAA39A;
  box-shadow: 0 0 0 1px #AAA39A;
}
.record-activity-item.is-success .record-activity-marker { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.record-activity-item.is-warning .record-activity-marker { background: var(--warning); box-shadow: 0 0 0 1px var(--warning); }
.record-activity-item.is-danger .record-activity-marker { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.record-activity-time { color: var(--muted); font-size: 10.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.record-activity-copy { min-width: 0; }
.record-activity-copy strong { color: var(--ink); font-size: 12px; font-weight: 690; }
.record-activity-copy p { margin: 3px 0 0; color: var(--ink-secondary); font-size: 11.5px; line-height: 1.55; }
.record-activity-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.record-next-action,
.record-side-panel { padding: 18px; }
.record-next-action { border-color: var(--brand-200); background: #FFF9F4; }
.record-next-action.is-success { border-color: #CEE3DA; background: var(--success-soft); }
.record-next-action.is-neutral { border-color: var(--border); background: var(--surface); }
.record-next-action h2 { margin-top: 2px; font-size: 18px; }
.record-next-action p { margin: 8px 0 16px; color: var(--ink-secondary); font-size: 11.5px; line-height: 1.6; }
.record-next-action .btn { margin-top: 2px; }
.record-side-panel-head { margin-bottom: 12px; padding-bottom: 12px; }
.record-side-panel-head h2 { margin-top: 2px; font-size: 14px; }
.record-payment-stack { display: grid; }
.record-payment-stack > div,
.record-side-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #EEECE7;
}
.record-payment-stack > div:first-child,
.record-side-facts > div:first-child { padding-top: 0; }
.record-payment-stack > div:last-child,
.record-side-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.record-payment-stack span { color: var(--muted); font-size: 10.5px; }
.record-payment-stack strong { color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.record-payment-stack .is-outstanding strong { color: #875817; }
.record-side-facts dd { text-align: right; }
.record-attempt-list { display: grid; }
.record-attempt-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #EEECE7;
}
.record-attempt-row:first-child { padding-top: 0; }
.record-attempt-row:last-child { padding-bottom: 0; border-bottom: 0; }
.record-attempt-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.record-attempt-row > div:first-child strong { overflow-wrap: anywhere; color: var(--ink); font-size: 10px; }
.record-attempt-row > div:first-child span { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.record-attempt-value { display: grid; justify-items: end; gap: 4px; text-align: right; }
.record-attempt-value > strong { color: var(--ink); font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* Room operational detail */
.room-record-feature {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.room-record-media {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #EAE5DD;
  color: var(--primary);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -.045em;
}
.room-record-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.room-record-summary { padding: clamp(24px,3vw,38px); display: flex; flex-direction: column; justify-content: center; }
.room-record-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.room-record-price strong { color: var(--ink); font-size: clamp(27px,2.7vw,39px); letter-spacing: -.045em; font-weight: 750; font-variant-numeric: tabular-nums; }
.room-record-price span { color: var(--muted); font-size: 11px; }
.room-record-tagline { margin: 12px 0 20px; color: var(--ink-secondary); font-size: 12.5px; line-height: 1.65; }
.room-record-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--border); }
.room-record-facts > div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.room-record-facts > div:nth-child(odd) { padding-right: 14px; }
.room-record-facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--border); }
.room-description-block { max-width: 760px; }
.room-description-block p { margin: 0; color: var(--ink-secondary); font-size: 13px; line-height: 1.75; white-space: pre-line; }
.room-facility-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.room-facility-list > span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 12px;
}
.room-facility-list .ui-icon { color: var(--success); }
.room-upcoming-list { display: grid; }
.room-upcoming-row {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px 105px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #EEECE7;
}
.room-upcoming-row:first-child { padding-top: 0; }
.room-upcoming-row:last-child { padding-bottom: 0; border-bottom: 0; }
.room-upcoming-date {
  width: 44px;
  height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FCFAF6;
}
.room-upcoming-date strong { color: var(--ink); font-size: 17px; line-height: 1; font-weight: 740; font-variant-numeric: tabular-nums; }
.room-upcoming-date span { margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 720; letter-spacing: .06em; }
.room-upcoming-time { display: grid; gap: 3px; }
.room-upcoming-time strong { color: var(--ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.room-upcoming-time span { color: var(--muted); font-size: 9.5px; }
.room-upcoming-copy { min-width: 0; display: grid; gap: 4px; }
.room-upcoming-copy > a { width: max-content; max-width: 100%; overflow: hidden; color: var(--ink); font-size: 12.5px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.room-upcoming-copy > a:hover { color: var(--primary-strong); }
.room-upcoming-copy > span { overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }

/* Transaction operational detail */
.transaction-amount-hero {
  margin-bottom: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.65fr);
  gap: 30px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #FCFAF6;
}
.transaction-amount-hero > div:first-child { display: grid; }
.transaction-amount-hero > div:first-child > span { color: var(--muted); font-size: 10.5px; font-weight: 660; }
.transaction-amount-hero > div:first-child > strong { margin-top: 5px; color: var(--ink); font-size: clamp(30px,3vw,43px); line-height: 1.05; letter-spacing: -.045em; font-weight: 760; font-variant-numeric: tabular-nums; }
.transaction-amount-hero > div:first-child > small { margin-top: 8px; color: var(--muted); font-size: 11px; }
.transaction-amount-hero dl { margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.transaction-amount-hero dl > div { padding: 4px 14px; border-left: 1px solid var(--border); }
.transaction-amount-hero dt { color: var(--muted); font-size: 9.5px; }
.transaction-amount-hero dd { margin: 5px 0 0; color: var(--ink); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.record-inline-action,
.transaction-document-row {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
}
.record-inline-action > div { min-width: 0; }
.record-inline-action > div > span { color: var(--muted); font-size: 10px; }
.record-inline-action p { margin: 4px 0 0; color: var(--ink-secondary); font-size: 11.5px; }
.transaction-document-row > div > strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }
.transaction-document-row p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; }
.record-danger-zone {
  margin-top: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr);
  gap: 28px;
  align-items: start;
  border-color: #E9CACA;
  background: #FFF9F8;
  scroll-margin-top: 90px;
}
.record-danger-copy .record-section-kicker { color: var(--danger); }
.record-danger-copy p { margin: 8px 0 0; color: var(--ink-secondary); font-size: 11.5px; line-height: 1.6; }
.record-danger-form { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; }
.record-danger-form .textarea { min-height: 90px; }
.record-danger-form .btn { min-height: 44px; margin-bottom: 20px; }

@media (max-width: 1180px) {
  .record-financial-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .record-financial-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .record-financial-item:nth-child(4) { border-top: 1px solid var(--border); }
  .record-workspace,
  .record-workspace-customer { grid-template-columns: minmax(0,1fr) 270px; }
  .record-prose-grid,
  .record-profile-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
  .room-record-feature { grid-template-columns: minmax(0,1.15fr) minmax(290px,.85fr); }
  .transaction-amount-hero { grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); }
}

@media (max-width: 960px) {
  .record-workspace,
  .record-workspace-customer { grid-template-columns: 1fr; }
  .record-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); order: -1; }
  .record-sidebar > :only-child { grid-column: 1 / -1; }
  .record-next-action { grid-column: 1 / -1; }
  .room-record-feature { grid-template-columns: 1.12fr .88fr; }
  .room-record-media { min-height: 320px; }
  .transaction-amount-hero { grid-template-columns: 1fr; gap: 20px; }
  .transaction-amount-hero dl { border-top: 1px solid var(--border); padding-top: 16px; }
  .transaction-amount-hero dl > div:first-child { border-left: 0; padding-left: 0; }
  .record-danger-zone { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .record-hero { align-items: stretch; flex-direction: column; gap: 17px; margin-bottom: 18px; padding-bottom: 20px; }
  .record-hero .back-link { margin-bottom: 14px; }
  .record-hero h1 { font-size: clamp(27px,9vw,35px); }
  .record-meta-line { display: grid; gap: 7px; }
  .record-actions { width: 100%; justify-content: flex-start; }
  .record-actions > .btn,
  .record-actions > form { flex: 1 1 auto; }
  .record-actions form .btn { width: 100%; }
  .record-summary-strip,
  .record-financial-strip { grid-template-columns: 1fr 1fr; }
  .record-summary-primary { grid-column: 1 / -1; }
  .record-summary-item:nth-child(2) { border-left: 0; border-top: 1px solid var(--border); }
  .record-summary-item:nth-child(3) { border-top: 1px solid var(--border); }
  .record-financial-primary,
  .record-financial-item { min-height: 96px; }
  .record-financial-primary { grid-column: 1 / -1; }
  .record-financial-item:nth-child(2) { border-left: 0; border-top: 1px solid var(--border); }
  .record-financial-item:nth-child(3),
  .record-financial-item:nth-child(4) { border-top: 1px solid var(--border); }
  .record-financial-item:nth-child(3) { border-left: 0; }
  .record-sidebar { grid-template-columns: 1fr; }
  .record-section { padding: 18px; }
  .record-section-head { margin-bottom: 16px; padding-bottom: 14px; }
  .record-context-grid { grid-template-columns: 1fr; }
  .record-context-item-wide { grid-column: auto; }
  .record-prose-grid,
  .record-profile-grid { grid-template-columns: 1fr; gap: 20px; }
  .record-facts { grid-template-columns: 1fr 1fr; }
  .record-list-row { grid-template-columns: 34px minmax(0,1fr); }
  .record-list-value { grid-column: 2; justify-items: start; text-align: left; }
  .record-activity-item { grid-template-columns: 12px minmax(0,1fr); gap: 11px; }
  .record-activity-time { grid-column: 2; margin-bottom: -5px; }
  .record-activity-copy { grid-column: 2; }
  .record-activity-marker { grid-row: 1 / span 2; }
  .room-record-feature { grid-template-columns: 1fr; }
  .room-record-media { min-height: 0; aspect-ratio: 16 / 9; }
  .room-record-summary { padding: 22px; }
  .room-upcoming-row { grid-template-columns: 46px minmax(0,1fr) auto; gap: 10px; align-items: start; }
  .room-upcoming-time { grid-column: 2; grid-row: 1; padding-top: 3px; }
  .room-upcoming-copy { grid-column: 2; grid-row: 2; }
  .room-upcoming-row > .badge { grid-column: 3; grid-row: 1 / span 2; }
  .room-upcoming-date { grid-row: 1 / span 2; }
  .transaction-amount-hero { padding: 20px; }
  .transaction-amount-hero dl { grid-template-columns: 1fr; gap: 0; }
  .transaction-amount-hero dl > div { padding: 9px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .transaction-amount-hero dl > div:last-child { border-bottom: 0; }
  .record-inline-action,
  .transaction-document-row { align-items: stretch; flex-direction: column; }
  .record-inline-action .btn,
  .transaction-document-row .btn { width: 100%; }
  .record-danger-form { grid-template-columns: 1fr; }
  .record-danger-form .btn { width: 100%; margin-bottom: 0; }
}

@media (max-width: 480px) {
  .record-summary-strip,
  .record-financial-strip { grid-template-columns: 1fr; }
  .record-summary-primary,
  .record-summary-item,
  .record-financial-primary,
  .record-financial-item { grid-column: auto; min-height: 88px; padding: 16px; border-left: 0 !important; border-top: 1px solid var(--border); }
  .record-summary-primary,
  .record-financial-primary { border-top: 0; }
  .record-actions { display: grid; grid-template-columns: 1fr; }
  .record-actions > .btn,
  .record-actions > form { width: 100%; }
  .record-actions .btn { width: 100%; }
  .record-section { padding: 16px; }
  .record-section-head { gap: 12px; }
  .record-section-head > .ui-icon { display: none; }
  .record-context-item { min-height: 0; padding: 14px; }
  .record-facts { grid-template-columns: 1fr; }
  .record-facts > div:nth-child(2) { padding-top: 10px; border-top: 1px solid var(--border); }
  .record-list-row { gap: 10px; }
  .room-facility-list { grid-template-columns: 1fr; }
  .room-record-facts { grid-template-columns: 1fr; }
  .room-record-facts > div { padding: 10px 0 !important; border-left: 0 !important; }
  .room-upcoming-row { grid-template-columns: 40px minmax(0,1fr); }
  .room-upcoming-date { width: 38px; height: 48px; }
  .room-upcoming-row > .badge { grid-column: 2; grid-row: 3; width: max-content; }
  .record-danger-zone { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .record-page a,
  .record-page button { scroll-behavior: auto; }
}

/* ========================================================================
 * Tiger Studio Resource Schedule
 * Resource-first weekly planner: rooms are rows, days are the horizontal
 * axis. Tablet/mobile switches to a focused day view instead of compressing
 * seven columns into unreadable cards.
 * ===================================================================== */
.resource-schedule {
  --schedule-rule: #E9E6DF;
  --schedule-canvas: #FAF9F6;
  --schedule-booking: #FFF4EC;
  --schedule-booking-border: #E2A47F;
  --schedule-maintenance: #FBF2DE;
  --schedule-maintenance-border: #D2A85D;
  --schedule-internal: #EEF5F3;
  --schedule-internal-border: #70A093;
  --schedule-closure: #F8ECEB;
  --schedule-closure-border: #C17B75;
  --schedule-other: #F2F1EE;
  --schedule-other-border: #AAA49B;
}
.resource-schedule-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.resource-schedule-title { max-width: 720px; }
.resource-schedule-title h1 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 760;
}
.resource-schedule-title p {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.65;
}
.resource-schedule-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.schedule-week-nav {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}
.schedule-nav-button,
.schedule-today-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: color var(--motion-fast), background var(--motion-fast);
}
.schedule-today-link {
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  color: var(--primary-strong);
  background: var(--primary-soft);
}
.schedule-nav-button:hover,
.schedule-today-link:hover { color: var(--ink); background: var(--surface-raised); }

.schedule-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.schedule-overview-item {
  min-height: 78px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  border-left: 1px solid var(--border);
}
.schedule-overview-item:first-child { border-left: 0; }
.schedule-overview-item > span {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .02em;
}
.schedule-overview-item > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.schedule-overview-item > small {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.schedule-legend {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.schedule-legend-title {
  margin-right: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.schedule-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 10px;
  font-weight: 620;
  white-space: nowrap;
}
.schedule-legend-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--schedule-booking-border);
}
.schedule-legend-booking::before { background: var(--schedule-booking-border); }
.schedule-legend-maintenance::before { background: var(--schedule-maintenance-border); }
.schedule-legend-internal::before { background: var(--schedule-internal-border); }
.schedule-legend-closure::before { background: var(--schedule-closure-border); }

.resource-week-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.resource-week-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #CFC9BF transparent;
}
.resource-week-scroll:focus-visible {
  outline: 2px solid rgba(201,99,45,.24);
  outline-offset: -2px;
}
.resource-week-grid {
  min-width: 1400px;
  display: grid;
  grid-template-columns: 190px repeat(7, minmax(170px, 1fr));
  align-items: stretch;
  background: var(--schedule-rule);
  gap: 1px;
}
.resource-corner-cell,
.resource-day-head,
.resource-room-cell,
.resource-day-cell { background: var(--surface); }
.resource-corner-cell {
  position: sticky;
  left: 0;
  z-index: 6;
  min-height: 76px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 8px 0 18px -18px rgba(26,25,23,.5);
}
.resource-corner-cell span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 720;
}
.resource-corner-cell small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}
.resource-day-head {
  position: relative;
  min-height: 76px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FCFBF8;
}
.resource-day-head.is-today { background: var(--primary-soft); }
.resource-day-head > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
  align-items: baseline;
}
.resource-day-head > div > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 680;
}
.resource-day-head > div > strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.resource-day-head > div > small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.resource-day-count {
  align-self: flex-end;
  color: var(--muted);
  font-size: 8.5px;
  white-space: nowrap;
}
.resource-today-chip {
  position: absolute;
  top: 9px;
  right: 10px;
  padding: 3px 6px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  color: var(--primary-strong);
  background: #FFFDFC;
  font-size: 8px;
  font-weight: 720;
}
.resource-room-cell {
  position: sticky;
  left: 0;
  z-index: 5;
  min-height: 138px;
  padding: 16px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 8px 0 18px -18px rgba(26,25,23,.5);
}
.resource-room-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}
.resource-room-cell > div { min-width: 0; padding-top: 2px; }
.resource-room-cell strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 700;
  text-overflow: ellipsis;
}
.resource-room-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.resource-day-cell {
  min-height: 138px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: #FFF;
}
.resource-day-cell.is-today { background: #FFFCF9; }
.resource-cell-empty {
  margin: auto;
  color: #A39D94;
  font-size: 9px;
  text-align: center;
}

.schedule-resource-item {
  position: relative;
  min-width: 0;
  min-height: 62px;
  padding: 9px 9px 8px;
  display: grid;
  gap: 4px;
  overflow: hidden;
  border: 1px solid transparent;
  border-left-width: 3px;
  border-radius: 8px;
  transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
}
a.schedule-resource-item:hover { transform: translateY(-1px); }
.schedule-resource-booking {
  border-color: #F0D9CA;
  border-left-color: var(--schedule-booking-border);
  background: var(--schedule-booking);
}
.schedule-resource-booking:hover { border-color: var(--schedule-booking-border); background: #FFF0E6; }
.schedule-resource-booking.is-ongoing {
  border-color: #C8DDD5;
  border-left-color: var(--success);
  background: var(--success-soft);
}
.schedule-resource-block.is-maintenance { border-color: #E9D8B1; border-left-color: var(--schedule-maintenance-border); background: var(--schedule-maintenance); }
.schedule-resource-block.is-internal { border-color: #CADDD8; border-left-color: var(--schedule-internal-border); background: var(--schedule-internal); }
.schedule-resource-block.is-closure { border-color: #E7C9C6; border-left-color: var(--schedule-closure-border); background: var(--schedule-closure); }
.schedule-resource-block.is-other { border-color: #DBD7D0; border-left-color: var(--schedule-other-border); background: var(--schedule-other); }
.schedule-resource-item-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.schedule-resource-kind {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--ink-secondary);
  font-size: 8.5px;
  font-weight: 670;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.schedule-resource-item-head time {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}
.schedule-resource-item > strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-resource-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-block-delete { margin-top: 2px; }
.schedule-block-delete button,
.schedule-mobile-delete {
  min-height: 25px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: 8.5px;
  font-weight: 650;
}
.schedule-block-delete button:hover,
.schedule-mobile-delete:hover { text-decoration: underline; }
.resource-empty-state {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}
.resource-empty-state strong { color: var(--ink); font-size: 13px; }
.resource-empty-state span { font-size: 10.5px; }

/* Day-focused schedule for tablet and mobile. */
.schedule-mobile { display: none; }
.schedule-day-tabs {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin: 0 -2px 14px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.schedule-day-tabs::-webkit-scrollbar { display: none; }
.schedule-day-tab {
  flex: 0 0 68px;
  min-height: 64px;
  padding: 8px 7px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  transition: border-color var(--motion-fast), background var(--motion-fast), color var(--motion-fast);
}
.schedule-day-tab span { font-size: 8.5px; font-weight: 680; text-transform: uppercase; letter-spacing: .04em; }
.schedule-day-tab strong { color: inherit; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.schedule-day-tab small { color: var(--primary-strong); font-size: 7.5px; font-weight: 700; }
.schedule-day-tab.is-active {
  border-color: var(--brand-200);
  color: var(--primary-strong);
  background: var(--primary-soft);
}
.schedule-day-tab:focus-visible { outline: 2px solid rgba(201,99,45,.24); outline-offset: 2px; }
.schedule-mobile-day { display: none; }
.schedule-mobile-day.is-active { display: block; }
.schedule-mobile-day-head {
  position: relative;
  min-height: 58px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.schedule-mobile-day-head span:not(.resource-today-chip) {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.schedule-mobile-day-head h2 { margin: 4px 0 0; color: var(--ink); font-size: 20px; letter-spacing: -.025em; }
.schedule-mobile-day-head .resource-today-chip { position: static; }
.schedule-mobile-rooms { display: grid; gap: 10px; }
.schedule-mobile-room {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.schedule-mobile-room > header {
  min-height: 52px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--border);
  background: #FCFBF8;
}
.schedule-mobile-room > header .resource-room-icon { width: 30px; height: 30px; }
.schedule-mobile-room > header > strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-mobile-room > header > span:last-child { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.schedule-mobile-events { padding: 0 13px; }
.schedule-mobile-event {
  min-height: 72px;
  display: grid;
  grid-template-columns: 43px 24px minmax(0,1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--schedule-rule);
}
.schedule-mobile-event:last-child { border-bottom: 0; }
a.schedule-mobile-event:hover .schedule-mobile-copy > strong { color: var(--primary-strong); }
.schedule-mobile-time { padding-top: 1px; display: grid; gap: 2px; }
.schedule-mobile-time strong { color: var(--ink); font-size: 10.5px; font-weight: 720; font-variant-numeric: tabular-nums; }
.schedule-mobile-time span { color: var(--muted); font-size: 8.5px; font-variant-numeric: tabular-nums; }
.schedule-mobile-marker {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #F0D9CA;
  border-radius: 7px;
  color: var(--primary-strong);
  background: var(--schedule-booking);
}
.schedule-mobile-booking.is-ongoing .schedule-mobile-marker { border-color: #C8DDD5; color: var(--success); background: var(--success-soft); }
.schedule-mobile-block.is-maintenance .schedule-mobile-marker { border-color: #E9D8B1; color: #8A651F; background: var(--schedule-maintenance); }
.schedule-mobile-block.is-internal .schedule-mobile-marker { border-color: #CADDD8; color: #447C70; background: var(--schedule-internal); }
.schedule-mobile-block.is-closure .schedule-mobile-marker { border-color: #E7C9C6; color: var(--danger); background: var(--schedule-closure); }
.schedule-mobile-block.is-other .schedule-mobile-marker { border-color: #DBD7D0; color: #716B63; background: var(--schedule-other); }
.schedule-mobile-copy { min-width: 0; display: grid; gap: 3px; }
.schedule-mobile-kind { color: var(--muted); font-size: 8px; font-weight: 680; text-transform: uppercase; letter-spacing: .04em; }
.schedule-mobile-copy > strong { overflow: hidden; color: var(--ink); font-size: 11.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.schedule-mobile-copy > small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.schedule-mobile-copy form { margin-top: 2px; }
.schedule-mobile-chevron { align-self: center; color: var(--muted); }
.schedule-mobile-empty { padding: 18px 0; color: #9C968D; font-size: 9.5px; text-align: center; }

/* Manual block editor remains the same backend form, presented as an
   operational control rather than another generic card. */
.schedule-block-editor {
  margin-top: 28px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #FCFBF8;
  scroll-margin-top: 84px;
}
.schedule-block-editor-intro { max-width: 360px; }
.schedule-block-editor-intro h2 { margin: 5px 0 0; color: var(--ink); font-size: 21px; letter-spacing: -.025em; }
.schedule-block-editor-intro p { margin: 8px 0 0; color: var(--ink-secondary); font-size: 11.5px; line-height: 1.65; }
.schedule-block-types { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px 12px; }
.schedule-block-form { min-width: 0; }
.schedule-block-form .form-grid-2 { gap: 14px 16px; }
.schedule-block-form-actions {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
}
.schedule-block-form-actions > span { max-width: 470px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }

@media (max-width: 1180px) {
  .resource-schedule-hero { align-items: flex-start; }
  .resource-schedule-actions { max-width: 480px; }
  .resource-week-grid { min-width: 1360px; grid-template-columns: 180px repeat(7, minmax(168px,1fr)); }
  .schedule-block-editor { grid-template-columns: 240px minmax(0,1fr); gap: 26px; padding: 24px 20px; }
}

@media (max-width: 960px) {
  .resource-schedule-hero { flex-direction: column; gap: 17px; }
  .resource-schedule-actions { width: 100%; max-width: none; justify-content: space-between; }
  .resource-week-shell { display: none; }
  .schedule-mobile { display: block; }
  .schedule-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .schedule-block-editor { grid-template-columns: 1fr; gap: 20px; }
  .schedule-block-editor-intro { max-width: 680px; }
}

@media (max-width: 700px) {
  .resource-schedule-hero { margin-bottom: 17px; padding-bottom: 18px; }
  .resource-schedule-title h1 { font-size: clamp(27px, 9vw, 34px); }
  .resource-schedule-title p { font-size: 12px; }
  .resource-schedule-actions { align-items: stretch; flex-direction: column; }
  .schedule-week-nav { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; }
  .schedule-nav-button { padding: 0 8px; }
  .schedule-nav-button:last-child { justify-content: flex-end; }
  .schedule-nav-button:first-child { justify-content: flex-start; }
  .resource-schedule-actions > .btn { width: 100%; }
  .schedule-overview { grid-template-columns: 1fr; }
  .schedule-overview-item { min-height: 64px; border-top: 1px solid var(--border); border-left: 0; }
  .schedule-overview-item:first-child { border-top: 0; }
  .schedule-legend { gap: 7px 10px; }
  .schedule-legend-title { width: 100%; }
  .schedule-block-editor { margin: 24px -16px 0; padding: 22px 16px; }
  .schedule-block-form .form-grid-2 { grid-template-columns: 1fr; }
  .schedule-block-form-actions { align-items: stretch; flex-direction: column; }
  .schedule-block-form-actions .btn { width: 100%; }
}

@media (max-width: 430px) {
  .schedule-nav-button span { display: none; }
  .schedule-nav-button { min-width: 44px; }
  .schedule-day-tab { flex-basis: 60px; min-height: 60px; }
  .schedule-mobile-room > header { grid-template-columns: 28px minmax(0,1fr); }
  .schedule-mobile-room > header > span:last-child { grid-column: 2; margin-top: -5px; }
  .schedule-mobile-event { grid-template-columns: 40px 22px minmax(0,1fr); gap: 8px; }
  .schedule-mobile-chevron { display: none; }
  .schedule-mobile-copy > strong { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-resource-item,
  .schedule-day-tab,
  .schedule-nav-button,
  .schedule-today-link { transition: none; }
  a.schedule-resource-item:hover { transform: none; }
}

/* ========================================================================== 
   Tiger Studio settings workspace — v10
   Structured configuration workspace, presentation-only.
   ========================================================================== */
.settings-workspace {
  --settings-nav-width: 216px;
  min-width: 0;
}
.settings-page-header { align-items: flex-end; }
.settings-page-header > div:first-child { max-width: 780px; }
.settings-header-state { flex: 0 0 auto; }
.settings-access-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 680;
}
.settings-access-chip-edit {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.settings-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -2px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.settings-overview-item {
  min-width: 0;
  padding: 14px 18px 15px;
}
.settings-overview-item:first-child { padding-left: 0; }
.settings-overview-item + .settings-overview-item { border-left: 1px solid var(--border); }
.settings-overview-item span,
.system-status-row span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 680;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.settings-overview-item strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 710;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-readonly-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}
.settings-readonly-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}
.settings-readonly-notice strong { color: var(--ink); font-size: 12.5px; }
.settings-readonly-notice p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.settings-workspace .settings-form .settings-layout {
  grid-template-columns: var(--settings-nav-width) minmax(0, 1fr);
  gap: 28px;
}
.settings-workspace .settings-nav {
  top: 84px;
  gap: 3px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
}
.settings-workspace .settings-nav-label { padding: 8px 10px 9px; font-size: 10px; }
.settings-workspace .settings-nav a {
  position: relative;
  min-height: 42px;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 630;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.settings-workspace .settings-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}
.settings-workspace .settings-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.settings-workspace .settings-nav a.is-active {
  background: var(--primary-soft);
  color: var(--ink);
  font-weight: 710;
}
.settings-workspace .settings-nav a.is-active::before { background: var(--primary); }
.settings-workspace .settings-nav a.is-active .ui-icon { color: var(--primary); }
.settings-workspace .settings-nav .ui-icon { color: var(--muted); }
.settings-workspace .settings-content { gap: 20px; min-width: 0; }
.settings-section-anchor { scroll-margin-top: 92px; }
.settings-workspace .settings-form-panel {
  overflow: hidden;
  border-radius: 14px;
}
.settings-workspace .settings-form-panel .form-panel-head {
  padding: 21px 24px 18px;
  border-bottom-color: var(--border);
}
.settings-workspace .settings-form-panel .form-panel-body { padding: 22px 24px 24px; }
.settings-workspace .form-panel-kicker { color: var(--primary); }
.settings-section-intro {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 720px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.settings-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-strong);
  font-size: 10.5px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.settings-section-intro p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.settings-form-grid-narrow { max-width: 780px; }
.settings-form-grid-compact { max-width: 760px; }
.settings-subsection + .settings-subsection {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.settings-subsection-head { max-width: 680px; margin-bottom: 16px; }
.settings-subsection-head h3 { margin: 0; color: var(--ink); font-size: 14px; letter-spacing: -.01em; }
.settings-subsection-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* Compact weekly hours editor. */
.settings-workspace .hours-editor {
  max-width: 880px;
  border-radius: 10px;
  background: var(--surface);
}
.settings-workspace .hours-row {
  min-height: 70px;
  grid-template-columns: 112px minmax(250px, 1fr) 190px;
  gap: 16px;
  padding: 9px 12px;
  transition: background-color 150ms ease-out;
}
.settings-workspace .hours-row.is-closed { background: var(--surface-soft); }
.settings-workspace .hours-row.is-closed .hours-time { opacity: .58; }
.settings-workspace .hours-day strong { font-size: 13px; }
.settings-workspace .hours-day span { font-size: 11px; }
.settings-workspace .hours-row.is-closed .hours-day span { color: var(--danger); }
.settings-workspace .hours-time .input { min-height: 38px; }
.settings-workspace .hours-closed .form-toggle-control {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
}
.settings-workspace .hours-closed .form-toggle-control:hover { background: var(--surface-soft); }

.settings-feature-toggle {
  max-width: 760px;
  margin-bottom: 20px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
}
.settings-payment-fields { margin-top: 0; }

/* Safe payment-testing status: communicates environment without exposing secrets. */
.sandbox-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  max-width: 760px;
  padding: 16px;
  border: 1px solid #eadfcf;
  border-radius: 12px;
  background: #fffaf4;
}
.sandbox-panel-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e9d5bc;
  border-radius: 10px;
  background: #fff;
  color: var(--warning);
}
.sandbox-panel-copy .eyebrow { color: var(--warning); }
.sandbox-panel-copy h3 { margin: 3px 0 0; color: var(--ink); font-size: 15px; }
.sandbox-panel-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sandbox-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #e4c99f;
  border-radius: 999px;
  background: #fff;
  color: var(--warning);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}
.system-status-list {
  max-width: 760px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.system-status-row {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.system-status-row strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 680;
  text-align: right;
}
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.settings-security-note {
  max-width: 760px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 13px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink-secondary);
}
.settings-security-note > .ui-icon { flex: 0 0 auto; margin-top: 1px; color: var(--muted); }
.settings-security-note div { display: grid; gap: 2px; }
.settings-security-note strong { color: var(--ink); font-size: 11.5px; }
.settings-security-note span { color: var(--muted); font-size: 11.5px; line-height: 1.5; }

.settings-form-actions { margin-left: calc(var(--settings-nav-width) + 28px); }
.settings-form-actions .form-action-copy { display: flex; align-items: center; gap: 12px; }
.settings-dirty-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 680;
  white-space: nowrap;
}
.settings-dirty-state.is-dirty { background: var(--warning-soft); color: var(--warning); }

/* Owner read-only mode stays fully legible instead of looking broken. */
.settings-form fieldset.is-readonly:disabled .form-panel { opacity: 1; }
.settings-form fieldset.is-readonly:disabled .input,
.settings-form fieldset.is-readonly:disabled .textarea,
.settings-form fieldset.is-readonly:disabled select,
.settings-form fieldset.is-readonly:disabled input {
  opacity: 1;
  color: var(--ink-secondary);
  -webkit-text-fill-color: var(--ink-secondary);
}
.settings-form fieldset.is-readonly:disabled .input,
.settings-form fieldset.is-readonly:disabled .textarea,
.settings-form fieldset.is-readonly:disabled select {
  border-color: var(--border);
  background: var(--surface-soft);
}
.settings-form fieldset.is-readonly:disabled .form-toggle-control {
  opacity: 1;
  background: var(--surface-soft);
}
.settings-form fieldset.is-readonly:disabled .form-toggle-control strong { color: var(--ink-secondary); }
.settings-form fieldset.is-readonly:disabled .settings-nav a { pointer-events: auto; }

@media (max-width: 1100px) {
  .settings-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-overview-item:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .settings-overview-item:nth-child(4) { border-top: 1px solid var(--border); }
  .settings-workspace .settings-form .settings-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .settings-form-actions { margin-left: 210px; }
  .settings-workspace .hours-row { grid-template-columns: 94px minmax(230px, 1fr) 170px; gap: 10px; }
}

@media (max-width: 960px) {
  .settings-workspace .settings-form .settings-layout { grid-template-columns: 1fr; gap: 18px; }
  .settings-workspace .settings-nav {
    position: sticky;
    top: 64px;
    z-index: 18;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding: 6px;
    box-shadow: 0 8px 22px rgba(30,27,22,.06);
  }
  .settings-workspace .settings-nav::-webkit-scrollbar { display: none; }
  .settings-workspace .settings-nav-label { display: none; }
  .settings-workspace .settings-nav a { flex: 0 0 auto; min-height: 40px; white-space: nowrap; }
  .settings-form-actions { margin-left: 0; }
  .settings-workspace .hours-row { grid-template-columns: 100px minmax(250px, 1fr) 175px; }
}

@media (max-width: 760px) {
  .settings-page-header { align-items: flex-start; }
  .settings-header-state { width: 100%; }
  .settings-overview { margin-bottom: 18px; }
  .settings-overview-item { padding: 12px 13px; }
  .settings-overview-item:first-child,
  .settings-overview-item:nth-child(3) { padding-left: 0; }
  .settings-workspace .settings-form-panel .form-panel-head,
  .settings-workspace .settings-form-panel .form-panel-body { padding-inline: 17px; }
  .settings-section-intro { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; margin-bottom: 18px; padding-bottom: 15px; }
  .settings-section-number { width: 28px; height: 24px; }
  .settings-workspace .hours-editor { gap: 9px; }
  .settings-workspace .hours-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }
  .settings-workspace .hours-day { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
  .settings-workspace .hours-time { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .sandbox-panel { grid-template-columns: auto minmax(0, 1fr); }
  .sandbox-mode-badge { grid-column: 2; justify-self: start; }
  .system-status-row { grid-template-columns: 1fr; gap: 4px; }
  .system-status-row strong { text-align: left; }
}

@media (max-width: 480px) {
  .settings-overview { grid-template-columns: 1fr 1fr; }
  .settings-overview-item { padding: 11px 10px; }
  .settings-overview-item:nth-child(odd) { padding-left: 0; }
  .settings-overview-item:nth-child(3) { border-top: 1px solid var(--border); }
  .settings-workspace .settings-nav { top: 58px; margin-inline: -2px; }
  .settings-workspace .settings-nav a { min-height: 42px; padding-inline: 10px; font-size: 12px; }
  .settings-workspace .hours-time { grid-template-columns: 1fr; }
  .settings-workspace .hours-separator { display: none; }
  .sandbox-panel { grid-template-columns: 1fr; }
  .sandbox-panel-mark { width: 38px; height: 38px; }
  .sandbox-mode-badge { grid-column: auto; justify-self: start; }
  .settings-form-actions .form-action-copy { align-items: flex-start; flex-direction: column; }
  .settings-dirty-state { width: max-content; }
}

@media (prefers-reduced-motion: reduce) {
  .settings-workspace .settings-nav a,
  .settings-workspace .hours-row { transition: none; }
}

/* ======================================================================
   Tiger Studio State System — consistent empty/loading/error/feedback UI
   ====================================================================== */

/* Empty state */
.state-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 36px 22px;
  text-align: center;
  color: var(--muted);
}
.state-empty.is-compact { min-height: 132px; padding: 24px 18px; }
.state-empty-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink-secondary);
}
.state-empty-copy { display: grid; gap: 5px; justify-items: center; }
.state-empty-copy strong { color: var(--ink); font-size: 14px; font-weight: 720; letter-spacing: -.01em; }
.state-empty-copy p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.state-empty-action { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.table-empty-cell .state-empty { min-height: 150px; }

/* Skeletons use stable dimensions to avoid layout shift. */
.state-skeleton { width: 100%; }
.skeleton-block {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #EAE7E1;
}
.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
  animation: tiger-skeleton-shimmer 1.15s ease-in-out infinite;
}
.state-skeleton-line { display: grid; gap: 10px; }
.skeleton-line { width: 100%; height: 13px; }
.skeleton-line.is-short { width: 62%; }
.state-skeleton-card { display: grid; gap: 10px; }
.skeleton-media { aspect-ratio: 16 / 9; border-radius: 11px; }
.skeleton-title { width: 54%; height: 18px; }
.state-skeleton-table-row { display: grid; grid-template-columns: 1.2fr 1fr .9fr .8fr .7fr; gap: 16px; align-items: center; min-height: 52px; }
.skeleton-cell { height: 12px; }
.skeleton-cell.is-primary { height: 15px; }
.state-skeleton-slots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.skeleton-slot { min-height: 61px; border-radius: 9px; }
@keyframes tiger-skeleton-shimmer { to { transform: translateX(100%); } }

/* Inline field error */
.inline-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 570;
}
.inline-error-icon { flex: 0 0 auto; margin-top: 1px; }
.field-error { display: none; } /* legacy fallback: standardized component replaces old field-error blocks */

/* Validation summary — prominent enough to recover, quiet enough not to compete with form content. */
.validation-summary {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 30px;
  gap: 11px;
  align-items: start;
  margin-bottom: 18px;
  padding: 14px 14px 14px 13px;
  border: 1px solid #E8C1C1;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  outline: none;
}
.validation-summary:focus-visible { box-shadow: 0 0 0 3px rgba(173,65,65,.12); }
.validation-summary-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.validation-summary-copy { min-width: 0; }
.validation-summary-copy strong { display: block; color: #792F2F; font-size: 13px; }
.validation-summary-copy p { margin: 3px 0 0; color: #8A4545; font-size: 12px; line-height: 1.45; }
.validation-summary .error-list { margin: 8px 0 0; padding-left: 18px; color: #7F3939; font-size: 11.5px; line-height: 1.5; }
.validation-summary-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8A4545;
}
.validation-summary-close:hover { background: rgba(255,255,255,.6); color: #642626; }

/* Toasts */
.toast-region {
  top: max(78px, calc(env(safe-area-inset-top) + 68px));
  right: max(18px, env(safe-area-inset-right));
  width: min(390px, calc(100vw - 28px));
  gap: 8px;
}
.toast {
  grid-template-columns: 30px minmax(0,1fr) 30px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 12px 34px rgba(30,27,22,.12);
}
.toast-icon { width: 30px; height: 30px; border-radius: 8px; }
.toast-copy { gap: 2px; align-self: center; }
.toast-copy strong { color: var(--ink); font-size: 12.5px; line-height: 1.35; }
.toast-copy span { color: var(--ink-secondary); font-size: 12px; line-height: 1.48; }
.toast-warning .toast-icon { color: var(--warning); background: var(--warning-soft); }
.toast-close { width: 30px; height: 30px; border-radius: 8px; }
.toast-close:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* Confirmation dialog */
.confirm-dialog { width: min(460px, calc(100vw - 28px)); border-radius: 16px; }
.confirm-dialog::backdrop { background: rgba(26,25,23,.58); backdrop-filter: blur(3px); }
.confirm-dialog-card {
  grid-template-columns: 40px minmax(0,1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-dialog);
}
.confirm-dialog-icon { width: 40px; height: 40px; border-radius: 10px; }
.confirm-dialog-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--danger);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.confirm-dialog-copy h2 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.confirm-dialog-copy p { margin: 7px 0 0; color: var(--ink-secondary); font-size: 12.5px; line-height: 1.6; }
.confirm-dialog-actions { margin-top: 8px; }

/* Status badge: icon + label so meaning is never color-only. */
.status-badge { gap: 4px; min-height: 24px; line-height: 1; }
.status-badge-icon { display: inline-grid; place-items: center; flex: 0 0 auto; }
.status-badge .ui-icon { display: block; }

/* Page errors */
.error-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 32px 20px;
  background: var(--canvas);
}
.error-page-brand { width: min(560px, 100%); }
.page-error-state {
  width: min(560px,100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.page-error-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--brand-600);
}
.page-error-code {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}
.page-error-state h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 4vw, 34px); line-height: 1.12; letter-spacing: -.04em; }
.page-error-state > p { max-width: 470px; margin: 12px 0 0; color: var(--ink-secondary); font-size: 13.5px; line-height: 1.7; }
.page-error-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

/* AJAX availability state follows the same visual language. */
.room-market-slot-grid[aria-busy="true"] { min-height: 132px; }
.slot-empty.error {
  min-height: 132px;
  padding: 22px;
  border: 1px solid #E8C1C1;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
}
.slot-empty.error strong { font-size: 13px; }
.slot-empty.error span { max-width: 420px; line-height: 1.5; }
.slot-empty.error .btn { margin-top: 4px; }

@media (max-width: 640px) {
  .state-empty { min-height: 155px; padding: 28px 16px; }
  .state-skeleton-table-row { grid-template-columns: 1fr; gap: 8px; padding-block: 8px; }
  .state-skeleton-slots { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .validation-summary { grid-template-columns: 30px minmax(0,1fr) 30px; padding: 12px; }
  .toast-region { top: max(68px, calc(env(safe-area-inset-top) + 60px)); right: 10px; width: calc(100vw - 20px); }
  .confirm-dialog-card { padding: 18px; }
  .confirm-dialog-actions { grid-template-columns: 1fr; }
  .confirm-dialog-actions .btn { width: 100%; }
  .page-error-state { padding: 24px 20px; }
  .page-error-actions { display: grid; grid-template-columns: 1fr; }
  .page-error-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block::after { animation: none; background: rgba(255,255,255,.18); transform: none; }
  .toast, .toast.is-leaving, .confirm-dialog[open] { animation: none !important; transition: none !important; }
}
.room-market-slot-grid > .state-skeleton-slots { grid-column: 1 / -1; width: 100%; }
.confirm-dialog[data-confirm-variant="primary"] .confirm-dialog-icon { color: var(--brand-600); background: var(--brand-50); }
.confirm-dialog[data-confirm-variant="primary"] .confirm-dialog-eyebrow { color: var(--brand-600); }

/* ========================================================================== 
   Final visual-polish audit
   Calm, precise, premium. This layer resolves cross-screen inconsistencies
   without changing behavior, routes, or component semantics.
   ========================================================================== */
:root {
  --primary-action: #B45325;
  --primary-action-hover: #963F1D;
  --rule-soft: #ECE9E3;
  --surface-tint: #FAF9F6;
  --text-micro: 10.5px;
  --text-small: 12px;
  --control-height: 44px;
}

/* Readability and contrast: orange remains an accent; dark orange carries text/actions. */
.page-kicker,
.card-kicker,
.eyebrow,
.venue-kicker,
.ops-eyebrow,
.record-section-kicker,
.form-panel-kicker,
.settings-section-number,
.room-market-section-index { color: var(--primary-strong); }

.nav-label { color: #918B81; }
.sidebar-footer small { color: #918B81; }
.sidebar-identity small { color: #918B81; }

.btn { min-height: 42px; }
.btn-primary { background: var(--primary-action); border-color: var(--primary-action); }
.btn-primary:hover { background: var(--primary-action-hover); border-color: var(--primary-action-hover); }
.btn-sm { min-height: 36px; }
.btn-lg { min-height: 46px; }
.input, .select, .textarea { min-height: var(--control-height); }
.textarea { min-height: 108px; }

/* Keep shape language disciplined: controls 8, cards 12, large panels 16. */
.card,
.data-table-shell,
.customer-history-section,
.customer-next-booking,
.customer-payment-summary-panel,
.customer-profile-form,
.customer-payment-stage,
.customer-empty-section,
.customer-booking-row { border-radius: var(--radius-card); }
.auth-simple-card,
.page-error-state,
.confirm-dialog-card,
.resource-week-shell { border-radius: var(--radius-panel); }
.btn,
.input,
.select,
.textarea,
.icon-button,
.table-search,
.filter-toggle,
.row-menu-trigger { border-radius: var(--radius-control); }

/* Content rhythm: headings should never feel stranded from their content. */
.page-header { margin-bottom: 24px; }
.page-header > div:first-child { min-width: 0; }
.page-header p { max-width: 690px; }
.page-header h1 { text-wrap: balance; }
.card-header { gap: 16px; }
.card-header > div:first-child { min-width: 0; }
.card-title { line-height: 1.3; }

/* Borders are structural, not decorative. */
.card { border-color: var(--rule-soft); }
.card + .card { box-shadow: none; }
.summary-box { border-color: var(--rule-soft); }
.detail-stack > div,
.payment-history-row,
.record-summary-item,
.record-context-item { border-color: var(--rule-soft); }

/* Table density and hierarchy. */
.data-table-shell { border-color: var(--rule-soft); }
.data-table thead th,
table thead th { font-size: 11px; line-height: 1.35; }
.data-table tbody td { min-height: 50px; font-size: 12.5px; line-height: 1.45; }
.data-table tbody tr:hover { background: #FBFAF7; }
.table-secondary { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.table-primary-link { font-weight: 720; }
.table-money,
.text-right.tabular,
.tabular { font-variant-numeric: tabular-nums; }
.status-badge { min-height: 26px; padding: 4px 8px; font-size: 11px; }
.status-badge .ui-icon { width: 12px; height: 12px; }

/* Microcopy: no operational information below a comfortable reading size. */
.chart-label,
.ops-chart-label,
.ops-revenue-summary small,
.ops-utilization-meta,
.ops-timeline-time span,
.ops-transaction-date,
.availability-steps li,
.slot-legend,
.selected-schedule-note,
.record-activity-copy small,
.record-attempt-row > div:first-child span,
.room-upcoming-time span,
.transaction-amount-hero dt,
.schedule-overview-item > small,
.schedule-legend-title,
.resource-corner-cell small,
.resource-day-head > div > span,
.resource-day-head > div > small,
.resource-day-count,
.resource-room-cell small,
.resource-cell-empty,
.schedule-resource-kind,
.schedule-resource-item-head time,
.schedule-resource-meta,
.schedule-day-tab span,
.schedule-day-tab small,
.schedule-mobile-day-head span:not(.resource-today-chip),
.schedule-mobile-room > header > span:last-child,
.schedule-mobile-time span,
.schedule-mobile-kind,
.schedule-mobile-copy > small,
.schedule-mobile-empty,
.schedule-block-form-actions > span { font-size: var(--text-micro); }

.room-upcoming-date span,
.resource-today-chip { font-size: 10px; }
.room-market-slot-grid .slot-button small { font-size: 10px; }

/* Primary text links use the accessible brand tone. */
.text-link,
.btn-link,
.table-primary-link,
.back-link { color: var(--primary-strong); }

/* Dashboard: preserve hierarchy without making every metric a box. */
.ops-secondary-strip { border-color: var(--rule-soft); }
.ops-panel { border-color: var(--rule-soft); }
.ops-revenue-chart { border-color: var(--rule-soft); }
.ops-chart-bar { background: var(--primary-action); }

/* Public/customer shells share a quieter, more intentional width system. */
.public-container { width: min(100% - 40px, 1320px); }
.customer-main { width: min(100%, 1380px); margin-inline: auto; padding-inline: clamp(16px, 2.2vw, 32px); }
.customer-page.narrow { max-width: 820px; }
.public-footer { border-top-color: var(--rule-soft); }

/* Customer account: remove dashboard-card repetition and prioritize the next action. */
.customer-overview-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-bottom: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.customer-overview-strip > div {
  min-height: 88px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-left: 1px solid var(--rule-soft);
}
.customer-overview-strip > div:first-child { border-left: 0; }
.customer-overview-strip span { color: var(--muted); font-size: 11px; font-weight: 650; }
.customer-overview-strip strong { color: var(--ink); font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.customer-overview-strip .status-badge { width: fit-content; }

.customer-next-booking {
  padding: clamp(22px,3vw,34px);
  border: 1px solid var(--rule-soft);
  background: var(--surface);
}
.customer-next-booking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.customer-next-booking-head h2 { margin: 5px 0 0; font-size: clamp(22px,2.4vw,30px); line-height: 1.14; letter-spacing: -.035em; }
.customer-next-booking-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.customer-next-booking-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-top: 26px; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.customer-next-booking-grid > div { padding: 15px 16px; border-left: 1px solid var(--rule-soft); }
.customer-next-booking-grid > div:first-child { padding-left: 0; border-left: 0; }
.customer-next-booking-grid span { display: block; color: var(--muted); font-size: 10.5px; }
.customer-next-booking-grid strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }
.customer-next-booking-link { margin-top: 20px; }
.customer-empty-section { border: 1px solid var(--rule-soft); background: var(--surface); }

/* Customer booking list: rows, not a wall of cards. */
.customer-booking-list { gap: 0; border-top: 1px solid var(--border); }
.customer-booking-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.customer-booking-row-main { min-width: 0; display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.15fr); gap: 28px; }
.customer-booking-row-main:hover h2 { color: var(--primary-strong); }
.customer-booking-row-identity { min-width: 0; }
.customer-booking-row-identity > span { color: var(--muted); font-size: 10.5px; }
.customer-booking-row-identity h2 { margin: 5px 0 2px; color: var(--ink); font-size: 17px; line-height: 1.25; transition: color var(--motion-fast); }
.customer-booking-row-identity p { margin: 0; color: var(--muted); font-size: 12px; }
.customer-booking-row-meta { display: grid; grid-template-columns: 1.15fr .8fr 1fr; align-content: center; gap: 16px; }
.customer-booking-row-meta span { display: block; color: var(--muted); font-size: 10.5px; }
.customer-booking-row-meta strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12.5px; }
.customer-booking-row-end { min-width: 164px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; }
.customer-booking-row-status,
.customer-booking-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }

/* Customer booking detail: operational summary rather than a raw definition list. */
.customer-booking-summary {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.customer-booking-summary > div { padding: 16px 18px; border-left: 1px solid var(--rule-soft); }
.customer-booking-summary > div:first-child { padding-left: 0; border-left: 0; }
.customer-booking-summary span { display: block; color: var(--muted); font-size: 10.5px; }
.customer-booking-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; }
.customer-booking-summary strong small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 560; }
.customer-booking-detail-grid { grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); gap: 34px; align-items: start; }
.customer-booking-main { min-width: 0; display: grid; gap: 30px; }
.customer-detail-section { padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.customer-detail-section:last-child { border-bottom: 0; }
.customer-detail-section-head { margin-bottom: 18px; }
.customer-detail-section-head h2 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.02em; }
.customer-detail-list { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 28px; }
.customer-detail-list > div { min-width: 0; }
.customer-detail-list-wide { grid-column: 1 / -1; }
.customer-detail-list dt { color: var(--muted); font-size: 10.5px; }
.customer-detail-list dd { margin: 5px 0 0; color: var(--ink); font-size: 13px; line-height: 1.55; font-weight: 620; overflow-wrap: anywhere; }
.customer-booking-sidebar { min-width: 0; }
.customer-payment-summary-panel { position: sticky; top: 94px; padding: 22px; border: 1px solid var(--rule-soft); background: var(--surface); }
.customer-outstanding { margin: 12px 0 18px; padding: 14px 0 17px; border-bottom: 1px solid var(--rule-soft); }
.customer-outstanding span { display: block; color: var(--muted); font-size: 10.5px; }
.customer-outstanding strong { display: block; margin-top: 3px; color: var(--ink); font-size: 26px; line-height: 1.1; letter-spacing: -.04em; }
.customer-outstanding.has-balance strong { color: var(--warning); }
.customer-payment-summary-panel .summary-box { margin-bottom: 16px; }
.customer-payment-complete { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 12px; border-radius: var(--radius-control); color: var(--success); background: var(--success-soft); font-size: 12px; font-weight: 650; }
.customer-booking-actions { margin-top: 34px; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--border); }
.customer-booking-actions h2 { margin: 4px 0 5px; font-size: 18px; }
.customer-booking-actions p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.customer-booking-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Customer payments: calmer sections and no technical dashboard language. */
.customer-payment-history-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 38px; align-items: start; }
.customer-history-section { overflow: hidden; border: 1px solid var(--rule-soft); background: var(--surface); }
.customer-history-head { min-height: 72px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule-soft); }
.customer-history-head h2 { margin: 3px 0 0; font-size: 16px; letter-spacing: -.015em; }
.customer-history-count { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-secondary); background: var(--surface-soft); font-size: 11px; font-weight: 700; }
.customer-history-list { padding: 0 18px; }
.customer-history-row { min-height: 64px; padding: 13px 0; }
.customer-history-row > div { min-width: 0; }
.customer-history-row > div > strong { font-size: 13.5px; }
.customer-history-row small { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.45; overflow-wrap: anywhere; }

.customer-payment-stage { padding: clamp(26px,4vw,42px); border: 1px solid var(--rule-soft); background: var(--surface); text-align: center; }
.customer-payment-stage > h2 { margin: 10px auto 0; max-width: 560px; font-size: clamp(23px,3vw,31px); line-height: 1.2; letter-spacing: -.035em; }
.customer-payment-stage > p { max-width: 560px; margin: 12px auto 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.customer-payment-stage > .btn { margin: 4px 4px; }
.customer-payment-stage-icon { width: 46px; height: 46px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 12px; color: var(--primary-strong); background: var(--primary-soft); }
.customer-payment-alert { max-width: 620px; margin: 20px auto; text-align: left; }
.customer-payment-stage-left { text-align: left; }
.customer-payment-stage-left > p { margin-inline: 0; }
.customer-payment-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.customer-payment-stage-head h2 { margin: 7px 0 0; font-size: 22px; }
.customer-payment-stage-head > .ui-icon { color: var(--primary-strong); }
.customer-payment-summary { margin: 24px 0; }
.customer-payment-outcomes { padding-top: 22px; border-top: 1px solid var(--rule-soft); }
.customer-payment-outcomes h3 { margin: 0; font-size: 16px; }
.customer-payment-outcomes p { margin: 5px 0 15px; color: var(--muted); font-size: 12px; }
.customer-testing-note { display: flex; align-items: flex-start; gap: 7px; margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.customer-testing-note .ui-icon { margin-top: 1px; color: var(--warning); }
.sandbox-mark { color: #7B5319; background: #FBF2DF; border-color: #E6D3AA; font-size: 10px; }

/* Customer profile: same field language as management, without a heavy card wrapper. */
.customer-profile-form { overflow: hidden; border: 1px solid var(--rule-soft); background: var(--surface); }
.customer-profile-section { padding: 24px; }
.customer-profile-section + .customer-profile-section { border-top: 1px solid var(--rule-soft); }
.customer-profile-section-head { max-width: 650px; margin-bottom: 20px; }
.customer-profile-section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.018em; }
.customer-profile-section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.customer-profile-actions { min-height: 70px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--rule-soft); background: var(--surface-tint); }
.customer-profile-actions > span { color: var(--muted); font-size: 11px; }

/* Auth: editorial split without decorative feature-list tropes. */
.auth-visual::before { width: 210px; height: 210px; right: -72px; border-color: rgba(201,99,45,.22); }
.auth-visual::after { opacity: .7; }
.auth-story > p { max-width: 500px; }

/* Management room cards: keep resource imagery, remove CRUD-button emphasis. */
.room-grid .room-card { border-color: var(--rule-soft); }
.room-grid .room-card .row-actions { padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.room-grid .room-card .row-actions .btn-primary { background: transparent; border-color: transparent; color: var(--primary-strong); }
.room-grid .room-card .row-actions .btn-primary:hover { background: var(--primary-soft); }

/* Schedule legibility: compact, never tiny. */
.schedule-resource-item > strong { font-size: 11px; }
.schedule-resource-kind,
.schedule-resource-item-head time,
.schedule-resource-meta { font-size: 10px; }
.schedule-block-delete button,
.schedule-mobile-delete { min-height: 30px; font-size: 10px; }
.schedule-day-tab { min-height: 66px; }
.schedule-day-tab span { font-size: 10px; }
.schedule-day-tab small { font-size: 9.5px; }
.schedule-mobile-time strong { font-size: 11px; }
.schedule-mobile-time span { font-size: 10px; }
.schedule-mobile-kind { font-size: 9.5px; }
.schedule-mobile-copy > small { font-size: 10.5px; }

/* Settings: reduce box-within-box feel while preserving section navigation. */
.settings-workspace .settings-section-anchor { border-color: var(--rule-soft); }
.settings-workspace .settings-form-panel { border-color: var(--rule-soft); box-shadow: none; }
.settings-workspace .settings-overview { border-color: var(--rule-soft); }
.settings-workspace .settings-nav { border-color: var(--rule-soft); }
.settings-owner-notice { border-color: #E2D7C3; }

/* Toast/dialog states retain focus/accessibility, with tighter visual weight. */
.toast { border-color: var(--rule-soft); }
.confirm-dialog-card { border-color: var(--rule-soft); }

@media (max-width: 1100px) {
  .customer-payment-history-grid { grid-template-columns: 1fr; gap: 24px; }
  .customer-booking-row-main { grid-template-columns: minmax(190px,.8fr) minmax(0,1.2fr); gap: 20px; }
}

@media (max-width: 900px) {
  .customer-overview-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-overview-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .customer-overview-strip > div:nth-child(4) { border-top: 1px solid var(--rule-soft); }
  .customer-next-booking-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-next-booking-grid > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .customer-next-booking-grid > div:nth-child(4) { border-top: 1px solid var(--rule-soft); }
  .customer-booking-row { grid-template-columns: 1fr; gap: 15px; }
  .customer-booking-row-end { min-width: 0; flex-direction: row; align-items: center; }
  .customer-booking-row-status,
  .customer-booking-row-actions { justify-content: flex-start; }
  .customer-booking-detail-grid { grid-template-columns: 1fr; }
  .customer-payment-summary-panel { position: static; }
  .customer-booking-actions { align-items: flex-start; flex-direction: column; }
  .customer-booking-action-buttons { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .public-container { width: min(100% - 32px, 1320px); }
  .customer-main { padding-inline: 16px; }
  .page-header { align-items: flex-start; }
  .page-actions { justify-content: flex-start; }
  .btn, .input, .select { min-height: 44px; }
  .icon-button { width: 44px; height: 44px; min-width: 44px; }
  .data-table tbody td { font-size: 13px; }
  .data-table-shell .data-table td::before,
  .table-responsive-cards td::before { font-size: 10.5px; }
  .customer-booking-row-main { grid-template-columns: 1fr; gap: 16px; }
  .customer-booking-row-meta { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .customer-detail-list { grid-template-columns: 1fr; gap: 15px; }
  .customer-detail-list-wide { grid-column: auto; }
  .customer-profile-section { padding: 20px; }
}

@media (max-width: 640px) {
  .page-header { margin-bottom: 20px; }
  .page-header h1 { font-size: 25px; }
  .page-header p { font-size: 13px; }
  .page-header .page-actions { width: 100%; }
  .page-header .page-actions .btn { flex: 1 1 auto; }
  .customer-overview-strip { margin-bottom: 24px; }
  .customer-overview-strip > div { min-height: 76px; padding: 14px 12px; }
  .customer-overview-strip strong { font-size: 17px; }
  .customer-next-booking { padding: 20px; }
  .customer-next-booking-head { flex-direction: column; }
  .customer-next-booking-status { justify-content: flex-start; }
  .customer-next-booking-grid { grid-template-columns: 1fr; }
  .customer-next-booking-grid > div { padding: 12px 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .customer-next-booking-grid > div:first-child { border-top: 0; }
  .customer-booking-row { padding: 18px 0; }
  .customer-booking-row-meta { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .customer-booking-row-meta > div:last-child { grid-column: 1 / -1; }
  .customer-booking-row-end { align-items: flex-start; flex-direction: column; gap: 12px; }
  .customer-booking-summary { grid-template-columns: 1fr 1fr; }
  .customer-booking-summary > div { padding: 13px 12px; }
  .customer-booking-summary > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .customer-booking-summary > div:nth-child(4) { border-top: 1px solid var(--rule-soft); }
  .customer-booking-actions { margin-top: 26px; padding-bottom: 8px; }
  .customer-booking-action-buttons,
  .customer-booking-action-buttons > form,
  .customer-booking-action-buttons .btn { width: 100%; }
  .customer-history-head { padding-inline: 15px; }
  .customer-history-list { padding-inline: 15px; }
  .customer-history-row { align-items: flex-start; }
  .customer-payment-stage { padding: 24px 18px; }
  .customer-payment-stage > .btn { width: 100%; margin-inline: 0; }
  .customer-payment-stage-head { align-items: center; }
  .sandbox-actions { display: grid; grid-template-columns: 1fr; }
  .sandbox-actions form,
  .sandbox-actions .btn { width: 100%; }
  .customer-profile-actions { align-items: stretch; flex-direction: column; }
  .customer-profile-actions .btn { width: 100%; }
  .schedule-overview-item > span,
  .schedule-overview-item > small,
  .schedule-legend-title,
  .schedule-legend-item { font-size: 10.5px; }
}

@media (max-width: 420px) {
  .public-container { width: min(100% - 24px, 1320px); }
  .customer-main { padding-inline: 12px; }
  .customer-booking-summary { grid-template-columns: 1fr; }
  .customer-booking-summary > div { padding: 12px 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .customer-booking-summary > div:first-child { border-top: 0; }
  .customer-booking-row-meta { grid-template-columns: 1fr; }
  .customer-booking-row-meta > div:last-child { grid-column: auto; }
  .customer-overview-strip > div { padding-inline: 10px; }
  .customer-overview-strip span { font-size: 10px; }
}

/* Customer payment choice: one decision area, one supporting summary. */
.customer-payment-choice-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(250px,.8fr); gap: 30px; align-items: start; }
.customer-payment-choice-main { min-width: 0; }
.customer-payment-choice-main > h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.customer-payment-choice-main > p { margin: 7px 0 20px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.customer-payment-options { display: grid; gap: 9px; margin-bottom: 16px; }
.customer-payment-choice-summary { padding: 20px; border: 1px solid var(--rule-soft); border-radius: var(--radius-card); background: var(--surface); }
.customer-payment-choice-summary .summary-box { margin-top: 10px; }
@media (max-width: 760px) {
  .customer-payment-choice-layout { grid-template-columns: 1fr; gap: 20px; }
  .customer-payment-choice-summary { order: -1; }
}

/* Accessible orange-on-white action contrast for selected/active controls. */
.page-link.active,
.slot-button.selected,
.room-market-slot-grid .slot-button.selected,
.availability-steps li.is-current span { background: var(--primary-action); border-color: var(--primary-action); color: #FFF; }
.room-market-slot-grid .slot-button.selected > span,
.room-market-slot-grid .slot-button.selected small { color: #FFF7F1; }

/* Final micro-type normalization for shell and record pages. */
.sidebar .tiger-brand-copy small,
.nav-label,
.sidebar-identity small,
.topbar-context,
.user-role,
.record-section-kicker { font-size: 10.5px; }
