@import url('../telegram/concierge-theme.css');
@import url('../telegram/lotus-theme.css');
@import url('concierge-staff-theme.css');

body.dashboard-mode-simple #nav-staff-inbox,
body.dashboard-mode-simple #nav-archived-staff,
body.dashboard-mode-simple #nav-insights,
body.dashboard-mode-simple #nav-monitoring {
  display: none !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* display:flex on shells overrides the native [hidden] rule — enforce it */
[hidden] { display: none !important; }

body {
  font-family: var(--lotus-font-body);
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  color: var(--lotus-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* —— Login —— */
.login-screen:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--lotus-bg);
  background-image: radial-gradient(ellipse at top, rgba(184, 146, 74, 0.08), transparent 60%);
}

html[data-staff-sandbox="1"] #app-login {
  display: none !important;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--lotus-bg-card);
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius);
  padding: 28px 24px;
  box-shadow: var(--lotus-shadow);
}

.login-shell {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.login-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  
  color: var(--lotus-text-muted);
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}

.login-powered-by:hover {
  color: var(--lotus-primary);
}

.login-powered-by-brand {
  font-weight: 600;
  color: var(--lotus-text);
}

.login-powered-by:hover .login-powered-by-brand {
  color: var(--lotus-primary);
}

.login-powered-by-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.25));
}

.lang-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  color: var(--lotus-primary);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--lotus-font-body);
}

.lang-toggle:hover {
  border-color: rgba(184, 146, 74, 0.45);
}

.lang-toggle-dash {
  position: static;
}

.btn-refresh-system {
  border-color: rgba(184, 146, 74, 0.55);
  color: var(--lotus-primary, #c9a962);
}

.btn-refresh-system:hover:not(:disabled) {
  background: rgba(184, 146, 74, 0.12);
  border-color: rgba(184, 146, 74, 0.75);
}

.btn-refresh-system:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-reset-data {
  border-color: rgba(220, 90, 90, 0.45);
  color: #e07070;
}

.btn-reset-data:hover:not(:disabled) {
  background: rgba(220, 90, 90, 0.1);
  border-color: rgba(220, 90, 90, 0.65);
}

.btn-reset-data:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-export-data {
  border-color: var(--lotus-border-gold);
  color: var(--lotus-primary);
}

.btn-export-data:hover:not(:disabled) {
  background: var(--lotus-primary-light);
  border-color: rgba(184, 146, 74, 0.55);
}

.btn-export-data:disabled {
  opacity: 0.55;
  cursor: wait;
}

.export-dialog {
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius);
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  background: var(--lotus-bg-card);
  color: var(--lotus-text);
  box-shadow: var(--lotus-shadow);
}

.export-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.export-dialog-inner {
  padding: 20px 22px 18px;
  margin: 0;
}

.export-dialog-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lotus-text);
}

.export-dialog-sub {
  margin: 0 0 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--lotus-text-muted);
}

.export-fieldset {
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm);
  padding: 10px 12px 8px;
  margin: 0 0 12px;
  background: var(--lotus-bg-elevated);
}

.export-fieldset legend {
  font-size: 0.78rem;
  color: var(--lotus-text-muted);
  padding: 0 4px;
}

.export-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin: 6px 0;
  cursor: pointer;
  color: var(--lotus-text);
}

.export-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--lotus-primary);
  cursor: pointer;
}

.export-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.lotus-support-actions {
  flex-wrap: wrap;
}

.lotus-support-actions .btn-primary,
.lotus-support-actions .btn-outline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#lotus-support-issue {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  font: inherit;
  color: inherit;
  background: var(--lotus-bg-elevated, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}

.monitoring-support-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.monitoring-support-lead {
  margin: 0;
  font-size: 0.84rem;
  color: var(--lotus-text-muted, #888);
}

.training-banner {
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #f0f0f0;
}

.training-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.training-banner-inner strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  
  color: #ffffff;
  margin-bottom: 2px;
}

.training-banner-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.training-banner[data-loading="1"]::after {
  content: ' …';
}

.login-brand { text-align: center; margin-bottom: 24px; }

.login-brand .lotus-wordmark {
  display: block;
  margin: 0 auto 8px;
}

.login-brand p {
  font-size: 0.88rem;
  color: var(--lotus-text-muted);
  margin-top: 4px;
}

/* Manager / super sign-in: no department picker (CSS fallback before JS runs) */
.login-form:has(#login-role option[value="manager"]:checked) #login-dept-wrap,
.login-form:has(#login-role option[value="super"]:checked) #login-dept-wrap {
  display: none !important;
}

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

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
}

.login-form input,
.login-form select,
.thread-compose input {
  background: var(--lotus-bg);
  border: 1px solid var(--lotus-border);
  color: var(--lotus-text);
  border-radius: var(--lotus-radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--lotus-font-body);
  color-scheme: dark;
  accent-color: var(--lotus-primary);
}

.login-form select option,
.dash-filter-select option,
.inbox-filter option {
  background-color: var(--lotus-bg-card);
  color: var(--lotus-text);
}

.login-hint {
  font-size: 0.82rem;
  color: #e57373;
  text-align: center;
}

.btn-primary {
  background: var(--lotus-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--lotus-radius-sm);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--lotus-font-body);
}

.btn-primary:disabled { opacity: 0.45; cursor: default; }

.btn-outline {
  background: transparent;
  color: var(--lotus-primary);
  border: 1px solid var(--lotus-primary);
  border-radius: var(--lotus-radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--lotus-font-body);
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* —— Dashboard shell —— */
.dashboard:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
  height: calc(100vh - 40px);
  margin: 20px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(109, 40, 217, 0.12);
  overflow: hidden;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--lotus-border);
  background: #FFFFFF;
  flex-shrink: 0;
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-header h1.lotus-wordmark {
  margin: 0;
}

.dash-data-status {
  margin: 0;
  flex: 0 0 auto;
  max-width: min(220px, 36vw);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #64748b;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-data-status[data-kind="loading"] {
  color: #64748b;
}

.dash-data-status[data-kind="error"] {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.18);
}

.dash-dept {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lotus-text-muted);
  background: var(--lotus-primary-light);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.dash-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.dash-header-menu {
  position: relative;
}

.dash-menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--lotus-border);
  background: var(--lotus-bg-elevated);
  color: var(--lotus-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-menu-toggle:hover,
.dash-menu-toggle[aria-expanded="true"] {
  border-color: rgba(184, 146, 74, 0.45);
  background: rgba(184, 146, 74, 0.08);
}

.dash-menu-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.dash-menu-status-dot {
  position: absolute;
  bottom: 6px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--lotus-bg-card);
  background: rgba(148, 163, 184, 0.8);
}

.dash-menu-status-dot.healthy {
  background: #34d399;
}

.dash-menu-status-dot.degraded {
  background: #fbbf24;
}

.dash-menu-status-dot.down {
  background: #f87171;
}

.dash-menu-attention-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e85d5d;
  border: 2px solid var(--lotus-bg-card);
}

.dash-menu-toggle.healthy {
  border-color: rgba(52, 211, 153, 0.35);
}

.dash-menu-toggle.degraded {
  border-color: rgba(251, 191, 36, 0.4);
}

.dash-menu-toggle.down {
  border-color: rgba(248, 113, 113, 0.45);
}

.dash-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--lotus-border-gold);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  z-index: 120;
}

.dash-menu-panel[hidden] {
  display: none;
}

.dash-menu-user {
  margin: 4px 10px 8px;
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
}

.dash-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--lotus-text);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dash-menu-item:hover {
  background: rgba(184, 146, 74, 0.1);
}

.dash-menu-item[hidden] {
  display: none;
}

.dash-menu-item--danger {
  color: #f0a8a8;
}

.dash-menu-item-label {
  flex: 1;
}

.dash-menu-item-value {
  font-size: 0.8rem;
  color: var(--lotus-primary);
  font-weight: 600;
}

.dash-menu-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--lotus-border);
}

.dash-menu-divider[hidden] {
  display: none;
}

.dash-header-notify {
  flex-shrink: 0;
}

.dash-menu-item.lang-toggle {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
  background: transparent;
  padding: 10px 12px;
}

.dash-menu-item.dash-menu-status {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2px;
  padding: 10px 12px;
  font-size: 0.82rem;
  text-align: left;
}

.dash-menu-item.dash-menu-status .monitoring-status-text {
  flex: 1;
  line-height: 1.35;
}

.dash-menu-panel .dash-menu-item.monitoring-status-pill {
  border-radius: 8px;
}

.dash-menu-panel .dash-menu-item.btn-export-data,
.dash-menu-panel .dash-menu-item.btn-refresh-system,
.dash-menu-panel .dash-menu-item.btn-reset-data {
  border: none;
}

.notify-bell {
  position: relative;
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.notify-bell:hover {
  border-color: rgba(184, 146, 74, 0.45);
}

.notify-bell.is-off {
  opacity: 0.55;
}

.notify-bell.is-denied {
  border-color: rgba(220, 100, 100, 0.45);
}

.notify-bell-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lotus-text-muted);
  line-height: 1;
}

.notify-bell-icon svg {
  display: block;
}

.notify-bell:hover .notify-bell-icon,
.notify-bell:not(.is-off) .notify-bell-icon {
  color: var(--lotus-text);
}

.notify-bell-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e85d5d;
  border: 2px solid var(--lotus-bg-card);
}

.dash-user {
  font-size: 0.85rem;
  color: var(--lotus-text-muted);
}

.dash-shell {
  display: flex;
  flex: 1;
}

.dash-sidebar {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 10px;
  border-right: 1px solid var(--lotus-border);
  background: #FFFFFF;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  height: 64px;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--lotus-text-muted);
  border-radius: 16px;
  padding: 8px;
  font-size: 0.7rem;
  font-family: var(--lotus-font-body);
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
  color: var(--lotus-primary);
  background: var(--lotus-primary-light);
}

.sidebar-nav-item.active {
  color: #FFFFFF;
  background: var(--lotus-primary);
  box-shadow: 0 4px 12px var(--lotus-primary-glow);
}

.sidebar-nav-label {
  flex: 1;
  min-width: 0;
}

.sidebar-nav-badge {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--lotus-primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  line-height: 1;
}

.sidebar-nav-badge.is-pulse {
  box-shadow: 0 0 0 2px rgba(184, 146, 74, 0.35);
}

.staff-notify-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  pointer-events: none;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0));
}

.staff-notify-bar[hidden] {
  display: none !important;
}

.staff-notify-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  pointer-events: none;
}

.staff-notify-banner {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(184, 146, 74, 0.35);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  animation: staff-notify-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.staff-notify-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(16, 52, 141, 0.08);
  pointer-events: none;
  z-index: 2;
}

.staff-notify-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 0 2px 2px 0;
  animation: staff-notify-progress var(--notify-duration, 8s) linear forwards;
  will-change: transform;
}

.staff-notify-banner--success .staff-notify-progress-fill {
  background: linear-gradient(90deg, #34d399 0%, #6ee7a0 100%);
}

.staff-notify-banner--error .staff-notify-progress-fill {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.staff-notify-banner--info .staff-notify-progress-fill {
  background: linear-gradient(90deg, #00a3c4 0%, #00e5ff 100%);
}

.staff-notify-banner.is-paused .staff-notify-progress-fill {
  animation-play-state: paused;
}

.staff-notify-banner--success {
  border-color: rgba(52, 211, 153, 0.28);
}

.staff-notify-banner--error {
  border-color: rgba(248, 113, 113, 0.28);
}

.staff-notify-banner--info {
  border-color: rgba(0, 184, 212, 0.28);
}

.staff-notify-banner.is-dismissed {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.staff-notify-banner.is-static {
  cursor: default;
}

.staff-notify-banner-body-wrap {
  flex: 1;
  min-width: 0;
}

.staff-notify-banner-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lotus-primary);
  line-height: 1.35;
}

.staff-notify-banner--success .staff-notify-banner-title {
  color: #6ee7a0;
}

.staff-notify-banner--error .staff-notify-banner-title {
  color: #f87171;
}

.staff-notify-banner-text {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--lotus-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.staff-notify-banner-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.staff-notify-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--lotus-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin: -2px -2px 0 0;
}

.staff-notify-close:hover {
  color: var(--lotus-text);
}

@keyframes staff-notify-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes staff-notify-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sidebar-nav-item:hover {
  color: var(--lotus-text);
  background: var(--lotus-bg-elevated);
}

.sidebar-nav-item.active {
  color: var(--lotus-primary);
  border-color: rgba(184, 146, 74, 0.4);
  background: rgba(184, 146, 74, 0.1);
  font-weight: 600;
}

.sidebar-nav-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--lotus-border);
}

.sidebar-nav-performance:hover {
  color: var(--lotus-text);
  background: var(--lotus-bg-elevated);
}

.sidebar-nav-performance.active {
  background: linear-gradient(135deg, rgba(184, 146, 74, 0.32), rgba(139, 92, 246, 0.22));
  border-color: rgba(184, 146, 74, 0.75);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav-monitoring.active {
  background: linear-gradient(135deg, rgba(72, 168, 148, 0.22), rgba(184, 146, 74, 0.14));
  border-color: rgba(72, 168, 148, 0.45);
  color: var(--lotus-primary);
  font-weight: 600;
}

.sidebar-nav-icon {
  font-size: 1rem;
  line-height: 1;
}

.sidebar-divider {
  flex-shrink: 0;
  height: 0;
  border: none;
  border-top: 1px solid var(--lotus-border);
  margin: 6px 6px;
}

.dash-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dash-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dash-body {
  display: grid;
  flex: 1;
  min-height: 0;
}

.dash-body-orders-gr,
.dash-body-layout-dept {
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 2fr);
}

.dash-body-guest-chats,
.dash-body-archived-guests {
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 2fr);
}

.dash-body-staff-inbox,
.dash-body-archived-staff {
  grid-template-columns: minmax(240px, 0.9fr) minmax(420px, 2fr);
}

.col-toolbar-filters,
.reservations-toolbar-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.col-toolbar--filtered {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 14px 12px;
}

.col-toolbar--filtered h2 {
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.col-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.col-toolbar-head h2 {
  flex: 1;
  min-width: 0;
}

.btn-start-live {
  flex-shrink: 0;
  white-space: nowrap;
}

.start-live-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
}

.start-live-field input {
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 8px;
  color: var(--lotus-text);
  padding: 10px 12px;
  font-size: 0.9rem;
}

.start-live-error {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #f0a8a8;
}

.col-toolbar--filtered .col-toolbar-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.dash-filter[hidden] {
  display: none !important;
}

.dash-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.dash-filter-label {
  font-family: var(--lotus-font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  
  color: var(--lotus-text-muted);
  line-height: 1;
  padding-left: 1px;
}

.dash-filter-select,
.inbox-filter {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 28px 8px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--lotus-font-heading);
  letter-spacing: 0.06em;
  
  color: var(--lotus-ivory);
  background-color: var(--lotus-bg-elevated);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%23B8924A' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 10px;
  background-position: right 11px center;
  border: 1px solid var(--lotus-border-gold);
  border-radius: var(--lotus-radius-pill);
  cursor: pointer;
  transition: border-color 0.2s var(--lotus-ease), background-color 0.2s var(--lotus-ease), box-shadow 0.2s var(--lotus-ease);
}

.dash-filter-select:hover,
.inbox-filter:hover {
  border-color: rgba(184, 146, 74, 0.45);
  background-color: var(--lotus-primary-light);
}

.dash-filter-select:focus,
.inbox-filter:focus {
  outline: none;
  border-color: var(--lotus-primary);
  box-shadow: 0 0 0 2px var(--lotus-primary-glow);
}

.dash-filter-select option,
.inbox-filter option {
  background-color: var(--lotus-bg-card);
  color: var(--lotus-text);
  font-family: var(--lotus-font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  
}

.dash-filter-select option:checked,
.inbox-filter option:checked {
  background-color: var(--lotus-primary-dark);
  color: var(--lotus-ivory);
}

.dash-custom-select {
  position: relative;
  width: 100%;
}

.dash-custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.dash-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background-image: none !important;
}

.dash-custom-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-custom-select-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

.dash-custom-select.is-open .dash-custom-select-chevron {
  transform: rotate(180deg);
}

.dash-custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--lotus-border-gold);
  background: var(--lotus-bg-elevated);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
  max-height: 240px;
  overflow-y: auto;
}

.dash-custom-select-search-wrap {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 2px 6px;
  background: inherit;
}

.dash-custom-select-search {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--lotus-border);
  background: var(--lotus-bg-card);
  color: var(--lotus-text);
  font: inherit;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
}

.dash-custom-select-search:focus {
  outline: none;
  border-color: var(--lotus-primary);
}

.dash-custom-select-option[hidden] {
  display: none !important;
}

.dash-custom-select-option {
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--lotus-font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  
  color: var(--lotus-text);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.dash-custom-select-option:hover,
.dash-custom-select-option.is-selected {
  background: var(--lotus-primary-light);
  color: var(--lotus-primary);
}

.staff-dept-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--lotus-border);
}

.staff-dept-btn {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm);
  background: var(--lotus-bg-elevated);
  color: var(--lotus-text-muted);
  font-size: 0.76rem;
  font-family: var(--lotus-font-body);
  cursor: pointer;
  text-align: center;
}

.staff-dept-btn.is-active {
  color: var(--lotus-primary);
  border-color: var(--ac-border-glow, rgba(255, 255, 255, 0.48));
  background: var(--ac-cyan-lo, rgba(255, 255, 255, 0.12));
  font-weight: 600;
}

.staff-general-chat-section {
  flex-shrink: 0;
  border-bottom: 2px solid var(--lotus-border);
}

.staff-general-chat-wrap {
  border-bottom: none !important;
  background: var(--lotus-bg-elevated);
}

.staff-general-chat-wrap.active .staff-inbox-item {
  background: rgba(184, 146, 74, 0.08) !important;
  box-shadow: inset 3px 0 0 var(--lotus-secondary) !important;
}

.staff-general-chat-wrap .inbox-item-room {
  font-weight: 600;
  color: var(--lotus-secondary-dark);
}

.staff-guest-section-header {
  font-size: 0.68rem;
  
  letter-spacing: 0.05em;
  color: var(--lotus-text-muted);
  padding: 12px 14px 6px;
  font-weight: 700;
  border-bottom: 1px solid var(--lotus-border);
  background: var(--lotus-bg-elevated);
  user-select: none;
}

.staff-inbox-list {
  flex: 1;
  overflow-y: auto;
}

.staff-inbox-item {
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--lotus-border);
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--lotus-font-body);
  color: inherit;
}

.staff-inbox-item:hover,
.staff-inbox-item.active {
  background: rgba(184, 146, 74, 0.06);
}

.staff-inbox-item.active {
  box-shadow: inset 3px 0 0 var(--lotus-primary);
}

.thread-ops-bar-staff {
/* —— Dashboard columns —— */
.dash-col {
  border-right: 1px solid rgba(26, 31, 54, 0.10);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--lotus-bg-card);
}
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  overflow: hidden;
}

.reservations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.reservations-toolbar h2 {
  font-family: var(--lotus-font-heading);
  font-size: 1.05rem;
  color: var(--lotus-primary);
}

.reservations-list {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-content: start;
}

.reservation-card {
  background: var(--lotus-bg-card);
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reservation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.reservation-card-head strong {
  font-family: var(--lotus-font-card-title);
  color: var(--lotus-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.reservation-type {
  font-size: 0.72rem;
  
  letter-spacing: 0.04em;
  color: var(--lotus-text-muted);
  background: var(--lotus-bg-elevated);
  border-radius: 12px;
  padding: 2px 8px;
  white-space: nowrap;
}

.reservation-meta {
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
  line-height: 1.45;
}

.reservation-meta dt {
  display: inline;
  font-weight: 600;
  color: var(--lotus-text);
}

.completed-order-summary {
  font-size: 0.84rem;
  color: var(--lotus-text-muted);
  line-height: 1.45;
  margin: 0;
}

.reservation-meta dd {
  display: inline;
  margin: 0;
}

.reservation-meta dd::after {
  content: '\A';
  white-space: pre;
}

/* —— Dashboard columns —— */
.dash-col {
  border-right: 1px solid var(--lotus-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--lotus-bg-card);
}

.col-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  gap: 8px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--lotus-border);
}

.col-toolbar h2 {
  font-family: var(--lotus-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lotus-primary);
  letter-spacing: 0.02em;
}

.col-toolbar-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lotus-text-muted);
}

.col-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--lotus-text-muted);
  font-size: 0.88rem;
}

/* inbox-filter base styles live with .dash-filter-select above */

.channel-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--lotus-border);
  background: var(--lotus-bg);
}

.channel-pill.channel-inhouse {
  border-color: rgba(184, 146, 74, 0.35);
  color: var(--lotus-primary);
}

.channel-pill.channel-prearrival {
  border-color: rgba(120, 180, 220, 0.35);
  color: #8ecae6;
}

.context-facts code {
  font-size: 0.75rem;
  word-break: break-all;
}

.orders-queue-list,
.rooms-inbox-list,
.completed-panel .orders-queue-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.order-queue-item {
  border-bottom: 1px solid var(--lotus-border);
  transition: background 0.15s;
  cursor: pointer;
}

.order-queue-item:hover {
  background: var(--lotus-bg-elevated);
}

.order-queue-item.active {
  background: var(--lotus-bg-elevated);
}

.order-queue-item.order-glow,
.order-queue-item.order-glow:hover {
  /* Retired: selection uses .active only */
  border-left: none;
  background: transparent;
}

.order-queue-item:focus-visible {
  outline: 2px solid var(--lotus-primary);
  outline-offset: -2px;
}

.order-queue-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  color: inherit;
  font-family: var(--lotus-font-body);
  pointer-events: auto;
  gap: 3px;
}

.order-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.order-queue-room {
  font-family: var(--lotus-font-card-title);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lotus-primary);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.order-queue-status {
  font-size: 0.68rem;
  
  letter-spacing: 0.04em;
  color: var(--lotus-primary);
  white-space: nowrap;
  font-weight: 600;
}

.order-queue-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.order-queue-summary {
  font-size: 0.8rem;
  color: var(--lotus-text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.order-queue-time {
  font-size: 0.72rem;
  color: var(--lotus-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.list-sort-bar,
.orders-sort-bar,
.messages-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 1rem 0.55rem;
}

.orders-sort-bar .orders-kbd-hint {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.orders-sort-bar .orders-sort-label {
  flex: 0 0 auto;
  margin-left: auto;
}

.list-sort-label,
.orders-sort-label,
.messages-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lotus-text-muted);
  letter-spacing: 0.02em;
}

.list-sort-select,
.orders-sort-select,
.messages-sort-select {
  min-width: 0;
  width: auto;
  max-width: min(16rem, 70vw);
}

/* Ghost text control — no filled capsule */
.list-sort-bar .dash-custom-select {
  width: auto;
  min-width: 0;
}

.list-sort-bar .dash-custom-select-trigger,
.list-sort-bar .list-sort-select {
  width: auto;
  max-width: min(16rem, 70vw);
  padding: 0.15rem 0.1rem !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lotus-text);
}

.list-sort-bar .dash-custom-select.is-open .dash-custom-select-trigger,
.list-sort-bar .dash-custom-select-trigger:hover,
.list-sort-bar .dash-custom-select-trigger:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--lotus-gold, var(--ac-cyan, #4CC9F0));
  outline: none;
}

.order-queue-actions {
  padding: 0 14px 10px;
}

.order-queue-actions .btn-activity {
  width: 100%;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.inbox-item-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.room-order-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--ac-cyan-lo, rgba(255, 255, 255, 0.12));
  color: var(--lotus-primary);
  border: 1px solid var(--ac-border-glow, rgba(255, 255, 255, 0.48));
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.inbox-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--lotus-border);
  padding: 10px 14px;
  cursor: pointer;
  color: inherit;
  font-family: var(--lotus-font-body);
  transition: background 0.15s;
  gap: 3px;
}

.inbox-item:hover,
.inbox-item.active {
  background: var(--lotus-bg-elevated);
}

.inbox-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.inbox-item-room {
  font-family: var(--lotus-font-card-title);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lotus-primary);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.inbox-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--lotus-primary);
  white-space: nowrap;
}

.inbox-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--lotus-primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.inbox-item-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.inbox-item-preview {
  font-size: 0.8rem;
  color: var(--lotus-text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.inbox-item-time {
  font-size: 0.72rem;
  color: var(--lotus-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.inbox-item-archived {
  font-size: 0.68rem;
  color: var(--lotus-text-muted);
  margin-top: 2px;
}

.inbox-status {
  
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.68rem;
}

.inbox-status.waiting { color: #ffb74d; }
.inbox-status.live { color: #81c784; }

.inbox-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--lotus-text-muted);
  font-size: 0.88rem;
}

/* —— Order detail (department staff) —— */
.order-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--lotus-bg);
  border-right: 1px solid var(--lotus-border);
}

.order-detail-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lotus-text-muted);
  font-size: 0.92rem;
  padding: 24px;
  text-align: center;
}

.order-detail-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--lotus-border);
  flex-shrink: 0;
}

.order-detail-header h2 {
  font-family: var(--lotus-font-card-title);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lotus-primary);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.order-detail-sub {
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
  margin-top: 4px;
}

.order-detail-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  
  color: var(--lotus-primary);
  white-space: nowrap;
}

.order-detail-status.is-complete,
.order-queue-status.is-complete {
  color: #81c784;
}

.order-detail-readonly .order-detail-actions {
  display: none;
}

.order-queue-item-completed.active {
  border-left: 3px solid rgba(129, 199, 132, 0.55);
}

.order-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-detail-summary {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--lotus-text);
}

.order-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px;
  font-size: 0.82rem;
}

.order-detail-meta dt {
  color: var(--lotus-text-muted);
  font-weight: 600;
}

.order-detail-meta dd {
  color: var(--lotus-text);
  margin: 0;
}

.order-detail-timeline-wrap h3 {
  font-family: var(--lotus-font-heading);
  font-size: 0.82rem;
  
  letter-spacing: 0.05em;
  color: var(--lotus-text-muted);
  margin-bottom: 8px;
}

.order-detail-timeline {
  padding: 4px 0 8px;
}

.order-progress-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  min-height: 44px;
}

.order-progress-step:not(:last-child) .order-progress-rail {
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -10px;
  width: 2px;
  background: var(--lotus-border);
  border-radius: 1px;
}

.order-progress-step.is-done:not(:last-child) .order-progress-rail {
  background: linear-gradient(180deg, var(--lotus-primary) 0%, rgba(56, 219, 200, 0.35) 100%);
}

.order-progress-dot {
  grid-column: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--lotus-border);
  background: var(--lotus-bg);
  justify-self: center;
  z-index: 1;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.order-progress-step.is-done .order-progress-dot {
  border-color: var(--lotus-primary);
  background: var(--lotus-primary);
  box-shadow: 0 0 0 4px rgba(56, 219, 200, 0.15);
}

.order-progress-step.is-current .order-progress-dot {
  border-color: var(--lotus-primary);
  background: var(--lotus-bg);
  box-shadow: 0 0 0 5px rgba(56, 219, 200, 0.22);
}

.order-progress-step.is-pending .order-progress-dot {
  opacity: 0.55;
}

.order-progress-step.is-animating .order-progress-dot {
  animation: order-progress-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.order-progress-label {
  grid-column: 2;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lotus-text-muted);
  transition: color 0.3s ease;
}

.order-progress-step.is-done .order-progress-label,
.order-progress-step.is-current .order-progress-label {
  color: var(--lotus-text);
}

.order-progress-step.is-done .order-progress-label {
  color: var(--lotus-primary);
}

@keyframes order-progress-pop {
  0% { transform: scale(0.6); opacity: 0.4; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.order-detail-hint {
  font-size: 0.8rem;
  color: var(--lotus-text-muted);
  line-height: 1.45;
  padding: 10px 12px;
  background: var(--lotus-bg-elevated);
  border-radius: var(--lotus-radius-sm);
  border-left: 3px solid var(--lotus-primary);
}

.order-detail-actions {
  flex-shrink: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--lotus-border);
}

.order-detail-actions .btn-activity {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.order-queue-item .order-queue-actions {
  display: none;
}

.dash-body-layout-dept .order-queue-item .order-queue-actions {
  display: none;
}

/* —— Thread —— */
.thread-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--lotus-bg);
}

.thread-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lotus-text-muted);
  font-size: 0.92rem;
  padding: 24px;
  text-align: center;
}

.thread-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--lotus-border);
  flex-shrink: 0;
  gap: 12px;
}

.thread-header-main {
  flex: 1;
  min-width: 0;
}

.thread-header h2 {
  font-family: var(--lotus-font-card-title);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lotus-primary);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.thread-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.room-inbox-wrap,
.staff-inbox-wrap {
  border-bottom: 1px solid var(--lotus-border);
  cursor: pointer;
}

.staff-inbox-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  
  margin-left: auto;
  padding: 2px 7px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--ac-cyan, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.staff-inbox-badge--new {
  color: var(--ac-role-interactive, #ffffff);
  font-size: 1rem;
  line-height: 1;
}

.room-inbox-wrap:focus-visible,
.staff-inbox-wrap:focus-visible {
  outline: 2px solid var(--lotus-primary);
  outline-offset: -2px;
}

.room-inbox-wrap.active .room-inbox-item,
.staff-inbox-wrap.active .staff-inbox-item {
  background: var(--lotus-bg-elevated);
}

.room-inbox-wrap .room-inbox-item,
.staff-inbox-wrap .staff-inbox-item {
  width: 100%;
  pointer-events: none;
}

.btn-restore-inline {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 10px;
  padding: 6px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 146, 74, 0.45);
  background: transparent;
  color: var(--lotus-primary);
  cursor: pointer;
  font-family: var(--lotus-font-body);
}

.btn-restore-inline:hover {
  background: rgba(184, 146, 74, 0.1);
}

.inbox-archived-meta {
  width: 100%;
  font-size: 0.68rem;
  color: var(--lotus-text-muted);
  margin-top: 2px;
}

.inbox-status.archived {
  color: var(--lotus-text-muted);
}

.thread-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
}

.thread-context div {
  font-size: 0.72rem;
  color: var(--lotus-text-muted);
}

.thread-context dt {
  display: inline;
  font-weight: 600;
  color: var(--lotus-text);
  margin-right: 4px;
}

.thread-context dt::after {
  content: ':';
}

.thread-context dd {
  display: inline;
  margin: 0;
  font-weight: 500;
}

.thread-context code {
  font-size: 0.68rem;
  word-break: break-all;
}

.thread-sub {
  font-size: 0.8rem;
  color: var(--lotus-text-muted);
  margin-top: 2px;
}

.thread-status {
  font-size: 0.72rem;
  font-weight: 600;
  
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--lotus-bg-elevated);
  color: var(--lotus-primary);
}

.thread-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.msg-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: var(--lotus-radius-sm);
  border: 1px solid var(--lotus-border);
  background: var(--lotus-bg-card);
}

.msg-bubble.msg-guest {
  align-self: flex-start;
}

.msg-bubble.msg-staff {
  align-self: flex-end;
  background: rgba(184, 146, 74, 0.12);
  border-color: rgba(184, 146, 74, 0.35);
}

.msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--lotus-text-muted);
  margin-bottom: 5px;
}

.msg-text {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.thread-compose {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--lotus-border);
  background: var(--lotus-bg-card);
  flex-shrink: 0;
}

.thread-compose input { flex: 1; }

.thread-compose .btn-primary {
  flex-shrink: 0;
  padding: 12px 18px;
}

/* —— Context —— */
.context-panel {
  border-left: 1px solid var(--lotus-border);
  padding: 16px 14px;
  overflow-y: auto;
  background: var(--lotus-bg-card);
  min-height: 0;
}

.context-panel h3 {
  font-family: var(--lotus-font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  
  letter-spacing: 0.06em;
  color: var(--lotus-text-muted);
  margin-bottom: 10px;
}

.context-section-title { margin-top: 20px; }

.context-facts {
  display: grid;
  gap: 8px;
}

.context-facts div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px;
  font-size: 0.82rem;
}

.context-facts dt {
  color: var(--lotus-text-muted);
}

.context-facts dd { font-weight: 500; }

.context-activities { display: grid; gap: 8px; }

.activity-chip {
  background: var(--lotus-bg);
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem;
}

.activity-chip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.activity-chip strong {
  display: block;
  font-size: 0.85rem;
}

.activity-chip-status {
  font-size: 0.68rem;
  
  letter-spacing: 0.04em;
  color: var(--lotus-primary);
  white-space: nowrap;
}

.activity-chip-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-activity {
  background: transparent;
  color: var(--lotus-primary);
  border: 1px solid var(--ac-border-glow, rgba(255, 255, 255, 0.48));
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--lotus-font-body);
}

.btn-activity:disabled {
  opacity: 0.45;
  cursor: default;
}

.activity-chip span {
  color: var(--lotus-text-muted);
  font-size: 0.75rem;
  
  letter-spacing: 0.04em;
}

.context-empty {
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .dash-body-layout-gr {
    grid-template-columns: minmax(150px, 0.7fr) minmax(170px, 0.85fr) minmax(150px, 0.7fr) minmax(220px, 1fr);
  }
}

@media (max-width: 960px) {
  .dash-shell {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--lotus-border);
    padding: 8px;
  }

  .sidebar-nav-item {
    flex: 1 1 auto;
    width: auto;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .sidebar-divider {
    flex-basis: 100%;
    width: 100%;
    margin: 6px 0;
  }

  .dash-body-orders-gr,
  .dash-body-layout-dept,
  .dash-body-guest-chats,
  .dash-body-archived-guests,
  .dash-body-staff-inbox,
  .dash-body-archived-staff {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(42vh, 1fr);
  }

  .dash-col {
    max-height: 38vh;
    border-right: none;
    border-bottom: 1px solid var(--lotus-border);
  }

  .order-panel,
  .thread-panel {
    min-height: 42vh;
  }
}

@media (max-width: 600px) {
  .dash-header { flex-wrap: wrap; gap: 8px; }
  .dash-col { max-height: 28vh; }
}

/* —— GR internal department chat —— */
.thread-mode-bar {
  border-bottom: 1px solid var(--lotus-border);
}

.thread-mode-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px 0;
}

.thread-mode-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm) var(--lotus-radius-sm) 0 0;
  background: var(--lotus-bg-elevated);
  color: var(--lotus-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--lotus-font-body);
}

.thread-mode-btn.is-active {
  color: var(--lotus-primary);
  border-color: var(--ac-border-glow, rgba(255, 255, 255, 0.48));
  background: var(--ac-cyan-lo, rgba(255, 255, 255, 0.12));
}

.thread-ops-bar {
  padding: 10px 18px 0;
  display: grid;
  gap: 6px;
}

.thread-ops-dept-wrap {
  display: grid;
  gap: 8px;
  padding: 10px 18px 12px;
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
}

.thread-ops-dept-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.thread-ops-dept-btn {
  flex: 0 1 auto;
  min-width: 0;
  padding: 7px 12px;
  white-space: nowrap;
}

.thread-ops-hint,
.order-ops-hint {
  font-size: 0.75rem;
  color: var(--lotus-text-muted);
  font-style: italic;
}

.order-ops-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--lotus-border);
  display: grid;
  gap: 10px;
}

.order-ops-section h3 {
  font-family: var(--lotus-font-heading);
  font-size: 0.95rem;
  color: var(--lotus-primary);
}

.order-ops-messages {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm);
}

.order-ops-compose {
  display: flex;
  gap: 8px;
}

.order-ops-compose input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm);
  background: var(--lotus-bg-card);
  color: var(--lotus-text);
  font-family: var(--lotus-font-body);
}

.order-ops-compose .btn-primary {
  flex: 0 0 auto;
  width: auto;
  min-width: 68px;
  padding: 10px 14px;
}

.msg-bubble.msg-ops-gr {
  align-self: flex-start;
  background: rgba(110, 155, 200, 0.12);
  border-color: rgba(110, 155, 200, 0.35);
}

.msg-bubble.msg-ops-dept {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(79, 130, 220, 0.4);
}

.ops-empty {
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
  text-align: center;
  padding: 12px 8px;
}

.ops-typing-indicator {
  font-size: 0.78rem;
  color: var(--lotus-text-muted);
  font-style: italic;
  padding: 6px 18px 2px;
  animation: ops-pulse 1.5s ease-in-out infinite;
}

@keyframes ops-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* —— Performance Hub (manager only) —— */
.insights-panel {
  padding: 20px 24px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.insights-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.insights-header h2 {
  font-family: var(--lotus-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lotus-primary);
}

.insights-sub {
  font-size: 0.88rem;
  color: var(--lotus-text-muted);
  margin-top: 4px;
}

.insights-period {
  font-size: 0.78rem;
  color: var(--lotus-text-muted);
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 999px;
  padding: 6px 12px;
}

.insights-period-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.insights-period-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.insights-period-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  
  color: var(--lotus-text-muted);
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.insights-period-btn:hover {
  color: var(--lotus-text);
  border-color: rgba(56, 219, 200, 0.35);
}

.insights-period-btn.is-active {
  color: var(--lotus-primary);
  background: rgba(56, 219, 200, 0.1);
  border-color: rgba(56, 219, 200, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 219, 200, 0.12);
}

.insights-period-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.insights-period-date {
  font-size: 0.78rem;
  color: var(--lotus-text);
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 8px;
  padding: 5px 8px;
  min-width: 0;
}

.insights-period-date:focus {
  outline: none;
  border-color: rgba(56, 219, 200, 0.5);
  box-shadow: 0 0 0 2px rgba(56, 219, 200, 0.12);
}

.insights-period-sep {
  color: var(--lotus-text-muted);
  font-size: 0.8rem;
}

.insights-period-apply {
  font-size: 0.72rem;
  font-weight: 600;
  
  letter-spacing: 0.03em;
  color: var(--lotus-bg);
  background: linear-gradient(135deg, rgba(56, 219, 200, 0.95), rgba(34, 122, 161, 0.9));
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.insights-period-apply:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .insights-period-picker {
    align-items: stretch;
    width: 100%;
  }

  .insights-period-presets {
    justify-content: flex-start;
  }

  .insights-period-custom {
    justify-content: flex-start;
  }
}

.insights-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 720px) {
  .insights-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .insights-hero-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insights-hero-kpi {
  background: var(--lotus-bg-card);
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}

.insights-hero-kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(184, 146, 74, 0.9), rgba(139, 92, 246, 0.7));
}

.insights-hero-kpi.emerald::before {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.75));
}

.insights-hero-kpi.gold::before {
  background: linear-gradient(90deg, rgba(184, 146, 74, 0.95), rgba(245, 158, 11, 0.75));
}

.insights-hero-label {
  font-size: 0.78rem;
  
  letter-spacing: 0.05em;
  color: var(--lotus-text-muted);
  margin-bottom: 10px;
}

.insights-hero-value {
  font-family: var(--lotus-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--lotus-text);
  font-variant-numeric: tabular-nums;
}

.insights-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.insights-value-row--secondary {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.insights-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.insights-value-row--secondary .insights-trend {
  font-size: 0.7rem;
}

.insights-trend-period {
  font-weight: 500;
  opacity: 0.82;
}

.insights-trend--up {
  color: #34d399;
}

.insights-trend--down {
  color: #f87171;
}

.insights-trend--flat {
  color: var(--lotus-text-muted);
}

.insights-trend--new {
  color: #60a5fa;
  
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.insights-hero-kpi.emerald .insights-hero-value {
  color: #34d399;
}

.insights-hero-note {
  font-size: 0.76rem;
  color: var(--lotus-text-muted);
  margin-top: 8px;
}

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

@media (max-width: 1100px) {
  .insights-secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .insights-secondary-grid {
    grid-template-columns: 1fr;
  }
}

.insights-secondary-kpi {
  background: var(--lotus-bg-card);
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.insights-secondary-label {
  font-size: 0.72rem;
  
  letter-spacing: 0.04em;
  color: var(--lotus-text-muted);
  margin-bottom: 6px;
}

.insights-secondary-value {
  font-family: var(--lotus-font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--lotus-text);
  font-variant-numeric: tabular-nums;
}

.insights-card-hint {
  font-size: 0.76rem;
  color: var(--lotus-text-muted);
  margin: -8px 0 12px;
}

.insights-loading {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--lotus-text-muted);
}

.monitoring-loading {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--lotus-text-muted);
  text-align: center;
}

.insights-bar-value.money::before {
  content: '$';
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .insights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.insights-card {
  background: var(--lotus-bg-card);
  border: 1px solid var(--lotus-border);
  border-radius: var(--lotus-radius);
  padding: 16px;
}

.insights-card-wide {
  grid-column: 1 / -1;
}

.insights-card h3 {
  font-family: var(--lotus-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--lotus-text);
}

.insights-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insights-bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
}

.insights-bar-label {
  color: var(--lotus-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insights-bar-track {
  height: 8px;
  background: var(--lotus-bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}

.insights-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 146, 74, 0.85), rgba(139, 92, 246, 0.75));
}

.insights-bar-value {
  font-variant-numeric: tabular-nums;
  color: var(--lotus-text);
  min-width: 3.5rem;
  text-align: right;
}

.insights-weekly-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 140px;
  padding-top: 8px;
}

.insights-week-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.insights-week-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
}

.insights-week-bar {
  width: 10px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.insights-week-bar.chats { background: rgba(96, 165, 250, 0.85); }
.insights-week-bar.orders { background: rgba(184, 146, 74, 0.9); }
.insights-week-bar.bookings { background: rgba(52, 211, 153, 0.85); }

.insights-week-label {
  font-size: 0.72rem;
  color: var(--lotus-text-muted);
}

.insights-weekly-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--lotus-text-muted);
}

.insights-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.insights-dot-chats { background: rgba(96, 165, 250, 0.85); }
.insights-dot-orders { background: rgba(184, 146, 74, 0.9); }
.insights-dot-bookings { background: rgba(52, 211, 153, 0.85); }

.insights-updated {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--lotus-text-muted);
  text-align: center;
}

.insights-empty {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--lotus-text-muted);
}

/* —— System Health (manager / super) —— */
.monitoring-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--lotus-text-muted);
  font-size: 0.72rem;
  cursor: pointer;
}

.monitoring-status-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.monitoring-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.8);
}

.monitoring-status-pill.healthy .monitoring-status-dot {
  background: #34d399;
}

.monitoring-status-pill.degraded .monitoring-status-dot {
  background: #fbbf24;
}

.monitoring-status-pill.down .monitoring-status-dot {
  background: #f87171;
}

.monitoring-status-pill.healthy {
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.monitoring-status-pill.degraded {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.monitoring-status-pill.down {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.monitoring-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 4px 32px;
}

body.staff-concierge-app #view-monitoring:not([hidden]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  flex: 1;
  height: 100%;
}

body.staff-concierge-app .monitoring-panel {
  display: block;
  max-width: 1280px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 20px 24px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

body.staff-concierge-app[data-rail-view="monitoring"] #training-banner {
  display: none !important;
}

.monitoring-header {
  /* shares .insights-header layout */
}

.monitoring-body {
  display: none;
}

.monitoring-hero-grid {
  margin-bottom: 20px;
}

.monitoring-charts-grid {
  margin-bottom: 14px;
}

.monitoring-donut-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 140px;
}

.monitoring-chart-card .hijiffy-activity-donut {
  width: 120px;
  height: 120px;
}

.monitoring-chart-card .hijiffy-activity-donut span {
  width: 58px;
  height: 58px;
}

.monitoring-hourly-card {
  margin-top: 0;
}

.monitoring-hourly-card .monitoring-hourly {
  min-height: 88px;
}

.monitoring-updated {
  margin-top: 16px;
}

.monitoring-summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  align-items: stretch;
  flex: 0 0 auto;
}

.monitoring-summary-row .monitoring-overall,
.monitoring-summary-row .monitoring-uptime-goal {
  margin-bottom: 0;
  height: 100%;
}

.monitoring-summary-row .monitoring-overall {
  display: flex;
}

.monitoring-summary-row .monitoring-overall-card,
.monitoring-summary-row .monitoring-uptime-goal {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.monitoring-summary-row .monitoring-overall-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.monitoring-summary-row .monitoring-uptime-goal {
  min-height: 0;
  align-content: center;
}

.monitoring-summary-row:has(#monitoring-uptime-goal[hidden]) {
  grid-template-columns: 1fr;
  max-width: 440px;
  margin-inline: auto;
}

body.staff-concierge-app .monitoring-chart-card.hijiffy-side-card {
  padding: 14px 16px;
}

body.staff-concierge-app .monitoring-chart-card.hijiffy-side-card header {
  margin-bottom: 10px;
}

body.staff-concierge-app[data-rail-view="monitoring"] .monitoring-header h2 {
  display: block;
}

body.staff-concierge-app[data-rail-view="monitoring"] .monitoring-header {
  align-items: flex-start;
  margin-bottom: 20px;
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-activity-donut {
  width: 120px;
  height: 120px;
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-activity-donut span {
  width: 58px;
  height: 58px;
  background: var(--ac-bg-card, #fff);
  color: var(--ac-text);
  box-shadow: none;
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-activity-donut strong {
  font-size: 1.05rem;
  color: var(--ac-text);
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-activity-donut small {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-activity-body {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-channel-list {
  color: var(--ac-text-muted);
  gap: 8px;
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-channel-list em {
  color: var(--ac-text);
}

body.staff-concierge-app .monitoring-chart-card .hijiffy-channel-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-clip: padding-box;
  box-shadow: none;
}

body.staff-concierge-app .monitoring-overall-card {
  padding: 12px 14px;
}

body.staff-concierge-app .monitoring-overall-title {
  font-size: 0.92rem;
}

body.staff-concierge-app .monitoring-overall-note {
  font-size: 0.76rem;
}

.monitoring-header h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.monitoring-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lotus-text-muted);
}

.monitoring-updated {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: var(--lotus-text-muted);
  text-align: center;
  flex: 0 0 auto;
}

.monitoring-overall {
  margin-bottom: 16px;
}

.monitoring-overall-card {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.monitoring-overall-card.healthy {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.monitoring-overall-card.degraded {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.monitoring-overall-card.down {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
}

.monitoring-overall-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.monitoring-overall-note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
}

.monitoring-alerts,
.monitoring-alerts-desk {
  margin-bottom: 16px;
}

.monitoring-alert-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}

.monitoring-alert-list li,
.monitoring-alert-item {
  margin: 0;
}

.monitoring-grid {
  display: none;
}

.monitoring-uptime-goal {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(30, 41, 59, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 12px 20px;
  align-items: center;
}

.monitoring-uptime-goal-main {
  min-width: 0;
}

.monitoring-uptime-goal-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  
  color: #8a94a6;
}

.monitoring-uptime-goal-value {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f0f0f0;
}

.monitoring-uptime-goal-value span {
  font-size: 1.4rem;
  font-weight: 700;
}

.monitoring-uptime-goal-value.is-met {
  color: #059669;
}

.monitoring-uptime-goal-value.is-below {
  color: #d97706;
}

.monitoring-uptime-goal-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.monitoring-uptime-goal-target {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.monitoring-uptime-goal-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  
}

.monitoring-uptime-goal-badge.is-met {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.monitoring-uptime-goal-badge.is-below {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.monitoring-uptime-goal-track {
  grid-column: 1 / -1;
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: visible;
}

.monitoring-uptime-goal-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lotus-primary) 0%, var(--lotus-secondary) 100%);
}

.monitoring-uptime-goal-fill.is-met {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.monitoring-uptime-goal-fill.is-below {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.monitoring-uptime-goal-marker {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 18px;
  margin-left: -1px;
  border-radius: 2px;
  background: #f0f0f0;
  opacity: 0.35;
}

.monitoring-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
}

.monitoring-chart-card {
  min-height: 0;
  padding: 12px 14px;
}

.monitoring-chart-card header p {
  font-size: 0.72rem;
  line-height: 1.35;
}

.monitoring-chart-card .hijiffy-channel-list {
  gap: 6px;
  font-size: 0.72rem;
}

.monitoring-chart-card .hijiffy-activity-body {
  grid-template-columns: 120px minmax(0, 1fr);
}

body.staff-concierge-app .monitoring-alerts {
  margin-bottom: 14px;
  border-radius: var(--lotus-radius, 12px);
}

body.staff-concierge-app .monitoring-hourly-card {
  width: 100%;
  margin-top: 0;
  padding: 16px;
}

body.staff-concierge-app .monitoring-hourly-card h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

body.staff-concierge-app .monitoring-hourly-card .monitoring-hourly {
  min-height: 88px;
  height: auto;
  max-height: none;
  padding: 8px 6px 4px;
  border-radius: 10px;
  overflow: visible;
  background:
    repeating-linear-gradient(to bottom, rgba(16, 52, 141, 0.05) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.85));
}

body.staff-concierge-app .monitoring-hour-label {
  color: #94A3B8;
}

body.staff-concierge-app .monitoring-panel .monitoring-card.hijiffy-panel {
  min-height: 0;
  padding: 10px 12px;
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  color: var(--ac-text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.staff-concierge-app .monitoring-panel .monitoring-card h3 {
  margin: 0 0 8px;
  color: var(--ac-text);
  font-size: 0.82rem;
  font-weight: 700;
}

body.staff-concierge-app .monitoring-hour-bar {
  background: linear-gradient(180deg, rgba(52, 168, 124, 0.95), rgba(27, 127, 90, 0.78));
}

body.staff-concierge-app .monitoring-hour-bar.empty {
  background: rgba(148, 163, 184, 0.22);
}

body.staff-concierge-app .monitoring-overall-card {
  border: 1px solid var(--ac-border);
  background: var(--ac-bg-card);
  box-shadow: var(--ac-shadow);
  color: var(--ac-text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.staff-concierge-app .monitoring-overall-card.healthy {
  border-color: rgba(0, 232, 144, 0.35);
  background: linear-gradient(135deg, rgba(0, 232, 144, 0.12) 0%, var(--ac-bg-card) 100%);
}

body.staff-concierge-app .monitoring-overall-card.degraded {
  border-color: rgba(255, 196, 107, 0.35);
  background: linear-gradient(135deg, rgba(255, 196, 107, 0.12) 0%, var(--ac-bg-card) 100%);
}

body.staff-concierge-app .monitoring-overall-card.down {
  border-color: rgba(248, 113, 113, 0.35);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.12) 0%, var(--ac-bg-card) 100%);
}

body.staff-concierge-app .monitoring-overall-title {
  color: var(--ac-text);
}

body.staff-concierge-app .monitoring-overall-note {
  color: var(--ac-text-muted);
}

@media (max-width: 900px) {
  .monitoring-charts {
    grid-template-columns: 1fr;
  }

  .monitoring-summary-row {
    grid-template-columns: 1fr;
  }

  .monitoring-uptime-goal {
    grid-template-columns: 1fr;
  }

  .monitoring-uptime-goal-aside {
    align-items: flex-start;
  }
}

.monitoring-service-card {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.monitoring-service-card.healthy {
  border-color: rgba(52, 211, 153, 0.25);
}

.monitoring-service-card.degraded {
  border-color: rgba(251, 191, 36, 0.3);
}

.monitoring-service-card.down {
  border-color: rgba(248, 113, 113, 0.35);
}

.monitoring-service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.monitoring-service-name {
  font-size: 0.86rem;
  font-weight: 600;
}

.monitoring-service-badge {
  font-size: 0.68rem;
  
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.monitoring-service-badge.healthy {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.35);
}

.monitoring-service-badge.degraded {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}

.monitoring-service-badge.down {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.4);
}

.monitoring-service-detail {
  margin: 0;
  font-size: 0.78rem;
  color: var(--lotus-text-muted);
  line-height: 1.35;
}

.monitoring-service-meta {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--lotus-text-muted);
}

.monitoring-card {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.monitoring-card h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.monitoring-hourly {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-height: 128px;
  height: 128px;
  padding: 0 4px 0;
}

.monitoring-hour-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  height: 100%;
}

.monitoring-hour-bar {
  width: 100%;
  max-width: 22px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.95), rgba(59, 130, 246, 0.75));
  min-height: 4px;
}

.monitoring-hour-bar.empty {
  background: rgba(148, 163, 184, 0.22);
}

.monitoring-hour-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--lotus-text-muted);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
  min-height: 1.1em;
  text-align: center;
}

.monitoring-hour-label.is-blank {
  visibility: hidden;
}

.sidebar-nav-monitoring .monitoring-nav-badge {
  background: rgba(248, 113, 113, 0.85);
}

/* ═══ Concierge icon rail + expandable labels ═══ */
body.staff-concierge-app {
  overflow: hidden;
  height: 100vh;
}

body.staff-concierge-app .dashboard:not([hidden]) {
  display: flex;
  flex-direction: row;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.concierge-main-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.concierge-rail {
  --concierge-rail-w-expanded: 220px;
  width: var(--concierge-rail-w, 72px);
  height: 100vh;
  min-height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 12px;
  background: var(--lotus-bg-card);
  border-right: 1px solid var(--lotus-border);
  z-index: 30;
  transition: width 0.2s ease;
  overflow: hidden;
}

.concierge-rail.is-expanded {
  width: var(--concierge-rail-w-expanded);
  align-items: stretch;
  padding: 0 12px 12px;
}

.concierge-rail-logo {
  width: 44px;
  height: var(--concierge-topbar-h, 64px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.concierge-rail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.concierge-rail.is-expanded .concierge-rail-logo {
  margin-left: 4px;
  margin-right: auto;
  width: auto;
  max-width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 2px;
}

.concierge-rail.is-expanded .concierge-rail-logo img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.concierge-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  width: 100%;
  padding: 0 10px;
  min-height: 0;
  overflow-y: auto;
}

.concierge-rail.is-expanded .concierge-rail-nav {
  align-items: stretch;
  padding: 0;
}

.concierge-rail-spacer {
  flex: 1;
  min-height: 12px;
  width: 100%;
  pointer-events: none;
}

.concierge-rail-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0 4px;
  flex-shrink: 0;
}

.concierge-rail-divider {
  display: block;
  width: 28px;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: var(--ac-border, rgba(20, 20, 20, 0.14));
  box-shadow: none;
  flex-shrink: 0;
}

.concierge-rail.is-expanded .concierge-rail-section {
  justify-content: stretch;
  padding: 10px 14px 6px;
}

.concierge-rail.is-expanded .concierge-rail-divider {
  width: 100%;
}

.concierge-rail-section-label {
  display: none;
  width: 100%;
  padding: 0 14px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  
  color: var(--ac-text-muted, rgba(20, 20, 20, 0.58));
  line-height: 1.2;
}

.concierge-rail.is-expanded .concierge-rail-section-label {
  display: block;
}

.concierge-rail-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--lotus-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.concierge-rail.is-expanded .concierge-rail-btn {
  width: 100%;
  height: 44px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 12px;
}

.concierge-rail-btn svg,
.concierge-rail-expand svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.concierge-rail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.concierge-rail.is-expanded .concierge-rail-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-size: 0.82rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.concierge-rail-btn:hover {
  background: var(--lotus-primary-light);
  color: var(--lotus-primary);
}

.concierge-rail-btn.active {
  background: var(--lotus-primary-light);
  color: var(--lotus-primary);
}

.concierge-rail-btn.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: var(--lotus-primary);
}

.concierge-rail.is-expanded .concierge-rail-btn.active::before {
  left: 0;
}

.concierge-rail-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--lotus-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.concierge-rail.is-expanded .concierge-rail-badge {
  position: static;
  margin-left: auto;
}

.concierge-rail-badge.is-pulse {
  box-shadow: 0 0 0 2px rgba(45, 156, 140, 0.35);
}

.concierge-rail-expand {
  width: 48px;
  height: 40px;
  margin-top: 8px;
  border: 1px solid var(--lotus-border);
  border-radius: 12px;
  background: var(--lotus-bg-elevated);
  color: var(--lotus-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, width 0.2s ease;
}

.concierge-rail.is-expanded .concierge-rail-expand {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
}

.concierge-rail-expand svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.concierge-rail.is-expanded .concierge-rail-expand svg {
  transform: rotate(180deg);
}

.concierge-rail-expand-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.concierge-rail.is-expanded .concierge-rail-expand-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-size: 0.78rem;
  font-weight: 600;
}

.concierge-rail-expand:hover {
  background: var(--lotus-primary-light);
  color: var(--lotus-primary);
  border-color: var(--lotus-border-gold);
}

body.dashboard-mode-simple #nav-staff-inbox,
body.dashboard-mode-simple #nav-archived-staff,
body.dashboard-mode-simple #nav-insights,
body.dashboard-mode-simple #nav-monitoring {
  display: none !important;
}

.dash-shell {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-shell[hidden] {
  display: none !important;
}

body.staff-concierge-app #view-home.hijiffy-dashboard:not([hidden]) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 24px 28px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

body.staff-concierge-app #view-home .hijiffy-dashboard-grid {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-width: none;
  gap: 14px;
  align-items: stretch;
}

body.staff-concierge-app #view-home .hijiffy-main {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto auto;
  gap: 14px;
  overflow-y: auto;
}

body.staff-concierge-app #view-home .home-metrics-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
  width: 100%;
  max-width: 100%;
}

body.staff-concierge-app #view-home .hijiffy-hero-row,
body.staff-concierge-app #view-home .home-hero-row--pulse {
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

body.staff-concierge-app #view-home .hijiffy-welcome-card,
body.staff-concierge-app #view-home .hijiffy-reply-card {
  min-height: 0;
  padding: 18px 20px;
}

body.staff-concierge-app #view-home .hijiffy-welcome-card h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

body.staff-concierge-app #view-home .hijiffy-welcome-card p:last-child,
body.staff-concierge-app #view-home .hijiffy-side-card header > div > p:not(.hijiffy-side-kicker) {
  display: none;
}

body.staff-concierge-app #view-home .hijiffy-reply-value span {
  font-size: 2rem;
}

body.staff-concierge-app #view-home .hijiffy-wave {
  height: 48px;
  opacity: 0.45;
}

body.staff-concierge-app #view-home .premium-kpi-row,
body.staff-concierge-app #view-home .premium-kpi-grid {
  gap: 6px;
  margin-bottom: 0;
}

body.staff-concierge-app #view-home .premium-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
}

body.staff-concierge-app #view-home .home-metrics-combo.insights-card,
body.staff-concierge-app #view-home .home-metrics-combo {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--lotus-radius, 14px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-border);
  color: var(--ac-text);
  box-shadow: var(--ac-shadow);
}

body.staff-concierge-app #view-home .home-metrics-combo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

body.staff-concierge-app #view-home .home-metrics-combo-head h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .home-metrics-combo-head p,
body.staff-concierge-app #view-home .home-metrics-combo-head .insights-card-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ac-text-muted);
  line-height: 1.35;
}

body.staff-concierge-app #view-home .home-metrics-combo-body {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

body.staff-concierge-app #view-home .home-metrics-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 14px;
}

body.staff-concierge-app #view-home .home-metrics-cell:first-child {
  padding-left: 0;
}

body.staff-concierge-app #view-home .home-metrics-cell:last-child {
  padding-right: 0;
}

body.staff-concierge-app #view-home .home-metrics-cell[hidden] {
  display: none !important;
}

body.staff-concierge-app #view-home .home-metrics-divider {
  width: 1px;
  flex: 0 0 1px;
  align-self: stretch;
  margin: 4px 0;
  background: var(--ac-border);
}

body.staff-concierge-app #view-home .home-metrics-combo.is-dept-staff .home-metrics-divider,
body.staff-concierge-app #view-home .home-metrics-combo.is-dept-staff .home-metrics-divider--satisfaction,
body.staff-concierge-app #view-home .home-metrics-combo-body:has(.kpi-ota-savings[hidden]) > .home-metrics-divider:not(.home-metrics-divider--satisfaction),
body.staff-concierge-app #view-home .home-metrics-combo-body:has(.kpi-satisfaction[hidden]) > .home-metrics-divider--satisfaction {
  display: none;
}

body.staff-concierge-app #view-home .home-metrics-combo .kpi-ota-savings .insights-hero-value,
body.staff-concierge-app #view-home .home-metrics-combo .kpi-ota-savings strong {
  color: var(--ac-green);
}

body.staff-concierge-app #view-home .home-metrics-combo .metric-period {
  margin: 2px 0 0;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  
  color: var(--ac-text-muted);
  line-height: 1.2;
}

body.staff-concierge-app #view-home .home-metrics-combo .metric-yoy {
  margin: 6px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .home-metrics-combo .metric-yoy.is-up {
  color: var(--ac-green);
}

body.staff-concierge-app #view-home .home-metrics-combo .metric-yoy.is-down {
  color: #f87171;
}

body.staff-concierge-app #view-home .home-metrics-combo .metric-yoy.is-flat,
body.staff-concierge-app #view-home .home-metrics-combo .metric-yoy.is-na {
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .hijiffy-reply-card,
body.staff-concierge-app #view-home .hijiffy-panel,
body.staff-concierge-app #view-home .hijiffy-side-card {
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-border);
  color: var(--ac-text);
  box-shadow: var(--ac-shadow);
}

body.staff-concierge-app #view-home .hijiffy-panel h3,
body.staff-concierge-app #view-home .hijiffy-side-card h3 {
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .hijiffy-panel .btn-outline,
body.staff-concierge-app #view-home .hijiffy-side-card .btn-outline,
body.staff-concierge-app #view-home .home-metrics-combo .btn-outline {
  border-color: var(--ac-border-glow);
  color: var(--ac-cyan);
}

body.staff-concierge-app #view-home .hijiffy-conversation strong {
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .hijiffy-conversation small {
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .hijiffy-open-card h3 {
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .hijiffy-view-more {
  border-top-color: var(--ac-border);
  color: var(--ac-cyan);
}

body.staff-concierge-app #view-home .hijiffy-legend {
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .premium-kpi {
  padding: 8px 10px;
  border-radius: 12px;
}

body.staff-concierge-app #view-home .premium-kpi p {
  margin-bottom: 2px;
  font-size: 0.64rem;
}

body.staff-concierge-app #view-home .premium-kpi strong {
  font-size: 1.12rem;
  margin-bottom: 0;
}

body.staff-concierge-app #view-home .premium-kpi strong.is-muted-value {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
}

body.staff-concierge-app #view-home .kpi-trend {
  font-size: 0.68rem;
  padding: 2px 8px;
}

body.staff-concierge-app #view-home .hijiffy-line-chart {
  position: relative;
}

body.staff-concierge-app #view-home .hijiffy-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  
  color: rgba(100, 116, 139, 0.72);
  pointer-events: none;
}

body.staff-concierge-app #view-home .hijiffy-analytics-row {
  min-height: 0;
  height: auto;
  gap: 14px;
  align-items: stretch;
  align-self: stretch;
}

body.staff-concierge-app #view-home .hijiffy-panel {
  min-height: 0;
  height: 100%;
  padding: 16px;
  overflow: hidden;
}

body.staff-concierge-app #view-home .hijiffy-panel header p {
  display: block;
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .hijiffy-panel:not(.hijiffy-panel-dark) {
  display: flex;
  flex-direction: column;
}

body.staff-concierge-app #view-home .hijiffy-panel:not(.hijiffy-panel-dark) header {
  margin-bottom: 6px;
}

body.staff-concierge-app #view-home .hijiffy-panel:not(.hijiffy-panel-dark) .hijiffy-line-chart {
  flex: 1;
  align-self: stretch;
}

body.staff-concierge-app #view-home .hijiffy-panel:not(.hijiffy-panel-dark) .hijiffy-legend {
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
  gap: 14px;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark {
  display: flex;
  flex-direction: column;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark header {
  margin-bottom: 2px;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark .hijiffy-activity-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark.hijiffy-activity-card {
  height: 100%;
  align-self: stretch;
}

body.staff-concierge-app #view-home .hijiffy-line-chart {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  padding-top: 0;
  display: flex;
  flex-direction: column;
}

body.staff-concierge-app #view-home .home-chart-interactive {
  flex: 1 1 auto;
  min-height: 88px;
  display: flex;
  align-items: stretch;
}

body.staff-concierge-app #view-home .home-line-chart svg {
  width: 100%;
  height: 100%;
  min-height: 88px;
  max-height: none;
}

body.staff-concierge-app #view-home .hijiffy-legend,
body.staff-concierge-app #view-home .home-chart-legend {
  flex: 0 0 auto;
  margin-top: 8px;
  padding-bottom: 2px;
  gap: 6px;
  font-size: 0.64rem;
}

body.staff-concierge-app #view-home .hijiffy-activity-donut {
  width: 156px;
  height: 156px;
  flex-shrink: 0;
}

body.staff-concierge-app #view-home .hijiffy-activity-donut span {
  width: 92px;
  height: 92px;
  font-size: 1.28rem;
}

body.staff-concierge-app #view-home .hijiffy-channel-list {
  display: grid;
  gap: 6px;
  width: 100%;
  font-size: 0.68rem;
  grid-template-columns: 1fr;
}

body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.82);
}

body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item > i {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0;
}

body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item:hover,
body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item.is-hover,
body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item.is-active {
  border-color: rgba(56, 219, 200, 0.28);
  background: rgba(56, 219, 200, 0.08);
}

body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item.is-empty {
  opacity: 0.55;
}

body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-label {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-meta {
  flex-shrink: 0;
  margin-left: auto;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

body.staff-concierge-app #view-home .btn-outline.btn-sm {
  padding: 3px 8px;
  font-size: 0.64rem;
}

body.staff-concierge-app #view-home .hijiffy-panel header,
body.staff-concierge-app #view-home .hijiffy-side-card header {
  margin-bottom: 6px;
}

body.staff-concierge-app #view-home .hijiffy-panel h3,
body.staff-concierge-app #view-home .hijiffy-side-card h3 {
  font-size: 0.82rem;
  margin-bottom: 0;
}

body.staff-concierge-app #view-home .hijiffy-side {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: 8px;
}

body.staff-concierge-app #view-home .hijiffy-side-card {
  padding: 10px 12px;
}

body.staff-concierge-app #view-home .hijiffy-open-card {
  flex: 1;
  min-height: 0;
}

body.staff-concierge-app #view-home .hijiffy-open-card h3 {
  margin-top: 4px;
  font-size: 0.92rem;
}

body.staff-concierge-app #view-home .hijiffy-orbit,
body.staff-concierge-app #view-home .hijiffy-orbit--orders {
  display: none !important;
}

body.staff-concierge-app #view-home .hijiffy-chat-glyph {
  width: 28px;
  height: 28px;
  margin-top: 8px;
}

body.staff-concierge-app #view-home .hijiffy-conversation-list {
  gap: 6px;
  margin-bottom: 6px;
  overflow: hidden;
}

body.staff-concierge-app #view-home .hijiffy-conversation {
  grid-template-columns: 30px minmax(0, 1fr) auto 6px;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.staff-concierge-app #view-home .hijiffy-conversation:hover {
  background: rgba(76, 201, 240, 0.06);
  border-color: transparent;
  border-radius: 10px;
}

body.staff-concierge-app #view-home .hijiffy-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

body.staff-concierge-app #view-home .hijiffy-conversation-copy {
  min-width: 0;
}

body.staff-concierge-app #view-home .hijiffy-row-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

body.staff-concierge-app #view-home .hijiffy-conversation strong {
  font-size: 0.76rem;
  display: inline-block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.staff-concierge-app #view-home .hijiffy-row-meta {
  color: rgba(56, 219, 200, 0.72);
  font-size: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
}

body.staff-concierge-app #view-home .hijiffy-conversation small,
body.staff-concierge-app #view-home .hijiffy-conversation time {
  font-size: 0.62rem;
}

body.staff-concierge-app #view-home .hijiffy-conversation small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  max-width: 100%;
}

body.staff-concierge-app #view-home .hijiffy-conversation time {
  color: rgba(255, 255, 255, 0.5);
}

body.staff-concierge-app #view-home .hijiffy-view-more {
  margin-top: 4px;
  padding: 6px 0 0;
  font-size: 0.72rem;
}

body.staff-concierge-app .dash-header,
body.staff-concierge-app .concierge-topbar {
  flex-shrink: 0;
}

body.staff-concierge-app #training-banner {
  flex-shrink: 0;
}

body.staff-concierge-app .dash-main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

body.staff-concierge-app .dash-view:not([hidden]) {
  flex: 1;
  min-height: 0;
  height: 100%;
}

body.staff-concierge-app .dash-view[hidden] {
  display: none !important;
}

body.staff-concierge-app .dash-body {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

body.staff-concierge-app .dash-col,
body.staff-concierge-app .thread-panel,
body.staff-concierge-app .order-panel {
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow: hidden;
}

body.staff-concierge-app .orders-panel,
body.staff-concierge-app .completed-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ac-border);
  background: var(--ac-bg-elevated);
}

body.staff-concierge-app .orders-queue-list,
body.staff-concierge-app .completed-panel .orders-queue-list,
body.staff-concierge-app .rooms-inbox-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.staff-concierge-app .order-queue-item {
  border: none;
  border-bottom: 1px solid var(--ac-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  overflow: visible;
  cursor: pointer;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.staff-concierge-app .order-queue-main {
  padding: 10px 14px 6px;
  gap: 3px;
  pointer-events: auto;
}

body.staff-concierge-app .order-queue-body {
  align-items: baseline;
}

body.staff-concierge-app .order-queue-summary {
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.staff-concierge-app .orders-panel .col-toolbar--filtered h2,
body.staff-concierge-app .completed-panel .col-toolbar--filtered h2 {
  display: block;
}

body.staff-concierge-app .order-queue-item:hover,
body.staff-concierge-app .order-queue-item.active {
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--ac-border);
  box-shadow: none;
  transform: none;
}

body.staff-concierge-app .order-queue-item.order-glow {
  border-color: transparent;
  border-bottom-color: var(--ac-border);
  background: transparent;
}

body.staff-concierge-app .order-panel {
  border-left: 1px solid var(--ac-border);
  background: var(--ac-bg);
}

body.staff-concierge-app .order-detail-empty {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
    var(--ac-bg);
}

body.staff-concierge-app .insights-panel,
body.staff-concierge-app .monitoring-panel {
  flex: 1;
  min-height: 0;
}

body.staff-concierge-app .monitoring-panel {
  overflow-y: auto;
}

body.staff-concierge-app .insights-panel {
  overflow-y: auto;
}

/* —— Concierge top bar —— */
.concierge-topbar,
body.staff-concierge-app .dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  min-height: var(--concierge-topbar-h, 64px);
  border-bottom: 1px solid var(--lotus-border);
  background: var(--lotus-bg-card);
  flex-shrink: 0;
  position: relative;
}

.concierge-topbar-left,
body.staff-concierge-app .dash-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.concierge-page-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.concierge-page-title,
body.staff-concierge-app #dash-page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
  color: var(--ac-text);
}

.concierge-page-sub,
body.staff-concierge-app #dash-page-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ac-text-muted, #64748B);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(420px, 42vw);
}

.concierge-page-sub[hidden],
body.staff-concierge-app #dash-page-sub[hidden] {
  display: none !important;
}

body.staff-concierge-app .dash-dept {
  display: inline-flex;
  align-items: center;
  align-self: center;
}

body.staff-concierge-app #dash-hotel-name {
  display: none;
}

.concierge-topbar-center {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  min-width: 0;
}

.concierge-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 999px;
  padding: 0 14px;
  height: 40px;
}

.concierge-search svg {
  width: 18px;
  height: 18px;
  color: var(--lotus-text-faint);
  flex-shrink: 0;
}

.concierge-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--lotus-text);
  outline: none;
  min-width: 0;
}

.concierge-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.concierge-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--lotus-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.concierge-search-clear svg {
  width: 14px;
  height: 14px;
}

.concierge-search-clear:hover {
  color: var(--lotus-text);
  background: var(--lotus-primary-light);
}

.concierge-search-clear[hidden] {
  display: none !important;
}

body.staff-concierge-app .concierge-search-clear:hover {
  color: var(--ac-cyan);
  background: var(--ac-cyan-lo);
}

.concierge-search input::placeholder {
  color: var(--lotus-text-faint);
}

.concierge-topbar-right,
body.staff-concierge-app .dash-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.dash-user-menu {
  position: relative;
  z-index: 10000;
}

body.staff-concierge-app .concierge-topbar,
body.staff-concierge-app .dash-header {
  overflow: visible;
  z-index: 90;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dash-user-trigger {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(34, 122, 161, 0.18);
  border-radius: 50%;
  background: #fff;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-user-trigger:hover,
.dash-user-trigger[aria-expanded="true"] {
  border-color: var(--lotus-primary);
  box-shadow: 0 0 0 3px var(--lotus-primary-light);
}

.dash-user-trigger[data-training="1"] {
  border-color: rgba(0, 184, 212, 0.65); /* Was amber */
  box-shadow: 0 0 0 2px rgba(0, 184, 212, 0.18);
}

.dash-user-test-badge {
  position: absolute;
  right: -6px;
  bottom: -5px;
  z-index: 2;
  min-width: 28px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #00B8D4; /* Was amber */
  color: #ffffff; /* Was f0f0f0 */
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.dash-menu-test-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 184, 212, 0.16); /* Was amber */
  border: 1px solid rgba(0, 184, 212, 0.35);
  color: #00B8D4; /* Was amber */
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: fit-content;
}

.dash-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lotus-secondary) 0%, var(--lotus-primary) 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dash-user-avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.dash-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, calc(100vw - 24px));
  max-height: min(70vh, calc(100vh - 16px));
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--lotus-border);
  background: var(--lotus-bg-card);
  box-shadow: 0 18px 40px rgba(26, 31, 54, 0.14);
  z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dash-menu-identity {
  min-width: 0;
}

.dash-menu-identity strong {
  display: block;
  font-size: 0.92rem;
  color: var(--lotus-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-menu-role {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--lotus-text-muted);
}

.dash-menu-property {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lotus-text-muted);
}

.dash-menu-monitor {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.dash-menu-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--lotus-border);
}

.dash-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--lotus-text);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--lotus-font-body);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.dash-menu-item:hover {
  background: var(--lotus-primary-light);
  color: var(--lotus-primary);
}

.dash-menu-item--danger {
  color: #dc2626;
}

.dash-menu-item--danger:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.concierge-property-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lotus-text-muted);
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 999px;
  padding: 6px 12px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .concierge-topbar-center {
    display: none;
  }
}

/* —— Hijiffy-inspired dashboard overview —— */
.hijiffy-dashboard {
  padding: 20px 22px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--lotus-bg);
  -webkit-overflow-scrolling: touch;
}

.hijiffy-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 32%);
  gap: 18px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  align-items: start;
}

.hijiffy-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.hijiffy-hero-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.hijiffy-welcome-card,
.hijiffy-reply-card,
.hijiffy-kpi,
.hijiffy-panel,
.hijiffy-side-card {
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(30, 41, 59, 0.06);
}

.hijiffy-welcome-card {
  min-height: 136px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--lotus-secondary) 0%, var(--lotus-primary-dark) 55%, var(--lotus-primary-dark) 100%);
}

.hijiffy-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  
  opacity: 0.78;
}

.hijiffy-welcome-card h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hijiffy-welcome-card p:last-child {
  max-width: 34rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.hijiffy-reply-card {
  position: relative;
  min-height: 136px;
  padding: 18px 20px 16px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #10133d 0%, #171a55 100%);
}

.hijiffy-reply-value {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 2px;
}

.hijiffy-reply-value span {
  display: block;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hijiffy-wave {
  position: absolute;
  inset: auto 0 0;
  height: 74px;
  opacity: 0.92;
}

.hijiffy-wave svg {
  width: 100%;
  height: 100%;
}

.hijiffy-wave path {
  fill: none;
  stroke: rgba(151, 124, 255, 0.82);
  stroke-width: 3;
}

.hijiffy-wave path + path {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 2;
}

.premium-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.premium-kpi--priority {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  min-height: 84px;
}

.premium-kpi-priority-body {
  min-width: 0;
}

.premium-kpi-priority-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.premium-kpi-priority-icon svg {
  width: 22px;
  height: 22px;
}

.premium-kpi-priority-icon--orders {
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.14);
  border: 1px solid rgba(255, 183, 77, 0.35);
}

.premium-kpi-priority-icon--chats {
  color: var(--ac-cyan, #ffffff);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Home hero KPIs use insights-hero-kpi vocabulary */
body.staff-concierge-app #view-home .home-hero-kpi {
  cursor: pointer;
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 18px 56px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

body.staff-concierge-app #view-home .home-hero-kpi-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

body.staff-concierge-app #view-home .home-hero-kpi-icon svg {
  width: 18px;
  height: 18px;
}

body.staff-concierge-app #view-home .home-hero-kpi-icon--orders {
  color: #ffc46b;
  background: rgba(255, 183, 77, 0.14);
  border: 1px solid rgba(255, 183, 77, 0.35);
}

body.staff-concierge-app #view-home .home-hero-kpi-icon--chats {
  color: var(--ac-cyan);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.staff-concierge-app #view-home .home-hero-kpi .insights-hero-label {
  margin-bottom: 0;
  padding-right: 4px;
}

body.staff-concierge-app #view-home .home-hero-kpi .insights-hero-value {
  font-size: 2rem;
}

body.staff-concierge-app #view-home .home-hero-kpi.kpi-active-now::before {
  background: linear-gradient(90deg, rgba(255, 183, 77, 0.95), rgba(245, 158, 11, 0.7));
}

body.staff-concierge-app #view-home .home-hero-kpi.kpi-active-now .insights-hero-value {
  color: #ffc46b;
}

body.staff-concierge-app #view-home .home-hero-kpi.kpi-unread .insights-hero-value {
  color: var(--ac-cyan);
}

body.staff-concierge-app #view-home .home-hero-kpi:hover {
  transform: translateY(-2px);
  border-color: var(--ac-border-glow);
}

body.staff-concierge-app #view-home .home-hero-kpi.has-value.kpi-active-now {
  border-color: rgba(255, 183, 77, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 183, 77, 0.18), var(--ac-shadow);
}

body.staff-concierge-app #view-home .home-hero-kpi.has-value.kpi-unread {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), var(--ac-shadow);
}

body.staff-concierge-app #view-home .home-hero-kpi:focus-visible {
  outline: 2px solid var(--ac-cyan);
  outline-offset: 2px;
}

body.staff-concierge-app .premium-kpi--priority:hover {
  transform: translateY(-2px);
}

body.staff-concierge-app .premium-kpi--priority:focus-visible {
  outline: 2px solid var(--ac-cyan);
  outline-offset: 2px;
}


@media (max-width: 1180px) {
  body.staff-concierge-app #view-home .hijiffy-hero-row,
  .hijiffy-hero-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.staff-concierge-app #view-home .hijiffy-hero-row,
  .hijiffy-hero-row {
    grid-template-columns: 1fr;
  }
}

.premium-kpi {
  background: var(--ac-bg-card, #07152d);
  border: 1px solid var(--ac-border, rgba(79, 130, 220, 0.25));
  border-radius: var(--ac-radius, 14px);
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--ac-text, #dce8ff);
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-kpi:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.premium-kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(151, 124, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.premium-kpi.kpi-direct::before {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 60%);
}

.premium-kpi.kpi-inroom::before {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 60%);
}

.premium-kpi p {
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  
  letter-spacing: 0.05em;
}

.premium-kpi strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-bottom: 12px;
}

.kpi-trend {
  display: none !important;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
}

.settings-field input,
.settings-field select {
  background: var(--lotus-bg-elevated);
  border: 1px solid var(--lotus-border);
  border-radius: 8px;
  color: var(--lotus-text);
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.35;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.settings-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2388a0b8' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.settings-hint {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lotus-text-muted);
}

.settings-plan-block {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lotus-border);
}

.settings-section-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lotus-text);
}

.settings-plan-current {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lotus-text);
}

.settings-plan-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}

.settings-plan-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--lotus-border);
  border-radius: 10px;
  background: var(--lotus-bg-elevated);
  text-align: left;
}

.settings-plan-card.is-current {
  border-color: var(--lotus-text);
}

.settings-plan-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lotus-text);
}

.settings-plan-card-meta {
  font-size: 0.78rem;
  color: var(--lotus-text-muted);
  line-height: 1.4;
}

.settings-plan-card-actions {
  margin-top: 4px;
}

.kpi-trend.up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.kpi-trend.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 1024px) {
  .premium-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .premium-kpi-row {
    grid-template-columns: 1fr;
  }
}
.kpi-trend.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Metric label + info tooltip (home dashboard) */
.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
}

.metric-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px !important;
  height: 15px !important;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(34, 122, 161, 0.12);
  color: var(--lotus-primary);
  cursor: help;
  flex-shrink: 0;
  vertical-align: middle;
  overflow: hidden;
}

.metric-info svg {
  width: 11px !important;
  height: 11px !important;
  display: block;
}

.metric-info-tip {
  display: none !important;
}

.metric-tip-layer {
  position: fixed;
  z-index: 10050;
  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 12px;
  border-radius: 10px;
  background: #f0f0f0;
  color: #f9fafb;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  pointer-events: none;
}

body.staff-concierge-app .metric-tip-layer {
  background: var(--ac-bg-elevated);
  color: var(--ac-text);
  border: 1px solid var(--ac-border-glow);
  box-shadow: var(--ac-shadow);
  font-family: var(--ac-font-body);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.staff-concierge-app .metric-info.is-tip-open {
  background: var(--ac-cyan-lo);
  color: var(--ac-cyan);
}

.metric-info.is-tip-open {
  background: rgba(34, 122, 161, 0.22);
  color: var(--lotus-primary-dark);
}

.premium-kpi .metric-info.is-tip-open {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hijiffy-reply-card .metric-info.is-tip-open,
.hijiffy-panel-dark .metric-info.is-tip-open {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.premium-kpi .metric-info {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.hijiffy-reply-card .metric-info,
.hijiffy-panel-dark .metric-info {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.hijiffy-panel:not(.hijiffy-panel-dark) .metric-info {
  background: rgba(34, 122, 161, 0.1);
  color: var(--lotus-primary);
}

body.staff-concierge-app #view-home .metric-label {
  gap: 4px;
}

body.staff-concierge-app #view-home .metric-info {
  width: 14px !important;
  height: 14px !important;
}

body.staff-concierge-app #view-home .metric-info svg {
  width: 10px !important;
  height: 10px !important;
}

body.staff-concierge-app #view-home .metric-info-tip {
  display: none !important;
}

.hijiffy-trend.down {
  color: #ef4444;
}

.hijiffy-analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.hijiffy-panel {
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.hijiffy-panel,
.hijiffy-side-card {
  background: rgba(255, 255, 255, 0.96);
}

.hijiffy-panel header,
.hijiffy-side-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.hijiffy-panel h3,
.hijiffy-side-card h3 {
  margin: 0 0 4px;
  color: #f0f0f0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hijiffy-panel p,
.hijiffy-side-card p {
  margin: 0;
  color: #8a94a6;
  font-size: 0.8rem;
}

.hijiffy-line-chart {
  flex: 0 0 auto;
  min-height: 160px;
  height: 160px;
  padding: 8px 4px 0;
  border-radius: 10px;
  background:
    repeating-linear-gradient(to bottom, rgba(148, 163, 184, 0.14) 0 1px, transparent 1px 38px),
    linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.7));
}

.hijiffy-line-chart svg {
  width: 100%;
  height: 100%;
}

.hijiffy-line-chart .chart-fill {
  fill: url(#homeChartFill);
}

.hijiffy-line-chart .chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 10px rgba(184, 146, 74, 0.12));
}

.hijiffy-line-chart .chart-line-auto {
  stroke: #d4d4d4;
}

.hijiffy-line-chart .chart-line-staff {
  stroke: var(--lotus-primary);
}

.hijiffy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  color: #64748b;
  font-size: 0.78rem;
}

.home-chart-legend {
  gap: 10px;
}

.home-chart-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-chart-legend-btn:not(.is-active) {
  opacity: 0.45;
}

.home-chart-legend-btn.is-active {
  border-color: rgba(56, 219, 200, 0.45);
  background: rgba(56, 219, 200, 0.08);
}

.home-chart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
}

.home-chart-summary-trends {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-chart-trend-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-chart-trend-wrap i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.home-chart-trend {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-chart-trend--up { color: #34d399; }
.home-chart-trend--down { color: #f87171; }
.home-chart-trend--flat { color: #94a3b8; }

.home-chart-trend-label {
  font-weight: 500;
  opacity: 0.8;
}

.home-chart-interactive {
  position: relative;
}

.home-chart-tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 219, 200, 0.35);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(2, 8, 20, 0.35);
  white-space: nowrap;
}

.home-line-chart svg {
  display: block;
  width: 100%;
  height: 160px;
}

.chart-grid-line {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
}

.chart-axis-label {
  fill: rgba(148, 163, 184, 0.78);
  font-size: 11px;
  font-family: var(--lotus-font-body);
}

.chart-point {
  fill: #fff;
  stroke-width: 2.5;
  cursor: pointer;
  transition: r 0.12s ease, filter 0.12s ease;
}

.chart-point--messages {
  stroke: #d4d4d4;
}

.chart-point--orders {
  stroke: var(--lotus-primary);
}

.chart-point.is-hover,
.chart-point:focus-visible {
  r: 7;
  filter: drop-shadow(0 0 6px rgba(56, 219, 200, 0.55));
}

.hijiffy-activity-donut--interactive {
  position: relative;
}

.hijiffy-activity-donut--interactive .home-donut-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hijiffy-activity-donut--interactive > span {
  position: relative;
  z-index: 1;
}

.home-donut-segment {
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: 50% 50%;
}

.home-donut-segment.is-dimmed {
  opacity: 0.28;
}

.home-donut-segment.is-hover,
.home-donut-segment.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.home-donut-empty {
  fill: none;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 8;
}

.home-breakdown-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-breakdown-legend-item:hover,
.home-breakdown-legend-item.is-hover,
.home-breakdown-legend-item.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.home-breakdown-legend-item.is-empty {
  opacity: 0.45;
  cursor: default;
}

.home-breakdown-legend-label {
  flex: 1;
  min-width: 0;
}

.home-breakdown-legend-meta {
  margin-left: auto;
  font-weight: 800;
  color: #fff;
}

.home-breakdown-legend-meta em {
  font-style: normal;
  color: #d4d4d4;
}

.hijiffy-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}

.legend-auto {
  background: #2dd4bf;
}

.legend-staff {
  background: var(--lotus-secondary);
}

.hijiffy-panel-dark {
  color: #fff;
  background: linear-gradient(135deg, #17153f 0%, #211d58 100%);
}

.hijiffy-panel-dark h3,
.hijiffy-panel-dark p {
  color: #fff;
}

.hijiffy-panel-dark p {
  opacity: 0.62;
}

.hijiffy-panel-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.hijiffy-panel-dark .hijiffy-activity-body {
  flex: 1;
  margin-top: 4px;
}

.hijiffy-activity-donut--dark span {
  background: #211d58;
  color: #fff;
  box-shadow: none;
}

.hijiffy-channel-list--dark {
  color: rgba(255, 255, 255, 0.62);
}

.hijiffy-channel-list--dark em {
  color: #fff;
}

.hijiffy-donut {
  width: 150px;
  height: 150px;
  margin: 10px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #211d58 0 48%, transparent 49%),
    conic-gradient(var(--lotus-secondary) 0 63%, #2dd4bf 63% 82%, rgba(255,255,255,0.16) 82% 100%);
}

.hijiffy-donut span {
  font-size: 1.12rem;
  font-weight: 900;
}

.hijiffy-order-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hijiffy-order-metrics span {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hijiffy-order-metrics strong,
.hijiffy-order-metrics em {
  display: block;
}

.hijiffy-order-metrics strong {
  font-size: 1.3rem;
}

.hijiffy-order-metrics em {
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
}

.hijiffy-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.hijiffy-side-card {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.hijiffy-open-card {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.hijiffy-orbit--orders {
  right: 78px;
  background:
    radial-gradient(circle, var(--lotus-primary) 0 28%, rgba(34, 122, 161, 0.16) 29% 44%, transparent 45%),
    radial-gradient(circle, transparent 0 52%, rgba(34, 122, 161, 0.18) 53% 55%, transparent 56%),
    radial-gradient(circle, transparent 0 72%, rgba(34, 122, 161, 0.11) 73% 75%, transparent 76%);
}

.hijiffy-order-glyph {
  color: var(--lotus-primary);
}

.hijiffy-side-kicker {
  color: #f0f0f0 !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  
}

.hijiffy-open-card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #5b6472;
}

.hijiffy-orbit {
  position: absolute;
  top: -18px;
  right: 74px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--lotus-secondary) 0 28%, rgba(184, 146, 74, 0.16) 29% 44%, transparent 45%),
    radial-gradient(circle, transparent 0 52%, rgba(184, 146, 74, 0.18) 53% 55%, transparent 56%),
    radial-gradient(circle, transparent 0 72%, rgba(184, 146, 74, 0.11) 73% 75%, transparent 76%);
  pointer-events: none;
}

.hijiffy-chat-glyph {
  width: 36px;
  height: 36px;
  color: #171a55;
  flex-shrink: 0;
  margin-top: 18px;
}

.hijiffy-chat-glyph svg {
  width: 100%;
  height: 100%;
}

.hijiffy-conversation-list {
  display: grid;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 8px;
}

.hijiffy-conversation {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 8px;
  gap: 10px;
  align-items: center;
  border: none;
  border-radius: 14px;
  background: transparent;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
}

.hijiffy-conversation::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lotus-secondary);
}

.hijiffy-conversation:hover {
  background: #f7f7ff;
}

.hijiffy-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--lotus-secondary), var(--lotus-primary-dark));
  font-size: 0.76rem;
  font-weight: 900;
}

.hijiffy-view-more {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  padding: 14px 0 2px;
  background: transparent;
  color: var(--lotus-primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.hijiffy-view-more:hover {
  color: var(--lotus-primary-dark);
}

.hijiffy-activity-card {
  min-height: 0;
  flex-shrink: 0;
}

.hijiffy-activity-card--compact .hijiffy-activity-body {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
}

.hijiffy-activity-card--compact .hijiffy-activity-donut {
  width: 118px;
  height: 118px;
}

.hijiffy-activity-card--compact .hijiffy-activity-donut span {
  width: 68px;
  height: 68px;
}

.hijiffy-activity-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.hijiffy-activity-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #fff 0 46%, transparent 47%),
    conic-gradient(rgba(255, 255, 255, 0.14) 0 100%);
}

.hijiffy-activity-donut span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fff;
  color: #f0f0f0;
  text-align: center;
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.08);
}

.hijiffy-activity-donut strong {
  font-size: 1.05rem;
  line-height: 1;
}

.hijiffy-activity-donut small {
  display: block;
  color: #8a94a6;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  
}

.hijiffy-channel-list {
  display: grid;
  gap: 7px;
  color: #687386;
  font-size: 0.72rem;
}

.hijiffy-channel-list span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hijiffy-channel-list em {
  margin-left: auto;
  font-style: normal;
  font-weight: 800;
  color: #f0f0f0;
}

.hijiffy-channel-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hijiffy-conversation strong,
.hijiffy-conversation small,
.hijiffy-conversation time {
  display: block;
}

.hijiffy-conversation strong {
  color: #1f2937;
  font-size: 0.85rem;
}

.hijiffy-conversation small {
  overflow: hidden;
  color: #8a94a6;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hijiffy-conversation time {
  color: #a5adba;
  font-size: 0.68rem;
  white-space: nowrap;
}

.hijiffy-empty {
  padding: 24px 8px;
  text-align: center;
}

.hijiffy-task-list {
  display: grid;
  gap: 10px;
}

.hijiffy-task-list button {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  padding: 12px;
  background: #fbfbff;
  color: #475569;
  text-align: left;
  cursor: pointer;
}

.hijiffy-task-list button:hover {
  border-color: rgba(184, 146, 74, 0.22);
  background: #f7f3ff;
}

.hijiffy-task-list strong {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 12px;
  background: #ede9fe;
  color: var(--lotus-primary-dark);
  font-size: 1rem;
}

.hijiffy-task-list span {
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .hijiffy-dashboard-grid,
  .hijiffy-analytics-row {
    grid-template-columns: 1fr;
  }

  .hijiffy-hero-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hijiffy-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .hijiffy-activity-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hijiffy-channel-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hijiffy-kpi-row,
  .hijiffy-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .concierge-rail.is-expanded {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 45;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  }

  body.staff-concierge-app .concierge-topbar {
    gap: 8px;
    padding-inline: 10px;
  }

  body.staff-concierge-app .concierge-search {
    min-width: 0;
    flex: 1;
  }

  body.staff-concierge-app #view-home .home-metrics-combo-body {
    flex-direction: column;
    gap: 10px;
  }

  body.staff-concierge-app #view-home .home-metrics-divider {
    width: auto;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
  }

  body.staff-concierge-app #view-home .home-metrics-cell {
    padding: 0;
  }

  body.staff-concierge-app #view-home .hijiffy-hero-row {
    grid-template-columns: 1fr;
  }

  body.staff-concierge-app .staff-users-dialog {
    width: calc(100% - 20px);
    max-width: 100%;
  }

  body.staff-concierge-app .staff-user-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.staff-concierge-app .staff-user-actions {
    justify-content: flex-start;
  }
}

/* ═══ Lotus Concierge dark theme — final cascade overrides ═══ */
body.staff-concierge-app {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.1), transparent 50%),
    var(--ac-bg);
  color: var(--ac-text);
  font-family: var(--ac-font-body);
}

body.staff-concierge-app .hijiffy-dashboard {
  background: transparent;
}

/* Glass-card panels (matches Lotus Concierge marketing site) */
body.staff-concierge-app .hijiffy-welcome-card,
body.staff-concierge-app .hijiffy-reply-card,
body.staff-concierge-app .premium-kpi,
body.staff-concierge-app .hijiffy-panel,
body.staff-concierge-app .hijiffy-side-card,
body.staff-concierge-app .insights-hero-kpi,
body.staff-concierge-app .insights-secondary-kpi,
body.staff-concierge-app .insights-card,
body.staff-concierge-app .monitoring-chart-card,
body.staff-concierge-app .monitoring-hourly-card,
body.staff-concierge-app .reservation-card,
body.staff-concierge-app .order-queue-item,
body.staff-concierge-app .login-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    border-color var(--ac-transition),
    box-shadow var(--ac-transition),
    transform var(--ac-transition),
    background var(--ac-transition);
}

body.staff-concierge-app .premium-kpi:hover,
body.staff-concierge-app .hijiffy-side-card:hover,
body.staff-concierge-app .insights-hero-kpi:hover,
body.staff-concierge-app .insights-card:hover,
body.staff-concierge-app .monitoring-chart-card:hover,
body.staff-concierge-app .monitoring-hourly-card:hover,
body.staff-concierge-app .reservation-card:hover {
  border-color: var(--ac-border-glow);
  box-shadow:
    0 0 30px rgba(0, 160, 240, 0.1),
    var(--ac-shadow);
  transform: translateY(-2px);
}

body.staff-concierge-app .hijiffy-panel:not(.hijiffy-panel-dark),
body.staff-concierge-app .hijiffy-side-card {
  background: var(--ac-bg-card);
  border-color: var(--ac-border);
  color: var(--ac-text);
  box-shadow: var(--ac-shadow);
}

body.staff-concierge-app .hijiffy-panel h3,
body.staff-concierge-app .hijiffy-side-card h3 {
  color: var(--ac-text);
}

body.staff-concierge-app .hijiffy-panel p,
body.staff-concierge-app .hijiffy-side-card p {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-side-kicker {
  color: var(--ac-cyan) !important;
}

body.staff-concierge-app .hijiffy-open-card h3 {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-line-chart {
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 38px),
    linear-gradient(180deg, rgba(4, 15, 30, 0.6), rgba(3, 12, 24, 0.4));
}

body.staff-concierge-app .hijiffy-legend {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-conversation:hover {
  background: var(--ac-cyan-lo);
}

body.staff-concierge-app .hijiffy-view-more {
  border-top-color: var(--ac-border);
  color: var(--ac-cyan);
}

body.staff-concierge-app .hijiffy-view-more:hover {
  color: var(--ac-cyan);
  opacity: 0.85;
}

body.staff-concierge-app .hijiffy-chat-glyph {
  color: var(--ac-cobalt);
}

body.staff-concierge-app .premium-kpi {
  background: linear-gradient(135deg, rgba(6, 22, 52, 0.96) 0%, rgba(3, 12, 24, 0.98) 100%);
  border-color: var(--ac-border);
}

body.staff-concierge-app .premium-kpi::before {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 60%);
}

body.staff-concierge-app .premium-kpi.kpi-direct::before {
  background: radial-gradient(circle at top right, rgba(0, 232, 144, 0.14), transparent 60%);
}

body.staff-concierge-app .premium-kpi p {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .premium-kpi strong {
  color: var(--ac-text);
}

body.staff-concierge-app .hijiffy-panel-dark {
  background: linear-gradient(135deg, #061428 0%, #0c2240 100%);
  border-color: var(--ac-border);
}

body.staff-concierge-app .hijiffy-panel-dark .hijiffy-activity-donut span,
body.staff-concierge-app .hijiffy-activity-donut--dark span {
  background: #0c2240;
}

body.staff-concierge-app .hijiffy-donut {
  background:
    radial-gradient(circle, #0c2240 0 48%, transparent 49%),
    conic-gradient(var(--ac-cobalt) 0 63%, var(--ac-green) 63% 82%, rgba(255, 255, 255, 0.16) 82% 100%);
}

body.staff-concierge-app .hijiffy-line-chart .chart-line-auto {
  stroke: var(--ac-green);
}

body.staff-concierge-app .hijiffy-line-chart .chart-line-staff {
  stroke: var(--ac-cyan);
}

body.staff-concierge-app .legend-auto {
  background: var(--ac-green);
}

body.staff-concierge-app .legend-staff {
  background: var(--ac-cyan);
}

/* Shell chrome */
body.staff-concierge-app .concierge-rail,
body.staff-concierge-app .dash-header,
body.staff-concierge-app .concierge-topbar {
  background: rgba(2, 8, 20, 0.96);
  border-color: var(--ac-border);
}

body.staff-concierge-app .concierge-rail {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.staff-concierge-app .concierge-rail-btn:hover,
body.staff-concierge-app .concierge-rail-btn.active {
  background: var(--ac-cyan-lo);
  color: var(--ac-cyan);
}

body.staff-concierge-app .dash-user-trigger {
  background: var(--ac-bg-elevated);
  border-color: var(--ac-border);
}

body.staff-concierge-app .dash-user-trigger:hover,
body.staff-concierge-app .dash-user-trigger[aria-expanded="true"] {
  border-color: var(--ac-border-glow);
  box-shadow: 0 0 0 3px var(--ac-cyan-lo);
}

body.staff-concierge-app .dash-user-trigger[data-training="1"] {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

body.staff-concierge-app .dash-user-trigger[data-training="1"]:hover,
body.staff-concierge-app .dash-user-trigger[data-training="1"][aria-expanded="true"] {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

body.staff-concierge-app .dash-menu-panel {
  background: var(--ac-bg-card);
  border-color: var(--ac-border-glow);
  box-shadow: var(--ac-shadow);
}

body.staff-concierge-app .dash-menu-item:hover {
  background: var(--ac-cyan-lo);
}

body.staff-concierge-app .notify-bell:hover {
  border-color: var(--ac-border-glow);
  background: var(--ac-cyan-lo);
}

body.staff-concierge-app .notify-bell-icon {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .notify-bell:hover .notify-bell-icon {
  color: var(--ac-cyan);
}

body.staff-concierge-app .hijiffy-task-list button {
  background: var(--ac-bg-elevated);
  border-color: var(--ac-border);
  color: var(--ac-text);
}

body.staff-concierge-app .hijiffy-task-list button:hover {
  background: var(--ac-cyan-lo);
  border-color: var(--ac-border-glow);
}

body.staff-concierge-app .hijiffy-task-list strong {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ac-cyan);
}

body.staff-concierge-app .staff-notify-banner {
  background: var(--ac-bg-card);
  border-color: var(--ac-border-glow);
  box-shadow: var(--ac-shadow);
}

body.staff-concierge-app .staff-notify-banner--info {
  border-top-color: var(--ac-cyan);
}

/* Workspace columns */
body.staff-concierge-app .dash-col {
  background: var(--ac-bg-elevated);
  border-right-color: var(--ac-border);
}

body.staff-concierge-app .col-toolbar h2,
body.staff-concierge-app .reservations-toolbar h2,
body.staff-concierge-app .insights-header h2,
body.staff-concierge-app .thread-header h2,
body.staff-concierge-app .monitoring-header h2 {
  color: var(--ac-text);
  font-family: var(--ac-font-display);
}

body.staff-concierge-app .dash-filter-select,
body.staff-concierge-app .inbox-filter {
  background-color: var(--ac-bg-elevated);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%2300e5ff' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 10px;
  background-position: right 11px center;
  border-color: var(--ac-border);
  color: var(--ac-text);
}

body.staff-concierge-app .dash-filter-select:hover,
body.staff-concierge-app .inbox-filter:hover,
body.staff-concierge-app .dash-filter-select:focus,
body.staff-concierge-app .inbox-filter:focus {
  border-color: var(--ac-border-glow);
  background-color: var(--ac-cyan-lo);
  box-shadow: 0 0 0 2px var(--ac-cyan-lo);
}

body.staff-concierge-app .dash-filter-select option:checked,
body.staff-concierge-app .inbox-filter option:checked {
  background-color: var(--ac-cobalt);
  color: var(--ac-text);
}

body.staff-concierge-app .dash-custom-select-menu {
  border-color: var(--ac-border-glow);
  background: rgba(6, 16, 32, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.staff-concierge-app .dash-custom-select-search-wrap {
  background: rgba(6, 16, 32, 0.98);
}

body.staff-concierge-app .dash-custom-select-search {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body.staff-concierge-app .dash-custom-select-search:focus {
  border-color: rgba(56, 219, 200, 0.55);
}

body.staff-concierge-app .dash-custom-select-option {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .dash-custom-select-option:hover,
body.staff-concierge-app .dash-custom-select-option.is-selected {
  background: var(--ac-cyan-lo);
  color: var(--ac-cyan);
}

body.staff-concierge-app .dash-custom-select-trigger {
  background-color: var(--ac-bg-elevated);
  border-color: var(--ac-border);
  color: var(--ac-text);
}

body.staff-concierge-app .dash-custom-select.is-open .dash-custom-select-trigger,
body.staff-concierge-app .dash-custom-select-trigger:hover,
body.staff-concierge-app .dash-custom-select-trigger:focus-visible {
  border-color: var(--ac-border-glow);
  background-color: var(--ac-cyan-lo);
  box-shadow: 0 0 0 2px var(--ac-cyan-lo);
  outline: none;
}

body.staff-concierge-app .dash-custom-select-chevron {
  color: var(--ac-cyan);
}

body.staff-concierge-app .inbox-item:hover,
body.staff-concierge-app .inbox-item.active,
body.staff-concierge-app .staff-inbox-item:hover,
body.staff-concierge-app .staff-inbox-item.active,
body.staff-concierge-app .room-inbox-wrap.active .room-inbox-item,
body.staff-concierge-app .staff-inbox-wrap.active .staff-inbox-item {
  background: var(--ac-cyan-lo);
}

body.staff-concierge-app .staff-inbox-item.active,
body.staff-concierge-app .room-inbox-wrap.active .room-inbox-item {
  box-shadow: inset 3px 0 0 var(--ac-cyan);
}

body.staff-concierge-app .staff-dept-btn.is-active {
  color: var(--ac-cyan);
  border-color: var(--ac-border-glow);
  background: var(--ac-cyan-lo);
}

body.staff-concierge-app .msg-bubble.msg-staff {
  background: var(--ac-cyan-lo);
  border-color: var(--ac-border-glow);
}

body.staff-concierge-app .channel-pill.channel-inhouse {
  border-color: var(--ac-border-glow);
  color: var(--ac-cyan);
}

/* Insights */
body.staff-concierge-app .insights-hero-kpi::before {
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-cobalt));
}

body.staff-concierge-app .insights-hero-kpi.emerald::before {
  background: linear-gradient(90deg, var(--ac-green), rgba(0, 232, 144, 0.5));
}

body.staff-concierge-app .insights-hero-kpi.gold::before {
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-cobalt));
}

body.staff-concierge-app .insights-hero-kpi.emerald .insights-hero-value {
  color: var(--ac-green);
}

body.staff-concierge-app .insights-hero-label,
body.staff-concierge-app .insights-hero-note,
body.staff-concierge-app .insights-hero-value,
body.staff-concierge-app .insights-secondary-label,
body.staff-concierge-app .insights-secondary-value,
body.staff-concierge-app .insights-bar-label,
body.staff-concierge-app .insights-bar-value,
body.staff-concierge-app .insights-card h3,
body.staff-concierge-app .insights-card-hint,
body.staff-concierge-app .insights-sub,
body.staff-concierge-app .insights-loading,
body.staff-concierge-app .monitoring-loading,
body.staff-concierge-app .insights-empty {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .insights-hero-value,
body.staff-concierge-app .insights-secondary-value,
body.staff-concierge-app .insights-bar-value,
body.staff-concierge-app .insights-card h3 {
  color: var(--ac-text);
}

body.staff-concierge-app .insights-bar-fill {
  background: linear-gradient(90deg, var(--ac-cobalt), var(--ac-cyan));
}

body.staff-concierge-app .insights-week-bar.chats {
  background: rgba(255, 255, 255, 0.85);
}

body.staff-concierge-app .insights-week-bar.orders {
  background: rgba(255, 255, 255, 0.9);
}

/* Monitoring extras — match home dashboard dark surfaces */
body.staff-concierge-app .monitoring-uptime-goal {
  background: var(--ac-bg-card);
  border-color: var(--ac-border);
  box-shadow: var(--ac-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.staff-concierge-app .monitoring-uptime-goal-kicker {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .monitoring-uptime-goal-value {
  color: var(--ac-text);
}

body.staff-concierge-app .monitoring-uptime-goal-value.is-met {
  color: var(--ac-green);
}

body.staff-concierge-app .monitoring-uptime-goal-value.is-below {
  color: var(--ac-amber);
}

body.staff-concierge-app .monitoring-uptime-goal-target {
  color: var(--ac-text-dim);
}

body.staff-concierge-app .monitoring-uptime-goal-track {
  background: rgba(255, 255, 255, 0.12);
}

body.staff-concierge-app .monitoring-uptime-goal-marker {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

body.staff-concierge-app .monitoring-chart-card.hijiffy-side-card {
  background: var(--ac-bg-card);
  border-color: var(--ac-border);
  box-shadow: var(--ac-shadow);
  color: var(--ac-text);
}

body.staff-concierge-app .monitoring-chart-card.hijiffy-side-card h3 {
  color: var(--ac-text);
}

body.staff-concierge-app .monitoring-chart-card.hijiffy-side-card header p {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .monitoring-updated {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .monitoring-header {
  display: flex;
}

body.staff-concierge-app .monitoring-hero-grid .insights-hero-kpi.status-healthy::before {
  background: linear-gradient(90deg, var(--ac-green), rgba(0, 232, 144, 0.5));
}

body.staff-concierge-app .monitoring-hero-grid .insights-hero-kpi.status-degraded::before {
  background: linear-gradient(90deg, #fbbf24, rgba(245, 158, 11, 0.55));
}

body.staff-concierge-app .monitoring-hero-grid .insights-hero-kpi.status-down::before {
  background: linear-gradient(90deg, #f87171, rgba(248, 113, 113, 0.55));
}

body.staff-concierge-app .monitoring-hero-grid .insights-hero-kpi.status-healthy .insights-hero-value {
  color: var(--ac-green);
}

body.staff-concierge-app .monitoring-hero-grid .insights-hero-value--status {
  font-size: 1.35rem;
  line-height: 1.25;
}

body.staff-concierge-app .monitoring-donut-body {
  margin-top: 4px;
}

/* Short viewports: tighten System Health spacing */
@media (max-height: 900px) {
  body.staff-concierge-app .monitoring-panel {
    padding: 16px 18px 20px;
  }

  body.staff-concierge-app .monitoring-chart-card .hijiffy-activity-donut {
    width: 104px;
    height: 104px;
  }

  body.staff-concierge-app .monitoring-chart-card .hijiffy-activity-donut span {
    width: 50px;
    height: 50px;
  }

  body.staff-concierge-app .monitoring-donut-body {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  body.staff-concierge-app .monitoring-hourly-card .monitoring-hourly {
    min-height: 64px;
  }
}

@media (max-height: 760px) {
  body.staff-concierge-app .monitoring-hourly-card .monitoring-hourly {
    min-height: 56px;
  }
}

body.staff-concierge-app #view-home .hijiffy-chart-empty {
  color: var(--ac-text-dim);
}

body.staff-concierge-app #training-banner {
  background: #111111;
  border-bottom-color: var(--ac-border-glow);
  color: var(--ac-text);
}

body.staff-concierge-app #training-banner .training-banner-inner strong {
  color: var(--ac-cyan);
}

body.staff-concierge-app #training-banner .training-banner-inner p {
  color: var(--ac-text-muted);
}

/* Reveal animations (Lotus Concierge)
   IMPORTANT: never start at opacity:0 — if staff-reveal-active fails to apply
   (background tab, interrupted rAF), the whole dashboard looks blank forever. */
body.staff-concierge-app .staff-reveal {
  opacity: 1;
  transform: translateY(12px);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--staff-reveal-delay, 0ms);
}

body.staff-concierge-app .staff-reveal.staff-reveal-active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.staff-concierge-app .staff-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.staff-concierge-app .premium-kpi:hover,
  body.staff-concierge-app .hijiffy-side-card:hover,
  body.staff-concierge-app .insights-hero-kpi:hover,
  body.staff-concierge-app .insights-card:hover,
  body.staff-concierge-app .reservation-card:hover {
    transform: none;
  }
}

/* Readable text on dark surfaces — overrides legacy Hijiffy light-theme colors */
body.staff-concierge-app .hijiffy-conversation strong {
  color: var(--ac-text);
}

body.staff-concierge-app .hijiffy-conversation small {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-conversation time {
  color: var(--ac-text-dim);
}

body.staff-concierge-app .hijiffy-open-card h3 {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-channel-list {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-channel-list em {
  color: var(--ac-text);
}

body.staff-concierge-app .hijiffy-activity-donut span {
  color: var(--ac-text);
}

body.staff-concierge-app .hijiffy-activity-donut small {
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .hijiffy-chart-empty {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-chat-glyph {
  color: var(--ac-cobalt);
}

body.staff-concierge-app .hijiffy-task-list button {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-empty,
body.staff-concierge-app .hijiffy-panel p,
body.staff-concierge-app .hijiffy-side-card p {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .hijiffy-panel h3,
body.staff-concierge-app .hijiffy-side-card h3 {
  color: var(--ac-text);
}

/* Single cyan active accent — badges keep alert color */
body.staff-concierge-app .concierge-rail-btn.active {
  color: var(--ac-cyan);
  background: rgba(255, 255, 255, 0.1);
}

body.staff-concierge-app .concierge-rail-btn.active::before {
  background: var(--ac-cyan);
}

body.staff-concierge-app .concierge-rail-btn:hover {
  color: var(--ac-cyan);
  background: rgba(255, 255, 255, 0.06);
}

body.staff-concierge-app .concierge-rail.is-expanded .concierge-rail-label {
  color: var(--ac-text-muted);
}

body.staff-concierge-app .concierge-rail-btn.active .concierge-rail-label {
  color: var(--ac-cyan);
}

/* Home dashboard surfaces owned by glass-card + 9.5 polish blocks below */

/* ---------------------------------------------------------------------- */
/* Home dashboard polish pass — color-code the two side queues so each    */
/* one visually pairs with its matching hero KPI, give the "first reply"  */
/* card a real at-a-glance status, and sharpen chart/header legibility.   */
/* ---------------------------------------------------------------------- */

/* Side queues — glass cards with subtle top accent */
body.staff-concierge-app #view-home .hijiffy-orders-card,
body.staff-concierge-app #view-home .hijiffy-open-card {
  position: relative;
  overflow: hidden;
  border-color: var(--ac-border);
  padding: 16px;
}

body.staff-concierge-app #view-home .hijiffy-orders-card::before,
body.staff-concierge-app #view-home .hijiffy-open-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-cobalt));
}

body.staff-concierge-app #view-home .hijiffy-orders-card::before {
  background: linear-gradient(90deg, rgba(255, 183, 77, 0.95), rgba(245, 158, 11, 0.7));
}

body.staff-concierge-app #view-home .hijiffy-orders-card .hijiffy-side-kicker {
  color: #ffc46b !important;
}

body.staff-concierge-app #view-home .hijiffy-open-card .hijiffy-side-kicker {
  color: var(--ac-cyan) !important;
}

body.staff-concierge-app #view-home .hijiffy-orders-card .hijiffy-conversation:hover {
  background: rgba(255, 183, 77, 0.08);
}

body.staff-concierge-app #view-home .hijiffy-view-more {
  text-align: center;
  border-top: none;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ac-text-muted);
  background: transparent;
}

/* "Average time for first reply" — SLA status colors + note */
body.staff-concierge-app #view-home .hijiffy-reply-value #home-reply-status.hijiffy-reply-status,
.hijiffy-reply-value #home-reply-status.hijiffy-reply-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  
  vertical-align: middle;
}

#home-reply-status[hidden] {
  display: none !important;
}

.hijiffy-reply-note {
  margin: 2px 0 0;
  font-size: 0.66rem;
}

body.staff-concierge-app #view-home .hijiffy-reply-note {
  color: rgba(255, 255, 255, 0.42);
}

body.staff-concierge-app #view-home .hijiffy-reply-card.reply-good #home-reply-time {
  color: #34d399;
}

body.staff-concierge-app #view-home .hijiffy-reply-card.reply-good .hijiffy-reply-status {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
}

body.staff-concierge-app #view-home .hijiffy-reply-card.reply-warn #home-reply-time {
  color: #ffc46b;
}

body.staff-concierge-app #view-home .hijiffy-reply-card.reply-warn .hijiffy-reply-status {
  color: #ffc46b;
  background: rgba(255, 183, 77, 0.16);
}

body.staff-concierge-app #view-home .hijiffy-reply-card.reply-critical #home-reply-time {
  color: #f87171;
}

body.staff-concierge-app #view-home .hijiffy-reply-card.reply-critical .hijiffy-reply-status {
  color: #f87171;
  background: rgba(248, 113, 113, 0.16);
}

/* Chart axis labels — brighten slightly for readability on dark surfaces */
body.staff-concierge-app .chart-axis-label {
  fill: rgba(203, 213, 225, 0.85);
  font-weight: 500;
}

/* Topbar — guarantee breathing room between the search field and action icons */
body.staff-concierge-app .concierge-topbar,
body.staff-concierge-app .dash-header {
  gap: 20px;
}

body.staff-concierge-app .concierge-topbar-center {
  padding: 0 4px;
}

/* Analytics row — fill leftover height without empty voids under charts */
body.staff-concierge-app #view-home .hijiffy-analytics-row {
  align-items: stretch;
  min-height: 0;
}

body.staff-concierge-app #view-home .hijiffy-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark:not(.hijiffy-activity-card) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark:not(.hijiffy-activity-card) .hijiffy-line-chart {
  flex: 1 1 auto;
  min-height: 0;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark:not(.hijiffy-activity-card) .home-chart-legend {
  margin-top: auto;
}

body.staff-concierge-app #view-home .hijiffy-activity-card.hijiffy-panel-dark {
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Pack donut + legend as one block, centered in leftover space (no empty fr gap) */
body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-donut {
  flex: 0 0 auto;
  align-self: center;
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: clamp(96px, 28vh, 148px);
  height: clamp(96px, 28vh, 148px);
  max-width: 148px;
  max-height: 148px;
  aspect-ratio: 1 / 1;
  overflow: visible;
}

body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-donut .home-donut-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-donut span {
  width: clamp(56px, 58%, 92px);
  height: clamp(56px, 58%, 92px);
  font-size: clamp(0.88rem, 2vh, 1.28rem);
}

body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-channel-list {
  width: 100%;
  grid-template-columns: 1fr;
  flex: 0 0 auto;
  margin-top: 0;
  min-height: 0;
  overflow: visible;
}

body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item {
  min-height: 34px;
  padding: 6px 10px;
}

body.staff-concierge-app #view-home .home-line-chart svg {
  width: 100%;
  height: 100%;
  min-height: 88px;
  max-height: none;
}

/* Short viewports — keep everything on one screen, chart still fills */
@media (max-height: 900px) {
  body.staff-concierge-app #view-home.hijiffy-dashboard:not([hidden]) {
    padding: 8px 12px 10px;
  }

  body.staff-concierge-app #view-home .hijiffy-main {
    gap: 6px;
  }

  body.staff-concierge-app #view-home .hijiffy-dashboard-grid {
    gap: 10px;
  }

  body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-donut {
    width: clamp(84px, 22vh, 120px);
    height: clamp(84px, 22vh, 120px);
  }

  body.staff-concierge-app #view-home .hijiffy-activity-card .home-breakdown-legend-item {
    min-height: 30px;
    padding: 5px 8px;
  }
}

@media (max-height: 760px) {
  body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-donut {
    width: clamp(72px, 18vh, 100px);
    height: clamp(72px, 18vh, 100px);
  }

  body.staff-concierge-app #view-home .hijiffy-legend,
  body.staff-concierge-app #view-home .home-chart-legend {
    margin-top: 4px;
  }

  body.staff-concierge-app #view-home .home-chart-interactive {
    min-height: 64px;
  }
}

/* Narrow + stacked analytics: natural height, no forced stretch */
@media (max-width: 1180px) {
  body.staff-concierge-app #view-home .hijiffy-main {
    grid-template-rows: auto auto auto;
    overflow-y: auto;
  }

  body.staff-concierge-app #view-home .hijiffy-analytics-row {
    height: auto;
  }

  body.staff-concierge-app #view-home .hijiffy-panel,
  body.staff-concierge-app #view-home .hijiffy-activity-card.hijiffy-panel-dark {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.staff-concierge-app #view-home .home-line-chart svg {
    height: clamp(140px, 28vh, 200px);
    max-height: 200px;
  }

  body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-body {
    justify-content: flex-start;
  }

  body.staff-concierge-app #view-home .hijiffy-activity-card .hijiffy-activity-donut {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
  }
}

/* Staff accounts dialog */
.staff-users-dialog .staff-users-list-wrap {
  max-height: 240px;
  overflow: auto;
  margin: 0 0 1rem;
}
.staff-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.staff-users-empty {
  margin: 0;
  opacity: 0.75;
  font-size: 0.92rem;
}
.staff-user-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--lotus-border);
  border-radius: 10px;
  background: var(--lotus-bg-elevated);
  color: var(--lotus-text);
}
.staff-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.staff-user-meta strong {
  font-size: 0.95rem;
  color: var(--lotus-text);
}
.staff-user-meta span {
  font-size: 0.82rem;
  color: var(--lotus-text-muted);
  opacity: 1;
}
.staff-user-flag {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--lotus-primary, #38bdf8);
}
.staff-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-shrink: 0;
}
.staff-users-create {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.staff-users-create h3 {
  margin: 0;
  font-size: 0.95rem;
}



/* ═══ 9.5 polish — home metrics value scale + order timeline cyan ═══ */
body.staff-concierge-app #view-home .home-metrics-cell .insights-hero-label {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

body.staff-concierge-app #view-home .home-metrics-cell .insights-hero-value {
  font-size: 1.55rem;
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .hijiffy-welcome-card,
body.staff-concierge-app #view-home .hijiffy-reply-card {
  background: var(--ac-bg-card);
  border: 1px solid var(--ac-border);
  border-radius: var(--lotus-radius, 14px);
  box-shadow: var(--ac-shadow);
  position: relative;
  overflow: hidden;
}

body.staff-concierge-app #view-home .hijiffy-welcome-card::before,
body.staff-concierge-app #view-home .hijiffy-reply-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-cobalt));
}

body.staff-concierge-app #view-home .hijiffy-panel-dark.insights-card,
body.staff-concierge-app #view-home .hijiffy-panel.insights-card {
  background: var(--ac-bg-card);
  border-color: var(--ac-border);
  border-radius: var(--lotus-radius, 14px);
}

body.staff-concierge-app #view-home .hijiffy-side-card {
  padding: 16px;
  border-radius: var(--lotus-radius, 14px);
}

body.staff-concierge-app .order-progress-step.is-done:not(:last-child) .order-progress-rail {
  background: linear-gradient(180deg, var(--ac-cyan) 0%, rgba(255, 255, 255, 0.28) 100%);
}

body.staff-concierge-app .order-progress-step.is-done .order-progress-dot,
body.staff-concierge-app .order-progress-step.is-current .order-progress-dot {
  border-color: var(--ac-cyan);
}

body.staff-concierge-app .order-progress-step.is-done .order-progress-dot {
  background: var(--ac-cyan);
  box-shadow: 0 0 0 4px var(--ac-cyan-lo);
}

body.staff-concierge-app .order-progress-step.is-current .order-progress-dot {
  background: var(--ac-bg);
  box-shadow: 0 0 0 5px var(--ac-cyan-lo);
}

body.staff-concierge-app .order-progress-step.is-done .order-progress-label {
  color: var(--ac-cyan);
}

body.staff-concierge-app .order-detail-hint {
  border-left-color: var(--ac-cyan);
}

body.staff-concierge-app .orders-panel .col-toolbar--filtered {
  padding: 16px 16px 12px;
  gap: 10px;
}

body.staff-concierge-app .orders-panel .col-toolbar--filtered h2 {
  display: block;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ac-text);
}

body.staff-concierge-app .dash-custom-select-trigger {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  
}


/* Kill leftover Hijiffy dark-panel white-on-purple bleed on home */
body.staff-concierge-app #view-home .hijiffy-panel-dark,
body.staff-concierge-app #view-home .hijiffy-panel-dark.insights-card {
  background: var(--ac-bg-card) !important;
  color: var(--ac-text);
  border-color: var(--ac-border);
}

body.staff-concierge-app #view-home .hijiffy-panel-dark h3,
body.staff-concierge-app #view-home .hijiffy-panel-dark p,
body.staff-concierge-app #view-home .hijiffy-panel-dark .insights-card-hint {
  color: var(--ac-text-muted);
  opacity: 1;
}

body.staff-concierge-app #view-home .hijiffy-panel-dark h3 {
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .hijiffy-panel-dark .hijiffy-activity-donut span,
body.staff-concierge-app #view-home .hijiffy-activity-donut--dark span {
  background: var(--ac-bg-elevated);
  color: var(--ac-text);
}

body.staff-concierge-app .completed-panel .col-toolbar--filtered h2 {
  display: block;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ac-text);
}


/* Welcome / reply cards — match Performance Hub glass, not cobalt fill */
body.staff-concierge-app #view-home .hijiffy-welcome-card,
body.staff-concierge-app #view-home .hijiffy-reply-card {
  color: var(--ac-text);
  background: var(--ac-bg-card) !important;
  min-height: 0;
}

body.staff-concierge-app #view-home .hijiffy-kicker {
  color: var(--ac-cyan);
  opacity: 1;
}

body.staff-concierge-app #view-home .hijiffy-welcome-card h2 {
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .hijiffy-reply-value span:first-child,
body.staff-concierge-app #view-home .hijiffy-reply-value #home-reply-time {
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .hijiffy-reply-note {
  color: var(--ac-text-muted);
}

body.staff-concierge-app #view-home .hijiffy-wave path {
  stroke: rgba(255, 255, 255, 0.35);
  fill: none;
}


/* ═══ Home analytics row — fixed, non-colliding layout ═══ */
body.staff-concierge-app #view-home .hijiffy-analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  height: auto;
  max-height: none;
}

body.staff-concierge-app #view-home .hijiffy-analytics-row > .hijiffy-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  padding: 14px 16px;
  overflow: hidden;
}

/* Volume: title + legend on one header row */
body.staff-concierge-app #view-home .home-volume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

body.staff-concierge-app #view-home .home-volume-header h3,
body.staff-concierge-app #view-home .home-concierge-card header h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ac-text);
}

body.staff-concierge-app #view-home .home-volume-header .home-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
}

body.staff-concierge-app #view-home .home-volume-card .home-line-chart {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 0;
  background: transparent;
}

body.staff-concierge-app #view-home .home-volume-card .home-chart-summary {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ac-border);
  color: var(--ac-text-muted);
  font-size: 0.72rem;
}

body.staff-concierge-app #view-home .home-volume-card .home-chart-interactive {
  flex: 0 0 auto;
  height: 168px;
  min-height: 168px;
  max-height: 168px;
  display: block;
  position: relative;
}

body.staff-concierge-app #view-home .home-volume-card .home-line-chart svg {
  display: block;
  width: 100%;
  height: 168px;
  min-height: 168px;
  max-height: 168px;
}

body.staff-concierge-app #view-home .home-volume-card .chart-axis-label {
  fill: var(--ac-text-muted);
  font-size: 11px;
}

/* Concierge type: donut on top, full-width legend below — no squeeze */
body.staff-concierge-app #view-home .home-concierge-card .hijiffy-activity-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

body.staff-concierge-app #view-home .home-concierge-card .hijiffy-activity-donut {
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  flex: none;
  margin: 0;
}

body.staff-concierge-app #view-home .home-concierge-card .hijiffy-activity-donut span {
  width: 72px;
  height: 72px;
  font-size: 0.95rem;
}

body.staff-concierge-app #view-home .home-concierge-card .hijiffy-channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
}

body.staff-concierge-app #view-home .home-concierge-card .home-breakdown-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--ac-border);
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

body.staff-concierge-app #view-home .home-concierge-card .home-breakdown-legend-item > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0;
}

body.staff-concierge-app #view-home .home-concierge-card .home-breakdown-legend-label {
  min-width: 0;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ac-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.staff-concierge-app #view-home .home-concierge-card .home-breakdown-legend-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ac-text-muted);
  white-space: nowrap;
  justify-self: end;
}

/* Hero KPI labels — stop wrapping into the icon */
body.staff-concierge-app #view-home .home-hero-kpi {
  padding: 16px 52px 14px 16px;
}

body.staff-concierge-app #view-home .home-hero-kpi .insights-hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.staff-concierge-app #view-home .home-hero-kpi .insights-hero-value {
  font-size: 1.85rem;
}

body.staff-concierge-app #view-home .home-hero-kpi-icon {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

body.staff-concierge-app #view-home .home-hero-kpi-icon svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1180px) {
  body.staff-concierge-app #view-home .hijiffy-analytics-row {
    grid-template-columns: 1fr;
  }
}


/* Final home analytics overrides — beat older height:100% stretch rules */
body.staff-concierge-app #view-home .hijiffy-analytics-row > .hijiffy-panel.hijiffy-panel-dark,
body.staff-concierge-app #view-home .hijiffy-analytics-row > .home-volume-card,
body.staff-concierge-app #view-home .hijiffy-analytics-row > .home-concierge-card.hijiffy-activity-card.hijiffy-panel-dark {
  height: auto !important;
  max-height: none;
  overflow: hidden;
}

body.staff-concierge-app #view-home .home-volume-card .hijiffy-line-chart,
body.staff-concierge-app #view-home .home-volume-card .home-line-chart {
  flex: 0 0 auto !important;
  height: auto !important;
}

body.staff-concierge-app #view-home .home-concierge-card .hijiffy-activity-body {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: flex-start !important;
}


/* Colour top bars — Performance snapshot + Active orders + Room chats */
body.staff-concierge-app #view-home .home-metrics-combo.insights-card,
body.staff-concierge-app #view-home .home-metrics-combo {
  position: relative;
  overflow: hidden;
}

body.staff-concierge-app #view-home .home-metrics-combo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-cobalt));
  pointer-events: none;
}

/* Ensure home side queue tops stay visible above content */
body.staff-concierge-app #view-home .hijiffy-orders-card::before,
body.staff-concierge-app #view-home .hijiffy-open-card::before {
  z-index: 2;
  pointer-events: none;
}

/* Workspace: Active orders column — gold top (pairs with Orders Active KPI) */
body.staff-concierge-app .orders-panel {
  position: relative;
  overflow: hidden;
}

body.staff-concierge-app .orders-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, rgba(255, 183, 77, 0.95), rgba(245, 158, 11, 0.7));
  pointer-events: none;
}

/* Workspace: Room chats / Guest inbox — cyan top */
body.staff-concierge-app .rooms-panel,
body.staff-concierge-app #attention-panel.rooms-panel {
  position: relative;
  overflow: hidden;
}

body.staff-concierge-app .rooms-panel::before,
body.staff-concierge-app #attention-panel.rooms-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-cobalt));
  pointer-events: none;
}

/* Home Open Conversations stays cyan; Open Orders stays gold (already set) */
body.staff-concierge-app #view-home .hijiffy-open-card:not(.hijiffy-orders-card)::before {
  background: linear-gradient(90deg, var(--ac-cyan), var(--ac-cobalt));
}

/* —— Nightglass Ops 9.5 polish —— */
body.staff-concierge-app #view-home .home-dashboard-grid--nightglass {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

body.staff-concierge-app #view-home .home-dashboard-grid--nightglass .hijiffy-main {
  grid-template-rows: auto auto minmax(220px, auto) auto;
}

body.staff-concierge-app #view-home .hijiffy-analytics-row {
  min-height: 220px;
}

body.staff-concierge-app .home-action-pulse {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
  border: 1px solid var(--ac-border);
  background: var(--ac-bg-card);
  box-shadow: var(--ac-shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.staff-concierge-app .home-action-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ac-amber), rgba(255, 196, 107, 0.35));
  pointer-events: none;
}

body.staff-concierge-app .home-action-pulse.reply-critical::before {
  background: linear-gradient(90deg, var(--ac-red), rgba(248, 113, 113, 0.4));
}

body.staff-concierge-app .home-action-pulse.reply-good::before {
  background: linear-gradient(90deg, var(--ac-green), rgba(0, 232, 144, 0.35));
}

body.staff-concierge-app .home-action-pulse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.staff-concierge-app .home-action-pulse-head h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--ac-text);
}

body.staff-concierge-app .home-action-reply {
  text-align: right;
  min-width: 0;
}

body.staff-concierge-app .home-action-reply .hijiffy-kicker {
  margin: 0 0 4px;
  opacity: 0.7;
  justify-content: flex-end;
}

body.staff-concierge-app .home-action-reply strong {
  display: block;
  font-family: var(--ac-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ac-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

body.staff-concierge-app .home-action-reply-note,
body.staff-concierge-app .home-action-reply .hijiffy-reply-status {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--ac-text-muted);
}

body.staff-concierge-app .home-action-pulse-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.staff-concierge-app .home-action-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--ac-border);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--ac-transition), box-shadow var(--ac-transition), transform var(--ac-transition);
}

body.staff-concierge-app .home-action-metric:hover,
body.staff-concierge-app .home-action-metric:focus-visible {
  border-color: var(--ac-border-glow);
  box-shadow: 0 0 24px rgba(0, 160, 240, 0.12);
  outline: none;
  transform: translateY(-1px);
}

body.staff-concierge-app .home-action-metric .insights-hero-label {
  margin: 0;
  font-size: 0.68rem;
}

body.staff-concierge-app .home-action-metric .insights-hero-value {
  font-size: 1.7rem;
  color: var(--ac-text);
}

body.staff-concierge-app .home-action-metric.kpi-active-now .insights-hero-value {
  color: var(--ac-amber);
}

body.staff-concierge-app .home-action-metric.kpi-unread .insights-hero-value {
  color: var(--ac-cyan);
}

body.staff-concierge-app .home-action-metric.has-value {
  animation: home-action-pulse 2.4s ease-in-out infinite;
}

@keyframes home-action-pulse {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
  body.staff-concierge-app .home-action-metric.has-value {
    animation: none;
  }
}

body.staff-concierge-app .home-queue-panel {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

body.staff-concierge-app .home-queue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.staff-concierge-app .home-queue-head h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--ac-text);
}

body.staff-concierge-app .home-queue-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--ac-border);
  background: rgba(0, 0, 0, 0.22);
}

body.staff-concierge-app .home-queue-tab {
  border: 0;
  background: transparent;
  color: var(--ac-text-muted);
  font-family: var(--ac-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

body.staff-concierge-app .home-queue-tab.is-active {
  background: var(--ac-cyan-lo);
  color: var(--ac-cyan);
}

body.staff-concierge-app .home-queue-count {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--ac-text-muted);
  font-weight: 600;
}

body.staff-concierge-app .home-queue-pane .hijiffy-view-more {
  align-self: flex-start;
}

body.staff-concierge-app .concierge-rail-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

body.staff-concierge-app .concierge-rail-brand {
  display: none;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.staff-concierge-app .concierge-rail.is-expanded .concierge-rail-brand {
  display: flex;
  opacity: 1;
}

body.staff-concierge-app .concierge-rail-brand .concierge-wordmark {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body.staff-concierge-app .concierge-rail-property {
  font-size: 0.68rem;
  color: var(--ac-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

body.staff-concierge-app .concierge-search-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--ac-border);
  background: var(--ac-bg-elevated);
  color: var(--ac-text-muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.staff-concierge-app .concierge-search-toggle svg {
  width: 18px;
  height: 18px;
}

body.staff-concierge-app .concierge-rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
}

@media (max-width: 900px) {
  body.staff-concierge-app .concierge-search-toggle {
    display: inline-flex;
  }

  body.staff-concierge-app .concierge-topbar.is-search-open .concierge-topbar-center {
    display: flex;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 6px);
    z-index: 40;
  }

  body.staff-concierge-app .concierge-topbar.is-search-open .concierge-search {
    width: 100%;
    background: var(--ac-bg-elevated);
    border: 1px solid var(--ac-border-glow);
    box-shadow: var(--ac-shadow);
  }

  body.staff-concierge-app #view-home .home-hero-row--pulse,
  body.staff-concierge-app #view-home .hijiffy-hero-row {
    grid-template-columns: 1fr;
  }

  body.staff-concierge-app .home-action-pulse-head {
    flex-direction: column;
  }

  body.staff-concierge-app .home-action-reply {
    text-align: left;
  }

  body.staff-concierge-app .home-action-reply .hijiffy-kicker {
    justify-content: flex-start;
  }
}

body.staff-concierge-app .insights-hero-kpi.gold::before {
  background: linear-gradient(90deg, var(--ac-amber), rgba(255, 196, 107, 0.45));
}

/* —— Correction pass: quieter hierarchy and full-width analytics —— */
body.staff-concierge-app #view-home .hijiffy-welcome-card p:last-child {
  display: block;
  max-width: 34rem;
  margin-top: 10px;
  color: rgba(220, 232, 255, 0.7);
  font-family: var(--ac-font-body);
  font-size: 0.82rem;
  line-height: 1.5;
}

body.staff-concierge-app .home-action-pulse {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

body.staff-concierge-app .home-action-pulse-head {
  display: block;
}

body.staff-concierge-app .home-action-pulse-head h3 {
  margin-bottom: 3px;
}

body.staff-concierge-app .home-action-reply {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
}

body.staff-concierge-app .home-action-reply .hijiffy-kicker {
  flex: 1;
  margin: 0;
  justify-content: flex-start;
}

body.staff-concierge-app .home-action-reply strong {
  flex: 0 0 auto;
}

body.staff-concierge-app .home-action-reply-note {
  flex: 0 0 auto;
  max-width: 7rem;
  text-align: right;
}

body.staff-concierge-app .home-action-reply .hijiffy-reply-status {
  flex: 0 0 auto;
  margin-top: 0;
}

body.staff-concierge-app .home-action-metric {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(3, 12, 24, 0.42);
}

body.staff-concierge-app .home-action-metric.has-value {
  animation: none;
}

body.staff-concierge-app .insights-panel {
  width: 100%;
  box-sizing: border-box;
}

body.staff-concierge-app .insights-panel,
body.staff-concierge-app .monitoring-panel {
  align-self: stretch;
}

body.staff-concierge-app .insights-header,
body.staff-concierge-app .monitoring-header {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.staff-concierge-app .insights-card,
body.staff-concierge-app .monitoring-chart-card,
body.staff-concierge-app .monitoring-hourly-card,
body.staff-concierge-app .monitoring-overall-card {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

body.staff-concierge-app .insights-card:hover,
body.staff-concierge-app .monitoring-chart-card:hover,
body.staff-concierge-app .monitoring-hourly-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

@media (max-width: 900px) {
  body.staff-concierge-app .home-action-reply {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.staff-concierge-app .home-action-reply-note {
    width: 100%;
    max-width: none;
    text-align: left;
  }
}

/* ============================================================
   Nightglass Ops 2.0 — coherent system layer (authoritative)
   Color discipline: cyan = interactive/live · green = money/positive
   amber = waiting/load · red = critical · everything else navy.
   Anchors: left "signal edge" on the active element; mono meta text.
   ============================================================ */

/* —— 1. Type system —— */
body.staff-concierge-app .insights-hero-value,
body.staff-concierge-app .home-queue-count,
body.staff-concierge-app .monitoring-uptime-goal-value,
body.staff-concierge-app #home-reply-time {
  font-variant-numeric: tabular-nums;
}

/* Instrument labels: small caps kickers in mono for ops-console feel */
body.staff-concierge-app .hijiffy-kicker,
body.staff-concierge-app .insights-hero-label,
body.staff-concierge-app .staff-guest-section-header {
  font-family: var(--ac-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  
  color: var(--ac-text-dim);
}

/* Meta text (timestamps, statuses) in mono */
body.staff-concierge-app .order-queue-time,
body.staff-concierge-app .inbox-item-time,
body.staff-concierge-app .order-queue-status,
body.staff-concierge-app .inbox-status,
body.staff-concierge-app .insights-updated,
body.staff-concierge-app .monitoring-updated {
  font-family: var(--ac-font-mono);
  letter-spacing: 0.05em;
}

body.staff-concierge-app .order-queue-time,
body.staff-concierge-app .inbox-item-time {
  font-size: 0.66rem;
  color: var(--ac-text-dim);
}

/* —— 2. Card chrome: one strip recipe, meaning lives in the value —— */
body.staff-concierge-app .insights-hero-kpi::before,
body.staff-concierge-app .insights-hero-kpi.emerald::before,
body.staff-concierge-app .insights-hero-kpi.gold::before,
body.staff-concierge-app #view-home .home-hero-kpi.kpi-active-now::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}

/* System-status strips stay semantic (health is the message itself) */
body.staff-concierge-app .monitoring-hero-grid .insights-hero-kpi.status-healthy::before {
  background: linear-gradient(90deg, var(--ac-green), rgba(0, 232, 144, 0));
}

body.staff-concierge-app .monitoring-hero-grid .insights-hero-kpi.status-degraded::before {
  background: linear-gradient(90deg, var(--ac-amber), rgba(255, 196, 107, 0));
}

body.staff-concierge-app .monitoring-hero-grid .insights-hero-kpi.status-down::before {
  background: linear-gradient(90deg, var(--ac-red), rgba(248, 113, 113, 0));
}

/* —— 3. Home hero: compact welcome, quiet ActionPulse —— */
body.staff-concierge-app #view-home .hijiffy-welcome-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 22px 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.13), transparent 32%),
    linear-gradient(135deg, #0b2c58 0%, #071c3a 55%, #04101f 100%);
}

body.staff-concierge-app #view-home .hijiffy-welcome-card h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

body.staff-concierge-app #view-home .hijiffy-welcome-card p:last-child {
  margin-top: 6px;
  font-size: 0.85rem;
}

body.staff-concierge-app .home-action-pulse {
  border-color: var(--ac-border);
  box-shadow: var(--ac-shadow);
}

body.staff-concierge-app .home-action-metric {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 2px solid transparent;
  background: rgba(3, 12, 24, 0.5);
  transition: border-color var(--ac-transition), background var(--ac-transition), transform var(--ac-transition);
}

body.staff-concierge-app .home-action-metric:hover {
  border-left-color: var(--ac-cyan);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* —— 4. Workspace columns (orders, inboxes, archives) —— */
body.staff-concierge-app .col-toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body.staff-concierge-app .col-toolbar h2 {
  font-family: var(--ac-font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  
  color: var(--ac-text-dim);
  text-align: left;
}

/* List rows: room number in text color, status codes semantic */
body.staff-concierge-app .order-queue-room,
body.staff-concierge-app .inbox-item-room {
  color: var(--ac-text);
  font-weight: 700;
}

body.staff-concierge-app .order-queue-status {
  font-size: 0.62rem;
  color: var(--ac-cyan);
}

body.staff-concierge-app .order-queue-status.is-complete {
  color: var(--ac-green);
}

body.staff-concierge-app .inbox-status {
  font-size: 0.62rem;
}

body.staff-concierge-app .inbox-status.waiting { color: var(--ac-amber); }
body.staff-concierge-app .inbox-status.live { color: var(--ac-green); }

/* Selected row: accent handled in editorial theme via panel accent */
body.staff-concierge-app .order-queue-item.active {
  box-shadow: none;
  background: transparent;
}

/* —— 5. Designed empty states —— */
body.staff-concierge-app .order-detail-empty,
body.staff-concierge-app .thread-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
}

body.staff-concierge-app .order-detail-empty::before,
body.staff-concierge-app .thread-empty::before {
  content: '';
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 65%);
  box-shadow: none;
}

body.staff-concierge-app .order-detail-empty p,
body.staff-concierge-app .thread-empty p {
  max-width: 32ch;
  text-align: center;
  color: var(--ac-text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* —— 6. Guest chat mode: segmented control instead of folder tabs —— */
body.staff-concierge-app .thread-mode-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body.staff-concierge-app .thread-mode-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--ac-bg-elevated);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-pill);
}

body.staff-concierge-app .thread-mode-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: var(--ac-radius-pill);
  background: transparent;
  padding: 7px 18px;
  color: var(--ac-text-muted);
  font-family: var(--ac-font-body);
}

body.staff-concierge-app .thread-mode-btn.is-active {
  background: var(--ac-cyan-lo);
  color: var(--ac-cyan);
  box-shadow: inset 0 0 0 1px var(--ac-border-glow);
}

/* —— 7. Focus + motion —— */
body.staff-concierge-app :focus-visible {
  outline: 2px solid var(--ac-cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.staff-concierge-app .home-action-metric,
  body.staff-concierge-app .home-action-metric:hover {
    transform: none;
    transition: none;
  }
}

/* ——— Editorial theme — must be last ——— */

/* ——— Front Desk Daylight queue reinforce ——— */
body.staff-concierge-app .command-table-header {
  background: var(--ac-bg-elevated) !important;
  color: var(--ac-text-muted) !important;
  border-bottom: 1px solid var(--ac-border) !important;
}
body.staff-concierge-app .command-table-body .hijiffy-conversation,
body.staff-concierge-app #home-orders-list > * {
  color: var(--ac-text) !important;
  border-bottom-color: var(--ac-border) !important;
}
body.staff-concierge-app #home-orders-list .order-queue-room,
body.staff-concierge-app .command-table-body .inbox-item-room {
  font-weight: 600 !important;
  color: var(--ac-text) !important;
}

/* Pending in-room approvals (home sidebar) */
.home-pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.home-pending-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  font-size: 0.85rem;
}
.home-pending-meta strong { font-size: 0.9rem; }
.home-pending-checkout { opacity: 0.7; }
.home-pending-approve { flex-shrink: 0; }

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


* {
    -webkit-tap-highlight-color: transparent !important;
}
*:focus {
    outline: none !important;
}


@keyframes badge-pulse-anim {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--brand-gold-rgb, 197, 163, 101), 0.7); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(var(--brand-gold-rgb, 197, 163, 101), 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--brand-gold-rgb, 197, 163, 101), 0); }
}
.badge-pulse {
  animation: badge-pulse-anim 0.4s ease-out;
}



/* Home ops: New pill only (no border ring) for fresh orders / chats / approvals */
@keyframes home-new-pill-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.88; }
}

body.staff-concierge-app #view-home .hijiffy-conversation.is-home-new::before {
  content: none !important;
  display: none !important;
}

body.staff-concierge-app #view-home .home-new-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #041018;
  background: linear-gradient(135deg, #7dd3fc, #4cc9f0);
  box-shadow: 0 0 12px rgba(76, 201, 240, 0.35);
  animation: home-new-pill-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

body.staff-concierge-app #view-home .hijiffy-row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}



/* ---------- Support view ---------- */
.support-desk {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 20px 32px;
  max-width: 820px;
}

.support-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
}

@media (max-width: 720px) {
  .support-desk {
    padding: 8px 14px 24px;
    gap: 22px;
  }
}

/* ---------- Support view: system status ---------- */
.support-card--health {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-health-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.support-health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lotus-text-muted, #888);
  flex: none;
}

.support-health-pill[data-state="healthy"] .support-health-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.support-health-pill[data-state="degraded"] .support-health-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}
.support-health-pill[data-state="down"] .support-health-dot {
  background: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.support-health-pill[data-state="healthy"] { color: #34d399; }
.support-health-pill[data-state="degraded"] { color: #fbbf24; }
.support-health-pill[data-state="down"] { color: #f87171; }

.support-health-alerts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-health-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 8px 12px;
  border: none;
  border-left: 2px solid rgba(248, 113, 113, 0.75);
  background: transparent;
}

.support-health-alert-msg {
  font-size: 0.86rem;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

.support-health-use { flex: none; }

.support-health-clear {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

.support-health-clear .hijiffy-empty-lead {
  font-size: 0.88rem;
}

.support-health-clear .hijiffy-empty-sub {
  font-size: 0.82rem;
  color: rgba(244, 247, 250, 0.45);
}

.support-health-failed {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--lotus-text-muted, #888);
}

.support-health-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 0;
  border: none;
}

.support-health-updated {
  font-size: 0.78rem;
  color: var(--lotus-text-muted, #888);
  margin-left: auto;
}

@media (max-width: 720px) {
  .support-health-alert {
    flex-direction: column;
    align-items: stretch;
  }
  .support-health-updated { margin-left: 0; }
}

/* ---------- Support view: chat ---------- */
.support-card--chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-chat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.support-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 247, 250, 0.35);
  flex: none;
}

.support-chat-pill[data-state="online"] { color: #34d399; }
.support-chat-pill[data-state="online"] .support-chat-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.support-chat-pill[data-state="offline"] { color: rgba(244, 247, 250, 0.55); }

.support-chat-stage {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border: 1px solid rgba(76, 201, 240, 0.18);
  border-left: 2px solid #4cc9f0;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
}

.support-chat-offline {
  margin: 0;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  border-left: none;
  background: transparent;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(251, 191, 36, 0.95);
}

.support-chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 240px;
  max-height: min(48vh, 480px);
  overflow-y: auto;
  padding: 16px 18px;
  border: none;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 201, 240, 0.3) transparent;
}

.support-chat-log::-webkit-scrollbar { width: 8px; }
.support-chat-log::-webkit-scrollbar-thumb {
  background: rgba(76, 201, 240, 0.25);
  border-radius: 999px;
}

.support-msg {
  max-width: 78%;
  padding: 10px 13px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.support-msg strong { font-weight: 650; }
.support-msg code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(76, 201, 240, 0.12);
  font-size: 0.85em;
}

.support-msg--bot {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--lotus-text);
}

.support-msg--user {
  align-self: flex-end;
  border: 1px solid rgba(76, 201, 240, 0.28);
  border-radius: 12px 12px 4px 12px;
  background: rgba(76, 201, 240, 0.12);
  color: var(--lotus-text);
}

.support-msg-time {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(244, 247, 250, 0.4);
}

.support-chat-banner {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
  text-align: center;
}

.support-chat-banner--ended { color: rgba(244, 247, 250, 0.55); }

.support-chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.03);
}

.support-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(76, 201, 240, 0.75);
  animation: support-typing 1.3s infinite ease-in-out;
}
.support-chat-typing span:nth-child(2) { animation-delay: 0.16s; }
.support-chat-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes support-typing {
  0%, 60%, 100% { opacity: 0.28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.support-chat-empty {
  margin: auto;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(244, 247, 250, 0.4);
  max-width: 34ch;
}

.support-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}

.support-chat-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, 0.28);
  background: rgba(76, 201, 240, 0.08);
  color: var(--lotus-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.support-chat-chip:hover {
  border-color: rgba(76, 201, 240, 0.55);
  background: rgba(76, 201, 240, 0.16);
}

.support-chat-compose {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-chat-compose input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lotus-text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.support-chat-compose input::placeholder { color: rgba(244, 247, 250, 0.38); }

.support-chat-compose input:focus {
  outline: none;
  border-color: rgba(76, 201, 240, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.support-chat-compose input:disabled,
.support-chat-compose button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  body.staff-concierge-app #view-home .home-new-pill {
    animation: none;
  }
}
