:root {
  --page: #e8ebf3;
  --nav: #273c60;
  --nav-active: #314d79;
  --nav-text: #eef5ff;
  --nav-muted: #aebbd1;
  --workspace: #fbfcfe;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --line: #e5ecf3;
  --line-dark: #d8e2eb;
  --text: #1b2734;
  --muted: #6f7d8c;
  --blue: #3ba7e0;
  --blue-soft: #e8f7ff;
  --green: #28a56d;
  --green-soft: #e7f7ef;
  --amber: #f5a524;
  --amber-soft: #fff4dc;
  --red: #d85d5d;
  --red-soft: #fff0f0;
  --teal: #52b7ad;
  --shadow: 0 26px 70px rgba(30, 42, 62, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

h3 {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.mobile-bar {
  display: none;
}

.mobile-brand {
  display: grid;
  width: 112px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  padding: 4px 7px;
}

.mobile-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-frame {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 172px minmax(0, 1fr);
  background: var(--surface);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  background: var(--nav);
  color: var(--nav-text);
  padding: 22px 15px 20px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 142px;
  min-height: 34px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  padding: 5px 7px;
  color: #fff;
}

.app-logo {
  display: block;
  width: 100%;
  max-width: 128px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 31px;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--nav-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 0 8px;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: var(--nav-active);
  color: #fff;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-badge {
  margin-left: auto;
  border: 1px solid rgba(82, 183, 173, 0.55);
  border-radius: 4px;
  color: #6bd0c8;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
}

.nav-item.active .nav-badge,
.nav-item:hover .nav-badge {
  background: rgba(82, 183, 173, 0.18);
  color: #bff4ef;
}

.side-subnav {
  display: grid;
  gap: 3px;
  margin: -1px 0 4px 23px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.side-subnav a {
  display: flex;
  min-height: 24px;
  align-items: center;
  border-radius: 4px;
  color: var(--nav-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
}

.side-subnav a.active,
.side-subnav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-reset {
  margin-top: auto;
}

.sidebar-user {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 11px 8px;
}

.sidebar-user strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user span {
  overflow: hidden;
  color: var(--nav-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: currentColor;
  opacity: 0.95;
}

.dashboard-icon::before,
.calendar-icon::before,
.booking-icon::before,
.guest-icon::before,
.payment-icon::before,
.invoice-icon::before,
.report-icon::before,
.expense-icon::before,
.settings-icon::before,
.logout-icon::before {
  position: absolute;
  content: "";
}

.dashboard-icon::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.calendar-icon::before,
.booking-icon::before,
.payment-icon::before,
.invoice-icon::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.calendar-icon::before {
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16);
}

.guest-icon::before {
  top: 1px;
  left: 3px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 8px 0 -2px currentColor;
}

.payment-icon::before {
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.14);
}

.report-icon::before {
  right: 2px;
  bottom: 1px;
  left: 2px;
  height: 9px;
  border-bottom: 1.5px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 1px 5px / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 2px / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 0 / 2px 9px no-repeat;
}

.expense-icon::before {
  inset: 1px 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.13),
    0 4px 0 -2px currentColor;
}

.settings-icon::before {
  inset: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -5px 0 -3px currentColor,
    0 5px 0 -3px currentColor,
    5px 0 0 -3px currentColor,
    -5px 0 0 -3px currentColor;
}

.logout-icon::before {
  top: 2px;
  left: 1px;
  width: 8px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-right: 0;
  border-radius: 2px 0 0 2px;
  box-shadow: 5px 4px 0 -4px currentColor;
}

.logout-icon::after {
  position: absolute;
  top: 5px;
  right: 1px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.support-icon::before {
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  content: "";
}

.support-icon::after {
  position: absolute;
  bottom: 1px;
  left: 5px;
  width: 5px;
  height: 5px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  background: transparent;
  content: "";
  transform: skew(-22deg);
}

.workspace {
  display: grid;
  min-width: 0;
  min-height: 100vh;
  grid-template-rows: 58px 1fr;
  background: var(--workspace);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 20px 0 16px;
}

.title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.breadcrumb {
  margin: 0 0 2px;
  color: #8a96a6;
  font-size: 10px;
  font-weight: 500;
}

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #7a8796;
  padding: 0;
}

.icon-button.small {
  width: 27px;
  height: 27px;
  border-color: var(--line);
  background: var(--surface);
}

.icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.top-actions,
.step-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trial-countdown {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 4px 10px;
}

.trial-countdown strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.trial-countdown span {
  display: grid;
  gap: 1px;
  color: #607286;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}

.trial-countdown small {
  color: #9aa6b4;
  font-size: 9px;
  font-weight: 500;
}

.trial-countdown.amber {
  border-color: #efd79a;
  background: #fff9eb;
}

.trial-countdown.red {
  border-color: #efc1c1;
  background: var(--red-soft);
}

.property-switcher select {
  min-height: 30px;
  max-width: 190px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  outline: 0;
  padding: 0 28px 0 9px;
}

.step-nav {
  flex: 1;
  justify-content: center;
  min-width: 0;
  gap: 7px;
  color: #95a1b2;
}

.step-link {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #7c8998;
  font-size: 10px;
  font-weight: 700;
  padding: 0 10px 0 8px;
}

.step-count {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: #6c7a89;
  font-size: 9px;
}

.step-label {
  white-space: nowrap;
}

.step-arrow {
  color: #b4bdc9;
  font-size: 17px;
  line-height: 1;
}

.step-link.current {
  border-color: #bcdedb;
  background: #e9f7f5;
  color: #16394b;
  box-shadow: inset 0 -2px 0 var(--teal);
}

.step-link.current .step-count {
  background: var(--teal);
  color: #fff;
}

.step-link.is-complete {
  border-color: #cedbe8;
  background: #f6f9fc;
  color: #40566c;
}

.step-link.is-complete .step-count {
  background: var(--nav);
  color: #fff;
}

.primary-button,
.ghost-button,
.text-action,
.danger-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 13px;
}

.primary-button {
  border: 0;
  background: var(--teal);
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #526171;
}

.danger-button {
  border: 1px solid #efc1c1;
  background: var(--red-soft);
  color: #9c3a3a;
}

.text-action {
  min-height: 0;
  border: 0;
  background: transparent;
  color: #607286;
  padding: 0;
}

.wide {
  width: 100%;
}

.content {
  min-width: 0;
  min-height: 0;
  padding: 22px 24px 24px;
}

.dashboard-content,
.invoice-main,
.report-content {
  display: grid;
  gap: 16px;
}

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

.metric-strip.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 13px 14px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: #9aa6b5;
  font-size: 10px;
}

.dashboard-grid,
.two-column-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
}

.calendar-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 16px;
}

.booking-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 16px;
}

.invoice-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 16px;
}

.expenses-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 16px;
}

.expenses-main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.panel-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}

.panel-head p,
.section-title p {
  color: var(--muted);
  font-size: 10px;
}

.small-head {
  min-height: 44px;
}

.table-list {
  display: grid;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.15fr) 0.62fr 0.72fr 0.58fr 0.7fr;
  min-height: 51px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #475667;
  font-size: 11px;
  padding: 0 15px;
}

.data-row:last-child,
.document-row:last-child {
  border-bottom: 0;
}

.header-row {
  min-height: 32px;
  background: var(--soft);
  color: #8a96a6;
  font-size: 10px;
  font-weight: 600;
}

.data-row strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.data-row small {
  display: block;
  color: #93a0af;
  font-size: 10px;
  font-weight: 400;
}

.bookings-table .data-row {
  grid-template-columns: minmax(135px, 1fr) minmax(140px, 1.1fr) 0.8fr 0.7fr 0.7fr 0.7fr auto;
}

.money-table .data-row {
  grid-template-columns: minmax(140px, 1fr) 1fr 0.62fr 0.6fr 0.7fr;
}

.sales-table .data-row {
  grid-template-columns: minmax(128px, 0.85fr) minmax(170px, 1.25fr) 0.72fr 0.62fr 0.58fr;
}

.customers-table .data-row {
  grid-template-columns: minmax(160px, 1.2fr) 0.8fr 0.75fr 0.45fr 0.7fr 44px;
}

.customer-history-table .data-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(170px, 1fr) 0.8fr 0.58fr 0.65fr 44px;
}

.customer-sales-table .data-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.2fr) 0.8fr 0.58fr 0.6fr;
}

.statement-table .data-row {
  grid-template-columns: 0.55fr 0.62fr 0.72fr minmax(220px, 1.4fr) 0.55fr;
}

.expenses-table {
  overflow-x: auto;
}

.expenses-table .data-row {
  min-width: 730px;
  gap: 7px;
  grid-template-columns: 66px minmax(124px, 1fr) 96px 76px 66px 58px 70px 62px 38px;
}

.expenses-table .data-row > :last-child {
  position: sticky;
  right: 0;
  justify-self: end;
  background: var(--surface);
}

.expenses-table .header-row > :last-child {
  background: var(--soft);
}

.expenses-table .chip {
  width: auto;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.suppliers-table .data-row {
  grid-template-columns: minmax(170px, 1.4fr) minmax(110px, 0.8fr) minmax(120px, 0.8fr) 96px 76px 46px;
}

.chip {
  display: inline-flex;
  width: max-content;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
}

.chip.green {
  background: var(--green-soft);
  color: #13754b;
}

.chip.amber {
  background: var(--amber-soft);
  color: #8a5b00;
}

.chip.blue {
  background: var(--blue-soft);
  color: #1874a6;
}

.chip.red {
  background: var(--red-soft);
  color: #9c3a3a;
}

.stacked-column,
.action-stack,
.detail-stack,
.form-stack,
.compact-stack {
  display: grid;
  min-width: 0;
}

.stacked-column {
  gap: 16px;
}

.detail-stack {
  gap: 0;
  padding: 4px 15px 8px;
}

.detail-stack div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}

.detail-stack div:last-child {
  border-bottom: 0;
}

.detail-stack span {
  color: var(--muted);
  font-size: 10px;
}

.detail-stack strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.warning-text {
  color: #a26600 !important;
}

.success-text {
  color: #13754b !important;
}

.action-stack {
  gap: 8px;
  padding: 12px 15px;
}

.attention-list {
  display: grid;
  padding: 8px 14px 12px;
}

.attention-list div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.attention-list div:last-child {
  border-bottom: 0;
}

.attention-list strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.attention-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.dot,
.legend-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot {
  margin-top: 4px;
}

.dot.amber,
.legend-dot.amber {
  background: var(--amber);
}

.dot.red,
.legend-dot.red {
  background: var(--red);
}

.dot.blue,
.legend-dot.blue {
  background: var(--blue);
}

.dot.green,
.legend-dot.green {
  background: var(--green);
}

.count-pill {
  display: grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1874a6;
  font-size: 10px;
  font-weight: 700;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 12px;
}

.room {
  display: grid;
  min-height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #536274;
  font-size: 11px;
  font-weight: 700;
}

.room.ready {
  background: var(--green-soft);
  border-color: #c9ebd9;
}

.room.occupied {
  background: var(--blue-soft);
  border-color: #c8e9f8;
}

.room.hold,
.room.needs_cleaning {
  background: var(--amber-soft);
  border-color: #f6dfad;
}

.timeline-row,
.document-row {
  display: grid;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #5c6b7a;
  font-size: 11px;
  padding: 0 15px;
}

.timeline-row {
  grid-template-columns: 70px minmax(150px, 220px) 1fr auto;
}

.document-row {
  grid-template-columns: 130px 1fr 80px auto;
}

.timeline-row strong,
.document-row strong {
  color: var(--text);
  font-weight: 600;
}

.timeline-row small,
.document-row small {
  color: var(--muted);
}

.calendar-shell {
  display: grid;
  min-width: 0;
  grid-template-rows: 54px 1fr;
}

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

.segmented-control {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.segmented-control a,
.segmented-control button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #6e7c8b;
  font-size: 10px;
  font-weight: 600;
  padding: 0 11px;
}

.segmented-control a:last-child,
.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control .selected {
  background: var(--nav);
  color: #fff;
}

.calendar-range {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 11px;
}

.search-field {
  display: flex;
  width: 155px;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 0 8px;
}

.search-field span {
  width: 9px;
  height: 9px;
  border: 1.5px solid #96a3b1;
  border-radius: 50%;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #657384;
  font-size: 10px;
}

.calendar-grid {
  position: relative;
  display: grid;
  min-height: 536px;
  grid-template-columns: 132px repeat(10, minmax(58px, 1fr));
  grid-auto-rows: 48px;
  overflow-x: auto;
  background:
    linear-gradient(to right, transparent 131px, var(--line) 132px, transparent 133px),
    repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 132px) / 10 - 1px), var(--line) calc((100% - 132px) / 10)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--line) 48px);
}

.cal-cell {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #7e8b9b;
  font-size: 10px;
  font-weight: 600;
  padding: 0 10px;
}

.cal-corner,
.cal-day {
  min-height: 36px;
  background: var(--soft);
}

.cal-day {
  justify-content: center;
  border-left: 1px solid var(--line);
}

.cal-day.today {
  color: var(--text);
  background: #eef7fc;
}

.room-name {
  display: flex;
  grid-column: 1;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #4d5d6e;
  font-size: 11px;
  font-weight: 600;
  padding: 0 11px;
  z-index: 2;
}

.booking-block {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  align-self: center;
  height: 27px;
  margin: 0 5px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 3;
}

.booking-block.green {
  background: var(--green);
}

.booking-block.blue {
  background: var(--blue);
}

.booking-block.amber {
  background: var(--amber);
  color: #553800;
}

.booking-block.red {
  background: var(--red);
}

.legend {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: #657384;
  font-size: 10px;
  padding: 13px 15px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-stack {
  gap: 14px;
}

.form-section {
  display: grid;
  grid-template-columns: 40px 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.form-section.is-active {
  border-color: #b8deda;
  box-shadow: 0 12px 34px rgba(39, 60, 96, 0.08);
}

.form-section.is-active .section-number {
  background: var(--teal);
  color: #fff;
}

.section-number {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  margin: 23px 0 0 15px;
  border-radius: 50%;
  background: var(--soft);
  color: #6f7d8c;
  font-size: 11px;
  font-weight: 700;
}

.section-body {
  min-width: 0;
  padding: 18px 18px 18px 8px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.field[hidden],
[data-non-resident-field][hidden],
[data-resident-id-field][hidden] {
  display: none;
}

.field span {
  color: #7f8c9b;
  font-size: 10px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #415062;
  font-size: 11px;
  outline: 0;
  padding: 0 9px;
}

.field textarea {
  min-height: 68px;
  padding: 8px 9px;
  resize: vertical;
}

.customer-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.booking-customer-picker {
  margin-bottom: 12px;
}

.picker-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  gap: 6px;
}

.customer-results {
  position: absolute;
  z-index: 18;
  top: 54px;
  right: 0;
  left: 0;
  display: grid;
  max-height: 226px;
  overflow-y: auto;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(38, 52, 75, 0.14);
}

.customer-results[hidden] {
  display: none;
}

.customer-results button {
  display: grid;
  min-height: 45px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #445367;
  padding: 8px 10px;
  text-align: left;
}

.customer-results button:last-child {
  border-bottom: 0;
}

.customer-results button:hover {
  background: var(--soft);
}

.customer-results strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.customer-results small,
.customer-no-results {
  color: #8794a5;
  font-size: 10px;
}

.customer-no-results {
  padding: 12px 10px;
}

.inline-customer-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfdff;
  padding: 10px;
}

.inline-customer-panel[hidden] {
  display: none;
}

.customer-profile-content {
  display: grid;
  align-content: start;
  gap: 16px;
}

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

.customer-profile-grid div {
  min-height: 66px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
}

.customer-profile-grid div:nth-child(3n) {
  border-right: 0;
}

.customer-profile-grid div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.customer-profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.customer-profile-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.customer-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.customer-account-grid div {
  min-height: 58px;
  border-right: 1px solid var(--line);
  padding: 12px 15px;
}

.customer-account-grid div:nth-child(4n),
.customer-account-grid div:last-child {
  border-right: 0;
}

.customer-account-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.customer-account-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

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

.wide-3 {
  grid-column: span 3;
}

.summary-total {
  border-bottom: 1px solid var(--line);
  padding: 18px 15px;
}

.summary-total span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.summary-total strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.extras-builder {
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfdff;
  padding: 10px;
}

.extras-builder-head {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.extras-builder-head p {
  color: var(--muted);
  font-size: 10px;
}

.extra-rows {
  display: grid;
  gap: 8px;
}

.extra-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(110px, 1fr) 58px 80px 84px 30px;
  gap: 7px;
  align-items: end;
}

.sale-line-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 112px minmax(150px, 1fr) 58px 78px 78px 30px;
  gap: 7px;
  align-items: end;
}

.sales-lines-builder {
  margin-bottom: 0;
}

.sales-total-preview {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #657384;
  font-size: 11px;
  padding-top: 8px;
}

.sales-total-preview strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.account-billing-box {
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfdff;
  padding: 10px;
}

.statement-metrics {
  padding: 14px;
}

.extra-remove {
  margin-bottom: 0;
}

.payment-grid {
  padding-top: 2px;
}

.stay-adjust-form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}

.stay-adjust-form .ghost-button {
  justify-self: end;
  width: auto;
  min-width: 138px;
}

.danger-form {
  border-top: 1px solid var(--line);
}

.settings-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
}

.settings-main,
.settings-side {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
}

.settings-list {
  display: grid;
}

.scroll-list {
  overflow-x: auto;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 108px 78px 92px 48px 60px 96px;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-header {
  min-height: 34px;
  background: var(--soft);
  color: #8a96a6;
  font-size: 10px;
  font-weight: 700;
  padding-top: 0;
  padding-bottom: 0;
}

.extra-settings-row {
  min-width: 920px;
  grid-template-columns: minmax(150px, 1.15fr) 124px 82px 112px 58px 70px 54px 64px 112px;
}

.room-settings-row {
  min-width: 830px;
  grid-template-columns: minmax(130px, 1.05fr) 132px 76px 92px 114px 62px 112px;
}

.property-settings-row {
  grid-template-columns: minmax(150px, 1.1fr) minmax(140px, 0.9fr) minmax(150px, 0.95fr) 96px minmax(150px, 0.9fr);
}

.team-settings-row {
  grid-template-columns: minmax(130px, 0.9fr) 100px minmax(140px, 0.9fr) minmax(190px, 1.25fr) 76px;
}

.property-settings-row strong,
.team-settings-row strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.property-settings-row small,
.team-settings-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.settings-card-form {
  display: grid;
  gap: 12px;
  padding: 14px 15px 15px;
}

.property-logo-form {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.property-logo-thumb,
.property-logo-placeholder {
  width: 42px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.property-logo-thumb {
  object-fit: contain;
  padding: 3px;
}

.property-logo-placeholder {
  display: grid;
  place-items: center;
  color: #9aa6b5;
  font-size: 9px;
  font-weight: 700;
}

.logo-upload-button {
  min-height: 26px;
  cursor: pointer;
  padding-inline: 10px;
}

.logo-upload-button input {
  display: none;
}

.room-settings-add {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 1fr) 74px 98px 68px 112px 82px;
  gap: 8px;
  align-items: end;
}

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

.settings-note {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: #607286;
  font-size: 10px;
  padding: 9px 10px;
}

.settings-summary p {
  color: #607286;
  font-size: 10px;
}

.compact-field span {
  display: none;
}

.settings-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.settings-actions .ghost-button,
.settings-actions .danger-button {
  min-height: 27px;
  padding: 0 7px;
}

.package-card-list {
  display: grid;
  gap: 12px;
  padding: 14px 15px 16px;
}

.package-editor-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 13px;
}

.package-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.package-editor-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.package-editor-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.package-items-box {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  padding: 10px;
}

.package-item-rows {
  display: grid;
  gap: 7px;
}

.package-item-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(150px, 1.3fr) 62px 31px;
  gap: 7px;
  align-items: end;
}

.mini-form .package-item-row {
  grid-template-columns: minmax(0, 1fr) 52px 31px;
}

.mini-form .package-item-row .field:first-child {
  grid-column: 1 / -1;
}

.package-item-row .extra-remove {
  align-self: end;
}

.switch-field {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  color: #607286;
  font-size: 10px;
  font-weight: 700;
}

.switch-field input {
  width: 14px;
  height: 14px;
  accent-color: var(--teal);
}

.inline-switch {
  margin: -2px 0 1px;
}

.settings-summary {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 15px;
}

.settings-mini-list {
  display: grid;
  padding: 6px 15px 0;
}

.settings-mini-row {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.settings-mini-row:last-child {
  border-bottom: 0;
}

.settings-mini-row strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.settings-mini-row span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.multi-checks {
  display: grid;
  max-height: 124px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
}

.supplier-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  gap: 7px;
  align-items: end;
}

.add-supplier-button {
  margin-bottom: 0;
}

.vat-help {
  margin-top: -2px;
  color: #697789;
  font-size: 10px;
  line-height: 1.45;
}

.expense-tax-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.expense-tax-preview div {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 9px;
}

.expense-tax-preview span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.expense-tax-preview strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.vat-input-cell input {
  width: 100%;
  min-height: 25px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  outline: 0;
  padding: 0 7px;
}

.vat-input-cell input[readonly] {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
}

.vat-input-cell strong {
  display: none;
}

.supplier-form-panel {
  width: min(100%, 760px);
}

.supplier-form .switch-field {
  margin-top: 2px;
}

.expense-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

.expense-paper {
  margin: 14px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.expense-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.expense-detail-grid div,
.expense-notes {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.expense-detail-grid div:nth-child(3n) {
  border-right: 0;
}

.expense-detail-grid div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.expense-detail-grid span,
.expense-notes span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.expense-detail-grid strong,
.expense-notes strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.expense-notes {
  border-right: 0;
}

.expense-notes:last-child {
  border-bottom: 0;
}

.attachment-box {
  display: grid;
  gap: 9px;
  padding: 14px 15px;
}

.attachment-box strong {
  color: var(--text);
  font-size: 12px;
}

.attachment-box span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.locked-addon-panel {
  width: min(100%, 420px);
}

.locked-addon-body {
  display: grid;
}

.tax-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 15px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5e6c7c;
  font-size: 10px;
  font-weight: 700;
  padding: 0 8px;
}

.platform-content {
  display: grid;
  gap: 16px;
}

.traffic-head {
  align-items: flex-start;
  min-height: 62px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.platform-grid,
.traffic-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 16px;
}

.platform-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-filter-select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  outline: 0;
  padding: 0 28px 0 9px;
}

.compact-date {
  width: 126px;
  gap: 2px;
}

.compact-date input {
  min-height: 28px;
}

.compact-select {
  width: 154px;
  gap: 2px;
}

.compact-select select {
  min-height: 28px;
  width: 100%;
}

.traffic-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.traffic-kpi-grid article {
  min-height: 82px;
  border-right: 1px solid var(--line);
  padding: 15px;
}

.traffic-kpi-grid article:last-child {
  border-right: 0;
}

.traffic-kpi-grid span,
.journey-summary span,
.recommendation-list strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.traffic-kpi-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.traffic-kpi-grid small {
  display: block;
  margin-top: 7px;
  color: #94a1b0;
  font-size: 10px;
}

.platform-chart {
  display: grid;
  height: 246px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  padding: 22px 18px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent 0, transparent 24%, rgba(229, 236, 243, 0.8) 25%, transparent 26%),
    linear-gradient(to bottom, transparent 0, transparent 49%, rgba(229, 236, 243, 0.8) 50%, transparent 51%),
    linear-gradient(to bottom, transparent 0, transparent 74%, rgba(229, 236, 243, 0.8) 75%, transparent 76%);
}

.platform-chart.large {
  height: 285px;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  border-bottom: 0;
}

.traffic-chart {
  overflow-x: auto;
}

.chart-column {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 18px;
  gap: 7px;
  align-items: end;
}

.chart-column span {
  display: block;
  min-height: 18px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #52b7ad, #3ba7e0);
}

.chart-column small {
  color: #8b98a8;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.platform-summary-row,
.billing-plan-strip,
.gateway-grid,
.auth-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.platform-summary-row span,
.billing-plan-strip article,
.gateway-grid div {
  min-height: 74px;
  border-right: 1px solid var(--line);
  padding: 14px 15px;
}

.platform-summary-row span:last-child,
.billing-plan-strip article:last-child,
.gateway-grid div:last-child {
  border-right: 0;
}

.platform-summary-row strong,
.billing-plan-strip strong,
.gateway-grid strong,
.workspace-payment-card > strong,
.auth-flow strong,
.auth-checklist strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.platform-summary-row small,
.billing-plan-strip small,
.gateway-grid small,
.workspace-payment-card > small,
.auth-flow small,
.auth-checklist small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

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

.addon-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

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

.addon-card-head span:first-child,
.addon-summary dt {
  color: #65758a;
  font-size: 10px;
  font-weight: 800;
}

.addon-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.addon-card p {
  min-height: 34px;
  color: #66758a;
  font-size: 11px;
  line-height: 1.5;
}

.addon-summary {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.addon-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.addon-summary div:last-child {
  border-bottom: 0;
}

.addon-summary dt,
.addon-summary dd {
  margin: 0;
}

.addon-summary dd {
  color: #172033;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.addon-note {
  margin: 0 15px 15px;
}

.source-list {
  display: grid;
  gap: 13px;
  padding: 14px 15px 16px;
}

.source-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
}

.source-list span,
.billing-plan-strip span,
.gateway-grid span,
.workspace-payment-card > span,
.auth-flow span,
.auth-checklist span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.source-list strong {
  color: var(--text);
  font-size: 11px;
}

.source-list .bar-track {
  grid-column: 1 / -1;
}

.bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.platform-timeline {
  grid-template-columns: 70px minmax(160px, 220px) 1fr 76px;
}

.funnel-list {
  display: grid;
  border-left: 1px solid var(--line);
}

.funnel-list div {
  min-height: 57px;
  border-bottom: 1px solid var(--line);
  padding: 11px 15px;
}

.funnel-list div:last-child {
  border-bottom: 0;
}

.funnel-list span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.funnel-list strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.funnel-list small {
  display: block;
  margin-top: 4px;
  color: #94a1b0;
  font-size: 10px;
}

.source-table .data-row {
  grid-template-columns: minmax(150px, 1.2fr) 0.5fr 0.45fr 0.48fr 0.48fr 70px;
}

.location-table .data-row {
  grid-template-columns: minmax(150px, 1.2fr) 0.5fr 0.45fr 0.48fr 70px;
}

.top-page-row {
  grid-template-columns: 82px 1fr 60px auto;
}

.visitor-picker {
  min-width: 228px;
}

.visitor-picker select {
  width: 100%;
}

.visitor-journey-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 326px;
}

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

.visitor-table .data-row {
  grid-template-columns: minmax(150px, 1.15fr) minmax(110px, 0.78fr) 0.38fr 0.45fr 0.62fr 0.78fr;
}

.visitor-link-row {
  color: inherit;
  text-decoration: none;
}

.visitor-link-row:hover,
.visitor-link-row.selected {
  background: #f7fbff;
}

.journey-panel {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: #fbfdff;
}

.journey-summary {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.journey-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 17px;
}

.journey-summary small {
  display: block;
  margin-top: 6px;
  color: #8f9cab;
  font-size: 10px;
}

.visitor-timeline {
  display: grid;
  padding: 12px 15px 16px;
}

.journey-event {
  display: grid;
  grid-template-columns: 38px 12px minmax(0, 1fr) 28px;
  gap: 9px;
  min-height: 46px;
  align-items: start;
}

.journey-event time {
  color: #8b98a8;
  font-size: 10px;
  font-weight: 700;
}

.journey-event > span {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(82, 183, 173, 0.14);
}

.journey-event strong {
  display: block;
  color: var(--text);
  font-size: 11px;
}

.journey-event small {
  display: block;
  margin-top: 3px;
  color: #8f9cab;
  font-size: 10px;
}

.journey-event em {
  color: #3b4858;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.recommendation-list {
  display: grid;
}

.recommendation-list article {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 14px 15px;
}

.recommendation-list article:last-child {
  border-bottom: 0;
}

.recommendation-list strong {
  display: block;
  color: var(--text);
  font-size: 11px;
}

.recommendation-list p {
  margin-top: 6px;
  color: #6e7b8b;
  font-size: 10px;
  line-height: 1.5;
}

.page-intent-table .data-row {
  grid-template-columns: minmax(190px, 1.4fr) 0.5fr 0.52fr 0.62fr 0.55fr;
}

.traffic-two-column {
  grid-template-columns: minmax(0, 1fr) 326px;
}

.empty-state.tight {
  min-height: 96px;
  padding: 18px;
  color: #8b98a8;
  font-size: 11px;
}

.platform-accounts-table {
  overflow-x: auto;
}

.platform-accounts-table .data-row {
  min-width: 900px;
  grid-template-columns: minmax(190px, 1.35fr) minmax(130px, 1fr) 76px 66px 66px 110px 144px;
}

.account-business-link {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

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

.inline-action-form {
  display: inline-flex;
}

.inline-action-form .ghost-button,
.inline-action-form .danger-button {
  min-height: 26px;
  padding-inline: 10px;
}

.danger-zone {
  border-color: #efc1c1;
}

.danger-copy,
.protected-note {
  color: #7b5660;
  font-size: 10px;
  line-height: 1.5;
  padding: 0 15px 12px;
}

.protected-note {
  color: #8a5b00;
}

.platform-profile-grid div {
  min-height: 72px;
}

.platform-edit-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 15px;
}

.platform-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 15px;
}

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

.billing-plan-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.billing-plan-strip article.selected {
  background: #f0fbf9;
  box-shadow: inset 0 -2px 0 var(--teal);
}

.billing-table .data-row {
  grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr) minmax(130px, 1fr) 76px 74px 62px;
}

.subscription-content .billing-table .data-row {
  grid-template-columns: minmax(130px, 1fr) minmax(145px, 1fr) 72px 64px 74px 62px;
}

.subscription-profile-grid div {
  min-height: 70px;
}

.subscription-content {
  grid-template-columns: minmax(0, 1fr);
}

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

.subscription-plan-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscription-plan-form select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  padding: 0 10px;
}

.workspace-payment-card {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.workspace-payment-card .detail-stack {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding-top: 0;
}

.subscription-payment-panel {
  align-self: start;
}

.subscription-checkout-box {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.subscription-checkout-box > div:first-child {
  display: grid;
  gap: 4px;
}

.subscription-checkout-box strong {
  color: #172033;
  font-size: 14px;
}

.subscription-checkout-box small,
.billing-note,
.manual-payment-body p {
  color: #66758a;
  font-size: 11px;
  line-height: 1.5;
}

.subscription-checkout-summary {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.subscription-checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.subscription-checkout-summary div:last-child {
  border-bottom: 0;
}

.subscription-checkout-summary dt,
.subscription-checkout-summary dd {
  margin: 0;
  font-size: 11px;
}

.subscription-checkout-summary dt {
  color: #66758a;
  font-weight: 700;
}

.subscription-checkout-summary dd {
  color: #172033;
  font-weight: 800;
  text-align: right;
}

.subscription-checkout-summary .total-row {
  background: #f7fbfa;
}

.billing-note {
  border-left: 3px solid var(--teal);
  margin: 0;
  padding-left: 10px;
}

.manual-payment-details {
  padding: 0;
}

.manual-payment-details summary {
  cursor: pointer;
  color: #314159;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  padding: 14px 15px;
}

.manual-payment-details summary::-webkit-details-marker {
  display: none;
}

.manual-payment-details summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-size: 16px;
  line-height: 1;
}

.manual-payment-details[open] summary::after {
  content: "-";
}

.manual-payment-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 0 15px 15px;
}

.manual-payment-body p {
  margin: 12px 0 0;
}

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

.auth-flow {
  display: grid;
  gap: 0;
}

.auth-flow div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 12px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.auth-flow div:last-child {
  border-bottom: 0;
}

.auth-flow span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
}

.auth-flow small {
  grid-column: 2;
}

.auth-checklist {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.auth-checklist div {
  display: grid;
  min-height: 92px;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 14px 15px;
}

.auth-checklist div:last-child {
  border-right: 0;
}

.invoice-paper {
  margin: 14px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.invoice-paper-head {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}

.invoice-paper-head h2 {
  font-size: 18px;
}

.invoice-paper-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.invoice-lines {
  display: grid;
  padding: 12px 16px 16px;
}

.invoice-lines div {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #5c6b7a;
  font-size: 11px;
}

.invoice-lines div:last-child {
  border-bottom: 0;
}

.invoice-lines strong {
  color: var(--text);
  font-weight: 600;
}

.total-line {
  margin-top: 8px;
  border-top: 1px solid var(--line-dark);
  color: var(--text) !important;
}

.due-line strong {
  color: #a26600;
}

.invoice-detail-page {
  align-items: start;
  gap: 16px;
}

.invoice-actions-panel {
  align-self: start;
}

.invoice-document-panel {
  display: grid;
  overflow: auto;
  justify-items: center;
  background: #edf0f2;
  padding: 28px 18px;
}

.invoice-document {
  display: flex;
  width: min(100%, 760px);
  min-height: 980px;
  flex-direction: column;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 42px rgba(28, 35, 45, 0.16);
}

.invoice-document-header {
  display: flex;
  justify-content: center;
  padding: 50px 58px 0;
}

.invoice-brand-block {
  display: flex;
  max-width: 560px;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.invoice-logo,
.invoice-logo-fallback {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border: 1px solid #b75c38;
  border-radius: 50%;
  background: #fff;
}

.invoice-logo {
  object-fit: contain;
  padding: 7px;
}

.invoice-logo-fallback {
  display: grid;
  place-items: center;
  color: #b75c38;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.invoice-brand-block strong {
  display: block;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1.45;
  text-transform: uppercase;
}

.invoice-brand-block span {
  display: block;
  margin-top: 5px;
  color: #363f4c;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.45;
}

.invoice-document-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 54px;
  align-items: start;
  padding: 94px 58px 0;
}

.invoice-party-box {
  min-height: 0;
  padding: 0;
}

.invoice-party-box span,
.invoice-payment-block span,
.invoice-due-block span,
.invoice-total-due span {
  display: block;
  color: #111827;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
}

.invoice-party-box strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}

.invoice-party-box small,
.invoice-due-block small,
.invoice-total-due small {
  display: block;
  margin-top: 3px;
  color: #1f2937;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

.invoice-purchase-label {
  margin-top: 18px;
}

.invoice-title-block {
  text-align: left;
}

.invoice-title-block span {
  display: block;
  color: #b75c38;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.36em;
  line-height: 1;
  text-transform: uppercase;
}

.invoice-title-block h2 {
  margin-top: 13px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
}

.invoice-title-block small {
  display: block;
  margin-top: 11px;
  color: #6a7280;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.invoice-table-wrap {
  padding: 62px 58px 0;
}

.invoice-document-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #111827;
  color: #111827;
  font-size: 10px;
}

.invoice-document-table th {
  border-bottom: 1px solid #111827;
  background: transparent;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.32em;
  padding: 10px 0 9px;
  text-align: right;
  text-transform: uppercase;
}

.invoice-document-table th:first-child,
.invoice-document-table td:first-child {
  text-align: left;
}

.invoice-document-table td {
  color: #111827;
  padding: 19px 0 0;
  text-align: right;
  vertical-align: top;
}

.invoice-document-table td:first-child {
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-document-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.85fr) minmax(130px, 0.9fr);
  gap: 36px;
  margin-top: auto;
  padding: 86px 58px 54px;
}

.invoice-payment-block strong,
.invoice-due-block strong {
  display: block;
  margin-top: 20px;
  color: #111827;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.invoice-payment-block p {
  margin-top: 3px;
  color: #111827;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
}

.invoice-due-block strong {
  margin-top: 19px;
}

.invoice-total-due strong {
  display: block;
  margin-top: 19px;
  color: #b75c38;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.invoice-document-contact {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 0 58px 38px;
  color: #b75c38;
  font-size: 8px;
  font-weight: 600;
}

.mini-form {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
}

.mini-form .wide,
.mini-form .wide-2,
.mini-form .wide-3 {
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
}

.mini-form .extras-builder,
.mini-form .extra-rows,
.mini-form .sale-line-row {
  width: 100%;
  min-width: 0;
}

.mini-form .sale-line-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mini-form .sale-line-row .sale-description-field,
.mini-form .sale-line-row .extra-remove {
  grid-column: 1 / -1;
}

.mini-form .sale-line-row .extra-remove {
  justify-self: end;
}

.inline-form {
  display: inline;
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}

.empty-setup-panel {
  max-width: 760px;
}

.empty-setup-panel .panel-head {
  border-bottom: 0;
}

.setup-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 15px 16px;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(232, 235, 243, 0.44), rgba(232, 235, 243, 0.16) 38%, rgba(232, 235, 243, 0.16) 62%, rgba(232, 235, 243, 0.44)),
    linear-gradient(180deg, rgba(232, 235, 243, 0.08), rgba(232, 235, 243, 0.28)),
    url("../img/auth-arrival-bg.jpg") center / cover no-repeat,
    var(--page);
  padding: 24px;
}

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

.wide-auth {
  width: min(100%, 720px);
}

.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}

.auth-brand {
  width: 154px;
  margin-bottom: 22px;
  color: var(--text);
}

.auth-brand .app-logo {
  max-width: 140px;
}

.auth-copy {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.auth-copy h1 {
  font-size: 22px;
}

.auth-copy p {
  color: var(--muted);
  font-size: 11px;
}

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

.google-button {
  min-height: 38px;
  font-size: 12px;
}

.auth-note {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 12px;
  text-align: center;
}

.auth-foot {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.auth-foot a {
  color: #1874a6;
  font-weight: 700;
}

.single-panel-content {
  display: grid;
  place-items: center;
}

.flash {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 420px;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(30, 42, 62, 0.18);
  font-size: 12px;
  font-weight: 600;
  padding: 13px 15px;
}

.flash.success {
  background: var(--green-soft);
  color: #13754b;
}

.flash.error {
  background: var(--red-soft);
  color: #9c3a3a;
}

.report-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 120px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 15px;
}

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

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

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

.onboarding-main {
  overflow: hidden;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f4fbfa 54%, #f8fbff 100%);
  padding: 20px 22px;
}

.onboarding-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  border: 1px solid #cfe7e5;
  border-radius: 999px;
  background: #effaf8;
  color: #258078;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
}

.onboarding-hero h2 {
  font-size: 20px;
  font-weight: 700;
}

.onboarding-hero p {
  max-width: 680px;
  margin-top: 6px;
  color: #617285;
  font-size: 11px;
}

.onboarding-progress-meter {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--teal) var(--setup-progress), #dfe8f1 0);
}

.onboarding-progress-meter strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1;
}

.onboarding-progress-meter span {
  color: #789;
  font-size: 10px;
  font-weight: 700;
}

.onboarding-step-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.onboarding-step {
  position: relative;
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  color: #6d7d8e;
  padding: 13px 16px 13px 42px;
}

.onboarding-step:last-child {
  border-right: 0;
}

.onboarding-step span {
  position: absolute;
  top: 17px;
  left: 15px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: #758393;
  font-size: 10px;
  font-weight: 800;
}

.onboarding-step strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.onboarding-step small {
  color: #8b98a8;
  font-size: 10px;
  line-height: 1.25;
}

.onboarding-step.current {
  background: #eef9f7;
  box-shadow: inset 0 -3px 0 var(--teal);
}

.onboarding-step.current span {
  background: var(--teal);
  color: #fff;
}

.onboarding-step.complete span {
  background: var(--nav);
  color: #fff;
}

.onboarding-step.muted {
  opacity: 0.65;
}

.onboarding-stage {
  animation: setupStageIn 210ms ease-out both;
  padding: 20px 22px 22px;
}

.onboarding-form {
  display: grid;
  gap: 16px;
}

.onboarding-welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.onboarding-welcome-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(82, 183, 173, 0.13), transparent 46%),
    #fff;
  padding: 28px;
}

.onboarding-welcome-copy h3 {
  max-width: 520px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.14;
}

.onboarding-welcome-copy p {
  max-width: 620px;
  color: #617285;
  font-size: 12px;
}

.onboarding-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.onboarding-mini-stats span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.onboarding-mini-stats strong {
  color: var(--text);
  font-size: 16px;
}

.onboarding-mini-stats small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.onboarding-launch-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 18px;
}

.onboarding-launch-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.onboarding-launch-list span {
  border-bottom: 1px solid var(--line);
  color: #536477;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 11px;
}

.onboarding-launch-list span:last-child {
  border-bottom: 0;
}

.onboarding-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.onboarding-section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.onboarding-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.onboarding-row {
  display: grid;
  gap: 7px;
  align-items: center;
  min-width: 760px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.onboarding-row:last-child {
  border-bottom: 0;
}

.onboarding-row-head {
  min-height: 34px;
  background: var(--soft);
  color: #8795a6;
  font-size: 10px;
  font-weight: 800;
  padding-top: 0;
  padding-bottom: 0;
}

.onboarding-room-row,
.onboarding-room-table .onboarding-row-head {
  grid-template-columns: minmax(138px, 1.2fr) minmax(130px, 1fr) 68px 98px 108px 31px;
}

.onboarding-extra-row,
.onboarding-extra-table .onboarding-row-head {
  grid-template-columns: minmax(150px, 1.3fr) 122px 86px 108px 72px 74px 31px;
}

.onboarding-team-row,
.onboarding-team-table .onboarding-row-head {
  grid-template-columns: minmax(130px, 1.1fr) minmax(150px, 1fr) 112px 136px 118px 31px;
}

.onboarding-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.onboarding-split > section {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.onboarding-check-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  padding: 10px;
}

.onboarding-seed-check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dcebe9;
  border-radius: 5px;
  background: #f3fbfa;
  color: #436174;
  font-size: 10px;
  font-weight: 700;
  padding: 10px 11px;
}

.onboarding-seed-check input {
  accent-color: var(--teal);
}

.onboarding-launch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #dcebe9;
  border-radius: 7px;
  background: #f7fcfb;
  padding: 15px;
}

.onboarding-launch-panel h3 {
  margin-top: 8px;
}

.onboarding-launch-panel p {
  margin-top: 4px;
  color: #607286;
  font-size: 11px;
}

.onboarding-side {
  display: grid;
  gap: 16px;
}

.onboarding-readiness {
  display: grid;
  padding: 7px 15px 10px;
}

.onboarding-readiness div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.onboarding-readiness div:last-child {
  border-bottom: 0;
}

.onboarding-readiness span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: #fff;
}

.onboarding-readiness span::after {
  width: 6px;
  height: 3px;
  transform: rotate(-45deg);
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  content: "";
}

.onboarding-readiness .done span {
  border-color: var(--teal);
  background: var(--teal);
}

.onboarding-readiness .done span::after {
  border-color: #fff;
}

.onboarding-readiness strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.onboarding-readiness small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

@keyframes setupStageIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

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

.support-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.support-chat-window {
  display: none;
  width: min(384px, calc(100vw - 28px));
  height: min(588px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid #cbdce6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(25, 42, 63, 0.22);
  pointer-events: auto;
}

.support-chat.is-open .support-chat-window {
  display: grid;
  grid-template-rows: 46px 52px minmax(0, 1fr) 50px;
}

.support-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #258e8b 0%, var(--teal) 100%);
  color: #fff;
  padding: 0 13px 0 14px;
}

.support-chat-head h2 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.support-chat-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 600;
}

.support-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54e0a4;
}

.support-status.away .support-online-dot {
  background: #f7b84b;
}

.support-status.offline .support-online-dot {
  background: #9aa8b5;
}

.support-head-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  padding: 0;
}

.support-head-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.support-head-button svg,
.support-tool-button svg,
.support-send-button svg,
.support-launcher svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.support-contact-strip {
  display: grid;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.support-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 13px;
}

.support-contact.active {
  border-bottom-color: var(--teal);
  background: #f9fcfe;
}

.support-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7ff;
  color: #236989;
  font-size: 10px;
  font-weight: 800;
}

.support-contact strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.support-contact small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.support-thread,
.platform-chat-thread {
  display: grid;
  align-content: end;
  gap: 9px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(247, 250, 252, 0.94), rgba(247, 250, 252, 0.94)),
    radial-gradient(circle at 12px 12px, rgba(39, 60, 96, 0.08) 0 1px, transparent 1.5px);
  background-size: auto, 28px 28px;
  padding: 13px;
}

.support-message {
  display: flex;
  min-width: 0;
}

.support-message.own {
  justify-content: flex-end;
}

.support-message.support {
  justify-content: flex-start;
}

.support-bubble {
  display: grid;
  max-width: 78%;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #2f3f50;
  font-size: 11px;
  line-height: 1.35;
  padding: 8px 9px 5px;
  box-shadow: 0 4px 12px rgba(27, 39, 52, 0.05);
}

.support-message.own .support-bubble {
  border-color: #caeadc;
  background: #def4e9;
}

.support-bubble footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #7c8998;
  font-size: 9px;
  line-height: 1;
}

.message-ticks {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #7c8998;
  font-size: 10px;
  letter-spacing: -3px;
}

.message-ticks.read {
  color: #258cc6;
}

.support-attachment {
  display: flex;
  min-width: 0;
  gap: 8px;
  border: 1px solid rgba(82, 183, 173, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  overflow: hidden;
}

.support-attachment.file {
  align-items: center;
  padding: 8px;
}

.support-attachment.image {
  position: relative;
  display: block;
  width: 180px;
  max-width: 100%;
}

.support-attachment.image img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.support-attachment.image span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: rgba(21, 49, 66, 0.62);
  color: #fff;
  font-size: 9px;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-icon {
  display: grid;
  width: 30px;
  height: 34px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 4px;
  background: #e94f4f;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.support-attachment strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-attachment small {
  color: var(--muted);
  font-size: 9px;
}

.support-empty-message {
  display: grid;
  justify-self: center;
  gap: 4px;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #657384;
  padding: 12px;
  text-align: center;
}

.support-empty-message strong {
  color: var(--text);
  font-size: 11px;
}

.support-empty-message span {
  font-size: 10px;
}

.support-composer {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 9px;
}

.support-file-input {
  display: none;
}

.support-tool-button,
.support-send-button {
  display: grid;
  place-items: center;
  border-radius: 4px;
  padding: 0;
}

.support-tool-button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #607286;
}

.support-tool-button:hover {
  background: var(--soft);
}

.support-input-wrap {
  display: grid;
  min-width: 0;
}

.support-input-wrap input {
  width: 100%;
  min-height: 31px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  font-size: 11px;
  padding: 0 10px;
}

.support-input-wrap input:focus {
  border-color: #a7dcd7;
  box-shadow: 0 0 0 2px rgba(82, 183, 173, 0.12);
}

.support-file-name {
  overflow: hidden;
  max-width: 100%;
  color: #258078;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px 3px;
}

.support-send-button {
  width: 35px;
  height: 33px;
  border: 0;
  background: var(--teal);
  color: #fff;
}

.support-send-button:hover {
  background: #319a92;
}

.support-launcher {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  margin-top: 12px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 16px 34px rgba(30, 42, 62, 0.24);
  pointer-events: auto;
}

.support-chat.is-open .support-launcher {
  display: none;
}

.support-launcher svg {
  width: 23px;
  height: 23px;
}

.support-launcher span {
  position: absolute;
  top: -3px;
  right: -2px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.platform-chat-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 124px);
}

.platform-chat-list-panel,
.platform-chat-thread-panel {
  min-height: 0;
}

.platform-chat-list-panel {
  display: grid;
  grid-template-rows: 45px minmax(0, 1fr);
}

.platform-chat-list {
  overflow-y: auto;
}

.platform-chat-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 82px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  color: #536274;
  padding: 12px 13px;
}

.platform-chat-item:hover,
.platform-chat-item.active {
  background: #f3fbfa;
}

.platform-chat-item.active {
  box-shadow: inset 3px 0 0 var(--teal);
}

.platform-chat-item strong,
.platform-chat-item small,
.platform-chat-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-chat-item strong {
  color: var(--text);
  font-size: 11px;
}

.platform-chat-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-item em {
  margin-top: 6px;
  color: #8290a0;
  font-size: 10px;
  font-style: normal;
}

.platform-chat-item b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 9px;
}

.platform-chat-empty-list {
  display: grid;
  gap: 4px;
  padding: 18px 14px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-empty-list strong {
  color: var(--text);
  font-size: 11px;
}

.platform-chat-thread-panel {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 54px;
}

.platform-chat-thread-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}

.platform-chat-thread-head h2 {
  font-size: 13px;
}

.platform-chat-thread-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-thread {
  min-height: 420px;
}

.platform-support-composer {
  grid-template-columns: 31px minmax(0, 1fr) 36px;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff;
  }

  .sidebar,
  .mobile-bar,
  .topbar,
  .invoice-actions-panel {
    display: none !important;
  }

  .app-frame,
  .workspace {
    display: block;
  }

  .content,
  .two-column-content {
    display: block;
    padding: 0;
  }

  .invoice-document-panel {
    border: 0;
    background: #fff;
    padding: 0;
  }

  .invoice-document {
    width: 100%;
    max-width: none;
    min-height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .invoice-document-header,
  .invoice-document-meta,
  .invoice-table-wrap,
  .invoice-document-footer,
  .invoice-document-contact {
    padding-left: 0;
    padding-right: 0;
  }

  .invoice-document-contact {
    padding-bottom: 0;
  }
}

@media (max-width: 980px) {
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 0 14px;
  }

  .mobile-menu-button {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 50px auto 0 0;
    z-index: 35;
    width: 220px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

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

  .topbar {
    top: 50px;
  }

  .dashboard-grid,
  .two-column-content,
  .calendar-content,
  .booking-content,
  .invoice-content,
  .expenses-content,
  .expense-detail-content,
  .settings-content,
    .platform-grid,
    .platform-chat-layout,
    .traffic-layout,
  .visitor-journey-layout,
  .traffic-two-column,
  .onboarding-content,
  .onboarding-split,
  .onboarding-welcome-grid {
    grid-template-columns: 1fr;
  }

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

  .form-grid.four,
  .form-grid.three,
  .form-grid.two,
  .inline-customer-panel,
  .expense-detail-grid,
  .customer-profile-grid,
  .customer-account-grid,
  .room-settings-add,
  .tax-settings-grid,
  .tax-summary-grid,
    .platform-summary-row,
    .billing-plan-strip,
    .gateway-grid,
    .addon-card-grid,
    .auth-checklist,
    .traffic-kpi-grid,
    .account-action-grid {
    grid-template-columns: 1fr;
  }

  .invoice-document {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    box-shadow: 0 10px 24px rgba(28, 35, 45, 0.12);
  }

  .invoice-document-panel,
  .invoice-detail-page > .panel {
    min-width: 0;
    overflow: hidden;
  }

  .invoice-document-meta,
  .invoice-document-footer {
    grid-template-columns: 1fr;
  }

  .invoice-document-header {
    padding: 28px 24px 0;
  }

  .invoice-brand-block {
    display: grid;
    width: 100%;
    grid-template-columns: 58px minmax(0, 1fr);
    min-width: 0;
    align-items: flex-start;
  }

  .invoice-brand-block > div {
    min-width: 0;
  }

  .invoice-brand-block strong {
    font-size: 10px;
    letter-spacing: 0.2em;
    overflow-wrap: anywhere;
  }

  .invoice-brand-block span {
    font-size: 8px;
    overflow-wrap: anywhere;
  }

  .invoice-logo,
  .invoice-logo-fallback {
    width: 58px;
    height: 58px;
  }

  .invoice-title-block {
    min-width: 0;
    text-align: left;
  }

  .invoice-document-meta,
  .invoice-table-wrap,
  .invoice-document-footer,
  .invoice-document-contact {
    padding-left: 24px;
    padding-right: 24px;
  }

  .invoice-document-meta {
    gap: 28px;
    padding-top: 52px;
  }

  .invoice-title-block span {
    font-size: 22px;
  }

  .invoice-table-wrap {
    padding-top: 42px;
  }

  .invoice-document-table {
    min-width: 0;
    font-size: 8.5px;
  }

  .invoice-document-table thead {
    display: none;
  }

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

  .invoice-document-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 16px;
    border-bottom: 1px solid #d8dce2;
    padding: 14px 0;
  }

  .invoice-document-table tr:last-child {
    border-bottom: 0;
  }

  .invoice-document-table th {
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .invoice-document-table th:first-child,
  .invoice-document-table td:first-child {
    grid-column: 1 / -1;
    width: 100%;
    padding-right: 8px;
  }

  .invoice-document-table td {
    padding: 0;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .invoice-document-table td:nth-child(2)::before {
    content: "Rate: ";
    font-weight: 800;
  }

  .invoice-document-table td:nth-child(2),
  .invoice-document-table td:nth-child(3) {
    grid-column: 1;
  }

  .invoice-document-table td:nth-child(3)::before {
    content: "Qty: ";
    font-weight: 800;
  }

  .invoice-document-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    text-align: right;
    font-weight: 800;
  }

  .invoice-document-table td:nth-child(4)::before {
    content: "Total: ";
    font-weight: 800;
  }

  .invoice-document-footer {
    gap: 28px;
    padding-top: 54px;
    padding-bottom: 36px;
  }

  .invoice-document-contact {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 28px;
  }

  .onboarding-step-rail {
    grid-template-columns: 1fr;
  }

  .onboarding-step {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .onboarding-step:last-child {
    border-bottom: 0;
  }

  .onboarding-check-grid,
  .onboarding-mini-stats {
    grid-template-columns: 1fr;
  }

  .platform-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .funnel-list {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .journey-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .platform-summary-row span,
  .billing-plan-strip article,
  .gateway-grid div,
  .auth-checklist div,
  .traffic-kpi-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-summary-row span:last-child,
  .billing-plan-strip article:last-child,
  .gateway-grid div:last-child,
  .auth-checklist div:last-child,
  .traffic-kpi-grid article:last-child {
    border-bottom: 0;
  }

  .wide-2,
  .wide-3 {
    grid-column: auto;
  }

  .step-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .extra-row,
  .sale-line-row,
  .settings-row {
    grid-template-columns: 1fr 1fr;
  }

  .expense-detail-grid div,
  .expense-detail-grid div:nth-child(3n),
  .expense-detail-grid div:nth-last-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .expense-detail-grid div:last-child {
    border-bottom: 0;
  }

  .customer-profile-grid div,
  .customer-profile-grid div:nth-child(3n),
  .customer-profile-grid div:nth-last-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .customer-profile-grid div:last-child {
    border-bottom: 0;
  }

  .customer-account-grid div,
  .customer-account-grid div:nth-child(4n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .customer-account-grid div:last-child {
    border-bottom: 0;
  }

  .extra-settings-row,
  .room-settings-row {
    min-width: 0;
  }

  .settings-header {
    display: none;
  }

  .compact-field span {
    display: block;
  }
}

@media (max-width: 640px) {
  html,
  body,
  .app-frame,
  .workspace {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .auth-body {
    padding: 16px;
  }

  .auth-shell,
  .wide-auth {
    width: calc(100vw - 32px);
    max-width: 100%;
  }

  .content {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    min-height: 86px;
    flex-direction: column;
    padding: 12px 14px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .booking-content,
  .form-stack,
  .form-section,
  .section-body,
  .booking-content > .panel {
    width: 100%;
    max-width: 100%;
  }

  .metric-strip,
  .metric-strip.four {
    grid-template-columns: 1fr;
  }

  .data-row,
  .bookings-table .data-row,
  .money-table .data-row,
  .sales-table .data-row,
  .customers-table .data-row,
  .customer-history-table .data-row,
  .customer-sales-table .data-row,
  .statement-table .data-row,
  .expenses-table .data-row,
  .platform-accounts-table .data-row,
  .source-table .data-row,
  .location-table .data-row,
  .visitor-table .data-row,
  .page-intent-table .data-row,
  .billing-table .data-row,
  .top-page-row,
  .platform-timeline,
  .document-row,
  .timeline-row {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 4px;
    align-items: start;
    padding: 10px 15px;
  }

  .header-row {
    display: none;
  }

  .step-link {
    min-height: 31px;
    padding-right: 9px;
  }

  .extra-row,
  .sale-line-row,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    justify-content: stretch;
  }

  .settings-actions .ghost-button,
  .settings-actions .danger-button {
    flex: 1;
  }

  .onboarding-hero,
  .onboarding-actions,
  .onboarding-section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .onboarding-hero {
    padding: 16px;
  }

  .onboarding-stage {
    padding: 16px;
  }

  .onboarding-progress-meter {
    width: 64px;
    height: 64px;
  }

  .onboarding-welcome-copy {
    min-height: 0;
    padding: 18px;
  }

  .onboarding-welcome-copy h3 {
    font-size: 18px;
  }

  .onboarding-actions .ghost-button,
  .onboarding-actions .primary-button {
    width: 100%;
  }

  .support-chat {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .support-chat-window {
    width: 100%;
    height: min(620px, calc(100vh - 78px));
    border-radius: 6px 6px 0 0;
  }

  .support-chat.is-open .support-chat-window {
    grid-template-rows: 46px 52px minmax(0, 1fr) auto;
  }

  .support-launcher {
    width: 50px;
    height: 50px;
  }

  .support-bubble {
    max-width: 86%;
  }

  .platform-chat-layout {
    min-height: 0;
  }

  .platform-chat-thread-panel {
    min-height: 620px;
  }

  .platform-chat-item {
    min-height: 72px;
  }
}
