:root {
  --background: #fff8f2;
  --surface: #fff8f2;
  --surface-lowest: #ffffff;
  --surface-low: #fff2dc;
  --surface-container: #ffecc7;
  --surface-muted: #f8fafc;
  --surface-panel: #ffffff;
  --surface-panel-soft: rgba(248, 250, 252, 0.52);
  --primary: #004a7a;
  --primary-container: #286294;
  --primary-soft: rgba(40, 98, 148, 0.1);
  --primary-faint: rgba(40, 98, 148, 0.05);
  --primary-fixed: #d0e4ff;
  --secondary: #755a18;
  --secondary-container: #fed889;
  --tertiary: #5b4300;
  --on-surface: #251a00;
  --on-surface-variant: #41474f;
  --outline: #727780;
  --outline-variant: #c1c7d0;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --success-bg: #f0fdf4;
  --success-text: #15803d;
  --shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-deep: 0 25px 50px rgba(15, 23, 42, 0.28);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --body-font: "Inter", Arial, sans-serif;
  --display-font: "Noto Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24;
  line-height: 1;
  vertical-align: middle;
}

.is-hidden {
  display: none !important;
}

/* Login */
.login-page {
  color: var(--on-surface);
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
  width: 100%;
}

.login-background,
.login-background img,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.login-background img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(37, 26, 0, 0.4), rgba(37, 26, 0, 0.7));
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  max-width: 448px;
  padding: 32px;
  position: relative;
  width: 100%;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.login-tabs {
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  margin-bottom: 32px;
}

.login-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  padding: 12px 8px;
  transition: color 160ms ease, border-color 160ms ease;
}

.login-tab:hover,
.login-tab.active {
  color: var(--primary);
}

.login-tab.active {
  border-bottom-color: var(--primary);
}

.login-brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  text-align: center;
}

.brand-icon {
  color: var(--primary);
  font-size: 40px;
  margin-bottom: 8px;
}

.login-brand h1 {
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
}

.brand-rule {
  background: var(--secondary);
  height: 1px;
  margin: 0 0 16px;
  opacity: 0.3;
  width: 48px;
}

.brand-kicker {
  color: var(--on-surface);
  font-family: var(--display-font);
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.brand-copy {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 280px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label,
.booking-form label,
.import-panel label {
  color: var(--on-surface-variant);
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.input-shell {
  position: relative;
}

.input-icon {
  color: var(--outline);
  font-size: 18px;
  left: 12px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.input-shell input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--outline-variant);
  color: var(--on-surface);
  height: 44px;
  outline: none;
  padding: 8px 0 8px 44px;
  transition: border-color 160ms ease;
  width: 100%;
}

.password-input-shell input {
  padding-right: 44px;
}

.password-visibility-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--outline);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: color 160ms ease;
  width: 36px;
}

.password-visibility-toggle:hover,
.password-visibility-toggle[aria-pressed="true"] {
  color: var(--primary);
}

.password-visibility-toggle .material-symbols-outlined {
  font-size: 20px;
}

.input-shell input::placeholder {
  color: var(--outline-variant);
}

.input-shell input:focus {
  border-bottom-color: var(--primary);
}

.primary-action {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: var(--radius-lg);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-top: 16px;
  padding: 16px 32px;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 100%;
}

.primary-action:hover {
  opacity: 0.9;
}

.primary-action:active {
  transform: scale(0.98);
}

.primary-action .material-symbols-outlined {
  font-size: 18px;
  transition: transform 160ms ease;
}

.primary-action:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.notice {
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 12px;
}

.notice-info {
  background: rgba(208, 228, 255, 0.5);
  border: 1px solid var(--primary-fixed);
  color: #001d34;
}

.notice-error {
  background: var(--error-container);
  border: 1px solid var(--error-container);
  color: var(--on-error-container);
}

.notice-success {
  background: var(--success-bg);
  border: 1px solid #dcfce7;
  color: #166534;
  font-weight: 500;
}

.demo-logins {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

.demo-logins p {
  color: var(--on-surface-variant);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.demo-row {
  color: var(--on-surface-variant);
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: 7rem 1fr;
  line-height: 1.35;
  margin-top: 8px;
}

.demo-row span {
  color: var(--on-surface);
  font-weight: 600;
}

.demo-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  text-align: right;
}

.staff-help {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.staff-help a {
  color: var(--on-surface-variant);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.staff-help a:hover {
  color: var(--primary);
}

.guest-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.booking-help {
  border-bottom: 1px solid transparent;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 160ms ease, border-color 160ms ease;
}

.booking-help:hover {
  border-bottom-color: var(--secondary);
  color: var(--tertiary);
}

.support-links {
  align-items: center;
  color: var(--on-surface-variant);
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.support-links span {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 600;
  gap: 4px;
  letter-spacing: 0.05em;
}

.support-links .material-symbols-outlined {
  font-size: 14px;
}

.support-links i {
  background: var(--outline-variant);
  border-radius: 999px;
  display: block;
  height: 4px;
  width: 4px;
}

.login-caption {
  bottom: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--display-font);
  font-size: 14px;
  left: 32px;
  letter-spacing: 0.16em;
  margin: 0;
  position: absolute;
  text-transform: uppercase;
  z-index: 1;
}

/* Staff shell */
.staff-page {
  background: var(--background);
  color: var(--on-surface);
}

.staff-sidebar {
  background: #f8fafc;
  border-right: 1px solid rgba(40, 98, 148, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  left: 0;
  overflow: hidden;
  padding: 40px 0;
  position: fixed;
  top: 0;
  transition: width 180ms ease, padding 180ms ease;
  width: 288px;
  z-index: 50;
}

.staff-brand {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 24px 0 32px;
}

.staff-brand-row {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.staff-brand-mark {
  align-items: center;
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  color: var(--primary-container);
  display: none;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.staff-brand-mark .material-symbols-outlined {
  font-size: 22px;
}

.staff-brand-copy {
  min-width: 0;
}

.staff-brand h1 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.staff-brand p,
.staff-profile span,
.metric-note,
.table-card td,
.empty-state {
  color: #64748b;
}

.staff-brand p {
  font-size: 14px;
  margin: 2px 0 0;
}

.staff-sidebar-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  margin-top: 2px;
  transition: background 160ms ease, color 160ms ease;
  width: 36px;
}

.staff-sidebar-toggle:hover {
  background: var(--primary-faint);
  color: var(--primary-container);
}

.staff-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-nav-link {
  align-items: center;
  border-left: 4px solid transparent;
  color: #64748b;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 16px;
  line-height: 1.2;
  padding: 12px 20px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.staff-nav-link .material-symbols-outlined {
  flex: 0 0 auto;
}

.staff-nav-text,
.staff-brand-copy,
.staff-profile-details {
  transition: opacity 140ms ease;
}

.staff-nav-link:hover,
.staff-nav-link.active {
  color: var(--primary-container);
}

.staff-nav-link:hover {
  background: var(--primary-faint);
}

.staff-nav-link.active {
  border-left-color: var(--primary-container);
  font-weight: 700;
  padding-left: 16px;
}

.staff-profile {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 24px 32px 0;
}

.profile-photo {
  align-items: center;
  background: var(--primary-soft);
  border-radius: 999px;
  display: flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.profile-initial {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.staff-profile p {
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.staff-profile span {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-header {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(40, 98, 148, 0.05);
  display: flex;
  height: 80px;
  justify-content: space-between;
  left: 288px;
  padding: 0 48px;
  position: fixed;
  right: 0;
  top: 0;
  transition: left 180ms ease;
  z-index: 40;
}

.staff-header h2 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 32px;
}

.header-actions.compact {
  gap: 16px;
}

.search-shell {
  position: relative;
}

.search-shell .material-symbols-outlined {
  color: #94a3b8;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.search-shell input {
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  color: var(--on-surface);
  outline: none;
  padding: 8px 16px 8px 40px;
  transition: box-shadow 160ms ease;
  width: 256px;
}

.search-shell input:focus {
  box-shadow: 0 0 0 1px rgba(40, 98, 148, 0.2);
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0;
  transition: opacity 160ms ease, color 160ms ease;
}

.icon-button:hover {
  color: var(--primary-container);
  opacity: 0.7;
}

.icon-button.active {
  color: var(--primary-container);
}

.staff-main {
  margin-left: 288px;
  min-height: 100vh;
  padding-top: 80px;
  transition: margin-left 180ms ease;
}

.staff-sidebar-state-collapsed .staff-sidebar,
.staff-page.staff-sidebar-collapsed .staff-sidebar {
  padding-top: 32px;
  width: 88px;
}

.staff-sidebar-state-collapsed .staff-brand,
.staff-page.staff-sidebar-collapsed .staff-brand {
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.staff-sidebar-state-collapsed .staff-brand-row,
.staff-page.staff-sidebar-collapsed .staff-brand-row {
  justify-content: center;
}

.staff-sidebar-state-collapsed .staff-brand-mark,
.staff-page.staff-sidebar-collapsed .staff-brand-mark {
  display: flex;
}

.staff-sidebar-state-collapsed .staff-brand-copy,
.staff-sidebar-state-collapsed .staff-nav-text,
.staff-sidebar-state-collapsed .staff-profile-details,
.staff-page.staff-sidebar-collapsed .staff-brand-copy,
.staff-page.staff-sidebar-collapsed .staff-nav-text,
.staff-page.staff-sidebar-collapsed .staff-profile-details {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.staff-sidebar-state-collapsed .staff-nav-link,
.staff-page.staff-sidebar-collapsed .staff-nav-link {
  gap: 0;
  justify-content: center;
  padding: 14px 0;
}

.staff-sidebar-state-collapsed .staff-nav-link.active,
.staff-page.staff-sidebar-collapsed .staff-nav-link.active {
  padding-left: 0;
}

.staff-sidebar-state-collapsed .staff-profile,
.staff-page.staff-sidebar-collapsed .staff-profile {
  justify-content: center;
  padding: 24px 0 0;
}

.staff-sidebar-state-collapsed .staff-header,
.staff-page.staff-sidebar-collapsed .staff-header {
  left: 88px;
}

.staff-sidebar-state-collapsed .staff-main,
.staff-page.staff-sidebar-collapsed .staff-main {
  margin-left: 88px;
}

.staff-content {
  margin: 0 auto;
  max-width: 1280px;
  padding: 48px;
}

.staff-content.narrow {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 24px;
}

.metric-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.table-card,
.status-card,
.entry-card,
.import-card {
  background: var(--surface-panel);
  border: 1px solid rgba(37, 26, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  padding: 32px;
}

.metric-card-large {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  justify-content: space-between;
}

.eyebrow {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.metric-card h4 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.metric-card:not(.metric-card-large) h4 {
  color: var(--on-surface);
  font-size: 32px;
  font-weight: 500;
}

.metric-icon {
  color: var(--primary-container);
  display: block;
  font-size: 32px;
  margin-bottom: 16px;
}

.progress-row {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.progress-track {
  background: #f1f5f9;
  border-radius: 999px;
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  background: var(--primary-container);
  height: 100%;
}

.progress-row span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.metric-note {
  align-items: center;
  display: flex;
  font-size: 12px;
  gap: 4px;
  margin: 8px 0 0;
}

.metric-note.secondary {
  color: var(--secondary);
}

.metric-note .material-symbols-outlined {
  font-size: 14px;
}

.dashboard-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  margin-top: 48px;
}

.panel-heading,
.page-heading,
.status-row,
.active-code div,
.field-card-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panel-heading {
  margin-bottom: 24px;
}

.text-link-button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(40, 98, 148, 0.3);
  color: var(--primary-container);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 0 0 2px;
  transition: border-color 160ms ease;
}

.text-link-button:hover {
  border-bottom-color: var(--primary-container);
}

.table-card {
  overflow: hidden;
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

thead tr {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
}

th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 16px 24px;
  text-transform: uppercase;
}

td {
  border-top: 1px solid #f8fafc;
  font-size: 14px;
  padding: 16px 24px;
}

tbody tr:hover {
  background: rgba(248, 250, 252, 0.5);
}

.guest-name {
  color: var(--on-surface);
  font-family: var(--display-font);
  font-weight: 600;
}

.room-cell {
  color: var(--on-surface);
  font-weight: 600;
}

.align-right {
  text-align: right;
}

.status-pill,
.badge {
  border-radius: var(--radius-md);
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 8px;
  text-transform: uppercase;
}

.status-pill.success,
.badge.paid {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-pill.info {
  background: var(--primary-soft);
  color: var(--primary-container);
}

.status-pill.neutral,
.badge {
  background: #f1f5f9;
  color: #64748b;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.status-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.status-row {
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px;
}

.status-row span {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
}

.status-row strong {
  font-size: 14px;
}

.dot {
  border-radius: 999px;
  display: block;
  height: 8px;
  width: 8px;
}

.dot.clean {
  background: #22c55e;
}

.dot.dirty {
  background: #f87171;
}

.dot.progress {
  background: var(--secondary);
}

.outline-action {
  background: transparent;
  border: 1px solid rgba(40, 98, 148, 0.2);
  border-radius: var(--radius-md);
  color: var(--primary-container);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px;
  text-transform: uppercase;
  transition: background 160ms ease;
  width: 100%;
}

.outline-action:hover {
  background: var(--primary-faint);
}

.key-card {
  background: var(--primary-container);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
  color: #bedcff;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.key-card::after {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  bottom: -48px;
  content: "";
  filter: blur(24px);
  height: 192px;
  position: absolute;
  right: -48px;
  width: 192px;
}

.key-card > * {
  position: relative;
  z-index: 1;
}

.key-card p {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  opacity: 0.82;
  text-transform: uppercase;
}

.key-card label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.62;
  text-transform: uppercase;
}

.key-card select {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: var(--radius-md);
  color: #ffffff;
  margin: 4px 0 16px;
  padding: 8px;
  width: 100%;
}

.key-card option {
  color: #0f172a;
}

.key-card button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--primary-container);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  transition: background 160ms ease;
  width: 100%;
}

.key-card button:hover {
  background: #f1f5f9;
}

.active-code {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  padding-top: 24px;
}

.active-code div {
  font-size: 12px;
}

.active-code code {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 2px 8px;
}

.floating-action {
  align-items: center;
  background: var(--secondary);
  border: 0;
  border-radius: 999px;
  bottom: 40px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  height: 64px;
  justify-content: center;
  position: fixed;
  right: 40px;
  transition: transform 160ms ease;
  width: 64px;
  z-index: 50;
}

.floating-action:hover {
  transform: scale(1.05);
}

.floating-action .material-symbols-outlined {
  font-size: 32px;
}

/* Operations calendar */
.operations-content {
  max-width: 1560px;
}

.operations-hero {
  align-items: flex-end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.operations-hero h3 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.operations-hero p:not(.eyebrow) {
  color: #64748b;
  font-size: 14px;
  margin: 8px 0 0;
}

.operations-summary {
  background: #ffffff;
  border: 1px solid rgba(40, 98, 148, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  min-width: 360px;
}

.operations-summary div {
  padding: 14px 18px;
}

.operations-summary div + div {
  border-left: 1px solid #f1f5f9;
}

.operations-summary span,
.operations-summary small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.operations-summary strong {
  color: var(--primary-container);
  display: block;
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  margin: 4px 0;
}

.week-calendar {
  background: #ffffff;
  border: 1px solid rgba(37, 26, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.week-calendar-heading {
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 28px;
}

.week-calendar-heading .section-title {
  margin-bottom: 2px;
}

.week-calendar-heading p {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

.week-calendar-heading > span {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  color: var(--primary-container);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.calendar-toolbar {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.calendar-week-navigation {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.calendar-week-navigation a {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  color: var(--primary-container);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  line-height: 1.2;
  min-height: 40px;
  padding: 9px 10px;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.calendar-week-navigation a:hover {
  background: var(--primary-faint);
  border-color: rgba(40, 98, 148, 0.18);
}

.calendar-week-navigation .material-symbols-outlined {
  font-size: 18px;
}

.calendar-owner-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.owner-filter-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.2;
  min-height: 40px;
  padding: 9px 12px;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.owner-filter-button .material-symbols-outlined {
  font-size: 18px;
}

.owner-filter-button.active.owner-desk {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}

.owner-filter-button.active.owner-housekeeping {
  background: rgba(254, 216, 137, 0.35);
  border-color: rgba(185, 128, 8, 0.22);
  color: var(--secondary);
}

.owner-filter-button.active.owner-maintenance {
  background: var(--primary-soft);
  border-color: rgba(40, 98, 148, 0.18);
  color: var(--primary-container);
}

.owner-filter-button:not(.active) {
  background: #f8fafc;
  color: #94a3b8;
}

.calendar-view-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  padding: 4px;
}

.calendar-view-toggle a {
  border-radius: var(--radius-md);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 9px 14px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-view-toggle a.active {
  background: var(--primary-container);
  color: #ffffff;
}

.week-calendar-scroll {
  overflow-x: auto;
}

.week-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(158px, 1fr));
  min-width: 1120px;
}

.week-calendar-grid.day-view {
  grid-template-columns: minmax(280px, 1fr);
  min-width: 0;
}

.week-calendar-grid.day-view .calendar-day {
  min-height: 520px;
}

.calendar-day {
  background: #ffffff;
  min-height: 640px;
}

.calendar-day + .calendar-day {
  border-left: 1px solid #f1f5f9;
}

.calendar-day.today {
  background: linear-gradient(to bottom, rgba(40, 98, 148, 0.06), #ffffff 190px);
}

.calendar-day-header {
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  min-height: 96px;
  padding: 18px 16px;
}

.calendar-day.today .calendar-day-header {
  box-shadow: inset 0 3px 0 var(--primary-container);
}

.calendar-day-header span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.calendar-day-header strong {
  color: var(--on-surface);
  display: block;
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  margin-top: 8px;
}

.calendar-day.today .calendar-day-header strong {
  color: var(--primary-container);
}

.calendar-day-header small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.calendar-day-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.calendar-event {
  border-left: 3px solid #cbd5e1;
  padding: 0 0 2px 12px;
}

.calendar-event.priority-high {
  border-left-color: var(--secondary);
}

.calendar-event.priority-medium {
  border-left-color: var(--primary-container);
}

.calendar-event.priority-low {
  border-left-color: #94a3b8;
}

.calendar-event.owner-housekeeping {
  border-left-color: var(--secondary);
}

.calendar-event.owner-maintenance {
  border-left-color: var(--primary-container);
}

.calendar-event.owner-desk {
  border-left-color: #0f766e;
}

.calendar-event + .calendar-event {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.calendar-event-top,
.calendar-event footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.calendar-event time {
  color: var(--primary-container);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.calendar-event-top span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.calendar-event h4 {
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin: 8px 0 6px;
}

.calendar-event p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.calendar-event footer {
  gap: 8px;
  margin-top: 10px;
}

.calendar-event footer span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.calendar-owner-label {
  border-radius: var(--radius-md);
  padding: 4px 6px;
}

.owner-housekeeping .calendar-owner-label {
  background: rgba(254, 216, 137, 0.35);
  color: var(--secondary);
}

.owner-maintenance .calendar-owner-label {
  background: var(--primary-soft);
  color: var(--primary-container);
}

.owner-desk .calendar-owner-label {
  background: #ccfbf1;
  color: #0f766e;
}

.calendar-event footer strong {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 6px;
  text-transform: uppercase;
}

.calendar-event.priority-high footer strong {
  background: rgba(254, 216, 137, 0.45);
  color: var(--secondary);
}

.calendar-event.priority-medium footer strong {
  background: var(--primary-soft);
  color: var(--primary-container);
}

.calendar-empty {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

/* Admin */
.admin-content {
  max-width: 1440px;
}

.admin-shell {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 240px minmax(0, 1fr);
}

.admin-ribbon {
  background: #ffffff;
  border: 1px solid rgba(37, 26, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 112px;
}

.admin-ribbon-link {
  align-items: center;
  border-left: 4px solid transparent;
  color: #64748b;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.25;
  min-height: 56px;
  padding: 14px 18px 14px 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-ribbon-link + .admin-ribbon-link {
  border-top: 1px solid #f1f5f9;
}

.admin-ribbon-link:hover,
.admin-ribbon-link.active {
  background: var(--primary-faint);
  color: var(--primary-container);
}

.admin-ribbon-link.active {
  border-left-color: var(--primary-container);
}

.admin-panel {
  min-width: 0;
}

.admin-heading {
  margin-bottom: 24px;
}

.admin-messages-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.admin-message-sidebar {
  overflow: hidden;
  position: sticky;
  top: 112px;
}

.admin-booking-list {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.admin-booking-row {
  border-top: 1px solid #f1f5f9;
  color: inherit;
  display: grid;
  gap: 6px;
  padding: 16px;
  transition: background 160ms ease;
}

.admin-booking-row:first-child {
  border-top: 0;
}

.admin-booking-row:hover,
.admin-booking-row.active {
  background: var(--primary-faint);
}

.admin-booking-row.active {
  box-shadow: inset 3px 0 0 var(--primary-container);
}

.admin-booking-row[aria-busy="true"] {
  opacity: 0.65;
  pointer-events: none;
}

.admin-booking-row-header {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-booking-row strong {
  color: var(--on-surface);
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  min-width: 0;
}

.admin-booking-row span,
.admin-booking-row small,
.admin-booking-row p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.admin-booking-row .status-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-booking-row p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-booking-message-meta,
.admin-booking-preview-empty {
  color: #94a3b8;
}

.admin-message-workspace {
  min-width: 0;
  min-height: 0;
}

.admin-message-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.admin-message-empty .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 48px;
}

.admin-message-empty h4 {
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.admin-message-empty p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 420px;
}

.admin-heading h3 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.admin-heading p:not(.eyebrow) {
  color: #64748b;
  font-size: 14px;
  margin: 8px 0 0;
}

.admin-card {
  background: #ffffff;
  border: 1px solid rgba(37, 26, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.admin-card-header {
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
}

.admin-card-header h4 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.admin-card-header span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-permissions-list,
.bookings-list {
  display: flex;
  flex-direction: column;
}

.user-permission-row,
.booking-record {
  border-top: 1px solid #f1f5f9;
  color: inherit;
  display: block;
  padding: 18px 24px;
}

.booking-record:hover {
  background: rgba(248, 250, 252, 0.75);
}

.user-permission-row:first-child,
.booking-record:first-child {
  border-top: 0;
}

.user-permission-summary,
.user-permission-meta,
.booking-record-main {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.password-admin-card {
  margin-bottom: 24px;
}

.password-change-form {
  padding: 24px;
}

.user-permission-summary {
  gap: 16px;
}

.user-password-reset {
  margin-top: 14px;
}

.user-password-reset summary {
  color: var(--primary-container);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.inline-password-reset-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-top: 12px;
}

.inline-password-reset-form input {
  background: #f8fafc;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  color: var(--on-surface);
  font-family: var(--body-font);
  font-size: 14px;
  min-height: 44px;
  padding: 0 12px;
}

.compact-action {
  min-height: 44px;
  padding: 0 14px;
}

.user-permission-row strong,
.booking-record-main strong {
  color: var(--on-surface);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.user-permission-row span,
.booking-record-main span,
.booking-record-grid span {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.user-permission-meta {
  gap: 16px;
  text-align: right;
}

.user-permission-meta strong {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  color: #64748b;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 8px;
  text-transform: uppercase;
}

.user-permission-meta strong.admin-role {
  background: var(--primary-soft);
  color: var(--primary-container);
}

.booking-record-main {
  gap: 16px;
}

.booking-record-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.booking-record-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.booking-detail-heading {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.heading-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.booking-detail-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.booking-detail-card {
  position: sticky;
  top: 112px;
}

.booking-detail-summary {
  display: flex;
  flex-direction: column;
}

.booking-detail-summary > div {
  border-top: 1px solid #f1f5f9;
  padding: 18px 24px;
}

.booking-detail-summary > div:first-child {
  border-top: 0;
}

.booking-detail-summary span,
.booking-detail-summary small {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.booking-detail-summary span {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-detail-summary strong {
  color: var(--on-surface);
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 6px 0;
}

.booking-message-panel {
  background: #ffffff;
  border: 1px solid rgba(40, 98, 148, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 24px;
  overflow: hidden;
}

.booking-message-panel header {
  align-items: center;
  background: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid rgba(40, 98, 148, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.booking-message-panel h4 {
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.booking-message-panel header p,
.booking-message-panel header span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.booking-message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding: 20px;
}

.booking-message-row {
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  max-width: min(680px, 88%);
  padding: 12px 14px;
}

.booking-message-row.is-own {
  align-self: flex-end;
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.booking-message-row > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.booking-message-row strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.booking-message-row small {
  color: inherit;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.72;
}

.booking-message-row p {
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.booking-message-form {
  align-items: end;
  border-top: 1px solid rgba(40, 98, 148, 0.1);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 20px;
}

.booking-message-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  color: var(--on-surface);
  font: inherit;
  font-size: 14px;
  min-height: 72px;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.booking-message-panel .notice {
  margin: 0 20px 16px;
}

.admin-message-workspace .booking-message-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 244px);
  margin-top: 0;
  max-height: calc(100vh - 244px);
  min-height: 0;
  overflow: hidden;
}

.admin-message-workspace .booking-message-list {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}

.admin-message-workspace .booking-message-panel header,
.admin-message-workspace .booking-message-form {
  flex: 0 0 auto;
}

.admin-message-workspace .booking-message-form textarea {
  height: 72px;
  max-height: 72px;
  min-height: 72px;
  resize: none;
}

.bookings-loading,
.bookings-empty {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  padding: 18px 24px;
  text-align: center;
}

.bookings-sentinel {
  height: 1px;
}

.room-admin-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.room-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.room-form input,
.room-form select,
.room-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  color: var(--on-surface);
  font: inherit;
  outline: none;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.room-form input,
.room-form select {
  min-height: 48px;
}

.room-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 48px;
}

.room-form textarea {
  line-height: 1.5;
  min-height: 180px;
  resize: vertical;
}

.room-form input:focus,
.room-form select:focus,
.room-form textarea:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(40, 98, 148, 0.12);
}

.field-note {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
}

.rooms-list {
  display: flex;
  flex-direction: column;
}

.room-record {
  align-items: center;
  border-top: 1px solid #f1f5f9;
  color: inherit;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
  transition: background 160ms ease;
}

.room-record:first-child {
  border-top: 0;
}

.room-record:hover {
  background: rgba(248, 250, 252, 0.75);
}

.room-record strong {
  color: var(--on-surface);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.room-record span:not(.material-symbols-outlined) {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.room-record .material-symbols-outlined {
  color: #94a3b8;
}

.room-detail-card {
  max-width: 760px;
}

.housekeeping-heading {
  align-items: flex-start;
  margin-bottom: 28px;
}

.housekeeping-heading p:not(.eyebrow) {
  color: #64748b;
  font-size: 14px;
  margin: 8px 0 0;
}

.housekeeping-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.housekeeping-room-card {
  background: #ffffff;
  border: 1px solid rgba(37, 26, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.housekeeping-room-card:not(.disabled):hover {
  border-color: rgba(40, 98, 148, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.housekeeping-room-card.disabled {
  cursor: default;
}

.housekeeping-room-card.dirty {
  border-color: rgba(186, 26, 26, 0.16);
}

.housekeeping-room-card.clean {
  border-color: rgba(21, 128, 61, 0.14);
}

.housekeeping-room-top {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.housekeeping-room-top h4 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.housekeeping-status {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  color: #64748b;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 8px;
  text-transform: uppercase;
}

.housekeeping-room-card.dirty .housekeeping-status {
  background: var(--error-container);
  color: var(--on-error-container);
}

.housekeeping-room-card.clean .housekeeping-status {
  background: var(--success-bg);
  color: var(--success-text);
}

.housekeeping-description {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  min-height: 40px;
}

.housekeeping-card-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.housekeeping-card-meta span {
  align-items: center;
  color: var(--on-surface);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
}

.presence-dot,
.clean-today-dot,
.cleanliness-dot {
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.presence-dot.occupied {
  background: var(--primary-container);
  border-color: var(--primary-container);
}

.clean-today-dot.required {
  background: var(--secondary);
  border-color: var(--secondary);
}

.cleanliness-dot.dirty {
  background: var(--error);
  border-color: var(--error);
}

.task-progress {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.task-progress .progress-track {
  margin: 0;
}

.task-progress span {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

.housekeeping-detail-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.housekeeping-task-list {
  display: flex;
  flex-direction: column;
}

.housekeeping-task-row {
  align-items: center;
  border-top: 1px solid #f1f5f9;
  display: grid;
  gap: 16px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  padding: 18px 24px;
}

.housekeeping-task-row:first-child {
  border-top: 0;
}

.housekeeping-task-row.complete {
  background: rgba(240, 253, 244, 0.5);
}

.housekeeping-task-row button {
  min-width: 128px;
}

.task-check .material-symbols-outlined {
  color: #cbd5e1;
  font-size: 28px;
}

.housekeeping-task-row.complete .task-check .material-symbols-outlined {
  color: var(--success-text);
}

.housekeeping-task-row strong {
  color: var(--on-surface);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.task-type-badge {
  background: var(--primary-faint);
  border-radius: var(--radius-md);
  color: var(--primary-container);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  margin-left: 8px;
  padding: 4px 7px;
  text-transform: uppercase;
  vertical-align: middle;
}

.task-action-stack {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-response-preview {
  background: #f8fafc;
  border: 1px solid rgba(40, 98, 148, 0.08);
  border-radius: var(--radius-lg);
  margin-top: 12px;
  padding: 12px 14px;
}

.staff-response-preview-secondary {
  background: rgba(254, 216, 137, 0.16);
  border-color: rgba(183, 121, 31, 0.18);
}

.staff-response-preview span {
  color: var(--primary-container);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.staff-response-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.staff-response-form label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.staff-response-form select,
.staff-response-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--on-surface);
  font: inherit;
  font-size: 13px;
  outline: none;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.staff-response-help {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: -2px 0 0;
}

.staff-response-form button {
  justify-self: end;
}

.housekeeping-task-row p,
.housekeeping-task-row small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.task-active-toggle {
  background: #f8fafc;
  border: 1px solid rgba(40, 98, 148, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.desk-booking-list {
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.desk-booking-list a {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  display: block;
  padding: 10px 12px;
}

.desk-booking-list strong {
  color: var(--primary-container);
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.desk-booking-list span {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.desk-card-actions {
  display: flex;
  justify-content: flex-end;
}

/* Data entry */
.page-heading {
  align-items: flex-end;
  gap: 24px;
}

.page-heading h3 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.entry-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
}

.entry-card,
.import-card {
  overflow: hidden;
}

.entry-card-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 32px 18px;
}

.entry-card-header h4 {
  color: var(--primary-container);
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.import-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px 28px;
}

.import-tabs {
  background: #f1f5f9;
  border: 1px solid rgba(40, 98, 148, 0.08);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.import-tab {
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 12px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.import-tab.active {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--primary-container);
}

.import-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.import-tab-panel[hidden] {
  display: none;
}

.import-panel textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  color: var(--on-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  min-height: 420px;
  outline: none;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.import-panel textarea:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(40, 98, 148, 0.12);
}

.import-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.import-feedback {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.booking-form {
  display: grid;
  column-gap: 24px;
  row-gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 28px 32px 30px;
}

.booking-form .full {
  grid-column: 1 / -1;
}

.booking-form .field {
  min-width: 0;
}

.booking-form input,
.booking-form select,
.field-card input,
.field-card select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  color: var(--on-surface);
  min-height: 48px;
  outline: none;
  padding: 10px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.booking-form select,
.field-card select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 48px;
}

.booking-form input:focus,
.booking-form select:focus,
.field-card input:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(40, 98, 148, 0.12);
}

.field-card {
  background: #f8fafc;
  border: 1px solid rgba(40, 98, 148, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.paid-card {
  align-items: center;
  display: flex;
  min-height: 74px;
  padding: 14px 16px;
}

.paid-card .checkbox-line {
  column-gap: 12px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  row-gap: 4px;
  width: 100%;
}

.paid-card .checkbox-line > span {
  display: contents;
}

.paid-card .checkbox-line small {
  grid-column: 1 / -1;
}

.field-card-title {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.field-card-title h5 {
  color: var(--primary-container);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0;
}

.field-card-title .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 20px;
}

.checkbox-line {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  text-transform: none;
}

.checkbox-line input[type="checkbox"] {
  accent-color: var(--primary-container);
  flex: 0 0 auto;
  height: 16px;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.checkbox-line strong {
  color: var(--on-surface);
  display: block;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.checkbox-line small {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
}

.parking-widget {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.parking-days {
  flex: 0 0 184px;
}

.booking-form input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

.ghost-action,
.submit-action,
.danger-action {
  align-items: center;
  border-radius: var(--radius-lg);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 12px 20px;
}

.ghost-action {
  color: var(--primary-container);
  transition: background 160ms ease;
}

.ghost-action:hover {
  background: var(--primary-faint);
}

.submit-action {
  background: var(--primary-container);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.submit-action:hover {
  opacity: 0.9;
}

.danger-action {
  background: transparent;
  border: 1px solid var(--error-container);
  color: var(--error);
  cursor: pointer;
  margin-right: auto;
  transition: background 160ms ease;
}

.danger-action:hover {
  background: rgba(186, 26, 26, 0.06);
}

.ghost-action:disabled,
.submit-action:disabled,
.danger-action:disabled {
  cursor: progress;
  opacity: 0.62;
}

.notice p {
  margin: 0;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.notice p + p {
  margin-top: 4px;
}

.empty-state {
  font-size: 14px;
  margin: 0;
  padding: 32px 24px;
}

/* Guest portal */
.guest-page {
  background: var(--background);
  color: var(--on-surface);
  min-height: 100vh;
}

.guest-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(40, 98, 148, 0.1);
  display: flex;
  height: 64px;
  inset: 0 0 auto;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  z-index: 30;
}

.guest-header-brand {
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guest-header-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.guest-sidebar {
  background: #f8fafc;
  border-right: 1px solid rgba(40, 98, 148, 0.1);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  left: 0;
  padding: 32px 16px;
  position: fixed;
  top: 64px;
  width: 256px;
  z-index: 20;
}

.guest-portal-card {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin: 0 8px 32px;
}

.guest-portal-details {
  flex: 1;
  min-width: 0;
}

.guest-portal-card h2 {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.guest-portal-card p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  margin: 4px 0 0;
}

.guest-stay-access-card {
  background: #ffffff;
  border: 1px solid rgba(134, 86, 20, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(134, 86, 20, 0.18);
  margin-top: 12px;
  overflow: hidden;
  width: 100%;
}

.guest-room-callout {
  background: var(--secondary);
  color: #ffffff;
  padding: 12px;
}

.guest-room-callout small {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guest-room-callout strong {
  color: #ffffff;
  display: block;
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  margin-top: 3px;
}

.guest-access-code {
  align-items: center;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
}

.guest-access-code.pending {
  background: #ffffff;
  color: var(--primary);
}

.guest-access-code span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guest-access-code strong {
  color: var(--primary);
  display: inline-block;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.guest-access-code.pending strong {
  color: #64748b;
  font-size: 14px;
}

.guest-portal-image {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  overflow: hidden;
  width: 40px;
}

.guest-account-initials {
  align-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 40px;
}

.guest-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-nav a {
  align-items: center;
  border-radius: var(--radius-lg);
  color: #64748b;
  display: flex;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  line-height: 1.2;
  padding: 12px 16px;
  transition: background 160ms ease, color 160ms ease;
}

.guest-nav a:hover {
  background: var(--primary-faint);
  color: var(--primary);
}

.guest-nav a.active {
  background: var(--primary-faint);
  border-right: 4px solid var(--primary);
  color: var(--primary);
}

.guest-main {
  margin-left: 256px;
  min-height: 100vh;
  padding: 96px 24px 32px;
}

.guest-content-shell {
  margin: 0 auto;
  max-width: 1180px;
}

.guest-welcome {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 48px;
}

.guest-welcome h1 {
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.guest-welcome p:not(.eyebrow) {
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 1.6;
  margin: 8px 0 0;
}

.guest-stay-card {
  background: #ffffff;
  border: 1px solid rgba(40, 98, 148, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  min-width: 240px;
  padding: 18px 20px;
}

.guest-stay-card span,
.guest-stay-card small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guest-stay-card strong {
  color: var(--primary);
  display: block;
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.guest-dashboard-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
}

.guest-requests-section {
  min-width: 0;
}

.guest-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.guest-section-heading h2,
.guest-requests-panel h2 {
  color: var(--primary);
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.guest-request-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-request-form {
  display: block;
  min-width: 0;
}

.guest-request-card {
  background: #ffffff;
  border: 1px solid rgba(40, 98, 148, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: inherit;
  cursor: pointer;
  min-height: 164px;
  padding: 24px;
  position: relative;
  text-align: left;
  transition: box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.guest-request-card:hover {
  box-shadow: 0 16px 36px rgba(40, 98, 148, 0.08);
  transform: translateY(-1px);
}

.guest-request-card:disabled {
  background: #f8fafc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.guest-request-card:disabled:hover {
  box-shadow: none;
  transform: none;
}

.guest-request-card.primary {
  background: var(--primary);
  color: #ffffff;
}

.guest-request-icon {
  align-items: center;
  background: var(--surface-low);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: 26px;
  height: 48px;
  justify-content: center;
  margin-bottom: 16px;
  width: 48px;
}

.guest-request-card.primary .guest-request-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.request-money-badge {
  align-items: center;
  background: var(--secondary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 28px;
}

.request-money-badge .material-symbols-outlined {
  font-size: 19px;
}

.guest-request-card strong {
  color: var(--primary);
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.guest-request-card.primary strong {
  color: #ffffff;
}

.guest-request-card small {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.guest-request-card.primary small {
  color: #d0e4ff;
}

.guest-requests-panel {
  background: #ffffff;
  border: 1px solid rgba(40, 98, 148, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.guest-requests-full {
  min-height: 420px;
}

.guest-requests-panel header {
  align-items: center;
  background: rgba(248, 250, 252, 0.6);
  border-bottom: 1px solid rgba(40, 98, 148, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 24px;
}

.guest-requests-panel header p {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 12px;
  gap: 6px;
  margin: 4px 0 0;
}

.guest-request-list {
  display: flex;
  flex-direction: column;
}

.guest-request-row {
  align-items: flex-start;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
}

.guest-request-row:first-child {
  border-top: 0;
}

.guest-request-row > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.guest-request-row strong {
  color: var(--primary);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.guest-request-row p,
.guest-request-row small {
  color: #64748b;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.guest-response-disclosure {
  margin-top: 10px;
}

.guest-response-inline {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-top: 10px;
  padding: 10px 12px;
}

.guest-response-inline span {
  color: var(--primary-container);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guest-response-inline p {
  margin: 4px 0 0;
}

.guest-response-disclosure summary {
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--primary-container);
  cursor: pointer;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  padding: 10px 12px;
}

.guest-response-disclosure summary::after {
  color: #64748b;
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  line-height: 1;
}

.guest-response-disclosure[open] summary::after {
  content: "expand_less";
}

.guest-response-disclosure summary::-webkit-details-marker {
  display: none;
}

.guest-response-disclosure summary span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guest-response-disclosure summary small {
  color: #64748b;
  grid-column: 1 / -1;
  margin: 0;
}

.guest-response-disclosure[open] summary {
  background: #f8fafc;
}

.guest-response-disclosure > p {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin: 0;
  padding: 10px 12px;
}

.guest-request-tools {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.guest-price-disclosure {
  flex: 0 0 auto;
  position: relative;
}

.guest-price-disclosure summary {
  align-items: center;
  background: rgba(183, 121, 31, 0.12);
  border: 1px solid rgba(183, 121, 31, 0.26);
  border-radius: 999px;
  color: var(--secondary);
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  list-style: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  width: 28px;
}

.guest-price-disclosure summary::-webkit-details-marker {
  display: none;
}

.guest-price-disclosure summary span {
  font-size: 18px;
}

.guest-price-disclosure summary:hover,
.guest-price-disclosure[open] summary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
}

.guest-price-popover {
  background: var(--primary-container);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 8px 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  white-space: nowrap;
  z-index: 25;
}

.guest-price-popover::before {
  border-bottom: 6px solid var(--primary-container);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  content: "";
  position: absolute;
  right: 8px;
  top: -6px;
}

.guest-delete-request-form {
  margin: 0;
}

.guest-delete-request-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(186, 26, 26, 0.24);
  border-radius: 999px;
  color: var(--error);
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  transition: background 140ms ease, border-color 140ms ease;
  width: 28px;
}

.guest-delete-request-button:hover {
  background: var(--error-container);
  border-color: rgba(186, 26, 26, 0.36);
}

.guest-delete-request-button span {
  font-size: 17px;
}

.request-status {
  border-radius: var(--radius-md);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 8px;
  position: relative;
  text-transform: uppercase;
}

.request-status.has-proof {
  cursor: help;
}

.request-status.has-proof::after {
  background: var(--primary-container);
  border-radius: var(--radius-md);
  bottom: calc(100% + 8px);
  box-shadow: var(--shadow-soft);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 800;
  left: 50%;
  line-height: 1.25;
  min-width: 132px;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  text-transform: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
  z-index: 20;
}

.request-status.has-proof:hover::after,
.request-status.has-proof:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.request-status.status-pending {
  background: rgba(254, 216, 137, 0.45);
  color: var(--secondary);
}

.request-status.status-approved {
  background: var(--primary-soft);
  color: var(--primary-container);
}

.request-status.status-completed {
  background: var(--success-bg);
  color: var(--success-text);
}

.request-status.status-cancelled {
  background: var(--error-container);
  color: var(--on-error-container);
}

.guest-mobile-nav {
  display: none;
}

@media (max-width: 1100px) {
  .housekeeping-grid,
  .metric-grid,
  .dashboard-grid,
  .entry-grid,
  .admin-shell,
  .room-admin-grid,
  .guest-dashboard-grid,
  .housekeeping-detail-grid,
  .booking-detail-grid {
    grid-template-columns: 1fr;
  }

  .booking-detail-card {
    position: static;
  }

  .metric-card-large {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .guest-sidebar {
    display: none;
  }

  .guest-main {
    margin-left: 0;
    padding-bottom: 96px;
  }

  .guest-mobile-nav {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid rgba(40, 98, 148, 0.1);
    bottom: 0;
    display: flex;
    height: 64px;
    justify-content: space-around;
    left: 0;
    padding: 0 16px;
    position: fixed;
    right: 0;
    z-index: 40;
  }

  .guest-mobile-nav a {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    line-height: 1.2;
  }

  .guest-mobile-nav a.active {
    color: var(--primary);
  }

  .guest-welcome {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-stay-card {
    min-width: 0;
  }
}

@media (max-width: 1180px) and (min-width: 641px) {
  .staff-page:not(.staff-sidebar-expanded) .staff-sidebar {
    padding-top: 32px;
    width: 88px;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-brand {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-brand-row {
    justify-content: center;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-brand-mark {
    display: flex;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-brand-copy,
  .staff-page:not(.staff-sidebar-expanded) .staff-nav-text,
  .staff-page:not(.staff-sidebar-expanded) .staff-profile-details {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-nav-link {
    gap: 0;
    justify-content: center;
    padding: 14px 0;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-nav-link.active {
    padding-left: 0;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-profile {
    justify-content: center;
    padding: 24px 0 0;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-header {
    left: 88px;
  }

  .staff-page:not(.staff-sidebar-expanded) .staff-main {
    margin-left: 88px;
  }

  .staff-sidebar-state-expanded .staff-page .staff-sidebar {
    padding: 40px 0;
    width: 288px;
  }

  .staff-sidebar-state-expanded .staff-page .staff-brand {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
    padding: 0 24px 0 32px;
  }

  .staff-sidebar-state-expanded .staff-page .staff-brand-row {
    justify-content: flex-start;
  }

  .staff-sidebar-state-expanded .staff-page .staff-brand-mark {
    display: none;
  }

  .staff-sidebar-state-expanded .staff-page .staff-brand-copy,
  .staff-sidebar-state-expanded .staff-page .staff-nav-text,
  .staff-sidebar-state-expanded .staff-page .staff-profile-details {
    opacity: 1;
    pointer-events: auto;
    position: static;
    visibility: visible;
  }

  .staff-sidebar-state-expanded .staff-page .staff-nav-link {
    gap: 16px;
    justify-content: flex-start;
    padding: 12px 20px;
  }

  .staff-sidebar-state-expanded .staff-page .staff-nav-link.active {
    padding-left: 16px;
  }

  .staff-sidebar-state-expanded .staff-page .staff-profile {
    justify-content: flex-start;
    padding: 24px 32px 0;
  }

  .staff-sidebar-state-expanded .staff-page .staff-header {
    left: 288px;
  }

  .staff-sidebar-state-expanded .staff-page .staff-main {
    margin-left: 288px;
  }
}

@media (max-width: 640px) {
  .staff-sidebar-state-collapsed .staff-sidebar,
  .staff-sidebar-state-expanded .staff-sidebar,
  .staff-page.staff-sidebar-collapsed .staff-sidebar,
  .staff-page.staff-sidebar-expanded .staff-sidebar,
  .staff-sidebar {
    height: auto;
    position: static;
    width: 100%;
  }

  .staff-sidebar-state-collapsed .staff-header,
  .staff-sidebar-state-expanded .staff-header,
  .staff-page.staff-sidebar-collapsed .staff-header,
  .staff-page.staff-sidebar-expanded .staff-header,
  .staff-header {
    left: 0;
    padding: 0 24px;
    position: sticky;
  }

  .staff-sidebar-state-collapsed .staff-main,
  .staff-sidebar-state-expanded .staff-main,
  .staff-page.staff-sidebar-collapsed .staff-main,
  .staff-page.staff-sidebar-expanded .staff-main,
  .staff-main {
    margin-left: 0;
  }

  .staff-sidebar-state-collapsed .staff-brand-copy,
  .staff-sidebar-state-collapsed .staff-nav-text,
  .staff-sidebar-state-collapsed .staff-profile-details,
  .staff-page.staff-sidebar-collapsed .staff-brand-copy,
  .staff-page.staff-sidebar-collapsed .staff-nav-text,
  .staff-page.staff-sidebar-collapsed .staff-profile-details {
    opacity: 1;
    pointer-events: auto;
    position: static;
    visibility: visible;
  }

  .staff-sidebar-state-collapsed .staff-brand,
  .staff-page.staff-sidebar-collapsed .staff-brand {
    align-items: flex-start;
    flex-direction: row;
    padding: 0 24px 0 32px;
  }

  .staff-sidebar-state-collapsed .staff-brand-mark,
  .staff-page.staff-sidebar-collapsed .staff-brand-mark {
    display: none;
  }

  .staff-sidebar-state-collapsed .staff-nav-link,
  .staff-page.staff-sidebar-collapsed .staff-nav-link {
    gap: 16px;
    justify-content: flex-start;
    padding: 12px 20px;
  }

  .staff-content {
    padding: 32px 24px;
  }

  .operations-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .operations-summary {
    min-width: 0;
  }

  .week-calendar-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-toolbar,
  .calendar-owner-filter {
    justify-content: flex-start;
  }

  .admin-ribbon {
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }

  .admin-ribbon-link {
    border-left: 0;
    border-bottom: 4px solid transparent;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 12px 16px;
  }

  .admin-ribbon-link + .admin-ribbon-link {
    border-left: 1px solid #f1f5f9;
    border-top: 0;
  }

  .admin-ribbon-link.active {
    border-bottom-color: var(--primary-container);
  }

  .header-actions {
    gap: 16px;
  }

  .search-shell input {
    width: 190px;
  }

  .booking-form,
  .metric-grid,
  .booking-record-grid,
  .admin-messages-layout {
    grid-template-columns: 1fr;
  }

  .admin-message-sidebar {
    position: static;
  }

  .admin-booking-list {
    max-height: 360px;
  }

  .admin-message-workspace .booking-message-panel {
    height: 520px;
    max-height: 520px;
    min-height: 0;
  }

  .admin-message-workspace .booking-message-list {
    min-height: 0;
  }

  .parking-widget,
  .booking-detail-heading,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .heading-actions {
    justify-content: stretch;
  }

  .heading-actions .ghost-action,
  .heading-actions .submit-action {
    flex: 1;
  }

  .import-actions {
    justify-content: stretch;
  }

  .import-actions .ghost-action,
  .import-actions .submit-action {
    flex: 1;
  }

  .import-panel textarea {
    min-height: 320px;
  }

  .housekeeping-grid {
    gap: 16px;
  }

  .housekeeping-card-meta {
    grid-template-columns: 1fr;
  }

  .housekeeping-task-row {
    align-items: stretch;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .housekeeping-task-row form {
    grid-column: 1 / -1;
  }

  .housekeeping-task-row form button {
    width: 100%;
  }

  .task-action-stack {
    grid-column: 1 / -1;
  }

  .parking-days {
    flex-basis: auto;
  }
}

@media (max-width: 560px) {
  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 24px;
  }

  .login-caption {
    display: none;
  }

  .login-brand h1,
  .guest-welcome h1,
  .page-heading h3 {
    font-size: 28px;
  }

  .guest-header {
    padding: 0 16px;
  }

  .guest-header-brand {
    font-size: 12px;
  }

  .guest-header-actions {
    gap: 14px;
  }

  .guest-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .guest-welcome {
    margin-bottom: 32px;
  }

  .guest-welcome p:not(.eyebrow) {
    font-size: 15px;
  }

  .guest-request-grid {
    grid-template-columns: 1fr;
  }

  .guest-request-card {
    min-height: 136px;
    padding: 20px;
  }

  .booking-message-panel header,
  .booking-message-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .booking-message-panel header {
    flex-direction: column;
    gap: 8px;
  }

  .booking-message-row {
    max-width: 100%;
  }

  .staff-header {
    height: auto;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  .header-actions,
  .support-links {
    flex-wrap: wrap;
  }

  .staff-main {
    padding-top: 0;
  }

  th,
  td {
    padding: 12px;
  }
}
