:root {
  --red-deep: #b91c2c;
  --red-rich: #c41e3a;
  --red-soft: #e85a6a;
  --maroon: #6b1428;
  --gold: #c9a961;
  --gold-deep: #a88a3f;
  --gold-soft: #e8d9a8;
  --cream: #fdf8ee;
  --cream-warm: #f7ecd7;
  --ivory: #fffaf0;
  --blush: #fce4e4;
  --ink: #2a1418;
  --ink-soft: #5a3438;
  --ink-mute: #8a6a70;
  --success: #2d7a3d;
  --success-soft: #c9e3cd;
  --success-bg: #f3faf4;
  --warning: #c47a1e;
  --warning-soft: #f5e0b8;
  --warning-bg: #fdf6e7;
  --info: #2c5a8a;
  --info-soft: #c8d8e8;
  --info-bg: #f0f5fa;
  --danger: var(--red-rich);
  --danger-soft: #fbd5da;
  --danger-bg: #fef0f2;
  --dash-bg: oklch(97.8% 0.015 82);
  --dash-surface: oklch(99.2% 0.006 82);
  --dash-surface-muted: oklch(96.2% 0.018 82);
  --dash-line: oklch(84% 0.052 82);
  --dash-line-strong: oklch(74% 0.078 78);
  --dash-muted: oklch(42% 0.036 25);
  --dash-shadow: 0 14px 32px -26px rgba(77, 42, 30, 0.42);
  --dash-shadow-sm: 0 2px 12px -9px rgba(77, 42, 30, 0.32);
  --shadow-warm: 0 20px 60px -20px rgba(180, 28, 44, 0.25);
  --shadow-soft: 0 6px 22px -6px rgba(107, 20, 40, 0.18);
  --shadow-sm: 0 2px 8px -2px rgba(107, 20, 40, 0.1);
  --shadow-lg: 0 30px 80px -20px rgba(180, 28, 44, 0.35);
  --shadow-inset: inset 0 1px 2px rgba(107, 20, 40, 0.04);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-pill: 999px;
  --font-display: "DM Sans", sans-serif;
  --font-heading: "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-caps: "DM Sans", sans-serif;
  --font-italic: "DM Sans", sans-serif;
  --font-mono: "DM Sans", sans-serif;
  --font-compact: "DM Sans", sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-font-sans-serif: "DM Sans", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-border-color: var(--gold-soft);
  --bs-primary: var(--red-deep);
  --bs-primary-rgb: 185, 28, 44;
  --bs-secondary: var(--maroon);
  --bs-secondary-rgb: 107, 20, 40;
  --bs-success: var(--success);
  --bs-success-rgb: 45, 122, 61;
  --bs-info: var(--info);
  --bs-info-rgb: 44, 90, 138;
  --bs-warning: var(--warning);
  --bs-warning-rgb: 196, 122, 30;
  --bs-danger: var(--danger);
  --bs-danger-rgb: 196, 30, 58;
  --bs-light: var(--ivory);
  --bs-light-rgb: 255, 250, 240;
  --bs-dark: var(--ink);
  --bs-dark-rgb: 42, 20, 24;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: "Material Symbols Rounded";
  font-size: 1.2em;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  vertical-align: -0.18em;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.material-symbols-rounded.filled {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top left, rgba(196, 30, 58, 0.06), transparent 52%),
    radial-gradient(ellipse at bottom right, rgba(201, 169, 97, 0.08), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--red-deep);
}

a:hover {
  color: var(--maroon);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--maroon);
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.text-body-secondary,
.text-muted {
  color: var(--ink-soft) !important;
}

.small,
small {
  color: var(--ink-soft);
}

.public-body,
.dashboard-body {
  background: var(--cream);
}

.dashboard-body {
  background: var(--dash-bg);
}

.dashboard-body::before {
  display: none;
}

.public-main.container,
.dashboard-main {
  position: relative;
}

.public-navbar {
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid var(--gold-soft);
  backdrop-filter: blur(12px);
}

.public-navbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.public-brand,
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.public-brand {
  flex: 1 1 auto;
}

.public-brand:hover,
.sidebar-brand:hover {
  color: inherit;
}

.app-brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.app-brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.app-brand-logo-frame--sidebar {
  width: 176px;
  height: 92px;
  margin: -18px 0 -16px;
}

.app-brand-logo-frame--public {
  width: 180px;
  height: 92px;
  margin: -12px 0;
}

.app-brand-logo-frame--topbar {
  width: 138px;
  height: 68px;
  margin: -16px 0;
}

.app-brand-logo-frame--auth {
  width: 190px;
  height: 98px;
  margin: -24px 0 -10px;
}

.public-brand-mark,
.sidebar-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(180deg, var(--red-rich), var(--red-deep));
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 17px;
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.public-brand-copy,
.sidebar-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.public-brand-title,
.sidebar-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red-deep);
}

.public-brand-sub,
.sidebar-brand-sub,
.dashboard-topbar-sub,
.auth-brand-sub,
.sidebar-nav-label,
.form-label,
.dashboard-section-kicker,
.public-kicker,
.public-mini-label {
  font-family: var(--font-caps);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.public-brand-sub,
.sidebar-brand-sub,
.dashboard-topbar-sub,
.auth-brand-sub {
  color: var(--gold-deep);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.public-main {
  padding-top: var(--s-8);
  padding-bottom: calc(var(--s-12) + 3.25rem);
}

.app-fixed-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: color-mix(in oklch, var(--dash-surface) 92%, white 8%);
  border-top: 1px solid var(--dash-line);
  padding: 0.55rem 0.9rem 0.65rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-family: var(--font-compact);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.app-fixed-footer a {
  color: var(--maroon);
  text-decoration: none;
  white-space: nowrap;
}

.app-fixed-footer a:hover,
.app-fixed-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .app-fixed-footer {
    padding-top: 0.42rem;
    padding-bottom: 0.5rem;
    font-size: 0.72rem;
    gap: 0.22rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .app-fixed-footer a {
    text-decoration: underline;
    font-size: 0.72rem;
  }
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  background: linear-gradient(180deg, var(--dash-bg), #fffdf8 58%, var(--dash-bg));
  transition: grid-template-columns 0.22s ease;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px calc(20px + 3.5rem);
  background: var(--dash-surface);
  border-right: 1px solid var(--dash-line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  box-shadow: inset -1px 0 0 rgba(107, 20, 40, 0.035);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dash-line);
}

.dashboard-sidebar-collapse {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  place-items: center;
  flex: 0 0 auto;
  color: var(--maroon);
  background: color-mix(in oklch, var(--dash-surface) 88%, white 12%);
  box-shadow: var(--dash-shadow-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dashboard-sidebar-collapse:hover,
.dashboard-sidebar-collapse:focus-visible,
.dashboard-sidebar-reopen:hover,
.dashboard-sidebar-reopen:focus-visible {
  color: var(--red-deep);
  background: rgba(196, 30, 58, 0.07);
  border-color: rgba(196, 30, 58, 0.18);
}

.dashboard-sidebar-collapse .material-symbols-rounded,
.dashboard-sidebar-reopen .material-symbols-rounded {
  font-size: 1.15rem;
}

.dashboard-sidebar-reopen {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  padding-right: 0.15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-nav-section {
  display: grid;
  gap: 0.35rem;
}

.sidebar-nav-label {
  padding: 0 0.7rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 42px;
  padding: 0.58rem 0.7rem;
  border-radius: var(--r-md);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.sidebar-link .material-symbols-rounded {
  width: 1.25rem;
  flex: 0 0 1.25rem;
  font-size: 1.08rem;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--red-deep);
  background: rgba(196, 30, 58, 0.06);
  border-color: rgba(196, 30, 58, 0.08);
  transform: translateX(2px);
}

.sidebar-link.active {
  color: var(--red-deep);
  background: rgba(196, 30, 58, 0.07);
  border-color: rgba(196, 30, 58, 0.14);
  box-shadow: var(--dash-shadow-sm);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dash-line);
}

.dashboard-content {
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(255, 253, 248, 0) 220px);
}

.dashboard-topbar {
  min-height: 64px;
  padding: 0.8rem 1rem;
  background: color-mix(in oklch, var(--dash-surface) 92%, white);
  border-bottom: 1px solid var(--dash-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  backdrop-filter: blur(12px);
}

.dashboard-topbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-main {
  min-height: 100vh;
  padding-bottom: 3.5rem;
}

.dashboard-page-container {
  max-width: 1180px;
  margin-inline: auto;
}

.dashboard-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 20, 24, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.dashboard-backdrop.is-visible {
  opacity: 1;
}

.dashboard-page-head,
.scanner-shell,
.compact-card,
.metric,
.module-link,
.action-chip,
.dashboard-panel,
.public-hero-card,
.public-form-card,
.public-center-card,
.auth-shell {
  animation: sankalp-fade-up 0.3s ease both;
}

@keyframes sankalp-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dash-line);
}

.dashboard-page-title {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-width: 0;
}

.dashboard-page-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--red-rich), var(--red-deep));
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(180, 28, 44, 0.22);
  flex: 0 0 auto;
}

.dashboard-page-icon .material-symbols-rounded {
  font-size: 1.22rem;
}

.dashboard-page-title h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.dashboard-page-subtitle {
  max-width: 68ch;
  margin: 0.28rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft) !important;
}

.dashboard-quick-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.44rem 0.72rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--dash-line);
  background: var(--dash-surface);
  color: var(--maroon);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--dash-shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.action-chip .material-symbols-rounded {
  color: var(--gold-deep);
  font-size: 1.08rem;
}

.action-chip:hover,
.action-chip:focus-visible {
  color: var(--red-deep);
  border-color: var(--gold);
  background: var(--cream-warm);
  transform: translateY(-1px);
}

.dashboard-panel,
.compact-card,
.card,
.metric,
.module-link {
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
}

.dashboard-panel,
.compact-card {
  padding: 1rem;
}

.card {
  overflow: hidden;
}

.card-body,
.card-footer,
.card-header {
  background: transparent;
  border-color: var(--dash-line);
}

.card-footer.bg-white,
.card-header.bg-white {
  background: transparent !important;
}

.dashboard-summary-panel {
  position: relative;
}

.dashboard-summary-panel::before,
.metric::before,
.module-link::before,
.compact-card::before {
  content: none;
  display: none;
}

.public-hero-card::before,
.public-form-card::before,
.public-center-card::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-rich), var(--gold), var(--red-rich));
}

.dashboard-panel,
.metric,
.module-link,
.public-hero-card,
.public-form-card,
.public-center-card,
.compact-card {
  position: relative;
  overflow: hidden;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: 1rem;
}

.dashboard-section-title {
  margin: 0;
  font-size: 1.08rem;
}

.dashboard-section-subtitle {
  margin: 0.22rem 0 0;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.metric {
  min-height: 112px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric:hover {
  transform: translateY(-1px);
  box-shadow: var(--dash-shadow);
}

.metric span:first-child,
.metric-label {
  display: block;
  color: var(--maroon);
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 600;
}

.metric strong,
.metric .h3,
.metric-value {
  margin: 0;
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 2rem;
  line-height: 1;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-3);
}

.overview-card {
  position: relative;
  min-height: 154px;
  padding: 1rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.overview-card::before {
  content: none;
  display: none;
}

.overview-card::after {
  content: none;
  display: none;
}

.overview-card:hover {
  transform: translateY(-1px);
  border-color: var(--dash-line-strong);
  box-shadow: var(--dash-shadow);
}

.overview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.overview-card-copy {
  min-width: 0;
}

.overview-card-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.overview-card-title {
  display: block;
  max-width: none;
  color: var(--maroon);
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 700;
}

.overview-card-meta {
  display: block;
  margin-top: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.35;
}

.overview-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.1), rgba(196, 30, 58, 0.03));
  color: var(--red-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(196, 30, 58, 0.08),
    0 8px 18px rgba(196, 30, 58, 0.08);
  flex: 0 0 auto;
}

.overview-card-icon .material-symbols-rounded {
  font-size: 1.14rem;
}

.overview-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.overview-card-value {
  margin: 0;
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.overview-card-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.54rem;
  border-radius: var(--r-pill);
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid rgba(232, 217, 168, 0.95);
  color: var(--gold-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview-card-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red-rich);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.08);
}

.module-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  height: 100%;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-link:hover,
.module-link:focus-visible {
  color: inherit;
  transform: translateY(-1px);
  box-shadow: var(--dash-shadow);
  border-color: var(--dash-line-strong);
}

.module-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: 1rem;
}

.module-icon,
.module-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.module-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.08), rgba(196, 30, 58, 0.02));
  color: var(--red-deep);
  box-shadow: inset 0 0 0 1px rgba(196, 30, 58, 0.08);
}

.module-icon .material-symbols-rounded {
  font-size: 1.08rem;
}

.module-link-arrow {
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  background: var(--cream-warm);
  color: var(--gold-deep);
}

.module-link-body {
  display: grid;
  gap: var(--s-2);
}

.module-link-body strong {
  font-size: 1rem;
  color: var(--maroon);
}

.module-link-body span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.module-link-footer {
  margin-top: var(--s-5);
  font-family: var(--font-caps);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.property-form-card .card-body {
  padding-bottom: var(--s-4);
}

.property-form-card .card-footer {
  padding-top: var(--s-4);
}

.property-grid {
  align-items: stretch;
}

.property-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 172px;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.property-card::before {
  content: none;
  display: none;
}

.property-card:hover,
.property-card:focus-visible {
  color: inherit;
  transform: translateY(-1px);
  border-color: var(--dash-line-strong);
  box-shadow: var(--dash-shadow);
}

.property-card > * {
  position: relative;
}

.property-card-head,
.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.property-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.1), rgba(196, 30, 58, 0.03));
  color: var(--red-deep);
  box-shadow: inset 0 0 0 1px rgba(196, 30, 58, 0.08);
  flex: 0 0 auto;
}

.property-card-icon .material-symbols-rounded {
  font-size: 1.02rem;
}

.property-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(201, 169, 97, 0.38);
  background: var(--cream-warm);
  color: var(--gold-deep);
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.property-card-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.property-card-body {
  display: grid;
  gap: var(--s-2);
}

.property-card-body strong {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--maroon);
}

.property-card-body span {
  font-family: var(--font-body);
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.5;
}

.property-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dash-line);
  font-family: var(--font-caps);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.property-card-footer .material-symbols-rounded {
  font-size: 0.9rem;
}

.room-list-panel {
  padding: 0;
  overflow: hidden;
}

.room-list-shell {
  margin: 0;
}

.room-list-table {
  margin: 0;
  min-width: 960px;
}

.room-list-table thead th {
  white-space: nowrap;
  vertical-align: middle;
}

.room-list-row td {
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.82);
}

.room-list-row-available td:first-child {
  box-shadow: inset 3px 0 0 rgba(45, 122, 61, 0.68);
}

.room-list-row-partial td:first-child {
  box-shadow: inset 3px 0 0 rgba(196, 122, 30, 0.82);
}

.room-list-row-full td:first-child {
  box-shadow: inset 3px 0 0 rgba(196, 30, 58, 0.82);
}

.room-list-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.room-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(247, 236, 215, 0.84);
  color: var(--maroon);
  font-weight: 700;
}

.room-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.38rem 0.72rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(201, 169, 97, 0.22);
  font-family: var(--font-caps);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.room-status-badge-available {
  background: var(--success);
  color: #fff;
}

.room-status-badge-partial {
  background: var(--warning);
  color: #fff;
}

.room-status-badge-full {
  background: var(--danger);
  color: #fff;
}

.room-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.room-capacity-field {
  width: 84px;
  min-width: 84px;
  text-align: center;
}

.room-list-view-btn {
  min-width: 86px;
  padding: 0.56rem 0.95rem;
  border: 1px solid rgba(201, 169, 97, 0.48);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  color: var(--maroon);
  font-family: var(--font-caps);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.room-list-view-btn:hover,
.room-list-view-btn:focus-visible {
  background: var(--cream-warm);
  border-color: var(--gold);
  color: var(--red-deep);
}

.room-row-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.room-list-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-md);
  border: 1px solid rgba(201, 169, 97, 0.34);
  background: rgba(255, 255, 255, 0.96);
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.room-list-icon-btn:hover,
.room-list-icon-btn:focus-visible {
  border-color: var(--gold);
}

.room-list-icon-btn .material-symbols-rounded {
  font-size: 1.15rem;
}

.room-delete-form {
  margin: 0;
}

.room-list-save-btn {
  background: rgba(243, 250, 244, 0.96);
  border-color: rgba(45, 122, 61, 0.2);
  color: var(--success);
}

.room-list-save-btn:hover,
.room-list-save-btn:focus-visible {
  background: var(--success);
  border-color: var(--success);
  color: var(--ivory);
}

.room-list-delete-btn {
  background: rgba(254, 240, 242, 0.96);
  border-color: rgba(196, 30, 58, 0.18);
  color: var(--danger);
}

.room-list-delete-btn:hover,
.room-list-delete-btn:focus-visible {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--ivory);
}

.room-list-lock {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid rgba(168, 138, 63, 0.2);
  background: rgba(247, 236, 215, 0.9);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.room-users-modal-content {
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow);
}

.room-users-modal-header {
  border-bottom: 1px solid rgba(201, 169, 97, 0.22);
  padding: 1rem 1.1rem 0.9rem;
}

.room-users-modal-title {
  margin: 0;
  font-size: 1.35rem;
}

.room-users-modal-subtitle {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.room-users-modal-body {
  padding: 1rem 1.1rem 1.1rem;
}

.room-users-list {
  display: grid;
  gap: 0.7rem;
}

.room-users-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 0.9rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(201, 169, 97, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.room-users-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.92), rgba(185, 28, 44, 0.84));
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.room-users-copy {
  display: grid;
  min-width: 0;
}

.room-users-copy strong {
  color: var(--ink);
}

.room-users-copy span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.room-users-empty {
  padding: 1rem;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(201, 169, 97, 0.36);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
}

.property-empty-state {
  padding: 1.4rem;
}

.public-hero-card,
.public-form-card,
.public-center-card {
  padding: 1.5rem;
}

.public-hero-card {
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 97, 0.18), transparent 34%),
    linear-gradient(180deg, var(--ivory), var(--cream-warm));
}

.public-kicker,
.public-mini-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  color: var(--gold-deep);
  margin-bottom: var(--s-3);
}

.public-kicker::before,
.public-kicker::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.public-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.8rem);
  line-height: 1;
  color: var(--red-deep);
  text-shadow: 2px 2px 0 var(--gold-soft);
  margin-bottom: 0.35rem;
}

.public-subtitle {
  margin: 0 0 var(--s-3);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.public-event-name {
  margin: 0 0 var(--s-4);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.public-copy {
  margin: 0;
  color: var(--ink-soft);
}

.public-copy strong {
  color: var(--maroon);
}

.public-helper {
  margin-top: var(--s-4);
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--gold-soft);
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--ink-soft);
}

.public-form-card .card-title,
.public-section-title {
  font-size: 1.3rem;
  margin-bottom: var(--s-3);
}

.public-form-card .card-footer {
  padding-top: var(--s-4);
}

.public-center-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.public-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--cream-warm);
  border: 1px solid var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--maroon);
}

.auth-screen {
  min-height: calc(100vh - 5rem);
  min-height: calc(100dvh - 5rem);
  display: grid;
  place-items: center;
  padding: var(--s-6) 0;
}

.public-main.auth-main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-top: var(--s-4) !important;
  padding-bottom: var(--s-4) !important;
}

.auth-main .dashboard-page-container {
  width: 100%;
}

.auth-main .auth-screen {
  min-height: auto;
  padding: 0;
}

.auth-shell {
  --auth-surface: oklch(98% 0.01 77);
  --auth-panel: oklch(99% 0.008 77);
  --auth-muted: oklch(46% 0.035 26);
  --auth-rule: oklch(84% 0.055 82);
  --auth-shadow: 0 24px 70px -46px oklch(27% 0.08 24 / 0.62);
  width: min(100%, 440px);
  display: grid;
  background: var(--auth-panel);
  border: 1px solid var(--auth-rule);
  border-radius: 18px;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.auth-panel {
  padding: clamp(1.65rem, 4vw, 2.35rem);
}

.auth-brand-top {
  display: inline-flex;
  align-items: center;
}

.auth-brand-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.auth-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-deep);
  color: var(--ivory);
  font-weight: 700;
  box-shadow: 0 0 0 1px oklch(63% 0.085 71 / 0.38), 0 12px 26px -18px var(--red-deep);
}

.auth-brand-name,
.auth-security-pill,
.auth-field label {
  font-family: var(--font-caps);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-brand-name {
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-panel-head h1 {
  margin: 0;
  color: var(--maroon);
  letter-spacing: 0;
  font-size: 2.05rem;
  line-height: 1.04;
}

.auth-panel-head p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-panel {
  display: grid;
  gap: var(--s-6);
}

.auth-panel-head {
  display: grid;
  gap: var(--s-3);
}

.auth-security-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.44rem 0.65rem;
  border-radius: var(--r-pill);
  background: oklch(96% 0.021 145);
  color: oklch(39% 0.085 148);
  font-size: 0.62rem;
  font-weight: 700;
}

.auth-security-pill .material-symbols-rounded {
  font-size: 0.94rem;
}

.auth-alert {
  margin: 0;
  border-radius: var(--r-md);
}

.auth-form {
  display: grid;
  gap: var(--s-5);
}

.auth-field {
  display: grid;
  gap: var(--s-2);
}

.auth-field label {
  color: var(--maroon);
  font-size: 0.64rem;
  font-weight: 700;
}

.auth-input-shell {
  position: relative;
}

.auth-input-shell .material-symbols-rounded {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 1.2rem;
  line-height: 1;
  pointer-events: none;
}

.auth-input {
  min-height: 54px;
  padding: 0.84rem 1rem 0.84rem 4.2rem;
  border-radius: var(--r-md);
  background: var(--auth-surface);
  border-color: oklch(84% 0.055 82);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.62);
}

.auth-input::placeholder {
  color: var(--auth-muted);
  opacity: 0.72;
}

.auth-input:focus {
  border-color: var(--red-deep);
  box-shadow: 0 0 0 4px oklch(52% 0.16 25 / 0.11);
}

.auth-submit {
  min-height: 54px;
  width: 100%;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}

.auth-submit .material-symbols-rounded {
  font-size: 1.12rem;
}

.btn {
  border-radius: var(--r-md);
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.auth-submit {
  --bs-btn-bg: var(--red-deep);
  --bs-btn-border-color: var(--red-deep);
  --bs-btn-hover-bg: var(--red-rich);
  --bs-btn-hover-border-color: var(--red-rich);
  --bs-btn-active-bg: var(--maroon);
  --bs-btn-active-border-color: var(--maroon);
  --bs-btn-disabled-bg: rgba(185, 28, 44, 0.56);
  --bs-btn-disabled-border-color: rgba(185, 28, 44, 0.56);
  font-family: var(--font-caps);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  box-shadow: 0 0 0 1px var(--red-deep), 0 8px 18px -12px rgba(180, 28, 44, 0.55);
}

.btn-secondary {
  --bs-btn-bg: var(--maroon);
  --bs-btn-border-color: var(--maroon);
  --bs-btn-hover-bg: var(--red-deep);
  --bs-btn-hover-border-color: var(--red-deep);
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
  background: transparent;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-outline-primary {
  --bs-btn-color: var(--red-deep);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-bg: var(--cream-warm);
  --bs-btn-hover-color: var(--red-deep);
  --bs-btn-hover-border-color: var(--red-rich);
  --bs-btn-active-bg: var(--cream-warm);
  --bs-btn-active-color: var(--red-deep);
  --bs-btn-active-border-color: var(--red-rich);
}

.btn-outline-secondary {
  --bs-btn-color: var(--maroon);
  --bs-btn-border-color: var(--gold-soft);
  --bs-btn-hover-bg: var(--cream-warm);
  --bs-btn-hover-color: var(--red-deep);
  --bs-btn-hover-border-color: var(--gold);
  --bs-btn-active-bg: var(--cream-warm);
  --bs-btn-active-color: var(--red-deep);
  --bs-btn-active-border-color: var(--gold);
}

.btn-outline-success {
  --bs-btn-color: var(--success);
  --bs-btn-border-color: rgba(45, 122, 61, 0.34);
  --bs-btn-hover-bg: var(--success-bg);
  --bs-btn-hover-color: var(--success);
  --bs-btn-hover-border-color: rgba(45, 122, 61, 0.5);
}

.btn-outline-danger {
  --bs-btn-color: var(--danger);
  --bs-btn-border-color: rgba(196, 30, 58, 0.28);
  --bs-btn-hover-bg: var(--danger-bg);
  --bs-btn-hover-color: var(--danger);
  --bs-btn-hover-border-color: rgba(196, 30, 58, 0.45);
}

.btn-link {
  color: var(--gold-deep);
}

.btn-sm {
  font-size: 0.66rem;
}

.form-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--maroon);
  margin-bottom: 0.45rem;
}

.form-label::before {
  content: none;
  display: none;
}

.form-control,
.form-select {
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  border-color: var(--dash-line);
  border-radius: var(--r-md);
  background: oklch(99.4% 0.006 82);
  color: var(--ink);
  box-shadow: var(--shadow-inset);
}

.form-control::placeholder {
  color: var(--ink-mute);
  font-family: var(--font-italic);
  font-style: italic;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--red-rich);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.08);
  background: var(--dash-surface);
}

.auth-input-shell .auth-input {
  min-height: 54px;
  padding: 0.84rem 1rem 0.84rem 3.35rem;
  background: var(--auth-surface);
  border-color: oklch(84% 0.055 82);
}

.form-check-input {
  border-color: var(--gold);
}

.form-check-input:checked {
  background-color: var(--red-deep);
  border-color: var(--red-deep);
}

.invalid-feedback {
  color: var(--danger);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: rgba(196, 30, 58, 0.48);
  background-image: none;
}

.form-control-sm,
.form-select-sm {
  min-height: 36px;
  padding: 0.44rem 0.62rem;
  border-radius: var(--r-md);
  font-size: 0.86rem;
}

.dashboard-filter-panel {
  padding: 0.95rem;
  background: color-mix(in oklch, var(--dash-surface) 86%, var(--dash-surface-muted));
}

.dashboard-create-form .card-body,
.dashboard-form-body {
  padding: 1rem;
}

.dashboard-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
}

.dashboard-form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr));
  gap: 0.85rem;
  align-items: end;
  margin: 0;
}

.dashboard-form-grid.row {
  margin: 0;
}

.dashboard-form-grid.row > *,
.dashboard-form-grid > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

.dashboard-field,
.dashboard-field-wide,
.dashboard-field-action {
  min-width: 0;
}

.dashboard-field-wide {
  grid-column: span 2;
}

.dashboard-form-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.dashboard-form-actions .btn,
.dashboard-form-footer .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.dashboard-form-actions .btn:not(.btn-link) {
  min-width: 96px;
}

.reports-filter-form {
  grid-template-columns: minmax(220px, 2fr) minmax(176px, 0.95fr) minmax(260px, 2fr) max-content;
}

.reports-filter-form .dashboard-field-wide {
  grid-column: auto;
}

.reports-filter-actions {
  flex-wrap: nowrap;
  min-width: max-content;
}

.reports-filter-actions .btn {
  white-space: nowrap;
}

.dashboard-filter-panel--reports {
  border-left: 4px solid color-mix(in oklch, var(--red-deep) 25%, transparent);
}

.dashboard-filter-panel--reports .dashboard-form-grid {
  align-items: end;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}

.report-summary-card {
  min-height: 118px;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--dash-surface) 84%, var(--dash-surface-muted));
  padding: 0.95rem 0.95rem 0.8rem;
  box-shadow: var(--dash-shadow-sm);
  display: grid;
  gap: 0.45rem;
}

.report-summary-card strong {
  margin: 0;
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 1.8rem;
  line-height: 1;
}

.report-summary-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.3;
}

.report-summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.23rem 0.52rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(201, 169, 97, 0.34);
  background: rgba(247, 236, 215, 0.54);
  color: var(--maroon);
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.report-tab-strip {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1.15rem;
  scrollbar-width: thin;
}

.report-tab {
  min-width: max-content;
  flex: 0 0 auto;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-lg);
  background: var(--dash-surface);
  padding: 0.58rem 0.72rem 0.52rem;
  display: inline-grid;
  gap: 0.18rem;
  text-decoration: none;
  color: var(--maroon);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.report-tab:hover,
.report-tab:focus-visible {
  border-color: var(--gold);
  background: var(--cream-warm);
  transform: translateY(-1px);
}

.report-tab.is-active {
  color: var(--ivory);
  background: linear-gradient(90deg, var(--red-deep), var(--red-rich));
  border-color: var(--red-deep);
}

.report-tab-main,
.report-tab-sub {
  display: block;
}

.report-tab-main {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.report-tab-sub {
  color: color-mix(in oklch, currentColor 55%, transparent);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-caps);
}

.report-tab.is-active .report-tab-sub {
  color: rgba(255, 250, 240, 0.86);
}

.report-empty {
  margin-top: 0.25rem;
  border: 1px dashed color-mix(in oklch, var(--dash-line) 64%, transparent);
  border-radius: var(--r-md);
  padding: 1.1rem 1rem;
  background: color-mix(in oklch, var(--dash-surface) 86%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
}

.report-empty .material-symbols-rounded {
  font-size: 1.25rem;
  color: var(--gold-deep);
}

.report-venue-panel {
  margin-bottom: 1.1rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
  padding: 0.95rem;
}

.report-venue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--dash-line);
}

.report-venue-title {
  margin: 0;
}

.report-venue-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
}

.report-venue-kpis {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
}

.report-venue-kpi,
.report-room-kpi {
  display: inline-grid;
  place-items: center;
  padding: 0.33rem 0.65rem;
  border: 1px solid color-mix(in oklch, var(--dash-line) 68%, transparent);
  border-radius: var(--r-md);
  background: var(--dash-surface-muted);
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-family: var(--font-caps);
}

.report-venue-kpi-value,
.report-room-kpi {
  font-weight: 700;
}

.report-venue-kpi--out,
.report-room-kpi--out {
  color: var(--warning);
  border-color: color-mix(in oklch, var(--warning) 40%, var(--dash-line));
  background: color-mix(in oklch, var(--warning-bg) 55%, transparent);
}

.report-venue-kpi--back,
.report-room-kpi--back {
  color: var(--success);
  border-color: color-mix(in oklch, var(--success) 40%, var(--dash-line));
  background: color-mix(in oklch, var(--success-bg) 62%, transparent);
}

.report-venue-kpi--pending,
.report-room-kpi--pending {
  color: var(--danger);
  border-color: color-mix(in oklch, var(--danger) 35%, var(--dash-line));
  background: color-mix(in oklch, var(--danger-bg) 55%, transparent);
}

.report-room-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}

.report-room-card {
  border: 1px solid color-mix(in oklch, var(--dash-line) 70%, transparent);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--dash-surface) 95%, var(--dash-surface-muted));
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.report-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.report-room-title {
  margin: 0;
  font-size: 0.96rem;
}

.report-room-meta {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.report-room-kpis {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.report-room-kpi {
  font-size: 0.62rem;
  padding: 0.24rem 0.54rem;
}

.report-room-table-shell .table {
  width: 100%;
}

.report-room-empty {
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.report-room-empty .material-symbols-rounded {
  color: var(--gold-deep);
}

.report-table-action-head {
  width: 58px;
  text-align: center;
}

.report-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in oklch, var(--dash-line) 70%, transparent);
  color: var(--maroon);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
}

.report-view-link:hover,
.report-view-link:focus-visible {
  background: var(--red-deep);
  color: var(--ivory);
  border-color: var(--red-deep);
}

.report-view-link .material-symbols-rounded {
  font-size: 1.06rem;
}

.dashboard-check-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--dash-surface) 92%, white);
}

.dashboard-check-field .form-check-input {
  margin-top: 0;
}

.dashboard-check-field .form-check-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.dashboard-inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dashboard-inline-form .form-control {
  min-width: 0;
}

.table-responsive {
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
  overflow: hidden;
}

.table {
  margin-bottom: 0;
  color: var(--ink);
}

.table > :not(caption) > * > * {
  padding: 0.78rem 0.9rem;
  background: transparent;
  border-bottom-color: rgba(201, 169, 97, 0.42);
}

.table > thead {
  vertical-align: middle;
}

.table > thead > tr > th {
  background: var(--dash-surface-muted);
  color: var(--gold-deep);
  font-family: var(--font-caps);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
  border-bottom: 1px solid var(--dash-line);
}

.table-sm > :not(caption) > * > * {
  padding: 0.8rem 0.9rem;
}

.table > tbody > tr:hover > * {
  background: rgba(196, 30, 58, 0.025);
}

.city-count-cell {
  width: 1%;
  white-space: nowrap;
}

.city-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(196, 30, 58, 0.16);
  border-radius: var(--r-md);
  background: rgba(196, 30, 58, 0.08);
  color: var(--red-deep);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}

.city-count-badge::before {
  content: none;
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42rem 0.72rem;
  border-radius: var(--r-pill);
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.text-bg-success {
  background: var(--success-soft) !important;
  color: var(--success) !important;
  border-color: rgba(45, 122, 61, 0.18);
}

.badge.text-bg-warning {
  background: var(--warning-soft) !important;
  color: var(--warning) !important;
  border-color: rgba(196, 122, 30, 0.18);
}

.badge.text-bg-danger {
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
  border-color: rgba(196, 30, 58, 0.18);
}

.badge.text-bg-primary {
  background: var(--blush) !important;
  color: var(--red-deep) !important;
  border-color: rgba(196, 30, 58, 0.14);
}

.badge.text-bg-secondary {
  background: var(--cream-warm) !important;
  color: var(--ink-soft) !important;
  border-color: rgba(201, 169, 97, 0.26);
}

.badge.text-bg-light,
.badge.border {
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--maroon) !important;
  border-color: var(--gold-soft) !important;
}

.progress {
  height: 0.7rem;
  background: rgba(201, 169, 97, 0.16);
  border-radius: var(--r-pill);
}

.progress-bar {
  background: linear-gradient(90deg, var(--red-rich), var(--gold));
}

.alert {
  border-radius: var(--r-lg);
  border: 1px solid;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow-sm);
}

.alert-danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: rgba(196, 30, 58, 0.18);
}

.alert-warning {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: rgba(196, 122, 30, 0.2);
}

.alert-success {
  color: var(--success);
  background: var(--success-bg);
  border-color: rgba(45, 122, 61, 0.18);
}

.alert-secondary,
.alert-primary {
  color: var(--maroon);
  background: var(--cream-warm);
  border-color: rgba(201, 169, 97, 0.28);
}

.photo-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 97, 0.34);
}

.registration-filter-panel {
  padding: 1rem;
}

.registration-status-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.registration-status-tab {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  color: var(--maroon);
  font-family: var(--font-caps);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: var(--dash-shadow-sm);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.registration-status-tab .material-symbols-rounded {
  font-size: 1.15rem;
}

.registration-status-tab:hover,
.registration-status-tab:focus-visible {
  border-color: var(--dash-line-strong);
  color: var(--red-deep);
  background: color-mix(in oklch, var(--dash-surface) 88%, var(--danger-bg));
}

.registration-status-tab.active {
  border-color: color-mix(in oklch, var(--red-rich) 42%, var(--dash-line));
  background: var(--danger-bg);
  color: var(--red-deep);
  box-shadow: inset 0 -3px 0 var(--red-rich), var(--dash-shadow-sm);
}

.registration-filter-form {
  display: grid;
  gap: 0.95rem;
}

.registration-filter-fields {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 0.85rem 0.9rem;
  align-items: end;
}

.registration-filter-actions {
  justify-content: flex-end;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in oklch, var(--dash-line) 76%, transparent);
}

.registration-filter-actions .btn {
  min-width: 132px;
}

.registration-filter-actions .btn:first-child {
  min-width: 156px;
}

.allocation-filter-panel {
  padding: 1rem;
}

.allocation-filter-form {
  display: grid;
  gap: 0.85rem;
}

.allocation-filter-fields {
  grid-template-columns: minmax(260px, 1.4fr) minmax(156px, 0.75fr) minmax(180px, 0.9fr) minmax(156px, 0.75fr);
  gap: 0.85rem 0.9rem;
  align-items: end;
}

.allocation-filter-fields .dashboard-field-wide {
  grid-column: auto;
}

.allocation-filter-actions {
  justify-content: flex-end;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in oklch, var(--dash-line) 76%, transparent);
}

.allocation-filter-actions .btn {
  min-width: 132px;
}

.allocation-filter-actions .btn:first-child {
  min-width: 150px;
}

.registration-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 480px) {
  .registration-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .registration-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1399.98px) {
  .registration-filter-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .allocation-filter-fields {
    grid-template-columns: minmax(240px, 1.25fr) minmax(150px, 0.75fr) minmax(170px, 0.85fr) minmax(150px, 0.75fr);
  }
}

.registration-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
  position: relative;
  overflow: hidden;
}

.registration-card::before {
  content: none;
  display: none;
}

.registration-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.registration-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 3px solid rgba(201, 169, 97, 0.34);
  box-shadow: var(--shadow-sm);
}

.registration-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.registration-card-kicker,
.registration-detail-label {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.registration-card-name {
  margin: 0.22rem 0 0;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--maroon);
}

.registration-card-highlight {
  display: grid;
  gap: 0.22rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(201, 169, 97, 0.36);
  border-radius: calc(var(--r-md) - 4px);
  background: linear-gradient(135deg, rgba(255, 247, 229, 0.96), rgba(255, 239, 209, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.registration-card-highlight-label {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.registration-card-highlight-value {
  color: var(--maroon);
  font-size: 1rem;
  font-weight: 700;
}

.registration-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.9rem;
}

.registration-detail-item {
  display: grid;
  gap: 0.28rem;
}

.registration-detail-value {
  color: var(--ink);
  font-weight: 500;
}

.registration-mobile-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.registration-mobile-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.96rem;
}

.registration-mobile-link:hover,
.registration-mobile-link:focus-visible {
  color: var(--red-deep);
}

.registration-call-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.12);
  color: var(--red-deep);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.registration-call-link:hover,
.registration-call-link:focus-visible {
  color: var(--ivory);
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
}

.registration-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--gold-soft);
  flex-wrap: wrap;
}

.registration-action-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  width: 100%;
}

.registration-action-group .btn,
.registration-action-group form {
  flex: 1 1 0;
}

.registration-action-group form .btn {
  width: 100%;
}

.registration-detail-panel {
  padding: 1.25rem;
}

.registration-detail-shell {
  display: grid;
  gap: 1.25rem;
}

.registration-detail-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--gold-soft);
}

.registration-detail-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(201, 169, 97, 0.34);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}

.registration-detail-profile-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.registration-detail-profile-copy h2 {
  margin: 0.24rem 0 0.18rem;
  font-size: 1.45rem;
  color: var(--maroon);
}

.registration-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.registration-detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 999px;
  background: color-mix(in oklch, var(--danger-bg) 34%, white);
  color: var(--maroon);
  font-size: 0.88rem;
  font-weight: 600;
}

.registration-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.registration-detail-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
}

.registration-proof-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
}

.registration-proof-copy h3 {
  margin: 0.3rem 0 0.25rem;
  font-size: 1.15rem;
  color: var(--maroon);
}

.registration-proof-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.registration-proof-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.registration-proof-image {
  width: min(100%, 420px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(232, 217, 168, 0.95);
  box-shadow: var(--shadow-sm);
}

.registration-empty-state {
  grid-column: 1 / -1;
}

/* ── Detail page: QR + Photo two-column layout ── */
.registration-detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .registration-detail-two-col {
    grid-template-columns: 1fr;
  }
}

.registration-qr-panel,
.registration-photo-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  align-content: start;
}

.registration-qr-panel h3,
.registration-photo-panel h3 {
  margin: 0.3rem 0 0.25rem;
  font-size: 1.15rem;
  color: var(--maroon);
}

.registration-qr-panel p,
.registration-photo-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.registration-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.registration-qr-image {
  width: min(240px, 100%);
  height: auto;
  padding: 0.65rem;
  border-radius: var(--r-lg);
  background: var(--dash-surface);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
}

.registration-photo-full-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.registration-photo-full {
  width: min(280px, 100%);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--r-lg);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  background: var(--dash-surface);
}

.registration-detail-photo--clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.registration-detail-photo--clickable:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px -6px rgba(107, 20, 40, 0.3);
}

/* ── Photo lightbox ── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 14, 0.82);
  backdrop-filter: blur(6px);
}

.photo-lightbox-body {
  position: relative;
  max-width: min(92vw, 640px);
  max-height: 88vh;
}

.photo-lightbox-body img {
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.6);
}

.photo-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--red-deep);
  color: var(--ivory);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}

.photo-lightbox-close:hover {
  transform: scale(1.12);
}

.qr-preview {
  width: min(280px, 82vw);
  height: auto;
  padding: 0.75rem;
  border-radius: var(--r-lg);
  background: var(--dash-surface);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
}

.scanner-shell,
.scan-card {
  max-width: min(100%, 920px);
  margin-inline: auto;
}

.scanner-permission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 1rem 1.1rem;
  margin-bottom: var(--s-4);
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
}

.scanner-permission h2 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.scanner-permission p {
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.45;
}

.scanner-permission.is-active {
  border-color: rgba(35, 122, 75, 0.24);
  background: rgba(35, 122, 75, 0.06);
}

.scanner-permission.is-active .btn {
  display: none;
}

.scanner-permission.is-blocked {
  border-color: rgba(201, 18, 47, 0.22);
  background: rgba(201, 18, 47, 0.055);
}

.scanner-permission .btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 42px;
  padding-inline: 1rem;
  font-size: 0.68rem;
}

.scanner-reader {
  overflow: hidden;
  width: 100%;
  min-height: 0;
  max-height: min(62vh, 620px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: #1f1115;
  box-shadow: var(--dash-shadow);
}

.scanner-reader[hidden] {
  display: none;
}

.scanner-reader > div,
.scanner-reader video,
.scanner-reader canvas {
  max-width: 100% !important;
}

.scanner-reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.scan-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 3px solid rgba(201, 169, 97, 0.32);
  box-shadow: var(--shadow-sm);
}

.allocation-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.36fr);
  gap: 1rem;
  align-items: start;
}

.allocation-assign-panel,
.allocation-property-panel,
.allocation-results {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.allocation-assign-panel {
  padding: 1rem;
}

@media (min-width: 1200px) {
  .allocation-assign-panel {
    position: sticky;
    top: 1.5rem;
  }
}

.allocation-panel-head,
.allocation-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.allocation-panel-title,
.allocation-property-title {
  margin: 0;
  color: var(--maroon);
  font-size: 1.02rem;
  line-height: 1.2;
}

.allocation-panel-subtitle {
  margin: 0.22rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.allocation-panel-count,
.allocation-stat {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface-muted);
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.allocation-panel-count {
  min-width: 2.1rem;
  height: 2rem;
  padding-inline: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.allocation-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.allocation-stat {
  min-width: 72px;
  min-height: 42px;
  padding: 0.45rem 0.62rem;
  gap: 0.18rem;
}

.allocation-stat strong {
  color: var(--red-deep);
  font-size: 1rem;
}

.allocation-stat span {
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.allocation-step {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.allocation-step.is-active {
  border-top-color: color-mix(in oklch, var(--red-rich) 54%, var(--dash-line));
  background: color-mix(in oklch, var(--danger-bg) 28%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--red-rich) 20%, transparent), 0 12px 30px -28px rgba(107, 20, 40, 0.45);
}

.allocation-step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.allocation-step-number {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--r-md);
  background: rgba(196, 30, 58, 0.08);
  color: var(--red-deep);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
}

.allocation-step h3 {
  margin: 0;
  color: var(--maroon);
  font-size: 0.93rem;
  line-height: 1.25;
}

.allocation-step p {
  margin: 0.12rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.allocation-list {
  display: grid;
  gap: 0.45rem;
  max-height: min(42vh, 360px);
  overflow: auto;
  border-radius: var(--r-md);
}

.allocation-person-search {
  position: relative;
}

.allocation-person-search .material-symbols-rounded {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  z-index: 1;
  color: var(--gold-deep);
  font-size: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.allocation-person-search .form-control {
  min-height: 42px;
  padding-left: 2.35rem;
}

.allocation-person-row,
.allocation-occupant-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.allocation-person-row {
  min-height: 64px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--dash-line) !important;
  border-radius: var(--r-md) !important;
  background: color-mix(in oklch, var(--dash-surface) 94%, white) !important;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.allocation-person-row:hover,
.allocation-person-row:focus-within {
  border-color: var(--dash-line-strong) !important;
  box-shadow: var(--dash-shadow-sm);
}

.allocation-person-row.is-selected,
.allocation-person-row:has(.allocation-person-check:checked) {
  border-color: color-mix(in oklch, var(--red-rich) 52%, var(--dash-line)) !important;
  background: color-mix(in oklch, var(--danger-bg) 46%, var(--dash-surface)) !important;
  box-shadow: 0 12px 28px -24px rgba(107, 20, 40, 0.5), inset 0 0 0 1px rgba(196, 30, 58, 0.12);
}

.allocation-person-row.is-selected .allocation-person-photo,
.allocation-person-row:has(.allocation-person-check:checked) .allocation-person-photo {
  border-color: color-mix(in oklch, var(--red-rich) 56%, var(--gold));
}

.allocation-person-check {
  margin: 0;
  flex: 0 0 auto;
}

.allocation-person-photo,
.allocation-occupant-photo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 97, 0.28);
  flex: 0 0 auto;
}

.allocation-person-copy,
.allocation-occupant-copy {
  display: grid;
  min-width: 0;
}

.allocation-person-copy strong,
.allocation-occupant-copy strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allocation-person-copy span,
.allocation-occupant-copy span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allocation-empty-state,
.allocation-room-empty {
  border: 1px dashed var(--dash-line);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--dash-surface-muted) 58%, white);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.allocation-empty-state {
  padding: 0.9rem;
}

.allocation-person-empty {
  margin-top: -0.3rem;
}

.allocation-submit-bar {
  padding-top: 0.9rem;
  border-top: 1px solid var(--dash-line);
}

.allocation-submit-bar .btn {
  width: 100%;
  min-height: 46px;
}

.allocation-results-head {
  min-height: 48px;
  padding: 0.15rem 0 0.55rem;
  border-bottom: 1px solid var(--dash-line);
}

.allocation-overview-grid {
  display: grid;
  gap: 0.9rem;
}

.allocation-property-panel {
  padding: 1rem;
}

.allocation-property-panel .allocation-panel-head {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--dash-line);
}

.allocation-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr));
  gap: 0.85rem;
}

.allocation-room-card {
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--dash-surface) 92%, white);
  padding: 0.85rem;
  box-shadow: var(--dash-shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.allocation-room-card:hover {
  border-color: var(--dash-line-strong);
  box-shadow: var(--dash-shadow);
}

.allocation-room-card-full {
  background: color-mix(in oklch, var(--danger-bg) 38%, var(--dash-surface));
}

.allocation-room-card-partial {
  background: color-mix(in oklch, var(--warning-bg) 36%, var(--dash-surface));
}

.allocation-room-card-empty {
  background: color-mix(in oklch, var(--success-bg) 34%, var(--dash-surface));
}

.allocation-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.allocation-room-title {
  color: var(--maroon);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.allocation-room-meta {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.allocation-room-free {
  min-width: 62px;
  padding: 0.34rem 0.5rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  display: inline-grid;
  place-items: center;
  color: var(--maroon);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.allocation-room-free-empty,
.allocation-room-free-partial {
  background: var(--success-bg);
  color: var(--success);
}

.allocation-room-free-full {
  background: var(--danger-bg);
  color: var(--danger);
}

.allocation-room-progress {
  height: 0.5rem;
  background: color-mix(in oklch, var(--dash-line) 36%, transparent);
}

.allocation-room-card-empty .progress-bar {
  background: var(--success);
}

.allocation-room-card-partial .progress-bar {
  background: var(--warning);
}

.allocation-room-card-full .progress-bar {
  background: var(--danger);
}

.allocation-occupants {
  display: grid;
  gap: 0.55rem;
}

.allocation-occupant-row {
  min-width: 0;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(201, 169, 97, 0.28);
}

.allocation-occupant-row:first-child {
  padding-top: 0;
  border-top: none;
}

.allocation-occupant-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.allocation-call-link {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--red-deep);
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.12);
}

.allocation-call-link:hover,
.allocation-call-link:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: var(--ivory);
}

.allocation-room-empty {
  padding: 0.65rem 0.75rem;
}

.allocation-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid color-mix(in oklch, var(--dash-line) 76%, transparent);
}

.allocation-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.allocation-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
}

.allocation-summary-item strong {
  color: var(--red-deep);
  font-size: 1.05rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.allocation-summary-item span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.allocation-property-tabs-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.45rem;
  margin: -0.2rem 0 1rem;
}

.allocation-property-tabs {
  display: flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0.2rem 0 0.35rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.allocation-property-tab-scroll {
  width: 40px;
  min-height: 100%;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  display: inline-grid;
  place-items: center;
  color: var(--maroon);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.allocation-property-tab-scroll:hover,
.allocation-property-tab-scroll:focus-visible {
  border-color: var(--dash-line-strong);
  color: var(--red-deep);
  background: rgba(196, 30, 58, 0.06);
}

.allocation-property-tab-scroll .material-symbols-rounded {
  font-size: 1.2rem;
}

.allocation-property-tab {
  display: grid;
  gap: 0.16rem;
  min-width: 158px;
  padding: 0.66rem 0.78rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--dash-shadow-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.allocation-property-tab:hover,
.allocation-property-tab:focus-visible {
  border-color: var(--dash-line-strong);
  color: var(--red-deep);
  background: color-mix(in oklch, var(--dash-surface) 88%, var(--danger-bg));
}

.allocation-property-tab.is-active {
  border-color: color-mix(in oklch, var(--red-rich) 48%, var(--dash-line));
  background: var(--danger-bg);
  color: var(--red-deep);
  box-shadow: inset 0 -3px 0 var(--red-rich), var(--dash-shadow-sm);
}

.allocation-property-tab-name {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allocation-property-tab-meta {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.allocation-property-tab.is-active .allocation-property-tab-meta {
  color: var(--maroon);
}

.allocation-room-list {
  display: grid;
  gap: 0.55rem;
}

.allocation-room-row {
  display: grid;
  grid-template-columns: minmax(142px, 0.9fr) minmax(88px, 0.45fr) minmax(74px, max-content) minmax(220px, 1.4fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--dash-surface) 92%, var(--dash-surface-muted));
}

.allocation-room-row:hover {
  border-color: var(--dash-line-strong);
  box-shadow: var(--dash-shadow-sm);
}

.allocation-room-row-empty {
  background: color-mix(in oklch, var(--success-bg) 34%, var(--dash-surface));
}

.allocation-room-row-partial {
  background: color-mix(in oklch, var(--warning-bg) 34%, var(--dash-surface));
}

.allocation-room-row-full {
  background: color-mix(in oklch, var(--danger-bg) 34%, var(--dash-surface));
}

.allocation-room-main {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
}

.allocation-room-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: var(--r-pill);
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--success-bg) 70%, transparent);
  flex: 0 0 auto;
}

.allocation-room-row-partial .allocation-room-dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--warning-bg) 70%, transparent);
}

.allocation-room-row-full .allocation-room-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--danger-bg) 70%, transparent);
}

.allocation-room-meter {
  height: 0.48rem;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: color-mix(in oklch, var(--dash-line) 36%, transparent);
}

.allocation-room-meter .progress-bar {
  height: 100%;
  border-radius: inherit;
}

.allocation-room-row-empty .progress-bar {
  background: var(--success);
}

.allocation-room-row-partial .progress-bar {
  background: var(--warning);
}

.allocation-room-row-full .progress-bar {
  background: var(--danger);
}

.allocation-occupant-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.allocation-occupant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
  min-height: 34px;
  padding: 0.32rem 0.36rem 0.32rem 0.62rem;
  border: 1px solid color-mix(in oklch, var(--dash-line) 76%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in oklch, var(--dash-surface) 92%, var(--dash-surface-muted));
}

.allocation-occupant-chip .allocation-occupant-copy {
  min-width: 0;
}

.allocation-occupant-chip .allocation-occupant-copy strong {
  display: block;
  max-width: 142px;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allocation-occupant-chip .allocation-occupant-copy span {
  display: block;
  max-width: 142px;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allocation-icon-form {
  margin: 0;
}

.allocation-icon-button,
.allocation-call-link {
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
}

.allocation-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklch, var(--dash-line) 82%, transparent);
  background: var(--dash-surface);
  color: var(--ink-soft);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.allocation-icon-button .material-symbols-rounded,
.allocation-call-link .material-symbols-rounded {
  font-size: 1rem;
}

.allocation-icon-button:hover,
.allocation-icon-button:focus-visible {
  border-color: var(--red-deep);
  background: var(--danger-bg);
  color: var(--red-deep);
}

.list-group-item {
  border-color: var(--dash-line);
  background: var(--dash-surface);
}

.room-picker {
  position: relative;
}

.room-picker-shell {
  border: 1px solid var(--dash-line);
  border-radius: var(--r-md);
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow-sm);
  overflow: hidden;
}

.room-picker-input-wrap {
  position: relative;
  padding: 0.9rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.28);
}

.room-picker-search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 0.95rem;
}

.room-picker-input {
  padding-left: 2.45rem;
  padding-right: 2.5rem;
}

.room-picker-clear {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  color: var(--gold-deep);
  text-decoration: none;
}

.room-picker-menu {
  padding: 0.9rem;
}

.room-picker-hint,
.room-picker-empty,
.room-option-subtitle,
.row-meta {
  color: var(--ink-soft);
  font-family: var(--font-italic);
  font-style: italic;
}

.room-picker-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 400px;
  overflow: auto;
}

.room-option {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(201, 169, 97, 0.34);
  background: var(--dash-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.room-option:hover,
.room-option:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.room-option.is-selected {
  background: color-mix(in oklch, var(--danger-bg) 54%, var(--dash-surface));
  border-color: color-mix(in oklch, var(--red-rich) 54%, var(--dash-line));
  box-shadow: 0 12px 28px -24px rgba(107, 20, 40, 0.5), inset 0 0 0 1px rgba(196, 30, 58, 0.12);
}

.room-option.is-selected .room-option-title {
  color: var(--red-deep);
}

.room-option.is-full {
  opacity: 0.72;
}

.room-option-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.room-option-title,
.row-name {
  font-weight: 600;
  color: var(--maroon);
}

.room-option-badge {
  flex: 0 0 auto;
  padding: 0.34rem 0.68rem;
  border-radius: var(--r-pill);
  background: var(--success-soft);
  color: var(--success);
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.room-option-badge.is-full {
  background: var(--warning-soft);
  color: var(--warning);
}

.navbar-brand {
  font-family: var(--font-heading);
}

.public-empty-card {
  max-width: 560px;
  margin-inline: auto;
}

.page-error-card {
  max-width: 560px;
  margin-inline: auto;
}

.dashboard-page-body > .table-responsive,
.dashboard-page-body > .row,
.dashboard-page-body > .dashboard-panel {
  margin-top: 0;
}

code,
pre {
  font-family: var(--font-mono);
}

@media (min-width: 992px) {
  html.dashboard-sidebar-collapsed-pref .dashboard-shell,
  .dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  html.dashboard-sidebar-collapsed-pref .dashboard-sidebar,
  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .dashboard-sidebar-reopen {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 32;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.56rem 0.8rem;
    border: 1px solid var(--dash-line);
    border-radius: var(--r-md);
    color: var(--maroon);
    background: color-mix(in oklch, var(--dash-surface) 92%, white 8%);
    box-shadow: 0 18px 36px -28px rgba(42, 20, 24, 0.55);
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  }

  html.dashboard-sidebar-collapsed-pref .dashboard-sidebar-reopen,
  .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-reopen {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  html.dashboard-sidebar-collapsed-pref .dashboard-main,
  .dashboard-shell.is-sidebar-collapsed .dashboard-main {
    padding-left: 4.5rem !important;
  }

  .dashboard-main {
    padding: 1.5rem 1.75rem !important;
  }
}

@media (max-width: 991.98px) {
  .dashboard-shell {
    display: block;
  }

  .reports-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-filter-actions {
    grid-column: 1 / -1;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 320px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(env(safe-area-inset-top, 0px) + 1.05rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 4.25rem);
    gap: 0.9rem;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 45;
    box-shadow: 0 24px 56px -30px rgba(42, 20, 24, 0.55);
    overflow: hidden;
  }

  .dashboard-backdrop {
    z-index: 40;
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-header {
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.9rem;
  }

  .sidebar-brand {
    min-width: 0;
  }

  .app-brand-logo-frame--sidebar {
    width: 164px;
    height: 86px;
    margin: -16px 0 -14px;
  }

  #sidebarClose {
    width: 42px;
    height: 42px;
    padding: 0;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
  }

  .sidebar-nav {
    flex: 1 1 auto;
    gap: 0.9rem;
    padding-right: 0.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar-nav-section {
    gap: 0.35rem;
  }

  .sidebar-nav-label {
    padding-inline: 0.75rem;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .sidebar-link {
    min-height: 44px;
    gap: 0.75rem;
    padding: 0.62rem 0.72rem;
    border-radius: var(--r-md);
    font-size: 0.94rem;
  }

  .sidebar-link .material-symbols-rounded {
    width: 1.35rem;
    flex: 0 0 1.35rem;
    font-size: 1.18rem;
    text-align: center;
  }

  .sidebar-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 0.75rem;
    background: var(--dash-surface);
  }

  .sidebar-footer .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 0.8rem;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .dashboard-main {
    min-height: calc(100vh - 64px);
  }

  .dashboard-table-stack {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    overflow-x: visible;
  }

  .dashboard-table-stack table,
  .dashboard-table-stack thead,
  .dashboard-table-stack tbody,
  .dashboard-table-stack tr,
  .dashboard-table-stack th,
  .dashboard-table-stack td {
    display: block;
    width: 100%;
  }

  .dashboard-table-stack table {
    min-width: 0;
  }

  .dashboard-table-stack thead {
    display: none;
  }

  .dashboard-table-stack tbody {
    display: grid;
    gap: 0.85rem;
  }

  .dashboard-table-stack tr {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--dash-line);
    border-radius: var(--r-md);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow-sm);
  }

  .dashboard-table-stack td {
    display: grid;
    grid-template-columns: minmax(100px, 34%) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.7rem 0 !important;
    border: 0;
    border-bottom: 1px dashed rgba(201, 169, 97, 0.3);
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .dashboard-table-stack td:last-child {
    border-bottom: 0;
  }

  .dashboard-table-stack td::before {
    content: attr(data-label);
    color: var(--gold-deep);
    font-family: var(--font-caps);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .dashboard-table-stack td > * {
    min-width: 0;
  }

  .dashboard-table-stack td form,
  .dashboard-table-stack td .d-flex {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .dashboard-table-stack td .form-control,
  .dashboard-table-stack td .form-select {
    min-width: 0;
  }

  .dashboard-table-stack .room-inline-form,
  .dashboard-table-stack .room-row-action-group {
    justify-content: flex-start;
  }

  .dashboard-table-stack .room-list-table {
    min-width: 0;
  }

  .room-list-shell.dashboard-table-stack tbody {
    gap: 0.75rem;
  }

  .room-list-shell.dashboard-table-stack tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "room room status"
      "total booked available"
      "capacity capacity actions";
    gap: 0.75rem;
    padding: 0.95rem;
  }

  .room-list-shell.dashboard-table-stack .room-list-row-available td:first-child,
  .room-list-shell.dashboard-table-stack .room-list-row-partial td:first-child,
  .room-list-shell.dashboard-table-stack .room-list-row-full td:first-child {
    box-shadow: none;
  }

  .room-list-shell.dashboard-table-stack td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    align-content: start;
    padding: 0 !important;
    border-bottom: 0;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Room"] {
    grid-area: room;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Total"] {
    grid-area: total;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Booked"] {
    grid-area: booked;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Available"] {
    grid-area: available;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Status"] {
    grid-area: status;
    align-self: start;
    justify-items: end;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Capacity"] {
    grid-area: capacity;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Actions"] {
    grid-area: actions;
    align-self: end;
    justify-items: end;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Status"]::before,
  .room-list-shell.dashboard-table-stack td[data-label="Actions"]::before {
    content: none;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Total"],
  .room-list-shell.dashboard-table-stack td[data-label="Booked"],
  .room-list-shell.dashboard-table-stack td[data-label="Available"] {
    min-height: 74px;
    padding: 0.72rem !important;
    border: 1px solid color-mix(in oklch, var(--dash-line) 80%, transparent);
    border-radius: var(--r-md);
    background: color-mix(in oklch, var(--dash-surface-muted) 64%, var(--dash-surface));
  }

  .room-list-shell.dashboard-table-stack .room-list-count {
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.3rem;
    line-height: 1;
  }

  .room-list-shell.dashboard-table-stack .room-status-badge {
    min-width: 86px;
    padding: 0.34rem 0.62rem;
  }

  .room-list-shell.dashboard-table-stack .room-inline-form {
    justify-content: flex-start;
  }

  .room-list-shell.dashboard-table-stack .room-row-action-group {
    justify-content: flex-end;
  }

  .dashboard-field-wide {
    grid-column: span 1;
  }

  .allocation-workspace {
    grid-template-columns: 1fr;
  }

  .allocation-assign-panel {
    position: static;
  }

  .allocation-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .allocation-room-row {
    grid-template-columns: minmax(142px, 0.95fr) minmax(90px, 0.45fr) max-content;
  }

  .allocation-occupant-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .room-list-table {
    min-width: 0;
  }

  .room-list-name {
    font-size: 1.08rem;
  }

  .room-status-badge {
    font-size: 0.58rem;
  }

  .room-list-view-btn {
    min-width: 74px;
    padding-inline: 0.8rem;
  }

  .room-capacity-field {
    width: 72px;
    min-width: 72px;
  }

  .room-list-shell.dashboard-table-stack tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .room-list-shell.dashboard-table-stack td[data-label="Capacity"] {
    grid-column: 1 / 3;
  }

  .room-list-shell.dashboard-table-stack td::before {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .registration-card {
    padding: 1rem;
  }

  .registration-card-head {
    flex-wrap: wrap;
  }

  .registration-card-actions {
    align-items: stretch;
  }

  .registration-detail-grid {
    grid-template-columns: 1fr;
  }

  .registration-detail-profile {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .public-navbar-inner {
    min-height: 68px;
  }

  .dashboard-page-head,
  .dashboard-page-title {
    align-items: flex-start;
  }

  .dashboard-page-head {
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
  }

  .dashboard-page-title {
    gap: 0.75rem;
  }

  .dashboard-page-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
  }

  .dashboard-page-icon .material-symbols-rounded {
    font-size: 1.16rem;
  }

  .dashboard-page-title h1 {
    font-size: 1.38rem;
    line-height: 1.12;
  }

  .dashboard-page-subtitle {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .dashboard-quick-actions {
    width: 100%;
    gap: 0.45rem;
    justify-content: flex-start;
  }

  .action-chip {
    min-height: 36px;
    padding: 0.4rem 0.62rem;
    font-size: 0.82rem;
  }

  .overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .overview-card {
    min-height: 140px;
  }

  .metric {
    min-height: 118px;
  }

  .auth-shell,
  .public-hero-card,
  .public-form-card,
  .public-center-card,
  .dashboard-panel,
  .compact-card {
    border-radius: var(--r-md);
  }

  .auth-screen {
    min-height: calc(100dvh - 2rem);
    padding: var(--s-3) 0;
  }

  .auth-shell {
    width: min(100%, 440px);
  }

  .auth-panel {
    padding: 1.45rem;
  }

  .dashboard-main {
    padding: 0.9rem !important;
  }

  .dashboard-filter-panel {
    padding: 0.85rem;
  }

  .dashboard-form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dashboard-form-actions {
    width: 100%;
    justify-content: stretch;
  }

  .reports-filter-form {
    grid-template-columns: 1fr;
  }

  .reports-filter-actions {
    flex-direction: column;
    min-width: 0;
  }

  .registration-filter-fields {
    grid-template-columns: 1fr;
  }

  .allocation-filter-fields {
    grid-template-columns: 1fr;
  }

  .allocation-filter-fields .dashboard-field-wide {
    grid-column: auto;
  }

  .registration-filter-actions {
    padding-top: 0.75rem;
  }

  .allocation-filter-actions {
    padding-top: 0.75rem;
  }

  .allocation-filter-head {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .allocation-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .allocation-summary-item {
    align-items: flex-start;
    flex-direction: column;
    min-height: 70px;
  }

  .allocation-summary-item span {
    text-align: left;
  }

  .allocation-property-tabs-shell {
    margin-bottom: 0.85rem;
    gap: 0.35rem;
  }

  .allocation-property-tabs {
    padding-bottom: 0.45rem;
  }

  .allocation-property-tab-scroll {
    width: 34px;
  }

  .allocation-property-tab {
    min-width: 148px;
  }

  .dashboard-form-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .dashboard-form-footer {
    align-items: stretch;
    justify-content: stretch;
  }

  .dashboard-form-footer .btn {
    width: 100%;
  }

  .allocation-panel-head,
  .allocation-results-head {
    flex-direction: column;
    gap: 0.75rem;
  }

  .allocation-stats {
    width: 100%;
    justify-content: stretch;
  }

  .allocation-stat {
    flex: 1 1 0;
  }

  .allocation-list,
  .room-picker-options {
    max-height: 320px;
  }

  .allocation-room-grid {
    grid-template-columns: 1fr;
  }

  .allocation-room-row {
    grid-template-columns: 1fr;
    gap: 0.62rem;
  }

  .allocation-room-meter {
    width: 100%;
  }

  .allocation-occupant-list {
    grid-column: auto;
  }

  .allocation-occupant-chip {
    width: 100%;
    border-radius: var(--r-md);
  }

  .allocation-occupant-chip .allocation-occupant-copy {
    flex: 1 1 auto;
  }

  .allocation-occupant-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .allocation-occupant-copy {
    flex: 1 1 min(180px, calc(100% - 52px));
  }

  .allocation-occupant-actions {
    width: 100%;
    margin-left: 0;
    padding-left: 46px;
    justify-content: flex-start;
  }

  .scanner-shell {
    max-width: 100%;
  }

  .scanner-permission {
    padding: 0.85rem;
  }

  .scanner-permission h2 {
    font-size: 1.02rem;
  }

  .scanner-permission p {
    font-size: 0.88rem;
  }

  .scanner-reader {
    max-height: 70vh;
    aspect-ratio: 3 / 4;
  }

}

@media (max-width: 575.98px) {
  .public-main.container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .app-brand-logo-frame--public {
    width: 154px;
    height: 78px;
  }

  .app-brand-logo-frame--topbar {
    width: 118px;
    height: 60px;
  }

  .dashboard-page-icon {
    width: 42px;
    height: 42px;
  }

  .dashboard-page-title h1 {
    font-size: 1.32rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    min-height: auto;
    padding: 0.95rem;
  }

  .overview-card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
  }

  .overview-card-icon .material-symbols-rounded {
    font-size: 1.15rem;
  }

  .overview-card-meta {
    font-size: 0.9rem;
  }

  .overview-card-foot {
    margin-top: 0.85rem;
  }

  .overview-card-value {
    font-size: 2rem;
  }

  .overview-card-pulse {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .metric strong,
  .metric .h3,
  .metric-value {
    font-size: 1.8rem;
  }

  .dashboard-table-stack tr {
    padding: 0.85rem;
  }

  .dashboard-table-stack td {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    align-items: start;
  }

  .auth-panel {
    padding: 1.35rem;
  }

  .scanner-permission {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
