:root {
  color-scheme: light;
  --sidebar-offset: 0px;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #647089;
  --line: #d8deea;
  --shadow: 0 18px 40px rgba(24, 36, 63, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef2fb 0%, #f8fafc 100%);
  color: var(--text);
}

body.drawer-open {
  overflow: hidden;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 32, 0.38);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 60;
}

.admin-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-drawer {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: min(360px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(216, 222, 234, 0.95);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
  transform: translateX(-105%);
  transition: transform 220ms ease;
  z-index: 70;
  overflow: auto;
}

.admin-drawer.theme-ocean {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.9) 0%, rgba(234, 243, 255, 0.94) 100%);
}

.admin-drawer.theme-midnight {
  background: linear-gradient(180deg, rgba(20, 26, 41, 0.95) 0%, rgba(28, 38, 61, 0.96) 100%);
  color: #eef2ff;
}

.admin-drawer.theme-midnight .admin-drawer-section,
.admin-drawer.theme-midnight .admin-home-card,
.admin-drawer.theme-midnight .admin-mini-stat {
  background: rgba(36, 48, 78, 0.72);
  border-color: rgba(93, 113, 170, 0.36);
  color: #eef2ff;
}

.admin-drawer.theme-midnight .admin-drawer-title,
.admin-drawer.theme-midnight .admin-home-card p,
.admin-drawer.theme-midnight .admin-mini-stat span,
.admin-drawer.theme-midnight .admin-status-pill small {
  color: rgba(226, 232, 255, 0.74);
}

.admin-drawer.theme-midnight .admin-drawer-link,
.admin-drawer.theme-midnight .admin-status-pill {
  color: #eef2ff;
}

.admin-drawer.theme-midnight .admin-drawer-link:hover,
.admin-drawer.theme-midnight .admin-drawer-link.is-active {
  background: rgba(101, 132, 255, 0.18);
  color: #ffffff;
}

.admin-drawer.theme-forest {
  background: linear-gradient(180deg, rgba(241, 250, 245, 0.94) 0%, rgba(228, 244, 235, 0.95) 100%);
}

.admin-drawer.theme-sunset {
  background: linear-gradient(180deg, rgba(255, 246, 240, 0.94) 0%, rgba(255, 235, 224, 0.95) 100%);
}

.admin-home-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 58, 99, 0.12) 0%, rgba(118, 146, 255, 0.12) 100%);
  border: 1px solid rgba(216, 222, 234, 0.95);
}

.admin-home-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  min-width: 88px;
  height: 56px;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
}

.admin-home-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
}

.admin-drawer.is-open {
  transform: translateX(0);
}

.admin-drawer.is-hidden-desktop {
  transform: translateX(-105%) !important;
}

.admin-drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-drawer-head-actions {
  display: flex;
  gap: 8px;
}

.admin-drawer-section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(216, 222, 234, 0.95);
  border-radius: 20px;
  background: rgba(248, 250, 255, 0.88);
}

.admin-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-mini-stat {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  color: var(--text);
}

.admin-mini-stat span {
  color: var(--muted);
  font-size: 12px;
}

.admin-mini-stat strong {
  font-size: 20px;
}

.admin-status-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-status-pill {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  color: #172033;
  text-decoration: none;
}

.admin-status-pill strong {
  font-size: 18px;
}

.admin-status-pill small {
  font-size: 11px;
  opacity: 0.8;
}

.hotel-logo-preview-wrap {
  display: grid;
  gap: 8px;
}

.hotel-logo-preview-box {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: #f8fbff;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.hotel-logo-preview-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(24, 36, 63, 0.1);
}

.hotel-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.logo-dark-surface {
  background: #172033;
}

.logo-dark-surface strong,
.logo-dark-surface .hotel-logo-placeholder {
  color: #eef2ff;
}

.logo-drop-zone.is-dragover {
  border-color: #6b8dff;
  background: #eef4ff;
  transform: translateY(-2px);
}

.hotel-logo-preview {
  max-width: 160px;
  max-height: 72px;
  object-fit: contain;
}

.hotel-cover-preview-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 22px;
  border: 1px dashed var(--line);
  overflow: hidden;
  background: linear-gradient(135deg, #eef4ff 0%, #dde8ff 100%);
  cursor: pointer;
}

.hotel-cover-preview {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.crop-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 120;
}

.crop-modal.is-hidden {
  display: none;
}

.crop-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.crop-modal-dialog {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
}

.crop-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.crop-stage-wrap {
  overflow: auto;
  border-radius: 18px;
  background: #eef2fb;
  margin-bottom: 12px;
}

#cropCanvas {
  width: 100%;
  max-width: 100%;
  display: block;
  cursor: grab;
}

.hotel-cover {
  min-height: 240px;
  margin-bottom: 18px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hotel-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-cover-always {
  border: 1px solid rgba(216, 222, 234, 0.95);
}

.management-cover {
  min-height: 220px;
  margin-bottom: 18px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.management-section {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0 0 6px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.management-brand-grid {
  align-items: start;
}

.settings-panel-featured {
  grid-column: 1 / -1;
}

.management-cover-overlay {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 220px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.62) 100%);
}

.management-cover-overlay strong {
  font-size: 30px;
}

.file-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.upload-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

.upload-field input[type="file"] {
  display: none;
}

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

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #e8efff;
  color: #17315f;
  font-weight: 700;
  cursor: pointer;
}

.upload-field-cover {
  grid-column: 1 / -1;
}

.media-status {
  min-height: 24px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.media-status.is-info {
  background: #eef4ff;
  color: #17315f;
}

.media-status.is-success {
  background: #ecfdf3;
  color: #166534;
}

.media-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.saved-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.saved-media-card {
  display: grid;
  gap: 8px;
}

.saved-media-card-cover {
  grid-column: 1 / -1;
}

.saved-media-frame {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 12px;
  border: 1px solid rgba(216, 222, 234, 0.95);
  border-radius: 18px;
  background: #f8fbff;
}

.saved-media-cover {
  min-height: 220px;
  overflow: hidden;
}

.hotel-cover-overlay {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 240px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.62) 100%);
}

.hotel-cover-overlay strong {
  font-size: 34px;
}

.hotel-cover-overlay span {
  color: rgba(255, 255, 255, 0.84);
}

.hotel-logo-placeholder-image {
  opacity: 0.8;
}

.hotel-logo-preview.is-hidden,
.hotel-logo-placeholder.is-hidden {
  display: none;
}

.hotel-logo-placeholder {
  color: var(--muted);
  font-size: 14px;
}

.admin-drawer-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 160ms ease, transform 160ms ease;
}

.admin-drawer-link:hover {
  background: #eef4ff;
  transform: translateX(2px);
}

.admin-home-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.admin-home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(24, 36, 63, 0.14);
}

.admin-status-pill {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-status-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 36, 63, 0.12);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 16px;
}


.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #e8efff;
  color: #17315f;
  cursor: pointer;
}

.admin-drawer-link.is-active {
  background: #e8f0ff;
  color: #17315f;
  font-weight: 700;
}

.admin-drawer-danger {
  color: #a11b1b;
}

.admin-drawer-footer {
  margin-top: auto;
}

.admin-launcher {
  min-width: 110px;
}

.admin-launcher-fixed {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 72;
  display: inline-flex;
}

.admin-launcher-fixed.is-visible-desktop {
  display: inline-flex;
}

.page-with-sidebar {
  max-width: none;
  transition: margin-left 180ms ease, width 180ms ease;
  margin-right: 0;
}

.page-with-sidebar > header,
.page-with-sidebar > section,
.page-with-sidebar > div {
  width: 100%;
}

@media (min-width: 981px) {
  .admin-overlay {
    display: none;
  }

  .admin-drawer {
    transform: translateX(0);
    width: 320px;
    z-index: 20;
  }

  .admin-drawer.is-desktop {
    position: fixed;
  }

  .admin-drawer.is-collapsed {
    width: 92px;
    padding-inline: 10px;
  }

  .admin-drawer.is-collapsed .admin-home-card div,
  .admin-drawer.is-collapsed .admin-drawer-title,
  .admin-drawer.is-collapsed .admin-drawer-link span:last-child,
  .admin-drawer.is-collapsed .admin-home-card p,
  .admin-drawer.is-collapsed .admin-stats-grid,
  .admin-drawer.is-collapsed .admin-status-widget-grid,
  .admin-drawer.is-collapsed .admin-switcher-form {
    display: none;
  }

  .admin-drawer.is-collapsed .admin-home-card,
  .admin-drawer.is-collapsed .admin-drawer-link,
  .admin-drawer.is-collapsed .admin-drawer-head {
    justify-content: center;
  }

  .admin-drawer.is-collapsed + .page-with-sidebar {
    padding-left: 132px;
  }

  .page-with-sidebar {
    box-sizing: border-box;
    width: calc(100% - var(--sidebar-offset));
    margin: 0 0 0 var(--sidebar-offset);
    padding: 24px 8px 24px 24px;
  }

  body.sidebar-collapsed .page-with-sidebar {
    width: calc(100% - var(--sidebar-offset));
    margin-left: var(--sidebar-offset);
  }

  body.sidebar-hidden .page-with-sidebar {
    width: 100%;
    margin-left: 0;
  }

  .admin-launcher,
  .admin-launcher {
    display: none;
  }

  .admin-launcher-fixed {
    display: none;
  }
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.login-shell {
  width: min(100%, 460px);
  padding: 24px;
}

.login-panel {
  background: var(--panel);
  border: 1px solid rgba(216, 222, 234, 0.95);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 28px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label,
.room-card-fields label {
  display: grid;
  gap: 6px;
}

.login-form input,
.room-card-fields select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

textarea,
select,
input {
  font: inherit;
}

.login-hint {
  margin-top: 16px;
  color: var(--muted);
}

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

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: 32px;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.5;
}

.toolbar,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-stack {
  align-items: stretch;
  flex-direction: column;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 16px;
}

.user-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--muted);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}

button.secondary {
  background: #e9eef8;
  color: var(--text);
}

.button-link.secondary {
  background: #e9eef8;
  color: var(--text);
}

.legend,
.controls,
.table-wrap,
.error-box {
  background: var(--panel);
  border: 1px solid rgba(216, 222, 234, 0.95);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.error-box {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  color: #8a1c1c;
  background: #fff1f1;
}

.success-box {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  color: #155724;
  background: #ebfff1;
  border: 1px solid #b8ebc7;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.controls {
  padding: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.control-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-switch {
  display: inline-flex;
  background: #edf2fb;
  border-radius: 999px;
  padding: 4px;
}

.tab-button {
  background: transparent;
  color: var(--muted);
}

.tab-button.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
}

.search {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.search input {
  min-width: 280px;
  max-width: 360px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.summary {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.board-table-wrap {
  overflow: visible;
  position: relative;
}

.panel-view.is-hidden {
  display: none;
}

.desktop-only {
  display: block;
}

.room-cards {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.room-card,
.report-card,
.floor-card {
  background: var(--panel);
  border: 1px solid rgba(216, 222, 234, 0.95);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 16px;
}

.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.room-card-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.card-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.room-card-fields {
  display: grid;
  gap: 10px;
}

.toggle-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.sound-toggle {
  background: #eef4ff;
  border-radius: 999px;
  padding: 8px 12px;
}

.report-grid,
.floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.report-card span,
.floor-card p {
  color: var(--muted);
}

.report-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.floor-card h3 {
  margin: 0 0 8px;
}

.report-table-wrap {
  margin-top: 8px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.settings-panel {
  background: var(--panel);
  border: 1px solid rgba(216, 222, 234, 0.95);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 18px;
}

.danger-panel {
  border-color: #f3b0b0;
  background: #fff6f6;
}

.tree-panel {
  overflow: auto;
}

.main-tree-panel {
  margin-top: 8px;
}

.tree-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.tree-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.tree-search {
  width: 100%;
  max-width: 360px;
}

.tree-view {
  padding-top: 8px;
  display: grid;
  gap: 16px;
}

.main-tree-quick-panel {
  margin-top: 8px;
  align-self: start;
}

.tree-root,
.tree-branch {
  position: relative;
}

.tree-children {
  margin-left: 28px;
  padding-left: 20px;
  border-left: 2px solid #d7dfef;
}

.tree-room-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 10px 0 0 28px;
}

.tree-node {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(216, 222, 234, 0.95);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: default;
}

.tree-node span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tree-node-hotel {
  background: linear-gradient(135deg, #172033 0%, #253a63 100%);
  color: #ffffff;
}

.tree-node-hotel span {
  color: rgba(255, 255, 255, 0.72);
}

.tree-node-building {
  background: #eef4ff;
}

.tree-node-floor {
  background: #f7faff;
}

.tree-node-room {
  min-width: 0;
  margin-top: 0;
}

.tree-toggle {
  cursor: pointer;
}

.tree-toggle::after {
  content: "-";
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 18px;
  line-height: 1;
}

.tree-toggle[aria-expanded="false"]::after {
  content: "+";
}

.tree-node-actions {
  margin-top: 8px;
  margin-left: 8px;
}

.tree-filter-hidden {
  display: none !important;
}

.tree-selectable.is-selected {
  outline: 3px solid rgba(59, 130, 246, 0.35);
}

.tree-node-room-plain.is-selected {
  outline: 3px solid rgba(59, 130, 246, 0.35);
}

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

.preset-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #edf2fb;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.status-table-color {
  min-width: 120px;
}

.quick-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(216, 222, 234, 0.95);
  background: #f8fbff;
}

.quick-panel h3 {
  margin: 0 0 8px;
}

.quick-panel p {
  margin: 6px 0;
  color: var(--muted);
}

.quick-panel-content.is-hidden {
  display: none;
}

.status-room-arrival::before,
.status-room-traveler::before,
.status-room-daily::before,
.status-room-hot::before,
.status-room-clean::before,
.status-room-dirty::before,
.status-room-sleep::before,
.status-room-empty::before {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
}

.status-room-arrival::before { content: "◔"; }
.status-room-traveler::before { content: "◕"; }
.status-room-daily::before { content: "◑"; }
.status-room-hot::before { content: "▲"; }
.status-room-clean::before { content: "✓"; }
.status-room-dirty::before { content: "■"; }
.status-room-sleep::before { content: "◌"; }
.status-room-empty::before { content: "○"; }

.tree-action-button {
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #edf2fb;
  color: var(--text);
  cursor: pointer;
}

.tree-node-room-plain {
  cursor: pointer;
}

.tree-edit-form {
  margin: 10px 0 0 8px;
}

.tree-children.is-hidden,
.tree-edit-form.is-hidden {
  display: none;
}

.status-room-arrival {
  background: #decaf7;
}

.status-room-traveler {
  background: #f9d1cf;
}

.status-room-daily {
  background: #cff4dd;
}

.status-room-hot {
  background: #ffe8b5;
}

.status-room-clean {
  background: #daf5e6;
}

.status-room-dirty {
  background: #eadbc2;
}

.status-room-sleep {
  background: #eceff4;
}

.status-room-empty {
  background: #ffffff;
}

.sortable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
  color: var(--muted);
}

.sortable-header h2 {
  margin: 0;
  color: var(--text);
}

.sortable-form,
.top-gap-sm {
  margin-top: 8px;
}

.subsection-row td {
  background: #f8faff;
  font-weight: 700;
}

tr.dragging {
  opacity: 0.45;
}

.settings-panel h2 {
  margin-top: 0;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.inline-form input,
.inline-form select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.mono-area {
  width: 100%;
  min-height: 160px;
  font-family: Consolas, "Courier New", monospace;
}

.compact-lead {
  margin: 0;
  font-size: 14px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.top-gap {
  margin-top: 16px;
}

.print-body {
  background: #e9edf6;
}

.print-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.print-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.print-sheet {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.print-header {
  margin-bottom: 16px;
}

.print-grid {
  margin-bottom: 16px;
}

.print-table-wrap {
  box-shadow: none;
}

@media print {
  body,
  .print-body {
    background: #fff;
  }

  .no-print {
    display: none !important;
  }

  .print-page {
    max-width: none;
    padding: 0;
  }

  .print-sheet,
  .print-table-wrap,
  .report-card {
    box-shadow: none;
    border: 1px solid #d1d5db;
  }

  th {
    position: static;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

thead {
  position: sticky;
  top: 0;
  z-index: 4;
}

th {
  position: sticky;
  top: 0;
  background: #f8faff;
  z-index: 5;
  box-shadow: inset 0 -1px 0 var(--line);
}

tbody tr:hover {
  background: #f7faff;
}

.room-number {
  font-weight: 700;
}

.status-select {
  min-width: 140px;
  border: 0;
  border-radius: 999px;
  padding: 8px 34px 8px 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-weight: 700;
}

input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #6b7280;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
}

.badge-arrival,
.status-arrival {
  background: #decaf7;
  color: #623a98;
}

.badge-traveler,
.status-traveler {
  background: #c60f08;
  color: #fff2f2;
}

.badge-daily,
.status-daily {
  background: #0f7a46;
  color: #effff7;
}

.badge-hot,
.status-hot {
  background: #ffe3a3;
  color: #6f4a00;
}

.badge-clean,
.status-clean {
  background: #12824f;
  color: #effff7;
}

.badge-dirty,
.status-dirty {
  background: #5f4720;
  color: #fff1c8;
}

.badge-sleep,
.status-sleep {
  background: #e5e7eb;
  color: #1f2937;
}

.badge-empty,
.status-empty {
  background: #eef2f7;
  color: #6b7280;
}

tr.hidden {
  display: none;
}

tr.just-updated,
.room-card.just-updated {
  animation: flash-update 2.2s ease;
}

@keyframes flash-update {
  0% {
    background: #fff8c7;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.35);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 820px) {
  .page {
    padding: 16px;
  }

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

  .toolbar-actions,
  .user-chip {
    align-items: stretch;
    justify-content: flex-start;
  }

  h1 {
    font-size: 26px;
  }

  .search input {
    max-width: none;
    min-width: 0;
  }

  .desktop-only {
    display: none;
  }

  .room-cards {
    display: grid;
  }

  .tree-layout {
    grid-template-columns: 1fr;
  }

  .admin-drawer {
    width: 100vw;
    max-width: none;
    border-right: 0;
  }

  .admin-home-card {
    padding: 14px;
  }
}
