:root {
  --bg: #eef0f3;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(255, 255, 255, 0.7);
  --ink: #0c0d10;
  --muted: #6f7177;
  --line: rgba(124, 130, 142, 0.24);
  --line-soft: rgba(124, 130, 142, 0.14);
  --red: #b91f28;
  --red-dark: #951922;
  --teal: #197973;
  --green: #11834d;
  --graphite: #797a7e;
  --nav: #08090c;
  --nav-2: #16171b;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-dark: rgba(9, 10, 13, 0.76);
  --glass-line: rgba(255, 255, 255, 0.58);
  --shadow: 0 18px 52px rgba(12, 13, 16, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f4 100%);
  color: var(--ink);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(185, 31, 40, 0.035), transparent 32%),
    repeating-linear-gradient(90deg, rgba(12, 13, 16, 0.018) 0 1px, transparent 1px 72px);
}

body.booking-mode {
  height: auto;
  overflow-y: auto;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  width: 260px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 12px 18px;
  background: linear-gradient(180deg, rgba(9, 10, 13, 0.98), rgba(24, 25, 29, 0.97));
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 24px 0 70px rgba(12, 13, 16, 0.14);
  backdrop-filter: blur(20px) saturate(1.25);
  animation: sidebarIn 420ms ease both;
}

.brand {
  display: grid;
  gap: 12px;
  padding: 4px 10px 30px;
}

.brand img {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.brand span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 13px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-item.active {
  background: linear-gradient(135deg, var(--red), #d02a34);
  box-shadow: 0 12px 28px rgba(185, 31, 40, 0.34);
  border-color: rgba(255, 255, 255, 0.24);
}

.nav-item.active::after,
.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 22%, rgba(255, 255, 255, 0.32) 48%, transparent 72% 100%);
  transform: translateX(-120%);
  transition: transform 560ms ease;
}

.nav-item.active:hover::after,
.button.primary:hover::after {
  transform: translateX(120%);
}

.nav-item:not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.profile {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile strong,
.profile span {
  display: block;
}

.profile strong {
  font-size: 14px;
}

.profile span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  margin-top: 3px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #334155;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  height: 100vh;
  margin-left: 260px;
  overflow-y: auto;
  padding: 36px 34px 32px;
  animation: workspaceIn 420ms ease both;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.topbar p,
.panel-header p,
.detail-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-center {
  position: relative;
  z-index: 30;
}

.notification-bell {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #20232a;
  box-shadow: 0 12px 30px rgba(12, 13, 16, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.16);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.notification-bell:hover,
.notification-bell[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(185, 31, 40, 0.38);
  box-shadow: 0 16px 34px rgba(12, 13, 16, 0.1), 0 0 0 4px rgba(185, 31, 40, 0.06);
}

.notification-bell svg {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #f7f8fa;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 96px));
  overflow: hidden;
  border: 1px solid rgba(124, 130, 142, 0.25);
  border-radius: 8px;
  background: rgba(250, 251, 252, 0.94);
  box-shadow: 0 28px 80px rgba(12, 13, 16, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(26px) saturate(1.24);
  animation: notificationPanelIn 180ms ease both;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 13px;
}

.notification-panel-header > div {
  display: grid;
  gap: 3px;
}

.notification-panel-header span {
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notification-panel-header h2 {
  font-size: 18px;
}

.notification-panel-header .icon-button {
  display: grid;
  place-items: center;
  padding: 0;
}

.notification-panel-header svg {
  width: 16px;
  height: 16px;
}

.notification-panel-tools {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(238, 240, 243, 0.64);
  color: var(--muted);
  font-size: 11px;
}

.notification-panel-tools button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
}

.notification-list {
  max-height: min(520px, calc(100vh - 180px));
  overflow-y: auto;
}

.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 8px;
  gap: 11px;
  align-items: start;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  text-align: left;
  transition: background 150ms ease;
}

.notification-item:hover,
.notification-item.unread {
  background: rgba(255, 255, 255, 0.88);
}

.notification-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(25, 121, 115, 0.11);
  color: var(--teal);
}

.notification-item-icon.cancelled { background: rgba(185, 31, 40, 0.1); color: var(--red); }
.notification-item-icon.invited { background: rgba(45, 79, 132, 0.11); color: #2d4f84; }
.notification-item-icon.payment { background: rgba(17, 131, 77, 0.11); color: var(--green); }
.notification-item-icon.status { background: rgba(111, 113, 119, 0.12); color: #565960; }
.notification-item-icon svg { width: 17px; height: 17px; }

.notification-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.notification-item-copy strong { font-size: 12px; }
.notification-item-copy span { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.notification-item-copy small { color: #92959c; font-size: 10px; }

.notification-unread-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}

.notification-item.unread .notification-unread-dot { background: var(--red); }

.notification-empty {
  min-height: 250px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.notification-empty svg { width: 26px; height: 26px; color: var(--graphite); }
.notification-empty strong { color: var(--ink); font-size: 13px; }
.notification-empty p { max-width: 260px; font-size: 11px; line-height: 1.5; }

.domain-control {
  display: grid;
  gap: 7px;
}

.domain-control span,
.link-box label,
.referral-form span {
  color: #344054;
  font-size: 12px;
  font-weight: 760;
}

.domain-control input {
  width: min(360px, 34vw);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 10px 24px rgba(12, 13, 16, 0.03);
  backdrop-filter: blur(12px);
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 124, 120, 0.12);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #d3232e);
  box-shadow: 0 16px 30px rgba(185, 31, 40, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary,
.button.compact {
  background: rgba(255, 255, 255, 0.72);
  color: #1f2937;
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 28px rgba(12, 13, 16, 0.04);
  backdrop-filter: blur(14px) saturate(1.18);
}

.button.secondary:hover,
.button.compact:hover {
  border-color: #b8c1cc;
  background: var(--surface-2);
}

.button.compact {
  min-height: 38px;
  padding: 0 13px;
}

.glass-action {
  text-decoration: none;
}

.plus {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

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

.stat-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(12, 13, 16, 0.03), inset 0 1px 0 var(--glass-line);
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(22px) saturate(1.2);
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 38%, rgba(255, 255, 255, 0.18));
  opacity: 0.72;
}

.stat-card:hover,
.panel:hover {
  border-color: rgba(185, 31, 40, 0.18);
  box-shadow: 0 20px 46px rgba(12, 13, 16, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.panel:hover {
  transform: none;
}

.stat-card {
  min-height: 124px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-card > *,
.panel > * {
  position: relative;
  z-index: 1;
}

.stat-card p {
  font-size: 14px;
  font-weight: 720;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.stat-card span:not(.stat-icon) {
  display: block;
  color: var(--green);
  margin-top: 12px;
  font-size: 12px;
  font-weight: 720;
}

.stat-icon,
.icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  color: var(--red);
  flex: 0 0 auto;
}

.nav-item .icon {
  color: currentColor;
}

.icon.users::before,
.stat-icon.users::before,
.icon.users::after,
.stat-icon.users::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.icon.users::before,
.stat-icon.users::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  box-shadow: 12px 4px 0 -2px currentColor;
}

.icon.users::after,
.stat-icon.users::after {
  width: 22px;
  height: 12px;
  border-radius: 13px 13px 3px 3px;
  border-top-width: 2px;
  left: 1px;
  bottom: 2px;
}

.icon.trend::before {
  content: "";
  position: absolute;
  inset: 8px 3px 7px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: skew(-22deg) rotate(135deg);
}

.icon.calendar::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 20px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon.calendar::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 3px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-shadow: 0 8px 0 -3px currentColor;
}

.icon.gift::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon.gift::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 4px;
  width: 2px;
  height: 22px;
  background: currentColor;
  box-shadow: -8px 6px 0 -1px currentColor, 8px 6px 0 -1px currentColor;
}

.icon.settings::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -8px 0 -5px currentColor, 0 8px 0 -5px currentColor, 8px 0 0 -5px currentColor, -8px 0 0 -5px currentColor;
}

.stat-icon.chat::before,
.stat-icon.check::before,
.stat-icon.dollar::before {
  content: "";
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.stat-icon.chat::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 1px;
  border-width: 7px 0 0 8px;
  border-style: solid;
  border-color: transparent transparent transparent currentColor;
}

.stat-icon.check::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 11px;
  height: 7px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.stat-icon.dollar {
  color: var(--green);
}

.stat-icon.dollar::after {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.content-grid > *,
.workspace,
.referral-panel,
.detail-column {
  min-width: 0;
}

.panel-header {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.compact-header {
  min-height: auto;
}

.table-tools {
  display: flex;
  gap: 10px;
}

.search-field {
  width: 260px;
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 700px;
}

th:nth-child(1),
td:nth-child(1) {
  width: 17%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 12%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 20%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 22%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 9%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 9%;
}

th:nth-child(7),
td:nth-child(7) {
  width: 11%;
}

th {
  text-align: left;
  color: #55575d;
  background: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 820;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 13px;
  overflow-wrap: anywhere;
}

tr {
  transition: background 150ms ease;
  animation: rowIn 260ms ease both;
}

tr[data-id] {
  cursor: pointer;
}

tr[data-id]:hover,
tr.selected {
  background: rgba(255, 244, 245, 0.78);
}

.partner-cell strong,
.partner-cell span,
.status-pill,
.lead-item strong,
.lead-item span,
.lead-card strong,
.lead-card span {
  display: block;
}

.partner-cell strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.partner-cell span,
.cell-muted {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.link-anchor {
  color: var(--red);
  text-decoration: none;
  font-weight: 760;
}

.mini-qr {
  width: 48px;
  height: 48px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(12, 13, 16, 0.06);
}

.status-pill {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0d6841;
  background: #dff7ea;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.inactive {
  color: #667085;
  background: #eef0f3;
}

.detail-column {
  display: grid;
  gap: 12px;
}

.detail-panel {
  padding: 18px;
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.contact-list {
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.contact-list div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.contact-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.link-box {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.link-box div {
  display: flex;
}

.link-box input {
  border-radius: 6px 0 0 6px;
  color: var(--red-dark);
  font-weight: 720;
}

.link-box button {
  border-radius: 0 6px 6px 0;
  border-left: 0;
}

.qr-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.qr-card {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 18px 42px rgba(12, 13, 16, 0.07);
  backdrop-filter: blur(14px);
}

.qr-card img,
.qr-card canvas {
  width: 196px;
  height: 196px;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.note-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(14px);
}

.note-box strong {
  font-size: 13px;
}

.note-box p {
  margin-top: 6px;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.lead-list {
  display: grid;
}

.lead-item,
.lead-card {
  display: grid;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.lead-card {
  grid-template-columns: minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
}

.lead-item strong,
.lead-card strong {
  font-size: 13px;
}

.lead-item span,
.lead-card span {
  color: var(--muted);
  margin-top: 3px;
}

.lead-main {
  min-width: 0;
}

.lead-controls {
  display: grid;
  grid-template-columns: minmax(118px, 1.2fr) repeat(3, minmax(82px, 0.8fr));
  gap: 8px;
  align-items: end;
}

.lead-controls label {
  display: grid;
  gap: 4px;
}

.lead-controls label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lead-controls input,
.lead-controls select {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.lead-item .lead-status,
.lead-card .lead-status {
  grid-column: 1 / -1;
  align-self: center;
  color: #1f2937;
  font-weight: 800;
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.lead-status.closed {
  color: var(--green);
  background: #dff7ea;
}

.reward-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
}

.reward-summary div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(12px);
}

.reward-summary span,
.booking-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reward-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.booking-workspace {
  margin: 0 0 18px;
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(12, 13, 16, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.08);
  overflow: hidden;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(185, 31, 40, 0.04), transparent 34%);
}

.section-heading > * {
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  margin-top: 5px;
  font-size: 24px;
}

.section-heading p:not(.section-kicker) {
  max-width: 650px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.section-kicker {
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.section-heading .button.secondary {
  color: #1f2937;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.booking-subnav {
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(231, 234, 238, 0.7);
  backdrop-filter: blur(18px) saturate(1.16);
}

.booking-subnav-item {
  min-width: 200px;
  display: grid;
  gap: 2px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #555961;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.booking-subnav-item span { font-size: 13px; font-weight: 800; }
.booking-subnav-item small { color: var(--muted); font-size: 10px; }

.booking-subnav-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.54); }

.booking-subnav-item.active {
  border-color: rgba(124, 130, 142, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--red-dark);
  box-shadow: 0 8px 24px rgba(12, 13, 16, 0.07), inset 0 2px 0 var(--red);
}

.booking-view-panels {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.booking-view-panel {
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.booking-view-panel:hover { box-shadow: none; }

.booking-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-filter {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(238, 240, 243, 0.75);
}

.booking-filter button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  transition: 150ms ease;
}

.booking-filter button:hover { color: var(--ink); }

.booking-filter button.active {
  border-color: rgba(124, 130, 142, 0.2);
  background: #fff;
  color: var(--red-dark);
  box-shadow: 0 4px 12px rgba(12, 13, 16, 0.06);
}

.calendar-integration-panel {
  min-height: 560px;
  padding: 0;
}

.calendar-integration-heading,
.calendar-account-band,
.calendar-section-heading,
.calendar-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.calendar-integration-heading {
  min-height: 86px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.calendar-integration-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}

.calendar-integration-heading h3,
.calendar-section-heading h4 {
  margin: 0;
}

.calendar-integration-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.calendar-provider-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 133, 244, 0.2);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(66, 133, 244, 0.12), rgba(52, 168, 83, 0.08));
  color: #2867c7;
}

.calendar-provider-mark svg { width: 21px; height: 21px; }

.integration-status.needs-setup {
  color: #8a5a08;
  background: #fff4d7;
}

.calendar-account-band {
  min-height: 94px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(244, 246, 248, 0.58);
}

.calendar-account-band > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.calendar-account-band span,
.calendar-account-band small {
  color: var(--muted);
  font-size: 10px;
}

.calendar-account-band strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.calendar-account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-disconnect {
  color: var(--red-dark) !important;
}

.calendar-credentials-form,
.calendar-sync-form {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.calendar-credentials-form {
  border-bottom: 1px solid var(--line-soft);
}

.calendar-section-heading > div {
  display: grid;
  gap: 4px;
}

.calendar-section-heading > div > span {
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-section-heading h4 { font-size: 15px; }
.calendar-section-heading small { color: var(--muted); font-size: 10px; }

.calendar-credential-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 14px;
}

.calendar-redirect-field {
  grid-column: 1 / -1;
}

.calendar-form-actions {
  justify-content: flex-start;
}

.calendar-form-actions > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.calendar-select-field {
  width: min(620px, 100%);
}

.calendar-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.calendar-rule-list .setting-toggle {
  min-height: 84px;
  margin: 0;
  padding: 15px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
}

.calendar-setup-notice {
  display: grid;
  gap: 5px;
  margin: 22px;
  padding: 15px;
  border: 1px solid rgba(138, 90, 8, 0.2);
  border-radius: 6px;
  background: rgba(255, 244, 215, 0.62);
}

.calendar-setup-notice strong { font-size: 12px; }
.calendar-setup-notice p { color: #775c2e; font-size: 11px; line-height: 1.5; }

.zoom-integration-panel {
  min-height: 560px;
  padding: 0;
}

.zoom-provider-mark {
  border-color: rgba(45, 140, 255, 0.24);
  background: linear-gradient(145deg, rgba(45, 140, 255, 0.15), rgba(255, 255, 255, 0.72));
  color: #1468cc;
}

.zoom-account-band {
  background: linear-gradient(100deg, rgba(45, 140, 255, 0.06), rgba(244, 246, 248, 0.62) 45%);
}

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

.zoom-credential-grid .settings-field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.zoom-host-field { width: min(620px, 100%); }

.zoom-recording-field {
  min-height: 84px;
  margin: 0;
  padding: 15px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
}

.zoom-recording-field > span {
  display: grid;
  gap: 4px;
}

.zoom-recording-field strong { color: var(--ink); font-size: 11px; }
.zoom-recording-field small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.zoom-recording-field select { margin-top: 8px; }

.zoom-workflow-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 22px 22px;
  padding: 15px;
  border: 1px solid rgba(45, 140, 255, 0.18);
  border-radius: 6px;
  background: rgba(45, 140, 255, 0.055);
}

.zoom-workflow-note > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #1468cc;
}

.zoom-workflow-note div { display: grid; gap: 4px; }
.zoom-workflow-note strong { font-size: 12px; }
.zoom-workflow-note p { color: var(--muted); font-size: 11px; line-height: 1.5; }

.panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.appointments-panel .panel-header select {
  width: 160px;
}

.booking-list,
.booking-type-list {
  display: grid;
}

.booking-row {
  display: grid;
  grid-template-columns: 64px minmax(130px, 1.2fr) minmax(110px, 0.7fr) minmax(190px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 180ms ease;
}

.booking-row:hover {
  background: rgba(255, 255, 255, 0.56);
}

.booking-row.notification-focus {
  background: rgba(185, 31, 40, 0.065);
  box-shadow: inset 3px 0 0 var(--red);
  animation: bookingFocus 700ms ease both;
}

.booking-date-block {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.booking-date-block strong {
  color: var(--red-dark);
  font-size: 18px;
}

.booking-date-block span,
.booking-client span,
.booking-client small,
.booking-source span,
.booking-source small {
  color: var(--muted);
  font-size: 12px;
}

.booking-client,
.booking-source {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.booking-client strong,
.booking-source strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.booking-state-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.booking-state-controls label {
  display: grid;
  gap: 5px;
}

.booking-state-controls label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-state-controls select {
  min-height: 36px;
  padding-inline: 9px;
  font-size: 12px;
}

.booking-empty {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.booking-empty p {
  max-width: 380px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.booking-type-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.28);
  transition: background 180ms ease, opacity 180ms ease;
}

.booking-type-card:hover {
  background: rgba(255, 255, 255, 0.64);
}

.booking-type-card.inactive {
  opacity: 0.66;
}

.booking-type-topline,
.booking-type-actions,
.public-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booking-type-card h4 {
  margin: 0;
  font-size: 15px;
}

.booking-type-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.booking-price {
  width: max-content;
  color: #0c6840;
  border: 1px solid rgba(17, 131, 77, 0.2);
  border-radius: 999px;
  background: rgba(223, 247, 234, 0.88);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.booking-price.paid {
  color: var(--red-dark);
  border-color: rgba(185, 31, 40, 0.17);
  background: rgba(255, 236, 238, 0.9);
}

.booking-type-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-type-meta span,
.booking-trust span {
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: #55575d;
  background: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 700;
}

.booking-type-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.booking-type-actions .button.compact,
.booking-type-actions .icon-button.mini {
  min-height: 36px;
  height: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row label {
  min-width: 0;
}

.dashboard-view:not([hidden]) {
  animation: viewEnter 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.leads-workspace,
.rewards-workspace,
.settings-workspace {
  display: grid;
  gap: 14px;
}

.clean-heading {
  border-radius: var(--radius);
}

.workspace-panel {
  overflow: hidden;
}

.view-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 10px;
}

.global-lead-list .lead-card {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.62fr) minmax(310px, 1.25fr);
  align-items: center;
  gap: 20px;
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.42);
}

.lead-referral {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lead-referral span,
.lead-referral small {
  color: var(--muted);
  font-size: 11px;
}

.lead-referral strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.rewards-workspace .reward-summary {
  border-bottom: 1px solid var(--line-soft);
}

.reward-partner-list {
  display: grid;
}

.reward-partner-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(130px, 0.7fr));
  gap: 20px;
  align-items: center;
  min-height: 88px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.38);
}

.reward-partner-row > div {
  display: grid;
  gap: 5px;
}

.reward-partner-row span {
  color: var(--muted);
  font-size: 11px;
}

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

.settings-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-subnav {
  position: sticky;
  top: 0;
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.055);
  backdrop-filter: blur(18px) saturate(1.08);
}

.settings-subnav-item {
  position: relative;
  min-height: 68px;
  display: grid;
  align-items: center;
  width: 100%;
  padding: 12px 13px 12px 16px;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.settings-subnav-item::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--red);
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.settings-subnav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
}

.settings-subnav-item:active {
  transform: translateY(1px);
}

.settings-subnav-item:focus-visible {
  outline: 3px solid rgba(198, 31, 43, 0.17);
  outline-offset: 2px;
}

.settings-subnav-item.active {
  color: var(--ink);
  border-color: rgba(198, 31, 43, 0.14);
  background: linear-gradient(105deg, rgba(198, 31, 43, 0.095), rgba(255, 255, 255, 0.8));
  box-shadow: 0 8px 20px rgba(89, 25, 31, 0.06);
}

.settings-subnav-item.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.settings-subnav-copy {
  display: grid;
  gap: 4px;
}

.settings-subnav-copy strong {
  font-size: 12px;
  line-height: 1.35;
}

.settings-subnav-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.settings-content {
  min-width: 0;
}

.settings-content > .settings-panel {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.settings-content > .settings-panel > * {
  min-width: 0;
}

.settings-content > .settings-panel:not([hidden]) {
  animation: viewEnter 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.availability-settings-panel {
  min-height: 0;
}

.availability-heading-row,
.date-blocks-heading,
.availability-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.timezone-badge {
  width: max-content;
  padding: 7px 10px;
  color: #4b5563;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
}

.availability-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.availability-note {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

.availability-note strong {
  color: var(--ink);
  white-space: nowrap;
}

.weekly-hours {
  border-top: 1px solid var(--line);
}

.weekly-day-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.day-availability-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.day-availability-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.day-availability-toggle span {
  display: grid;
  gap: 2px;
}

.day-availability-toggle strong {
  font-size: 13px;
}

.day-availability-toggle small {
  color: var(--muted);
  font-size: 10px;
}

.day-window-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.day-window-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) 22px minmax(112px, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.day-window-row > span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.day-window-row input {
  min-height: 38px;
}

.remove-window-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 18px;
  line-height: 1;
}

.remove-window-button:hover {
  color: var(--red-dark);
  border-color: rgba(185, 31, 40, 0.26);
}

.add-window-button {
  align-self: start;
  min-height: 38px;
  white-space: nowrap;
}

.add-window-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.weekly-day-row.is-closed .day-window-list {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.date-blocks-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding-top: 4px;
}

.date-blocks-section > * {
  min-width: 0;
}

.date-blocks-heading h4 {
  margin: 0;
  font-size: 14px;
}

.date-blocks-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.date-block-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(140px, 0.65fr) minmax(250px, 1fr) minmax(180px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
}

.block-time-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.block-time-fields[hidden] {
  display: none;
}

.date-block-form > .button {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .date-block-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .block-time-fields,
  .block-reason-field {
    grid-column: 1 / -1;
  }

  .date-block-form > .button {
    justify-self: start;
  }
}

.availability-error {
  min-height: 16px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 700;
}

.date-block-list {
  display: grid;
  gap: 7px;
}

.date-block-empty {
  padding: 14px 0;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.date-block-row {
  display: grid;
  grid-template-columns: 118px minmax(170px, 0.7fr) minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 7px 9px 7px 12px;
  border-left: 3px solid var(--red);
  background: rgba(185, 31, 40, 0.045);
}

.date-block-row strong {
  font-size: 12px;
}

.date-block-row span,
.date-block-row small {
  color: var(--muted);
  font-size: 11px;
}

.availability-actions {
  justify-content: flex-start;
}

.availability-actions .settings-feedback {
  display: flex;
  align-items: center;
}

.field-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.embed-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.embed-controls input,
.embed-controls textarea {
  min-width: 0;
}

.copy-field {
  display: flex;
  min-width: 0;
}

.copy-field input {
  min-width: 0;
  flex: 1 1 auto;
  border-radius: 6px 0 0 6px;
}

.copy-field .button {
  border-radius: 0 6px 6px 0;
  border-left: 0;
}

.theme-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.theme-fieldset legend {
  margin-bottom: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.theme-segmented,
.booking-theme-switch {
  width: max-content;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.theme-segmented button,
.booking-theme-switch button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.theme-segmented button[aria-pressed="true"],
.booking-theme-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 16px rgba(12, 13, 16, 0.1);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.theme-swatch.light {
  background: #fff;
}

.theme-swatch.dark {
  background: #111318;
}

.stripe-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.integration-status {
  width: max-content;
  padding: 6px 9px;
  color: #8a4b15;
  border-radius: 999px;
  background: #fff1dc;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.integration-status.connected {
  color: #0d6841;
  background: #dff7ea;
}

.stripe-connection-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.stripe-account-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(247,249,251,.8);
}

.stripe-account-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #313843;
  font-size: 16px;
  font-weight: 820;
}

.stripe-account-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.stripe-account-summary strong { font-size: 13px; }
.stripe-account-summary small { color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.stripe-endpoints { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stripe-endpoints input { color: #4f5660; background: rgba(244,246,248,.84); font-size: 11px; }
.stripe-actions { display: flex; align-items: center; gap: 12px; }
.stripe-actions > span { color: var(--muted); font-size: 11px; }

.stripe-credentials-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.email-notification-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.email-notification-flow > div {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
}

.email-notification-flow > div + div {
  border-left: 1px solid var(--line-soft);
}

.email-notification-flow strong { font-size: 12px; }
.email-notification-flow span { color: var(--muted); font-size: 11px; line-height: 1.45; }

.email-credentials-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

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

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

.stripe-credentials-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.stripe-credentials-heading h4 {
  margin: 0;
  font-size: 14px;
}

.stripe-credentials-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.stripe-mode-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.stripe-mode-fieldset legend {
  margin-bottom: 6px;
  color: #344054;
  font-size: 10px;
  font-weight: 700;
}

.stripe-mode-segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.stripe-mode-segmented button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.stripe-mode-segmented button[aria-pressed="true"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 15px rgba(12, 13, 16, 0.09);
}

.stripe-mode-segmented button[data-stripe-mode="live"][aria-pressed="true"] {
  color: var(--red-dark);
}

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

.stripe-key-grid input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.stripe-credential-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stripe-credential-actions > span,
.stripe-saved-credentials {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.stripe-credential-actions > span[data-state="success"] {
  color: var(--green);
  font-weight: 700;
}

.stripe-credential-actions > span[data-state="error"] {
  color: var(--red-dark);
  font-weight: 700;
}

.stripe-saved-credentials {
  margin: 0;
  overflow-wrap: anywhere;
}

.stripe-deployment-notice {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stripe-deployment-notice strong {
  display: block;
  font-size: 12px;
}

.stripe-deployment-notice p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.stripe-security-note {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
}

.stripe-security-note strong {
  display: block;
  font-size: 12px;
}

.stripe-security-note p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.stripe-security-note code {
  color: var(--red-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.stripe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stripe-meta span {
  padding: 6px 8px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.settings-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 310px;
  padding: 24px;
}

.settings-panel-heading h3 {
  margin: 0;
  font-size: 16px;
}

.settings-panel-heading p {
  max-width: 520px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.settings-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.settings-field > span {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.settings-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.settings-feedback {
  min-height: 20px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.input-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
}

.input-suffix input {
  border-radius: 6px 0 0 6px;
}

.input-suffix > span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.setting-toggle {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
}

.setting-toggle input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.setting-toggle > span {
  display: grid;
  gap: 4px;
}

.setting-toggle strong {
  font-size: 13px;
}

.setting-toggle small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drawer {
  position: fixed;
  top: 0;
  right: -100vw;
  bottom: 0;
  left: auto;
  width: min(410px, 94vw);
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: -24px 0 70px rgba(12, 13, 16, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.16);
  visibility: hidden;
  transition: right 220ms ease, visibility 220ms ease;
}

.drawer.open {
  right: 0;
  visibility: visible;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-header p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.icon-button {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2937;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button.mini {
  height: 31px;
  min-width: auto;
  font-size: 12px;
}

.icon-button.danger {
  color: var(--red);
}

.icon-button.danger:hover {
  border-color: rgba(185, 31, 40, 0.4);
  background: #fff4f5;
}

.referral-form {
  padding: 20px 24px 24px;
  display: grid;
  gap: 16px;
  overflow: auto;
}

.referral-form label {
  display: grid;
  gap: 8px;
}

#bookingTypeDrawer {
  width: min(590px, 96vw);
}

.booking-config-section {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.booking-config-heading h3 {
  margin: 0;
  font-size: 15px;
}

.booking-config-heading p {
  max-width: 390px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.booking-setting-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-setting-options > label {
  grid-template-columns: auto 1fr;
  align-items: start;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.booking-setting-options > label:has(input:checked) {
  border-color: rgba(185, 31, 40, 0.48);
  background: rgba(255, 246, 247, 0.88);
  box-shadow: 0 0 0 2px rgba(185, 31, 40, 0.08);
}

.booking-setting-options input,
.booking-policy-toggle input,
.booking-required-toggle input,
.booking-day-toggle input,
.booking-policy-consent > input,
.public-choice-field input {
  accent-color: var(--red);
}

.booking-setting-options label > span,
.booking-required-toggle > span,
.booking-day-toggle > span {
  display: grid;
  gap: 4px;
}

.booking-setting-options strong,
.booking-required-toggle strong,
.booking-day-toggle strong {
  font-size: 12px;
}

.booking-setting-options small,
.booking-required-toggle small,
.booking-day-toggle small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.booking-availability-editor {
  display: grid;
  gap: 10px;
}

.booking-availability-note {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  background: rgba(239, 248, 244, 0.78);
}

.booking-availability-note strong { font-size: 11px; }
.booking-availability-note span { color: var(--muted); font-size: 10px; }

.booking-weekly-hours {
  display: grid;
  border-top: 1px solid var(--line-soft);
}

.booking-weekly-day {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.booking-weekly-day.is-closed { opacity: 0.66; }

.booking-day-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.booking-window-list { display: grid; gap: 7px; }

.booking-window-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.booking-window-row input { min-width: 0; min-height: 36px; padding: 7px 8px; }
.booking-window-row span { color: var(--muted); font-size: 10px; }
.booking-window-row button,
.booking-choice-row button,
.booking-field-toolbar button {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #4d535c;
  font-size: 10px;
  font-weight: 750;
}

.booking-window-row button:hover,
.booking-choice-row button:hover,
.booking-field-toolbar button:hover { border-color: rgba(185, 31, 40, 0.35); }
.booking-field-toolbar button.danger { color: var(--red); }
.booking-day-closed { color: var(--muted); font-size: 11px; }

.booking-field-builder { display: grid; gap: 12px; }

.booking-builder-empty {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed #cfd3da;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.booking-builder-empty strong { color: var(--ink); font-size: 12px; }
.booking-builder-empty span { font-size: 11px; line-height: 1.45; }

.booking-field-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 28px rgba(22, 26, 34, 0.05);
}

.booking-field-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-field-toolbar > span {
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.booking-field-toolbar > div { display: flex; gap: 6px; }

.booking-field-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: end;
}

.booking-required-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.booking-choice-editor { display: grid; gap: 9px; padding-top: 2px; }
.booking-choice-editor > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.booking-choice-editor strong { font-size: 11px; }
.booking-choice-editor small { color: var(--muted); font-size: 10px; }
.booking-choice-list { display: grid; gap: 7px; }
.booking-choice-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.booking-choice-row input { min-height: 38px; }

.booking-builder-error,
.booking-form-error {
  min-height: 16px;
  margin: 0;
  color: #a61520;
  font-size: 11px;
  font-weight: 700;
}

.booking-policy-toggle { margin: 0; }

.booking-policy-consent {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  padding: 15px;
  border: 1px solid rgba(185, 31, 40, 0.2);
  border-radius: 6px;
  background: rgba(255, 246, 247, 0.78);
}

.booking-policy-consent > span { display: grid; gap: 5px; }
.booking-policy-consent strong { color: #70161c; font-size: 12px; }
.booking-policy-consent small { color: #626873; font-size: 11px; line-height: 1.5; }

.public-choice-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.public-choice-field legend {
  color: #344054;
  font-size: 12px;
  font-weight: 760;
}

.public-choice-field > div { display: grid; gap: 8px; }
.public-choice-field label {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}
.public-choice-field label span { font-weight: 600; }

.booking-response-details {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.booking-response-details summary {
  width: max-content;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

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

.booking-response-grid > div { display: grid; gap: 4px; padding: 10px; background: rgba(255, 255, 255, 0.5); }
.booking-response-grid span { color: var(--muted); font-size: 10px; }
.booking-response-grid strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; }

.booking-meeting-detail a {
  width: max-content;
  color: #1468cc;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.booking-meeting-detail a:hover { text-decoration: underline; }

.booking-theme-dark .public-choice-field label,
.booking-theme-dark .booking-policy-consent {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
}

.booking-theme-dark .booking-policy-consent strong,
.booking-theme-dark .public-choice-field legend,
.booking-theme-dark .public-choice-field label span { color: #f4f5f7; }

.booking-theme-dark .booking-policy-consent small { color: #bcc1ca; }

.form-actions {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

@media (max-width: 720px) {
  .booking-setting-options,
  .booking-field-settings,
  .booking-response-grid { grid-template-columns: 1fr; }

  .booking-config-heading { align-items: stretch; flex-direction: column; }
  .booking-config-heading .button { width: 100%; }

  .booking-weekly-day { grid-template-columns: 1fr; }
  .booking-window-row { grid-template-columns: 1fr auto 1fr; }
  .booking-window-row button { grid-column: 1 / -1; }
  .booking-field-toolbar { align-items: flex-start; flex-direction: column; }
  .booking-field-toolbar > div { width: 100%; }
  .booking-field-toolbar button { flex: 1; }
}

@keyframes notificationPanelIn {
  from { opacity: 0; transform: translateY(-7px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bookingFocus {
  0%, 100% { box-shadow: inset 3px 0 0 var(--red); }
  50% { box-shadow: inset 3px 0 0 var(--red), 0 0 0 4px rgba(185, 31, 40, 0.08); }
}

@media (max-width: 1180px) {
  .booking-view-panel .panel-header,
  .booking-panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-filter {
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
  }

  .calendar-account-band,
  .calendar-account-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .topbar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .notification-panel {
    position: fixed;
    top: 74px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 88px);
  }

  .notification-list { max-height: calc(100vh - 220px); }

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

  .booking-subnav-item {
    min-width: 0;
    padding-inline: 12px;
  }

  .booking-subnav-item small { display: none; }

  .booking-filter {
    width: 100%;
  }

  .booking-filter button { flex: 0 0 auto; }

  .booking-panel-actions .button { width: 100%; }

  .calendar-integration-heading,
  .calendar-section-heading,
  .calendar-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-credential-grid,
  .calendar-rule-list,
  .zoom-credential-grid {
    grid-template-columns: 1fr;
  }

  .calendar-redirect-field { grid-column: auto; }

  .calendar-account-actions,
  .calendar-account-actions .button,
  .calendar-form-actions .button {
    width: 100%;
  }
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(16, 19, 26, 0.32);
}

.booking-page {
  min-height: 100vh;
  padding: 34px;
  background:
    linear-gradient(120deg, rgba(185, 31, 40, 0.18), transparent 28%),
    linear-gradient(180deg, #090a0d 0 310px, #eef0f3 310px 100%);
}

.booking-shell {
  width: 100%;
  min-width: 0;
  max-width: 1120px;
  margin: 0 auto;
}

.booking-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

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

.booking-theme-switch {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.booking-theme-switch button {
  min-height: 32px;
  color: rgba(255, 255, 255, 0.68);
}

.booking-theme-switch button[aria-pressed="true"] {
  color: #111318;
}

.booking-brand img {
  width: 210px;
  height: auto;
}

.booking-admin-link {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.booking-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.18);
  animation: cardRise 460ms ease both;
}

.booking-card > *,
.public-type-list,
.public-booking-type,
.booking-form {
  min-width: 0;
  max-width: 100%;
}

.booking-copy {
  padding: 14px 0;
}

.booking-copy h1 {
  max-width: 480px;
  margin-top: 12px;
  font-size: 46px;
  line-height: 1.02;
}

.booking-copy p:not(.booking-label) {
  max-width: 470px;
  margin-top: 16px;
  color: #55575d;
  line-height: 1.6;
}

.booking-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.booking-trust span {
  color: #4c5058;
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}

.booking-type-picker {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 18px 52px rgba(12, 13, 16, 0.08);
  backdrop-filter: blur(18px) saturate(1.12);
}

.booking-picker-heading h2 {
  font-size: 18px;
}

.booking-picker-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.public-type-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.public-booking-type {
  width: 100%;
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 17px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 12px 28px rgba(12, 13, 16, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.public-booking-type:hover,
.public-booking-type:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(185, 31, 40, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 42px rgba(12, 13, 16, 0.1);
  outline: none;
}

.public-type-header strong {
  font-size: 15px;
}

.public-type-description {
  color: #55575d;
  font-size: 13px;
  line-height: 1.45;
}

.public-type-meta {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 780;
}

.booking-form {
  display: grid;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 18px 52px rgba(12, 13, 16, 0.08);
  backdrop-filter: blur(18px);
}

.selected-booking-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 15px;
  border: 1px solid rgba(185, 31, 40, 0.16);
  border-radius: 6px;
  background: rgba(255, 244, 245, 0.7);
}

.selected-booking-summary > div {
  display: grid;
  gap: 5px;
}

.selected-booking-summary span,
.selected-booking-summary small {
  color: var(--muted);
  font-size: 11px;
}

.selected-booking-summary strong {
  font-size: 14px;
}

.selected-booking-summary .summary-price {
  color: var(--red-dark);
  font-size: 16px;
  white-space: nowrap;
}

.text-button {
  width: max-content;
  min-height: 32px;
  padding: 0;
  color: var(--red-dark);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.text-button:hover {
  text-decoration: underline;
}

.custom-booking-fields {
  display: grid;
  gap: 15px;
}

.payment-notice {
  padding: 14px;
  color: #6f3010;
  border: 1px solid rgba(172, 90, 30, 0.2);
  border-radius: 6px;
  background: rgba(255, 244, 225, 0.74);
}

.payment-notice strong {
  display: block;
  font-size: 13px;
}

.payment-notice p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.booking-form label {
  display: grid;
  gap: 7px;
}

.booking-form label span {
  color: #344054;
  font-size: 12px;
  font-weight: 760;
}

.booking-success {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.booking-success strong {
  display: block;
  font-size: 22px;
}

.booking-success p {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.booking-embed .booking-page {
  min-height: auto;
  padding: 0;
  background: transparent;
}

.booking-embed .booking-shell {
  max-width: none;
}

.booking-embed .booking-brand {
  display: none;
}

.booking-embed .booking-card {
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.booking-theme-dark {
  color-scheme: dark;
  background: #090b0f;
}

.booking-theme-dark .booking-page {
  background:
    linear-gradient(120deg, rgba(185, 31, 40, 0.17), transparent 30%),
    linear-gradient(180deg, #08090c 0 310px, #111318 310px 100%);
}

.booking-theme-dark .booking-card {
  color: #f5f6f8;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(22, 24, 29, 0.88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.booking-theme-dark .booking-copy p:not(.booking-label),
.booking-theme-dark .booking-picker-heading p,
.booking-theme-dark .public-type-description,
.booking-theme-dark .selected-booking-summary span,
.booking-theme-dark .selected-booking-summary small,
.booking-theme-dark .booking-success p {
  color: #aeb4bf;
}

.booking-theme-dark .booking-trust span {
  color: #c7cbd2;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.booking-theme-dark .booking-type-picker,
.booking-theme-dark .booking-form,
.booking-theme-dark .booking-success {
  color: #f5f6f8;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(12, 14, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 52px rgba(0, 0, 0, 0.2);
}

.booking-theme-dark .public-booking-type {
  color: #f5f6f8;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.booking-theme-dark .public-booking-type:hover,
.booking-theme-dark .public-booking-type:focus-visible {
  border-color: rgba(214, 54, 65, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.booking-theme-dark .selected-booking-summary {
  border-color: rgba(214, 54, 65, 0.22);
  background: rgba(185, 31, 40, 0.1);
}

.booking-theme-dark .booking-form label span {
  color: #d7d9de;
}

.booking-theme-dark .booking-form input,
.booking-theme-dark .booking-form select,
.booking-theme-dark .booking-form textarea {
  color: #f5f6f8;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.booking-theme-dark .booking-form input::placeholder,
.booking-theme-dark .booking-form textarea::placeholder {
  color: #7f8793;
}

.booking-theme-dark .payment-notice {
  color: #f0c9a3;
  border-color: rgba(218, 139, 71, 0.22);
  background: rgba(127, 69, 23, 0.18);
}

.booking-theme-dark.booking-embed .booking-page {
  background: #111318;
}

.nav-count {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.partner-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(247, 249, 251, 0.7);
}

.partner-access-card > div {
  display: grid;
  gap: 3px;
}

.partner-access-card span,
.partner-access-card small {
  color: var(--muted);
  font-size: 11px;
}

.partner-access-card strong {
  font-size: 13px;
}

.payout-row {
  grid-template-columns: minmax(170px, 1.15fr) repeat(3, minmax(100px, 0.62fr)) minmax(145px, 0.8fr) minmax(200px, auto);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.payout-row:hover,
.payout-row:focus-visible {
  background: rgba(255,255,255,.72);
  box-shadow: inset 3px 0 0 var(--red);
  outline: none;
}

.payout-row-action {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end;
  align-items: center;
  gap: 10px !important;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.messages-workspace {
  display: grid;
  gap: 14px;
}

.message-subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.045);
  backdrop-filter: blur(16px) saturate(1.06);
}

.message-subnav-item {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.message-subnav-item i {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: #646b76;
  border-radius: 999px;
  background: rgba(87, 94, 105, 0.1);
  font-size: 10px;
  font-style: normal;
}

.message-subnav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.message-subnav-item:focus-visible {
  outline: 3px solid rgba(198, 31, 43, 0.16);
  outline-offset: 2px;
}

.message-subnav-item.active {
  color: var(--ink);
  border-color: rgba(185, 31, 40, 0.14);
  background: linear-gradient(105deg, rgba(185, 31, 40, 0.09), rgba(255, 255, 255, 0.82));
  box-shadow: 0 7px 18px rgba(89, 25, 31, 0.055);
}

.message-subnav-item.active i {
  color: #fff;
  background: var(--red);
}

.notification-channel-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #8a4b15;
  border: 1px solid rgba(177, 103, 35, 0.16);
  border-radius: 5px;
  background: #fff4e5;
  font-size: 10px;
  font-weight: 750;
}

.notification-channel-status.ready {
  color: #0d6841;
  border-color: rgba(13, 104, 65, 0.14);
  background: #e5f7ed;
}

.admin-message-layout {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
}

.admin-conversation-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.message-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.38);
}

.message-list-header > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.message-list-header strong { font-size: 14px; }
.message-list-header span,
.message-list-header small { color: var(--muted); font-size: 10px; }
.message-list-header small { white-space: nowrap; }

.admin-conversation-list {
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.conversation-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.conversation-row.active {
  background: rgba(185, 31, 40, 0.07);
}

.conversation-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.conversation-row strong,
.conversation-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row strong { font-size: 13px; }
.conversation-row small { color: var(--muted); font-size: 11px; }
.conversation-row i { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 10px; font-style: normal; }
.conversation-row > time { max-width: 62px; color: var(--muted); font-size: 9px; line-height: 1.35; text-align: right; }

.conversation-name-line {
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px !important;
}

.conversation-status,
.ticket-status {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.conversation-status.open,
.ticket-status.open {
  color: #8a4b15;
  background: #fff1dc;
}

.conversation-status.resolved,
.ticket-status.resolved {
  color: #0d6841;
  background: #dff7ea;
}

.conversation-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2e3239;
  font-size: 12px;
  font-weight: 800;
}

.message-center {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
}

.message-thread {
  min-height: 360px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 20px;
}

.thread-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -20px -20px 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.42);
}

.thread-heading div { display: grid; gap: 3px; }
.thread-heading span { color: var(--muted); font-size: 11px; }

.thread-actions {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
}

.message-bubble {
  max-width: min(76%, 620px);
  align-self: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 24px rgba(12,13,16,.04);
}

.message-bubble.own {
  align-self: flex-end;
  color: #fff;
  border-color: rgba(185,31,40,.22);
  background: linear-gradient(135deg, #9e1b24, #c52a33);
}

.message-bubble > div { display: flex; justify-content: space-between; gap: 18px; }
.message-bubble strong, .message-bubble time { font-size: 10px; }
.message-bubble time { opacity: .7; }
.message-bubble p { margin-top: 7px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.message-attachment { display: block; margin-top: 9px; padding: 7px 8px; border: 1px solid currentColor; border-radius: 4px; font-size: 10px; opacity: .78; }

.message-bubble.ticket-root {
  border-left: 3px solid var(--red);
}

.message-kind {
  width: max-content;
  display: block;
  margin-top: 8px;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 800;
}

.message-bubble.own .message-kind {
  color: rgba(255, 255, 255, 0.82);
}

.message-composer {
  display: grid;
  grid-template-columns: minmax(130px, .22fr) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255,255,255,.6);
}

.admin-message-form { grid-template-columns: minmax(0, 1fr) auto; }
.message-composer textarea { min-height: 82px; grid-column: 1 / -1; }
.attachment-control { display: flex; align-items: center; gap: 8px; min-height: 42px; color: #31343a; border: 1px dashed var(--line); border-radius: 6px; padding: 0 12px; font-size: 12px; font-weight: 700; }
.attachment-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attachment-control small { color: var(--muted); font-size: 10px; font-weight: 500; }
.composer-actions { grid-column: span 2; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.composer-actions > span { color: var(--red-dark); font-size: 11px; }
.message-empty { min-height: 150px; display: grid; place-content: center; gap: 5px; padding: 24px; color: var(--muted); text-align: center; font-size: 12px; }
.message-empty strong { color: var(--ink); font-size: 14px; }

body.partner-mode {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  background: #f3f5f7;
}

.partner-portal {
  min-height: 100vh;
}

.partner-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
  color: #fff;
  background: linear-gradient(180deg, #090a0d, #17191e);
  box-shadow: 20px 0 60px rgba(12,13,16,.12);
}

.partner-brand { padding: 3px 8px 34px; }
.partner-brand img { width: 176px; }
.partner-nav { display: grid; gap: 7px; }
.partner-nav-item { min-height: 47px; padding: 0 14px; color: rgba(255,255,255,.75); border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: left; font-size: 13px; font-weight: 650; transition: 160ms ease; }
.partner-nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.partner-nav-item.active { color: #fff; border-color: rgba(255,255,255,.13); background: linear-gradient(135deg, #a91e27, #ca2832); box-shadow: 0 12px 28px rgba(185,31,40,.26); }
.partner-exit { margin-top: auto; padding: 14px; color: rgba(255,255,255,.68); border-top: 1px solid rgba(255,255,255,.1); text-decoration: none; font-size: 12px; }

.partner-main {
  min-height: 100vh;
  margin-left: 238px;
  padding: 30px 34px 46px;
}

.partner-topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.partner-topbar > div:first-child { display: grid; gap: 4px; }
.partner-topbar p { color: var(--red-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.partner-topbar h1 { font-size: 28px; }
.partner-identity { display: flex; align-items: center; gap: 10px; }
.partner-identity > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #292d34; font-size: 12px; font-weight: 800; }
.partner-identity div { display: grid; gap: 3px; }
.partner-identity strong { font-size: 12px; }
.partner-identity small { color: var(--muted); font-size: 10px; }

.partner-tab-view:not([hidden]) { animation: viewEnter 220ms ease both; }
.partner-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.partner-metric-grid article, .portal-panel, .onboarding-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.82); box-shadow: 0 16px 42px rgba(12,13,16,.055), inset 0 1px 0 #fff; backdrop-filter: blur(20px); }
.partner-metric-grid article { min-height: 126px; display: grid; align-content: center; gap: 7px; padding: 20px; }
.partner-metric-grid span, .portal-panel-heading span, .portal-page-heading p { color: var(--muted); font-size: 11px; }
.partner-metric-grid strong { font-size: 24px; }
.partner-metric-grid small { color: var(--green); font-size: 10px; }
.partner-overview-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr); gap: 14px; }
.portal-panel { min-width: 0; }
.portal-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line-soft); }
.portal-panel-heading > div { display: grid; gap: 5px; }
.portal-panel-heading h2 { font-size: 16px; }
.portal-status { width: max-content; display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 999px; color: #5d626a; background: #e9edf1; font-size: 10px; font-weight: 800; }
.portal-status.good { color: #087342; background: #daf3e6; }
.portal-status.warning { color: #9a6411; background: #fff1d6; }
.portal-share-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; }
.portal-qr { width: 176px; aspect-ratio: 1; display: grid; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.portal-qr img { width: 100%; height: 100%; object-fit: contain; }
.portal-share-copy { min-width: 0; display: grid; gap: 14px; align-items: start; }
.portal-share-copy p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.portal-share-copy .copy-field { min-width: 0; }
.portal-share-copy .button { justify-self: start; }
.portal-activity { display: grid; padding: 6px 20px 16px; }
.portal-activity > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.portal-activity > div > div { display: grid; gap: 4px; }
.portal-activity strong { font-size: 12px; }
.portal-activity small { color: var(--muted); font-size: 10px; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #9da3ad; box-shadow: 0 0 0 4px rgba(157,163,173,.13); }
.activity-dot.closed { background: var(--green); box-shadow: 0 0 0 4px rgba(17,131,77,.12); }
.portal-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.portal-page-heading > div { display: grid; gap: 6px; }
.portal-page-heading h2 { font-size: 24px; }
.partner-referral-list { display: grid; }
.partner-referral-list article { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(110px, .65fr) minmax(130px, .7fr) minmax(110px, .6fr); gap: 16px; align-items: center; min-height: 82px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.partner-referral-list article > div { display: grid; gap: 4px; }
.partner-referral-list span, .partner-referral-list time { color: var(--muted); font-size: 11px; }
.partner-referral-list strong { color: var(--ink); font-size: 13px; }
.partner-payment-grid { display: grid; grid-template-columns: minmax(300px, .38fr) minmax(0, 1fr); gap: 14px; }
.payout-method-card { align-self: start; padding-bottom: 18px; }
.payout-method-card > .button { margin: 0 20px; }
.payout-destination { display: flex; gap: 12px; align-items: center; padding: 22px 20px; }
.payout-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #21242a; font-weight: 800; }
.payout-destination div { display: grid; gap: 5px; }
.payout-destination strong { font-size: 13px; }
.payout-destination small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.ledger-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(90px,auto); gap: 14px; align-items: center; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.ledger-row > div { display: grid; gap: 4px; }
.ledger-row span { color: var(--muted); font-size: 10px; }
.ledger-row strong { font-size: 12px; }
.portal-profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
.portal-profile-form label { display: grid; gap: 7px; color: #344054; font-size: 11px; font-weight: 750; }
.portal-profile-form .form-actions { grid-column: 1 / -1; align-items: center; }

.partner-onboarding { max-width: 760px; margin: 44px auto 0; }
.onboarding-progress { display: grid; gap: 8px; margin-bottom: 12px; }
.onboarding-progress > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.onboarding-progress > div { height: 4px; overflow: hidden; border-radius: 999px; background: #dfe3e8; }
.onboarding-progress i { display: block; width: 33%; height: 100%; border-radius: inherit; background: var(--red); transition: width 220ms ease; }
.onboarding-card { padding: 32px; }
.onboarding-copy { display: grid; gap: 7px; margin-bottom: 24px; }
.onboarding-copy > span { color: var(--red-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.onboarding-copy h2 { font-size: 25px; }
.onboarding-copy p { color: var(--muted); font-size: 12px; }
.onboarding-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.onboarding-fields label { display: grid; gap: 7px; color: #344054; font-size: 11px; font-weight: 750; }
.onboarding-agreement { grid-column: 1 / -1; display: flex !important; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 6px; background: #f7f8fa; line-height: 1.5; }
.onboarding-agreement input, .secure-consent input, .approval-check input { width: 17px; min-height: 17px; margin: 1px 0 0; box-shadow: none; }
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--red-dark); font-size: 11px; }

.secure-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  background: rgba(250,251,252,.95);
  box-shadow: 0 34px 100px rgba(8,9,12,.3);
  backdrop-filter: blur(28px) saturate(1.2);
}
.secure-dialog::backdrop { background: rgba(8,9,12,.56); backdrop-filter: blur(7px); }
.secure-dialog form { display: grid; gap: 16px; padding: 24px; }
.dialog-field { display: grid; gap: 7px; color: #344054; font-size: 11px; font-weight: 750; }
.dialog-attachment { background: rgba(255,255,255,.74); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; }
.dialog-heading > div { display: grid; gap: 5px; }
.dialog-heading > div > span { color: var(--red-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.dialog-heading h2 { font-size: 21px; }
.dialog-heading p { max-width: 500px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.payout-method-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #e9edf1; }
.payout-method-switch button { min-height: 39px; color: #5c6169; border: 0; border-radius: 4px; background: transparent; font-size: 12px; font-weight: 750; }
.payout-method-switch button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 4px 14px rgba(12,13,16,.08); }
.secure-provider-form { display: grid; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.secure-provider-form label { display: grid; gap: 6px; color: #344054; font-size: 11px; font-weight: 750; }
.provider-line { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.provider-line > div { display: grid; gap: 3px; }
.provider-line strong { font-size: 12px; }
.provider-line small { color: var(--muted); font-size: 10px; }
.secure-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #4c5969; font-weight: 800; }
.bank-number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.secure-consent, .approval-check { display: flex; align-items: flex-start; gap: 10px; color: #4d535c; font-size: 11px; line-height: 1.5; }
.commission-breakdown { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.breakdown-lines { display: grid; }
.breakdown-lines > div, .breakdown-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); }
.breakdown-lines span { display: grid; gap: 4px; font-size: 12px; }
.breakdown-lines small { color: var(--muted); font-size: 10px; }
.breakdown-lines strong { font-size: 12px; }
.breakdown-total { border-bottom: 0; background: #f3f5f7; }
.breakdown-total span { font-size: 12px; font-weight: 750; }
.breakdown-total strong { font-size: 20px; }

.reward-account-dialog {
  width: min(1120px, calc(100vw - 28px));
  height: min(860px, calc(100vh - 28px));
  max-height: none;
  overflow: hidden;
}

.reward-account-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.reward-account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.74);
}

.reward-account-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.account-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #20242b, #3c424c);
  font-size: 13px;
  font-weight: 820;
}

.reward-account-identity > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reward-account-identity > div > span {
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reward-account-identity h2 { font-size: 21px; }
.reward-account-identity p { color: var(--muted); font-size: 11px; }
.reward-account-identity > .status-pill { margin-left: 8px; }

.reward-account-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background: rgba(242,244,247,.74);
}

.reward-account-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--line-soft);
}

.reward-account-metrics article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  background: rgba(255,255,255,.86);
  border-right: 1px solid var(--line-soft);
}

.reward-account-metrics article:last-child { border-right: 0; }
.reward-account-metrics article.pending { background: rgba(255,247,237,.9); }
.reward-account-metrics span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.reward-account-metrics strong { font-size: 20px; }
.reward-account-metrics small { color: var(--muted); font-size: 9px; line-height: 1.45; }

.reward-account-section {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.84);
}

.account-section-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.account-section-heading > div { display: grid; gap: 4px; }
.account-section-heading > div > span, .account-section-heading > span { color: var(--muted); font-size: 10px; font-weight: 720; }
.account-section-heading > div > span { color: var(--red-dark); text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.account-section-heading h3 { margin: 0; font-size: 15px; }

.account-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
}

.account-status-grid > div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  background: rgba(255,255,255,.7);
}

.account-status-grid span { min-height: 26px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.account-status-grid strong { font-size: 19px; }
.account-status-grid i { height: 4px; overflow: hidden; border-radius: 999px; background: #e4e7eb; }
.account-status-grid b { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.account-status-grid small { color: var(--muted); font-size: 9px; }

.account-lead-table,
.account-payout-history {
  min-width: 0;
  display: grid;
}

.account-lead-head,
.account-lead-table > article {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(90px, .58fr) minmax(130px, .82fr) minmax(85px, .55fr) minmax(90px, .58fr) minmax(95px, .62fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.account-lead-head {
  color: #656a73;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(244,246,248,.8);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.account-lead-table > article {
  min-height: 72px;
  border-bottom: 1px solid var(--line-soft);
}

.account-lead-table > article:last-child { border-bottom: 0; }
.account-lead-table > article > div, .account-lead-table > article > strong { display: grid; gap: 4px; }
.account-lead-table strong { font-size: 11px; }
.account-lead-table small, .account-lead-table time, .account-lead-table article > div span { color: var(--muted); font-size: 9px; }
.lead-account-status { width: max-content; padding: 5px 7px; border-radius: 999px; color: #555b64; background: #eceff2; font-size: 9px; font-weight: 750; }
.lead-account-status.closed { color: var(--green); background: #dff7ea; }

.account-payout-history > article {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .65fr) auto minmax(80px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.account-payout-history > article > div { display: grid; gap: 4px; }
.account-payout-history strong { font-size: 11px; }
.account-payout-history span { color: var(--muted); font-size: 9px; }

.reward-account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.86);
}

.commission-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.commission-tier-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.commission-tier-card > div:first-child { display: flex; align-items: center; gap: 11px; }
.commission-tier-card > div:first-child > div { display: grid; gap: 3px; }
.commission-tier-card > div:first-child strong { font-size: 14px; }
.commission-tier-card > div:first-child small,
.commission-tier-card > p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.tier-index { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 5px; color: #fff; background: #25282e; font-size: 10px; font-weight: 800; }
.commission-tier-card.growth .tier-index { background: var(--red); }
.commission-tier-card.elite .tier-index { background: var(--green); }
.tier-input-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; align-items: end !important; }
.commission-policy-note { display: grid; gap: 5px; margin-bottom: 14px; padding: 14px 16px; border-left: 3px solid var(--red); background: #f7f8fa; }
.commission-policy-note strong { font-size: 12px; }
.commission-policy-note p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.commission-settings-actions { align-items: center; margin-top: 14px; }

.partner-commission-summary {
  display: grid;
  gap: 11px;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #f7f8fa;
}

.detail-commission-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.detail-commission-heading > div { display: grid; gap: 3px; }
.detail-commission-heading span,
.detail-commission-heading small,
.partner-commission-summary p { color: var(--muted); font-size: 10px; }
.detail-commission-heading strong { font-size: 22px; }
.mini-tier-progress { display: grid; gap: 6px; }
.mini-tier-progress > div,
.admin-milestone-progress > div { height: 6px; overflow: hidden; border-radius: 999px; background: #dfe3e7; }
.mini-tier-progress i,
.admin-milestone-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b51f29, #13834d); transition: width 420ms ease; }
.mini-tier-progress span,
.admin-milestone-progress p { color: var(--muted); font-size: 10px; }

.referral-commission-editor {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f8fa;
}

.referral-commission-editor > div:first-child { display: grid; gap: 3px; }
.referral-commission-editor > div:first-child strong { font-size: 13px; }
.referral-commission-editor > div:first-child small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.commission-plan-preview { display: grid; gap: 3px; padding: 11px 12px; border-left: 3px solid var(--red); background: #fff; }
.commission-plan-preview span,
.commission-plan-preview small { color: var(--muted); font-size: 9px; }
.commission-plan-preview strong { font-size: 13px; }

.partner-growth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 32px;
  align-items: center;
  margin-bottom: 14px;
  padding: 26px 28px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #17191e 0%, #25282e 65%, #321418 100%);
  box-shadow: 0 22px 52px rgba(15,16,20,.16), inset 0 1px 0 rgba(255,255,255,.09);
}

.growth-hero-copy { display: grid; gap: 7px; }
.growth-hero-copy > span { color: rgba(255,255,255,.56); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.growth-tier-label { width: max-content; min-height: 25px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-size: 9px; font-weight: 800; }
.growth-hero-copy h2 { font-size: 25px; font-weight: 600; }
.growth-hero-copy h2 strong { color: #ff626b; font-size: 30px; }
.growth-hero-copy p { max-width: 660px; color: rgba(255,255,255,.66); font-size: 11px; line-height: 1.55; }
.growth-hero-score { min-width: 150px; display: grid; justify-items: end; gap: 3px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.13); }
.growth-hero-score span,
.growth-hero-score small { color: rgba(255,255,255,.57); font-size: 9px; }
.growth-hero-score strong { font-size: 34px; }
.growth-hero-progress { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.growth-hero-progress > div { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.growth-hero-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d62a34, #31a66b); transition: width 520ms cubic-bezier(.2,.8,.2,1); }
.growth-hero-progress span { color: rgba(255,255,255,.62); font-size: 9px; font-weight: 750; }

.partner-achievement-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.partner-achievement-summary article { min-height: 112px; display: grid; align-content: center; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.84); box-shadow: 0 14px 36px rgba(12,13,16,.045); }
.partner-achievement-summary span,
.partner-achievement-summary small { color: var(--muted); font-size: 10px; }
.partner-achievement-summary strong { font-size: 24px; }
.partner-achievement-ladder { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.84); box-shadow: 0 18px 44px rgba(12,13,16,.05); }
.achievement-tier { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 118px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.achievement-tier:last-child { border-bottom: 0; }
.achievement-step { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #777d86; border: 1px solid #d9dde2; background: #f4f6f8; font-size: 10px; font-weight: 850; }
.achievement-tier > div { display: grid; gap: 4px; }
.achievement-tier > div > span { color: var(--red-dark); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.achievement-tier h3 { font-size: 17px; }
.achievement-tier p { color: var(--muted); font-size: 10px; }
.achievement-tier > strong { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; color: #6c727c; background: #edf0f3; font-size: 9px; }
.achievement-tier.achieved .achievement-step { color: #fff; border-color: var(--green); background: var(--green); }
.achievement-tier.current { background: linear-gradient(90deg, rgba(185,31,40,.07), rgba(255,255,255,0)); }
.achievement-tier.current > strong { color: #9f1822; background: #fbe0e2; }
.account-rate-badge { color: var(--red-dark); font-size: 22px; }
.admin-milestone-progress { display: grid; gap: 7px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes sidebarIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes workspaceIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 1;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.print-sheet {
  display: none;
}

@media (max-width: 1220px) {
  .commission-tier-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .sidebar {
    width: 92px;
  }

  .workspace {
    margin-left: 92px;
  }

  .brand {
    padding-inline: 0;
    justify-items: center;
  }

  .brand img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    object-position: left center;
    border-radius: 12px;
    background: #050607;
  }

  .brand span,
  .profile div:last-child,
  .nav-item {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

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

  .payout-row {
    grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(100px, .7fr)) minmax(130px, .8fr);
  }

  .payout-row > div:nth-child(2),
  .payout-row > div:nth-child(3) {
    display: none;
  }

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

@media (max-width: 900px) {
  body {
    height: auto;
    overflow-y: auto;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 12px 8px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .brand {
    padding: 0;
  }

  .brand img {
    width: 104px;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .brand span {
    display: none;
  }

  .nav-list {
    display: flex;
    overflow: auto;
    flex: 1;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    padding: 0 9px;
    min-width: 44px;
  }

  .profile {
    display: none;
  }

  .workspace {
    height: auto;
    margin-left: 0;
    overflow: visible;
    padding: 22px 16px;
  }

  .topbar,
  .topbar-actions,
  .panel-header,
  .section-heading,
  .table-tools,
  .qr-layout,
  .lead-controls,
  .booking-card,
  .reward-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    align-items: start;
  }

  .section-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .booking-row {
    grid-template-columns: 72px minmax(0, 1fr) minmax(160px, 0.8fr);
  }

  .booking-state-controls {
    grid-column: 2 / -1;
  }

  .global-lead-list .lead-card,
  .embed-settings-layout,
  .availability-toolbar,
  .date-block-form {
    grid-template-columns: 1fr;
  }

  .weekly-day-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .add-window-button {
    grid-column: 2;
    justify-self: start;
  }

  .date-block-form > .button {
    justify-self: start;
  }

  .embed-preview-shell {
    height: 500px;
  }

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

  .admin-message-layout,
  .partner-overview-grid,
  .partner-payment-grid,
  .commission-tier-grid,
  .partner-achievement-summary,
  .stripe-connection-grid,
  .stripe-endpoints,
  .stripe-key-grid,
  .email-address-grid,
  .smtp-grid {
    grid-template-columns: 1fr;
  }

  .partner-growth-hero { grid-template-columns: 1fr; }
  .growth-hero-score { min-width: 0; justify-items: start; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }

  .partner-sidebar {
    position: static;
    width: 100%;
    min-height: 0;
    padding: 12px;
    flex-direction: row;
    align-items: center;
  }

  .partner-brand { padding: 0; }
  .partner-brand img { width: 116px; }
  .partner-brand span,
  .partner-exit { display: none; }

  .partner-nav {
    display: flex;
    flex: 1;
    overflow-x: auto;
    margin-left: 12px;
  }

  .partner-nav-item {
    min-width: max-content;
    padding: 0 11px;
  }

  .partner-main {
    margin-left: 0;
    padding: 22px 16px 36px;
  }

  .partner-referral-list article {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .reward-account-metrics article {
    border-bottom: 1px solid var(--line-soft);
  }

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

  .account-lead-table,
  .account-payout-history {
    overflow-x: auto;
  }

  .account-lead-head,
  .account-lead-table > article {
    min-width: 820px;
  }

  .account-payout-history > article {
    min-width: 660px;
  }

  .domain-control input,
  .search-field {
    width: 100%;
  }

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

  .booking-page {
    padding: 18px;
    background: linear-gradient(180deg, #090a0d 0 180px, #f4f5f7 180px);
  }

  .booking-brand img {
    width: 132px;
  }

  .booking-header-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
  }

  .booking-theme-switch button {
    padding-inline: 9px;
  }

  .booking-card {
    padding: 20px;
  }

  .booking-copy h1 {
    font-size: 32px;
  }
}

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

  .settings-subnav {
    position: static;
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .settings-subnav-item {
    min-width: 194px;
    min-height: 64px;
    scroll-snap-align: start;
  }

  .message-subnav {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .message-subnav-item {
    min-width: max-content;
    scroll-snap-align: start;
  }

  .admin-conversation-list {
    max-height: 340px;
  }
}

@media (max-width: 560px) {
  .tier-input-row { grid-template-columns: 1fr; }
  .partner-growth-hero { padding: 21px 18px; }
  .growth-hero-copy h2 { font-size: 21px; }
  .growth-hero-copy h2 strong { font-size: 25px; }
  .achievement-tier { grid-template-columns: 38px minmax(0, 1fr); padding: 17px 15px; }
  .achievement-tier > strong { grid-column: 2; justify-self: start; }

  .email-notification-flow {
    grid-template-columns: 1fr;
  }

  .email-notification-flow > div + div {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  h1 {
    font-size: 28px;
  }

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

  .booking-page {
    padding: 12px;
  }

  .booking-brand {
    gap: 12px;
    margin-bottom: 22px;
  }

  .booking-brand img {
    width: 118px;
  }

  .booking-header-actions {
    display: flex;
    gap: 8px;
  }

  .booking-admin-link {
    font-size: 12px;
  }

  .booking-card {
    gap: 20px;
    padding: 16px;
  }

  .booking-copy {
    padding: 4px 0;
  }

  .booking-type-picker,
  .booking-form {
    padding: 16px;
  }

  .public-booking-type {
    padding: 14px;
  }

  .public-type-header {
    align-items: flex-start;
  }

  .public-type-header strong,
  .public-type-description,
  .public-type-meta {
    overflow-wrap: anywhere;
  }

  .booking-row,
  .booking-state-controls,
  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-row {
    gap: 12px;
  }

  .booking-state-controls {
    grid-column: auto;
  }

  .booking-date-block {
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: start;
  }

  .section-actions,
  .booking-type-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section-actions .button,
  .booking-type-actions .button,
  .booking-type-actions .icon-button {
    width: 100%;
  }

  .selected-booking-summary {
    display: grid;
  }

  .view-filters,
  .reward-partner-row,
  .settings-actions,
  .weekly-day-row,
  .date-block-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .partner-metric-grid,
  .portal-profile-form,
  .onboarding-fields,
  .portal-share-layout,
  .partner-referral-list article,
  .message-composer,
  .bank-number-grid {
    grid-template-columns: 1fr;
  }

  .partner-topbar,
  .portal-page-heading,
  .partner-access-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-identity { align-self: flex-start; }
  .portal-qr { width: min(176px, 100%); }

  .portal-profile-form .form-actions,
  .onboarding-agreement,
  .message-composer textarea,
  .composer-actions {
    grid-column: auto;
  }

  .message-bubble { max-width: 90%; }
  .thread-heading,
  .thread-actions { align-items: flex-start; flex-direction: column; }
  .stripe-actions { align-items: stretch; flex-direction: column; }
  .stripe-credentials-heading,
  .stripe-credential-actions { align-items: stretch; flex-direction: column; }
  .payout-row > div:nth-child(2),
  .payout-row > div:nth-child(3) { display: grid; }
  .payout-row-action { justify-items: stretch; }

  .reward-account-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .reward-account-header,
  .account-section-heading,
  .reward-account-actions {
    align-items: flex-start;
  }

  .reward-account-identity {
    align-items: flex-start;
  }

  .reward-account-identity > .status-pill {
    display: none;
  }

  .reward-account-metrics,
  .account-status-grid {
    grid-template-columns: 1fr;
  }

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

  .availability-heading-row,
  .availability-actions,
  .availability-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .day-window-row {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  }

  .day-window-row .remove-window-button {
    grid-column: 3;
    justify-self: end;
    width: 32px;
    height: 32px;
  }

  .add-window-button {
    grid-column: auto;
  }

  .date-block-row {
    gap: 5px;
  }

  .settings-actions .button {
    width: 100%;
  }

  .embed-preview-shell {
    height: 440px;
  }
}

@media print {
  body > .app-shell {
    display: none;
  }

  .print-sheet {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: #fff;
    color: #111827;
    font-family: Inter, Arial, sans-serif;
  }

  .print-card {
    width: 7.5in;
    min-height: 9.5in;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    border: 2px solid #111827;
    padding: 0.65in;
    text-align: center;
  }

  .print-brand {
    color: #d71920;
    font-weight: 900;
    font-size: 24px;
  }

  .print-card h2 {
    font-size: 42px;
    line-height: 1.08;
  }

  .print-card p {
    font-size: 19px;
  }

  #printQrMount canvas,
  #printQrMount img {
    width: 3.6in;
    height: 3.6in;
  }

  #printReferralName {
    font-weight: 800;
  }

  #printReferralLink {
    font-size: 12px;
  }
}

/* Sign-in gate ----------------------------------------------------------- */

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f5f7;
  overflow-y: auto;
}

.auth-gate[hidden] { display: none; }

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid #e4e7ea;
  border-radius: 12px;
  padding: 34px 32px 28px;
  box-shadow: 0 18px 48px rgba(23, 25, 30, .09);
}

.auth-logo { display: block; width: 152px; max-width: 100%; height: auto; margin-bottom: 26px; }

.auth-card h1 { margin: 0; font-size: 21px; line-height: 1.3; color: #17191e; }
.auth-intro { margin: 6px 0 24px; font-size: 14px; color: #606773; }

.auth-field { display: block; margin-bottom: 16px; }
.auth-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #3f4650; }

.auth-field input {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: #17191e;
  background: #fff;
  border: 1px solid #d3d8de;
  border-radius: 7px;
}

.auth-field input:focus-visible { outline: 2px solid #b91f28; outline-offset: 1px; border-color: #b91f28; }

.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 68px; }

.auth-reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 6px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #606773;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.auth-reveal:hover { color: #b91f28; }

.auth-feedback { margin: 0 0 14px; min-height: 18px; font-size: 13px; line-height: 1.5; color: #b91f28; }
.auth-feedback:empty { margin-bottom: 0; }

.auth-submit { width: 100%; justify-content: center; }
.auth-submit[disabled] { opacity: .6; cursor: progress; }

.auth-note { margin: 20px 0 0; font-size: 12px; line-height: 1.5; color: #8a9099; }

@media (max-width: 480px) {
  .auth-card { padding: 26px 20px 22px; }
}

/* Signed-in identity and sign out ---------------------------------------- */

.profile-identity { min-width: 0; }
.profile-identity strong,
.profile-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-signout {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  cursor: pointer;
}

.profile-signout:hover {
  color: #fff;
  background: #b91f28;
  border-color: #b91f28;
}

.profile-signout:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
