:root {
  --bg: #f6f0e6;
  --bg-warm: #ead8c2;
  --panel: rgba(255, 251, 246, 0.9);
  --panel-strong: rgba(255, 253, 250, 0.98);
  --ink: #261a12;
  --muted: #72675c;
  --line: rgba(113, 83, 38, 0.1);
  --line-strong: rgba(113, 83, 38, 0.18);
  --accent: #bb8744;
  --accent-deep: #8b5d22;
  --accent-soft: rgba(187, 135, 68, 0.12);
  --green: #2d6b5e;
  --green-deep: #1f4f45;
  --green-soft: rgba(45, 107, 94, 0.12);
  --navy: #f4efe8;
  --navy-soft: #efe6d8;
  --red: #c96d52;
  --red-soft: rgba(201, 109, 82, 0.12);
  --amber-soft: rgba(187, 135, 68, 0.1);
  --glow: rgba(187, 135, 68, 0.14);
  --shadow: 0 28px 80px rgba(96, 67, 28, 0.12);
  --shadow-soft: 0 16px 36px rgba(96, 67, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(187, 135, 68, 0.18), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(45, 107, 94, 0.08), transparent 18%),
    radial-gradient(circle at bottom right, rgba(134, 108, 68, 0.1), transparent 28%),
    linear-gradient(180deg, #efe0cc 0%, var(--bg) 44%, #fcf8f2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
}

body::after {
  content: "";
  position: fixed;
  width: 42vw;
  height: 42vw;
  right: -12vw;
  top: 24vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 135, 68, 0.12), transparent 68%);
  pointer-events: none;
  filter: blur(24px);
}

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

[hidden] {
  display: none !important;
}

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

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(187, 135, 68, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(45, 107, 94, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(246, 238, 228, 0.98) 100%);
  border: 1px solid rgba(113, 83, 38, 0.1);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.auth-copy,
.auth-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-message {
  min-height: 1.6em;
  font-size: 0.95rem;
}

.auth-message.error {
  color: var(--red);
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 24px;
}

.sidebar {
  position: relative;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(187, 135, 68, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(45, 107, 94, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(250, 244, 236, 0.96) 0%, rgba(244, 235, 224, 0.98) 100%);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(113, 83, 38, 0.08);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 22%),
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 36px
    );
  pointer-events: none;
}

.mobile-nav-toggle {
  display: none;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(113, 83, 38, 0.12);
  background: rgba(255, 252, 247, 0.94);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.mobile-nav-toggle__label {
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.74rem;
  font-weight: 800;
}

.brand-block h1,
.section-heading h3,
.data-table th,
.detail-card h4,
.requirement-card h4 {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  letter-spacing: -0.05em;
}

.topbar h2,
.hero-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.brand-block h1 {
  font-size: 2rem;
  line-height: 0.92;
  margin-bottom: 18px;
}

.brand-block h1 span {
  display: block;
  color: #c88f4b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.sidebar-copy,
.sidebar-card span,
.hero-card p,
.detail-card p,
.requirement-card p,
.mini-item p,
.finance-highlight p {
  line-height: 1.6;
}

.sidebar-copy,
.sidebar-card span {
  color: rgba(38, 26, 18, 0.72);
}

.brand-line {
  width: 70px;
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent);
}

.nav-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 auto;
}

.nav-link {
  border: 1px solid rgba(113, 83, 38, 0.08);
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.44);
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, rgba(187, 135, 68, 0.14), rgba(255, 255, 255, 0.65));
  border-color: rgba(113, 83, 38, 0.14);
  transform: translateX(4px);
}

.sidebar-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(187, 135, 68, 0.12), rgba(45, 107, 94, 0.08));
  border: 1px solid rgba(113, 83, 38, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sidebar-card p,
.sidebar-card strong,
.sidebar-card span {
  margin: 0;
}

.sidebar-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.8rem;
}

.main-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.topbar,
.panel,
.hero-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.panel,
.hero-card {
  position: relative;
  overflow: hidden;
}

.panel::before,
.hero-card::before,
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 24%);
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.topbar h2 {
  font-size: clamp(2.3rem, 3vw, 3.05rem);
  line-height: 0.9;
}

.topbar-intro {
  display: grid;
  gap: 8px;
}

.topbar-copy {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
}

.topbar-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid rgba(113, 83, 38, 0.1);
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.session-chip strong {
  color: var(--ink);
}

.topbar-search input,
.table-toolbar input,
.auth-form input,
.app-form input,
.app-form select,
.app-form textarea {
  width: 100%;
  font-weight: 600;
  border: 1px solid rgba(77, 57, 27, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.topbar-search input::placeholder,
.table-toolbar input::placeholder,
.auth-form input::placeholder,
.app-form input::placeholder,
.app-form textarea::placeholder {
  color: rgba(103, 88, 68, 0.92);
  font-weight: 600;
}

.topbar-search input:focus,
.table-toolbar input:focus,
.auth-form input:focus,
.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  outline: 0;
  border-color: rgba(187, 135, 68, 0.34);
  box-shadow:
    0 0 0 4px rgba(187, 135, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.topbar-search {
  width: min(320px, 100%);
}

.primary-btn,
.ghost-btn,
.filter-chip,
.row-action {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn,
.ghost-btn,
.filter-chip {
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
}

.small-btn,
.row-action {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #f7fbf9;
  box-shadow: 0 16px 32px rgba(33, 77, 68, 0.22);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.filter-chip {
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
}

.filter-chip.active {
  background: rgba(187, 135, 68, 0.16);
  color: var(--ink);
  border-color: rgba(187, 135, 68, 0.2);
}

.row-action {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  border: 1px solid var(--line);
}

.row-action--danger {
  background: rgba(160, 34, 34, 0.1);
  color: #8e1f1f;
  border-color: rgba(160, 34, 34, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-chip:hover,
.row-action:hover {
  transform: translateY(-2px);
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 22px;
}

.summary-grid,
.content-grid,
.section-grid,
.bookings-layout,
.analytics-grid,
.analytics-kpi-grid {
  display: grid;
  gap: 22px;
}

.summary-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.content-grid,
.section-grid {
  grid-template-columns: 1fr 1fr;
}

.entity-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: start;
}

.bookings-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  align-items: start;
}

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

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

.analytics-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bookings-heading__copy {
  display: grid;
  gap: 8px;
}

.bookings-copy {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
}

.hero-card,
.panel {
  padding: 26px;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(187, 135, 68, 0.1), transparent 28%),
    radial-gradient(circle at bottom left, rgba(45, 107, 94, 0.08), transparent 26%),
    linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(247, 239, 229, 0.94));
}

.hero-card h3 {
  font-size: clamp(2.8rem, 4.7vw, 5rem);
  line-height: 0.88;
  max-width: 8ch;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-weight: 700;
  max-width: 42ch;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.compact-heading {
  margin-bottom: 14px;
}

.section-heading h3 {
  font-size: 1.55rem;
  line-height: 1;
}

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

.stat-card,
.analytics-kpi,
.detail-card,
.requirement-card,
.finance-highlight,
.mini-item {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(113, 83, 38, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
}

.analytics-kpi {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(177, 118, 43, 0));
}

.analytics-kpi::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), rgba(45, 107, 94, 0));
}

.stat-card span,
.analytics-kpi span,
.finance-highlight span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card strong,
.analytics-kpi strong,
.finance-highlight strong {
  display: block;
  margin: 6px 0;
  font-size: 2.1rem;
  line-height: 1;
}

.analytics-kpi small,
.stat-card small {
  color: var(--muted);
  line-height: 1.5;
}

.card-list,
.mini-list,
.detail-stack,
.requirements-grid {
  display: grid;
  gap: 16px;
}

.mini-item strong {
  display: block;
  margin-bottom: 4px;
}

.table-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(113, 83, 38, 0.08);
}

.table-search {
  display: block;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-shell {
  overflow: auto;
  border: 1px solid rgba(113, 83, 38, 0.08);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.data-table thead {
  background: rgba(187, 135, 68, 0.06);
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(113, 83, 38, 0.08);
  vertical-align: top;
}

.data-table th {
  font-size: 0.86rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.table-row {
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.table-row:hover,
.table-row.active {
  background: rgba(187, 135, 68, 0.05);
}

.table-row.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.table-primary {
  font-weight: 800;
}

.table-secondary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-confirmed,
.status-received,
.status-booked,
.status-preferred,
.status-checked-in {
  background: rgba(41, 88, 72, 0.14);
  color: var(--green);
}

.status-inquiry,
.status-pending,
.status-active,
.status-upcoming,
.status-site-visit,
.status-quoted,
.status-reserved,
.status-contacted {
  background: rgba(167, 101, 34, 0.16);
  color: var(--accent);
}

.status-risk,
.status-backup,
.status-checked-out,
.status-urgent,
.status-closed {
  background: rgba(180, 79, 51, 0.14);
  color: var(--red);
}

.status-converted {
  background: rgba(41, 88, 72, 0.14);
  color: var(--green);
}

.detail-card h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.detail-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.detail-intro strong {
  font-size: 1rem;
}

.detail-intro span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(187, 135, 68, 0.1);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.detail-metric {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(248, 240, 229, 0.92));
  border: 1px solid rgba(113, 83, 38, 0.08);
}

.detail-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag-row span {
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.app-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.app-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.full-span {
  grid-column: 1 / -1;
}

.full-width {
  width: 100%;
}

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

.calendar-column {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(113, 83, 38, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.calendar-column h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.calendar-slot {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(248, 240, 229, 0.92));
  margin-bottom: 10px;
}

.calendar-slot strong {
  display: block;
  margin-bottom: 4px;
}

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

.requirement-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.requirement-card p {
  margin: 0;
  color: var(--muted);
}

.sticky-panel {
  position: sticky;
  top: 24px;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(248, 240, 229, 0.92));
  color: var(--muted);
}

.bar-chart {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  gap: 10px;
}

.bar-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.bar-row__meta strong {
  font-size: 0.98rem;
}

.bar-row__meta span {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(187, 135, 68, 0.1);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--accent));
  min-width: 8px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(35, 32, 25, 0.94);
  color: #f8f2ea;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1260px) {
  .app-shell,
  .summary-grid,
  .content-grid,
  .section-grid,
  .entity-grid,
  .bookings-layout,
  .analytics-grid,
  .analytics-kpi-grid,
  .requirements-grid,
  .calendar-board {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .sticky-panel {
    position: static;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 1460px) {
  .bookings-layout,
  .entity-grid,
  .hotel-grid {
    grid-template-columns: 1fr;
  }

  .bookings-layout .detail-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    gap: 16px;
    padding: 12px;
  }

  .sidebar,
  .topbar,
  .hero-card,
  .panel {
    padding: 18px;
    border-radius: 24px;
    max-width: 100%;
  }

  .topbar,
  .section-heading,
  .table-toolbar {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 16px;
  }

  .sidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 40;
    height: auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .sidebar.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    position: static;
    z-index: 50;
    margin-bottom: 0;
    align-self: start;
    min-height: 46px;
  }

  .sidebar:not(.is-open) .nav-list,
  .sidebar:not(.is-open) .sidebar-card {
    display: none;
  }

  .sidebar.is-open .nav-list,
  .sidebar.is-open .sidebar-card {
    display: grid;
  }

  .sidebar.is-open .sidebar-card {
    display: block;
  }

  .brand-block h1 {
    font-size: 1.6rem;
    line-height: 0.98;
  }

  .sidebar-copy,
  .hero-card p,
  .mini-item p,
  .finance-highlight p {
    font-size: 0.98rem;
  }

  .sidebar-copy,
  .sidebar-card span {
    max-width: 24ch;
  }

  .stats-grid,
  .analytics-kpi-grid,
  .app-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h3 {
    max-width: 8ch;
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 0.9;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .mobile-nav-toggle {
    width: max-content;
    min-width: 120px;
    justify-self: start;
    grid-column: 1 / -1;
  }

  .topbar-search {
    width: 100%;
    grid-column: 1 / -1;
  }

  .session-chip {
    width: 100%;
    justify-content: center;
    grid-column: 1 / -1;
  }

  .topbar-actions .ghost-btn,
  .topbar-actions .primary-btn,
  .hero-actions .ghost-btn,
  .hero-actions .primary-btn {
    width: 100%;
  }

  .topbar-actions .ghost-btn,
  .topbar-actions .primary-btn {
    min-height: 48px;
  }

  .topbar-actions .ghost-btn {
    grid-column: 1 / -1;
  }

  .topbar-actions .primary-btn {
    grid-column: 1 / -1;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar-card strong {
    font-size: 1.55rem;
  }

  .nav-link {
    padding: 13px 14px;
  }

  .table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .table-toolbar {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .bookings-layout .detail-stack {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 14px;
    padding: 6px 0;
    border-radius: 18px;
    background: var(--panel-strong);
    border: 1px solid rgba(77, 57, 27, 0.08);
  }

  .data-table td {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(77, 57, 27, 0.08);
    text-align: left;
  }

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

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
