:root {
  --brand: #04a7f4;
  --brand-dark: #07345f;
  --ink: #18212f;
  --muted: #6d7482;
  --line: #e7e9ee;
  --soft: #f6f7f9;
  --panel: #ffffff;
  --sidebar: #f7f9fc;
  --sidebar-soft: #eef4fb;
  --sidebar-border: #e4eaf3;
  --green: #13a673;
  --blue: #04a7f4;
  --amber: #d89212;
  --red: #dd4b39;
  --max-width: 1480px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-family: var(--font-main);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(4, 167, 244, 0.08), transparent 26%),
    linear-gradient(180deg, #f6f8fb 0%, #eef3f9 100%);
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.venue-global-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(560px, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(var(--max-width), calc(100% - 56px));
  min-height: 74px;
  border: 1px solid rgba(226, 235, 247, 0.82);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  transform: translateX(-50%);
  padding: 8px clamp(14px, 2vw, 24px) 6px;
}

.venue-global-brand {
  display: grid;
  align-items: start;
  min-width: 250px;
}

.venue-global-brand img {
  display: block;
  width: 173px;
  height: auto;
  border-radius: 8px;
}

.venue-global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.8vw, 42px);
  min-width: 0;
  color: #14161d;
  font-size: clamp(15px, 0.95vw, 17px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.venue-global-nav a,
.venue-global-account {
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.venue-global-nav a {
  padding: 10px 8px;
}

.venue-global-nav a:hover,
.venue-global-nav a.is-active {
  background: rgba(4, 167, 244, 0.06);
  color: var(--brand-dark);
}

.venue-global-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  padding: 0 9px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.venue-global-account.is-authenticated {
  border-color: transparent;
  background: transparent;
  color: var(--brand-dark);
}

.venue-global-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ddf6ff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.venue-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: calc(100vh - 82px);
  padding-top: 82px;
}

.venue-sidebar {
  position: sticky;
  top: 82px;
  height: calc(100vh - 82px);
  padding: 20px 18px 24px;
  background: var(--sidebar);
  color: var(--ink);
  border-right: 1px solid var(--sidebar-border);
}

.venue-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 30px;
}

.venue-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 800;
}

.venue-brand strong,
.venue-brand small {
  display: block;
}

.venue-brand small {
  color: #aeb7c6;
  font-size: 12px;
}

.venue-nav {
  display: grid;
  gap: 14px;
}

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

.venue-nav-heading {
  border: 0;
  padding: 0 10px;
  background: transparent;
  color: #7b8798;
  text-align: left;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-nav-group-body {
  display: grid;
  gap: 4px;
}

.venue-nav-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: transparent;
  color: #445164;
  text-align: left;
  font-weight: 700;
}

.venue-nav-item:hover,
.venue-nav-item.is-active {
  background: var(--sidebar-soft);
  color: #10233f;
}

.venue-nav-item.is-active {
  box-shadow:
    inset 3px 0 0 var(--brand),
    0 8px 18px rgba(16, 35, 63, 0.06);
}

.venue-main {
  min-width: 0;
  padding: 28px;
}

.venue-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(228, 234, 243, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(16, 24, 40, 0.06);
}

.venue-topbar h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 31px;
  letter-spacing: 0;
  line-height: 1.05;
}

.topbar-actions,
.menu-cluster,
.venue-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-chip,
.ghost-button,
.solid-button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 800;
}

.menu-chip,
.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.menu-chip:hover,
.topbar-link.is-active,
.ghost-button:hover {
  border-color: #b9e7ff;
  color: var(--brand-dark);
}

.solid-button {
  border: 0;
  background: linear-gradient(135deg, #04a7f4 0%, #ff2d74 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(4, 167, 244, 0.22);
}

.solid-button:hover {
  background: linear-gradient(135deg, #0088d4 0%, #dc1d63 100%);
}

.venue-profile {
  min-width: 190px;
  padding-left: 14px;
  border-left: 1px solid #e8edf5;
}

.venue-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ddf6ff;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.venue-profile span {
  color: var(--muted);
  font-size: 12px;
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: none;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(18, 26, 39, 0.14);
}

.dropdown.is-open .dropdown-panel {
  display: grid;
  gap: 4px;
}

.manager-menu-item {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.manager-menu-item:hover {
  background: #eef8ff;
  color: var(--brand-dark);
}

.dropdown-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.dropdown-item:hover {
  background: #eef8ff;
  color: var(--brand-dark);
}

.dropdown-item-danger {
  color: var(--red);
}

.view-section {
  display: grid;
  gap: 18px;
}

.stat-grid,
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.report-summary-card,
.panel,
.section-card,
.filters-card,
.venue-auth-card {
  border: 1px solid rgba(228, 234, 243, 0.92);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(21, 30, 45, 0.05);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #04a7f4, #7bd4ff);
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--font-main);
  font-size: 30px;
}

.stat-card span {
  color: var(--green);
  font-weight: 800;
}

.report-summary-card {
  padding: 16px;
}

.report-summary-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.report-summary-card strong {
  display: block;
  margin: 7px 0;
  font-family: var(--font-main);
  font-size: 22px;
}

.report-summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.report-period-select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  padding: 0 12px;
  font-weight: 850;
}

.venue-report-document {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.venue-report-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(4, 167, 244, 0.1), rgba(255, 45, 116, 0.08));
  padding: 18px;
}

.venue-report-cover span,
.venue-report-section h4 {
  color: #006fcb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.venue-report-cover h3 {
  margin: 6px 0 4px;
  color: #050b2d;
  font-size: 24px;
  line-height: 1.15;
}

.venue-report-cover p,
.venue-report-cover time,
.venue-report-section li {
  color: var(--muted);
  line-height: 1.55;
}

.venue-report-section {
  display: grid;
  gap: 12px;
}

.venue-report-section h4 {
  margin: 0;
}

.venue-report-section ul,
.venue-report-section ol {
  margin: 0;
  padding-left: 20px;
}

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

.venue-report-metric {
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.venue-report-metric span,
.venue-report-metric strong,
.venue-report-metric small {
  display: block;
}

.venue-report-metric span {
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.venue-report-metric strong {
  margin: 8px 0 5px;
  color: #050b2d;
  font-size: 22px;
}

.venue-report-metric small {
  color: var(--muted);
}

.venue-report-table {
  display: grid;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  overflow: hidden;
}

.venue-report-table-head,
.venue-report-table-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr 0.7fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.venue-report-table-head {
  background: #eef6ff;
  color: #006fcb;
  font-size: 12px;
  font-weight: 900;
}

.venue-report-table-row {
  border-top: 1px solid #e8edf5;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.venue-report-table-row.is-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.panel,
.section-card {
  padding: 22px;
}

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

.panel-head h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 22px;
  letter-spacing: 0;
}

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

.overview-list,
.quick-actions {
  display: grid;
  gap: 10px;
}

.overview-item,
.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #edf1f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.overview-item strong,
.quick-action strong {
  display: block;
}

.overview-item span,
.quick-action span {
  color: var(--muted);
  font-size: 13px;
}

.calendar-toolbar,
.filters-card,
.report-filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-field-pills,
.calendar-controls,
.calendar-icon-set {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-field-pill,
.calendar-icon-button,
.radio-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.calendar-field-pill {
  min-height: 38px;
  padding: 0 13px;
}

.calendar-field-pill.is-active,
.radio-chip.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.calendar-icon-button {
  width: 38px;
  height: 38px;
}

.week-range-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

.schedule-shell {
  overflow-x: auto;
  padding-bottom: 4px;
}

.schedule-grid {
  min-width: 1180px;
}

.schedule-grid:not(:has(.schedule-table)) {
  display: grid;
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 10px;
}

.schedule-table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.schedule-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 12px;
  background: #f9fbff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.schedule-table th:first-child,
.time-cell {
  width: 78px;
}

.time-cell {
  padding: 12px 10px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.day-column {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
  overflow: hidden;
}

.day-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.day-slots,
.schedule-day-slots {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.slot-card,
.schedule-slot-cell {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.slot-card small,
.schedule-slot-cell small {
  color: var(--muted);
  font-weight: 800;
}

.slot-card strong,
.schedule-slot-cell strong {
  display: block;
  margin: 3px 0;
  font-size: 14px;
}

.slot-card span,
.schedule-slot-cell span {
  color: var(--muted);
  font-size: 12px;
}

.status-booked,
.status-reserved {
  border-left-color: var(--blue);
}

.status-marketplace,
.status-rezerv {
  border-left-color: var(--brand);
}

.status-subscription {
  border-left-color: var(--green);
}

.status-maintenance,
.status-closed {
  border-left-color: var(--red);
}

.schedule-slot-cell.is-selected {
  border-color: #b9e7ff;
  box-shadow: 0 0 0 3px #e8f7ff;
}

.schedule-table .schedule-slot-cell {
  border-width: 0 0 0 4px;
  border-radius: 0;
  min-height: 68px;
}

.schedule-slot-cell.is-today,
.schedule-table th.is-today {
  background: #fff9f6;
}

.schedule-choice {
  display: grid;
  gap: 4px;
}

.schedule-choice.is-tyee,
.schedule-choice.is-rezerv {
  color: var(--brand-dark);
}

.schedule-choice.is-reserved {
  color: var(--blue);
}

.schedule-choice.is-manual {
  color: var(--green);
}

.schedule-choice.is-closed {
  color: var(--red);
}

.slot-card-header,
.slot-card-body,
.slot-card-footer,
.slot-options,
.slot-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-card-header,
.slot-card-footer {
  justify-content: space-between;
}

.slot-options {
  margin-top: 8px;
}

.slot-option {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.slot-option.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.slot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.slot-badge.is-tyee,
.slot-badge.is-rezerv {
  background: #e8f7ff;
  color: var(--brand-dark);
}

.slot-badge.is-online {
  background: #eaf1ff;
  color: var(--blue);
}

.slot-badge.is-eft {
  background: #fff6df;
  color: var(--amber);
}

.slot-badge.is-manual-reserved,
.slot-badge.is-cash {
  background: #eafaf4;
  color: var(--green);
}

.slot-badge.is-closed {
  background: #ffecea;
  color: var(--red);
}

.slot-channel-badge {
  display: inline-flex;
  width: max-content;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.slot-channel-badge.is-tyee,
.slot-channel-badge.is-rezerv {
  background: #e8f7ff;
  color: var(--brand-dark);
}

.slot-popover {
  margin-top: 8px;
}

.slot-popover-bubble {
  display: grid;
  gap: 6px;
  border: 1px solid #b9e7ff;
  border-radius: 8px;
  padding: 10px;
  background: #f4fbff;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(4, 167, 244, 0.14);
}

.manual-edit-button {
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: #eef8ff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  font-weight: 900;
}

.status-pill,
.transaction-status,
.subscription-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-pill.is-active,
.subscription-status.is-active,
.transaction-status.is-success {
  background: #eafaf4;
  color: var(--green);
}

.table-action-button {
  min-height: 30px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  background: #ecfdf5;
  color: #138a48;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.table-action-stack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-action-button.is-secondary {
  border-color: rgba(37, 99, 235, 0.14);
  background: #eff6ff;
  color: #215bb7;
}

.table-action-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.muted-table-text {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.transaction-status.is-warning {
  background: #fff6df;
  color: var(--amber);
}

.transaction-status.is-danger {
  background: #ffecea;
  color: var(--red);
}

.filters-card {
  align-items: end;
  padding: 14px;
}

.filters-card label,
.sales-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filters-card input,
.filters-card select,
.sales-field input,
.sales-field textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

.settings-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.settings-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

.settings-tab.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.settings-onboarding-form,
.settings-form-grid,
.profile-layout,
.profile-form-grid,
.billing-shell,
#reviews-shell,
.reviews-shell {
  display: grid;
  gap: 14px;
}

.sales-products-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.service-catalog-sidebar,
.service-catalog-main,
.service-catalog-card,
.service-catalog-rows,
.service-editor-shell {
  display: grid;
  gap: 14px;
}

.service-catalog-card,
.service-catalog-toolbar,
.service-catalog-summary,
.service-editor-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
}

.service-catalog-card strong,
.service-catalog-summary strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-category-list {
  display: grid;
  gap: 10px;
}

.service-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 14px;
  background: transparent;
  color: #1f2937;
  text-align: left;
  font-weight: 700;
}

.service-category-item.is-active {
  background: #f5f4ff;
}

.service-category-item em {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.service-link-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #5b4fd7;
  font-weight: 700;
}

.service-catalog-toolbar,
.service-catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-search-input {
  min-width: 340px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
}

.service-catalog-summary span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.service-row-card {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 0 16px 0 0;
  overflow: hidden;
}

.service-row-card.is-selected {
  border-color: #d7dcf3;
  box-shadow: 0 0 0 2px #f1f3fb inset;
}

.service-row-accent {
  align-self: stretch;
  background: #b9e6ff;
}

.service-row-main {
  display: grid;
  gap: 4px;
  padding: 18px 0;
}

.service-row-main strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-row-main span {
  color: var(--muted);
  font-size: 13px;
}

.service-row-price {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.service-row-more {
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.service-editor-shell .settings-note {
  margin: 0;
}

.service-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-editor-actions,
.settings-area-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.service-editor-head strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-editor-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.sales-products-summary strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.sales-products-summary span,
.sales-product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sales-products-cards {
  display: grid;
  gap: 10px;
}

.sales-product-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.sales-product-card.is-active {
  border-color: #b9e7ff;
  box-shadow: inset 4px 0 0 var(--brand);
}

.sales-product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sales-product-card-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sales-product-card-head span {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-product-card-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.sales-products-editor {
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.sales-products-editor .settings-area-list {
  gap: 10px;
}

.sales-products-editor .settings-area-card {
  background: #fbfcfd;
}

.settings-section {
  display: grid;
  gap: 14px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.settings-section-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.settings-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.settings-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.settings-section-body {
  display: grid;
  gap: 14px;
}

.settings-input-field,
.settings-select-field,
.settings-question {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.settings-input-field span,
.settings-select-field span,
.settings-question strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.settings-input-field input,
.settings-select-field input,
.settings-select-field select,
.settings-input-field textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}

.settings-input-field textarea {
  min-height: 120px;
  resize: vertical;
}

.settings-radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 800;
}

.settings-info {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.settings-location-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.settings-location-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contract-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(120deg, rgba(31, 93, 91, 0.08), rgba(21, 160, 255, 0.08));
}

.contract-hero span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contract-hero h3 {
  margin: 6px 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.contract-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contract-hero > strong {
  flex: 0 0 auto;
  border: 1px solid #b9e7ff;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12px;
  white-space: nowrap;
}

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

.contract-summary-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.contract-summary-grid strong {
  color: var(--brand-dark);
  font-size: 22px;
}

.contract-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.business-contract-reader {
  display: grid;
  gap: 16px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  color: #273143;
  line-height: 1.65;
}

.business-contract-reader section {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.business-contract-reader section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.business-contract-reader h4 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.business-contract-reader p {
  margin: 0;
  color: #465267;
  font-size: 14px;
}

.settings-map-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #c8ced8;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.settings-map-picker {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

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

.settings-map-toolbar div {
  display: grid;
  gap: 3px;
}

.settings-map-toolbar strong {
  color: var(--ink);
  font-size: 15px;
}

.settings-map-toolbar span,
.settings-map-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.settings-map-canvas {
  height: 310px;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #eef6fb;
}

.settings-map-surface {
  width: 100%;
  height: 310px;
}

.settings-map-surface > span {
  display: grid;
  min-height: 310px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.settings-map-surface.leaflet-container,
.settings-map-canvas .leaflet-container {
  width: 100%;
  height: 310px;
  font: inherit;
}

.settings-map-canvas .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 12px 30px rgba(11, 28, 54, 0.14);
}

.settings-map-canvas .leaflet-control-zoom a {
  color: var(--ink);
  border: 0;
  font-weight: 900;
}

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

.settings-save-row,
.profile-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-note,
.settings-empty-box,
.settings-upload-box {
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}

.settings-upload-box {
  display: grid;
  gap: 8px;
  border-style: dashed;
}

.settings-upload-box.is-disabled {
  opacity: 0.66;
}

.settings-upload-box span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.settings-upload-box small {
  color: var(--muted);
}

.settings-media-grid,
.settings-area-list {
  display: grid;
  gap: 12px;
}

.settings-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.settings-media-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e5eef8;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.settings-media-intro div {
  display: grid;
  gap: 4px;
}

.settings-media-intro strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.settings-media-intro span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.settings-media-intro output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 38px;
  border: 1px solid #d8e8fb;
  border-radius: 999px;
  background: #eef7ff;
  color: #0b5fb8;
  font-size: 13px;
  font-weight: 900;
}

.settings-feature-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fbff;
}

.settings-feature-summary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.settings-feature-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.settings-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.settings-feature-card {
  display: grid;
  grid-template-columns: 18px 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.settings-feature-card input {
  width: 18px;
  height: 18px;
  accent-color: #238be9;
}

.settings-feature-card:has(input:checked),
.settings-feature-card.is-selected {
  border-color: #8bd6ff;
  background: #f1f9ff;
  box-shadow: 0 8px 20px rgba(4, 167, 244, 0.09);
}

.settings-feature-card.is-selected .settings-feature-icon,
.settings-feature-card:has(input:checked) .settings-feature-icon {
  background: #e3f4ff;
}

.settings-feature-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f3f6fb;
  font-size: 17px;
}

.settings-feature-label {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.settings-media-card,
.settings-area-card {
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.settings-media-card {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.045);
}

.settings-media-card.is-cover-source {
  border-color: rgba(4, 167, 244, 0.46);
  box-shadow: 0 18px 40px rgba(4, 167, 244, 0.11);
}

.settings-media-thumb {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.settings-media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.settings-media-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7, 18, 45, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.settings-media-card > div,
.settings-area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.settings-media-card > .settings-media-thumb {
  display: block;
  padding: 0;
}

.settings-media-card-body {
  align-items: flex-start;
}

.settings-media-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.settings-media-card strong,
.settings-area-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
}

.settings-media-card small {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-media-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.settings-media-actions .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 11.5px;
}

.settings-media-actions .ghost-button.danger {
  color: #b42318;
}

.settings-media-actions .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.settings-area-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.settings-area-card .settings-form-grid {
  gap: 12px;
}

.settings-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.settings-inline-action {
  justify-self: start;
}

.venue-save-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.venue-save-status:not(:empty) {
  border-color: #dce5f1;
  background: #f8fbff;
  color: #52627a;
}

.venue-save-status.is-success {
  border-color: #b7ebc6;
  background: #ecfdf3;
  color: #067647;
}

.venue-save-status.is-error {
  border-color: #fecdca;
  background: #fff4f3;
  color: #d92d20;
}

.venue-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #b7ebc6;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(236, 253, 243, 0.94);
  box-shadow: 0 18px 44px rgba(10, 34, 64, 0.18);
  color: #067647;
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(14px);
}

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

.venue-toast.is-error {
  border-color: #fecdca;
  background: rgba(255, 244, 243, 0.94);
  color: #d92d20;
}

.settings-field,
.profile-field {
  display: grid;
  gap: 6px;
}

.settings-field span,
.profile-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-field input,
.settings-field select,
.settings-field textarea,
.profile-field input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.profile-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfd;
}

.profile-avatar-shell {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.profile-avatar-icon {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e8f7ff;
}

.profile-avatar-head {
  position: absolute;
  top: 20px;
  left: 31px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
}

.profile-avatar-body {
  position: absolute;
  left: 20px;
  bottom: 18px;
  width: 52px;
  height: 28px;
  border-radius: 999px 999px 18px 18px;
  background: var(--brand-dark);
}

.profile-action,
.profile-danger-button {
  width: 100%;
  margin-top: 8px;
}

.profile-danger-button,
.billing-edit-button {
  min-height: 38px;
  border: 1px solid #ffd0ca;
  border-radius: 8px;
  background: #fff4f2;
  color: var(--red);
  font-weight: 900;
}

.profile-field-wide {
  grid-column: 1 / -1;
}

.review-card,
.billing-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.reviews-shell {
  display: grid;
  gap: 14px;
}

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

.review-score-card,
.review-request-note {
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.review-score-card span,
.review-request-note p,
.review-card p,
.review-card small,
.review-card-meta {
  color: var(--muted);
}

.review-score-card strong {
  display: block;
  margin: 7px 0 3px;
  color: #050b2d;
  font-size: 30px;
  line-height: 1;
}

.review-request-note strong {
  color: #050b2d;
}

.review-request-note p {
  max-width: 760px;
  margin: 8px 0 0;
  line-height: 1.55;
}

.reviews-list {
  display: grid;
  gap: 12px;
}

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

.review-card-head strong {
  display: block;
  color: #050b2d;
}

.review-card-head span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eafaf4;
  color: var(--green);
  font-weight: 900;
}

.review-card p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.review-card-meta {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
}

.review-note-editor {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.review-note-editor span {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.review-note-editor textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  color: #050b2d;
  font: inherit;
  background: #f8fbff;
}

.review-note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

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

.reviews-empty-state,
.empty-table-cell,
.billing-empty-cell {
  color: var(--muted);
  text-align: center;
}

.data-table .empty-table-cell {
  padding: 30px 16px;
  font-weight: 800;
  white-space: normal;
}

.sales-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sales-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.sales-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.sales-modal-header,
.sales-modal-footer {
  padding: 18px;
}

.sales-modal-header {
  border-bottom: 1px solid var(--line);
}

.sales-modal-header h2 {
  margin: 0;
  font-family: var(--font-main);
}

.sales-modal-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.sales-modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.sales-field-wide {
  grid-column: 1 / -1;
}

.sales-field textarea {
  min-height: 90px;
  resize: vertical;
}

.sales-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.sales-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.venue-auth-wall {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(246, 247, 249, 0.94);
}

.venue-auth-card {
  width: min(520px, 100%);
  padding: 28px;
  text-align: center;
}

.venue-auth-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-size: 26px;
}

.venue-auth-card p {
  color: var(--muted);
}

/* tyee dashboard refresh */
body {
  color: #182033;
  background:
    linear-gradient(90deg, rgba(4, 167, 244, 0.95) 0 8px, transparent 8px calc(100% - 8px), rgba(255, 45, 116, 0.95) calc(100% - 8px)),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

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

.venue-layout {
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  width: min(100%, calc(100% - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(3, 15, 46, 0.18);
}

.venue-sidebar {
  align-self: start;
  height: calc(100vh - 24px);
  padding: 24px 14px 14px;
  border-right: 1px solid #edf1f7;
  background: #fff;
  color: var(--ink);
}

.venue-brand {
  display: grid;
  align-items: start;
  gap: 2px;
  min-height: 86px;
  margin-bottom: 14px;
  padding: 0 6px 12px;
  border-bottom: 1px solid #edf1f7;
  color: var(--ink);
}

.venue-logo {
  display: block;
  width: 152px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.venue-brand small {
  display: block;
  margin-top: 0;
  margin-left: 40px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.venue-brand-mark {
  display: none;
}

.venue-nav {
  gap: 7px;
}

.venue-nav-item {
  position: relative;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  background: transparent;
  color: #263248;
  font-size: 13px;
  box-shadow: none;
}

.venue-nav-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transform: translateY(-50%);
}

.venue-nav-item:hover,
.venue-nav-item.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.venue-nav-item.is-active {
  box-shadow: 0 12px 26px rgba(4, 167, 244, 0.12);
}

.venue-nav-item.is-active::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(4, 167, 244, 0.12);
}

.venue-nav-group {
  display: grid;
  gap: 7px;
}

.venue-nav-heading {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  margin: 8px 0 0;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 0 32px 0 12px;
  background: #fff;
  color: #8a94a6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.venue-nav-heading::after {
  content: "›";
  position: absolute;
  right: 13px;
  top: 50%;
  color: #667085;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.18s ease;
}

.venue-nav-heading:hover {
  border-color: #b9e7ff;
  color: var(--brand-dark);
}

.venue-nav-heading[aria-expanded="true"] {
  border-color: #d9eefb;
  background: #f7fcff;
  color: var(--brand-dark);
}

.venue-nav-heading[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(90deg);
}

.venue-nav-group-body {
  display: none;
  gap: 7px;
}

.venue-nav-group.is-open .venue-nav-group-body {
  display: grid;
}

.venue-nav-subitem {
  margin-left: 14px;
  min-height: 38px;
  padding-left: 32px;
  font-size: 12px;
}

.venue-nav-subitem::before {
  left: 13px;
  width: 6px;
  height: 6px;
}

.venue-nav-subitem:hover,
.venue-nav-subitem.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--brand-dark);
  box-shadow: none;
}

.venue-nav-subitem.is-active::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(4, 167, 244, 0.1);
}

.venue-nav-logout {
  margin-top: 12px;
  color: #d84a3a;
}

.venue-nav-logout:hover {
  border-color: rgba(216, 74, 58, 0.25);
  background: #fff4f2;
  color: #d84a3a;
}

.venue-nav-logout::before {
  background: #d84a3a;
}

.venue-main {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(4, 167, 244, 0.08) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.venue-topbar {
  position: static;
  min-height: 0;
  margin-bottom: 22px;
  padding: 17px 18px;
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.06);
}

.venue-topbar h1 {
  color: #050b2d;
  font-size: 24px;
  line-height: 1.15;
}

.topbar-subtitle {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-chip,
.ghost-button,
.solid-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
}

.menu-chip,
.ghost-button {
  border-color: #e8edf5;
  background: rgba(255, 255, 255, 0.88);
  color: #050b2d;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.menu-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.marketplace-link::before {
  content: "R";
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.solid-button {
  background: linear-gradient(135deg, #04a7f4 0%, #ff2d74 100%);
  box-shadow: 0 10px 24px rgba(4, 167, 244, 0.24);
}

.venue-profile {
  min-width: 205px;
  padding: 7px 10px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.venue-avatar {
  width: 38px;
  height: 38px;
  background: #ddf6ff;
  color: var(--brand-dark);
}

.stat-grid,
.report-summary-grid {
  gap: 12px;
}

.stat-card,
.report-summary-card,
.panel,
.section-card,
.filters-card,
.venue-auth-card {
  border-color: #e8edf5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.07);
}

.stat-card,
.report-summary-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 16px 16px 15px 56px;
}

.stat-card::before,
.report-summary-card::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 4px),
    linear-gradient(135deg, #04a7f4, #ff2d74);
  box-shadow: 0 8px 20px rgba(4, 167, 244, 0.22);
}

.stat-card::after,
.report-summary-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -38px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(23, 92, 255, 0.06);
}

.stat-card strong {
  color: #050b2d;
  font-size: 26px;
}

.stat-card small,
.report-summary-card small,
.data-table th {
  color: #667085;
}

.panel-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.panel-head h2 {
  color: #050b2d;
  font-size: 19px;
}

.overview-item,
.quick-action,
.settings-input-field,
.settings-select-field,
.settings-question,
.profile-card,
.review-card,
.billing-actions {
  border-color: #e8edf5;
  background: #fff;
}

.overview-item,
.quick-action {
  min-height: 70px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
}

.overview-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-action span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef8ff;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

/* Calendar: compact single-screen fit */
.venue-main:has(#calendar-view:not(.hidden)) {
  padding: 20px 16px 16px;
}

.venue-main:has(#calendar-view:not(.hidden)) .venue-topbar {
  min-height: 66px;
  margin-bottom: 10px;
  padding: 10px 14px;
}

.venue-main:has(#calendar-view:not(.hidden)) .venue-topbar h1 {
  font-size: 20px;
}

.venue-main:has(#calendar-view:not(.hidden)) .eyebrow,
.venue-main:has(#calendar-view:not(.hidden)) .topbar-subtitle,
.venue-main:has(#calendar-view:not(.hidden)) .marketplace-link,
.venue-main:has(#calendar-view:not(.hidden)) .venue-profile span {
  display: none;
}

#calendar-view {
  gap: 0;
  min-width: 0;
}

#calendar-view .operation-hero,
#calendar-view .section-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#calendar-view .section-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: calc(100vh - 114px);
  min-height: 560px;
  padding: 10px;
  background: #ffffff;
  --calendar-header-height: 28px;
  --calendar-row-count: 18;
}

#calendar-view .calendar-toolbar,
#calendar-view .calendar-panel-head {
  margin-bottom: 8px;
}

.calendar-ops-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid #ececf3;
  border-radius: 14px;
  background: #fbfbfd;
}

.calendar-ops-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-ops-pill {
  min-height: 32px;
  border: 1px solid #e2e4ec;
  border-radius: 10px;
  padding: 0 10px;
  background: #ffffff;
  color: #373946;
  font-size: 12px;
  font-weight: 800;
}

.calendar-ops-pill.is-active {
  border-color: #d9d5ff;
  background: #f4f3ff;
  color: #4d43c6;
}

.calendar-ops-pill.is-primary {
  border-color: #16171d;
  background: #16171d;
  color: #ffffff;
}

#calendar-view .calendar-panel-head {
  align-items: center;
}

#calendar-view .panel-head h2 {
  font-size: 15px;
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calendar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.legend-open {
  border: 1px solid #b9e7ff;
  background: #f3fbff;
}

.legend-online {
  background: #175cff;
}

.legend-subscription {
  background: #13a673;
}

.legend-manual {
  background: #d89212;
}

.legend-closed {
  background: #98a2b3;
}

#calendar-view .calendar-field-pill,
#calendar-view .calendar-icon-button,
#calendar-view .week-range-pill {
  min-height: 30px;
  height: 30px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
}

#calendar-view .calendar-icon-button {
  width: 30px;
}

#calendar-view .schedule-shell {
  display: flex;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fbfdff;
}

#calendar-view .schedule-grid {
  min-width: 0;
  width: 100%;
  height: 100%;
}

#calendar-view .schedule-table {
  width: 100%;
  height: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

#calendar-view .schedule-table tbody tr {
  height: calc((100% - var(--calendar-header-height)) / var(--calendar-row-count)) !important;
}

#calendar-view .schedule-table td {
  height: calc((100% - var(--calendar-header-height)) / var(--calendar-row-count)) !important;
}

#calendar-view .schedule-table th,
#calendar-view .schedule-table td {
  border-color: #e8edf5;
}

#calendar-view .schedule-table th:not(:last-child),
#calendar-view .schedule-table td:not(:last-child) {
  border-right: 1px solid rgba(152, 162, 179, 0.18);
}

#calendar-view .schedule-table th {
  height: var(--calendar-header-height);
  padding: 5px 6px;
  border-bottom: 1px solid #dfe6f0;
  background: #ffffff;
  color: #445066;
  font-size: 10px;
  text-align: center;
}

#calendar-view .schedule-table th:first-child,
#calendar-view .time-cell {
  width: 44px;
}

#calendar-view .time-cell {
  padding: 2px 6px 0 0;
  background: #ffffff;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1;
  text-align: right;
  vertical-align: top;
}

#calendar-view .schedule-slot-cell {
  position: relative;
  min-height: 0;
  height: 100%;
  border-left-width: 0;
  padding: 2px 4px;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.16)) 0 0 / 100% 1px no-repeat,
    #ffffff;
  vertical-align: middle;
}

#calendar-view .schedule-slot-cell.is-selected {
  z-index: 12;
}

#calendar-view .schedule-slot-cell.is-filter-dimmed {
  opacity: 0.34;
}

#calendar-view .schedule-slot-cell.is-filter-dimmed:hover,
#calendar-view .schedule-slot-cell.is-filter-dimmed.is-selected {
  opacity: 1;
}

#calendar-view .schedule-slot-cell.is-today-column {
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.16)) 0 0 / 100% 1px no-repeat,
    #f4fbff;
}

#calendar-view .schedule-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 100%;
  border-radius: 7px;
  padding: 0 5px;
  overflow: hidden;
}

#calendar-view .schedule-slot-cell.is-selected .schedule-choice {
  overflow: visible;
}

#calendar-view .slot-card-header,
#calendar-view .slot-card-body,
#calendar-view .slot-card-footer {
  gap: 3px;
}

#calendar-view .schedule-slot-cell small {
  font-size: 9px;
}

#calendar-view .schedule-slot-cell strong {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 9.5px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .schedule-slot-cell span {
  display: none;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-badge,
#calendar-view .slot-channel-badge {
  min-width: 14px;
  min-height: 14px;
  justify-content: center;
  padding: 0 4px;
  font-size: 7px;
}

#calendar-view .slot-tyee .schedule-choice {
  justify-content: center;
  background: transparent;
  color: transparent;
  box-shadow: none;
}

#calendar-view .slot-tyee .schedule-choice::before {
  content: none;
}

#calendar-view .schedule-slot-cell .open-slot-dot {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  opacity: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-explicit-rezerv .schedule-choice {
  justify-content: flex-start;
  background: #f3fbff;
  color: #07345f;
  box-shadow: inset 3px 0 0 #04a7f4;
}

#calendar-view .schedule-slot-cell.is-selected .open-slot-dot,
#calendar-view .slot-tyee:hover .open-slot-dot {
  opacity: 1;
}

#calendar-view .slot-tyee strong,
#calendar-view .slot-tyee .slot-channel-badge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#calendar-view .slot-reserved .schedule-choice,
#calendar-view .slot-manual .schedule-choice,
#calendar-view .slot-closed .schedule-choice {
  justify-content: space-between;
  box-shadow: inset 3px 0 0 currentColor;
}

#calendar-view .slot-reserved .schedule-choice {
  background: #eef5ff;
  color: #2367d9;
}

#calendar-view .slot-manual .schedule-choice {
  background: #fff7e7;
  color: #a15c00;
}

#calendar-view .slot-closed .schedule-choice {
  background: #f4f5f7;
  color: #667085;
}

#calendar-view .slot-subscription-reserved .schedule-choice {
  background: #ecfdf4;
  color: #09865a;
}

#calendar-view .slot-eft .schedule-choice {
  background: #fff8df;
  color: #aa6b00;
}

#calendar-view .slot-cash .schedule-choice,
#calendar-view .slot-manual-reserved .schedule-choice {
  background: #f1f8ff;
  color: #2455a4;
}

#calendar-view .slot-corporate .schedule-choice {
  background: #f3f0ff;
  color: #6846bd;
}

#calendar-view .slot-online .schedule-choice {
  background: #eef5ff;
  color: #175cff;
}

#calendar-view .slot-closed .slot-channel-badge {
  background: #ffffff;
  color: #667085;
}

#calendar-view .slot-reserved .slot-channel-badge,
#calendar-view .slot-manual .slot-channel-badge {
  background: rgba(255, 255, 255, 0.72);
  color: currentColor;
}

#calendar-view .slot-reserved strong,
#calendar-view .slot-manual strong,
#calendar-view .slot-closed strong {
  color: currentColor;
  font-weight: 900;
}

#calendar-view .schedule-slot-cell.is-selected .schedule-choice {
  outline: 2px solid rgba(4, 167, 244, 0.45);
  outline-offset: -1px;
}

#calendar-view .slot-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  width: 212px;
  gap: 8px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

#calendar-view .slot-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
  border-left: 1px solid rgba(226, 232, 240, 0.96);
  background: #ffffff;
  transform: rotate(45deg);
}

#calendar-view .slot-popover.is-popover-right {
  right: 0;
  left: auto;
}

#calendar-view .slot-popover.is-popover-right::before {
  right: 22px;
  left: auto;
}

#calendar-view .slot-popover.is-popover-above {
  top: auto;
  bottom: calc(100% + 8px);
}

#calendar-view .slot-popover.is-popover-above::before {
  top: auto;
  bottom: -6px;
  border: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

#calendar-view .slot-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#calendar-view .slot-popover-head strong {
  display: block;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  color: #111827;
}

#calendar-view .slot-popover-head span {
  display: block;
  min-width: 0;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

#calendar-view .slot-options {
  display: grid;
  gap: 6px;
  margin: 0;
}

#calendar-view .slot-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 0 9px 0 5px;
  background: #ffffff;
  color: #263241;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

#calendar-view .slot-option:hover {
  border-color: #b9e7ff;
  background: #f3fbff;
}

#calendar-view .slot-option.is-active {
  border-color: rgba(4, 167, 244, 0.5);
  background: #eef8ff;
  color: #07345f;
}

#calendar-view .schedule-slot-cell .slot-option-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f2f5f9;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
}

#calendar-view .schedule-slot-cell .slot-option > span:not(.slot-option-icon) {
  display: block;
  grid-column: 2;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-option.is-active .slot-option-icon {
  background: #04a7f4;
  color: #ffffff;
}

#calendar-view .slot-option-closed.is-active .slot-option-icon {
  background: #667085;
}

#calendar-view .slot-option-manual.is-active .slot-option-icon {
  background: #d89212;
}

#calendar-view .slot-service-picker {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

#calendar-view .slot-service-picker p {
  margin: 0;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
}

#calendar-view .slot-service-option {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 8px 9px;
  background: #ffffff;
  color: #263241;
  text-align: left;
}

#calendar-view .slot-service-option:hover,
#calendar-view .slot-service-option.is-active {
  border-color: rgba(4, 167, 244, 0.55);
  background: #f3fbff;
}

#calendar-view .slot-service-option strong,
#calendar-view .slot-service-option span {
  display: block;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-service-option strong {
  font-size: 11px;
  font-weight: 900;
}

#calendar-view .slot-service-option span {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

#calendar-view .slot-popover-edit {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f7f9fc;
  color: #344054;
  font-size: 10px;
  font-weight: 900;
}

#calendar-view .slot-popover-edit:hover {
  background: #eef2f7;
}

.calendar-field-pill,
.calendar-icon-button,
.radio-chip,
.week-range-pill,
.settings-tab {
  border-color: #e8edf5;
  background: #fff;
}

.calendar-field-pill.is-active,
.radio-chip.is-active,
.settings-tab.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.table-shell {
  border-color: #e8edf5;
  border-radius: 8px;
  background: #fff;
}

.dropdown-panel {
  border-color: #e8edf5;
}

@media (max-width: 1080px) {
  .venue-global-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 16px;
  }

  .venue-global-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .venue-layout {
    padding-top: 190px;
  }

  .venue-layout {
    grid-template-columns: 1fr;
  }

  .venue-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
  }

  .venue-main {
    padding-top: 24px;
  }

  .venue-topbar {
    left: 16px;
    right: 16px;
  }

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

  .panel-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .report-summary-grid,
  .contract-summary-grid,
  .venue-report-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venue-report-table {
    overflow-x: auto;
  }

  .venue-report-table-head,
  .venue-report-table-row {
    min-width: 780px;
  }
}

@media (max-width: 760px) {
  .venue-layout {
    width: min(100%, calc(100% - 14px));
    min-height: calc(100vh - 14px);
    margin: 7px auto;
  }

  .venue-main {
    padding: 14px;
  }

  .venue-topbar {
    display: grid;
    left: 8px;
    right: 8px;
    min-height: 0;
  }

  .venue-topbar,
  .topbar-actions,
  .menu-cluster,
  .calendar-toolbar,
  .filters-card,
  .report-filter-line {
    align-items: stretch;
    flex-direction: column;
  }

  .venue-nav {
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid,
  .report-summary-grid,
  .contract-summary-grid,
  .venue-report-metric-grid,
  .settings-form-grid,
  .sales-products-layout,
  .profile-form-grid,
  .sales-modal-body {
    grid-template-columns: 1fr;
  }

  .venue-report-cover {
    grid-template-columns: 1fr;
  }

  .contract-hero {
    display: grid;
  }

  .contract-hero > strong {
    width: fit-content;
    white-space: normal;
  }

  .venue-profile {
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }

  #calendar-view .section-card {
    height: auto;
    min-height: 0;
  }

  #calendar-view .schedule-shell {
    overflow-x: auto;
  }

  #calendar-view .schedule-grid {
    min-width: 920px;
  }
}

.crm-summary-grid,
.campaigns-kpi-grid,
.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.crm-layout,
.finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.crm-customer-list,
.campaigns-board,
.finance-card-stack,
.crm-customer-focus,
.finance-pnl-card {
  display: grid;
  gap: 14px;
}

.crm-customer-card,
.campaign-flow-card,
.campaign-sms-card,
.finance-insight-card,
.crm-customer-focus,
.finance-pnl-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.crm-customer-card-head,
.campaign-flow-head,
.campaign-sms-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.crm-customer-card-head span,
.campaign-flow-head span,
.crm-focus-header span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #eef4ff;
  color: #235bc8;
  font-size: 11px;
  font-weight: 700;
}

.crm-customer-card p,
.campaign-flow-card p,
.campaign-sms-card p,
.finance-insight-card p {
  margin: 10px 0 0;
  color: #667085;
}

.campaign-sms-card {
  display: grid;
  gap: 14px;
  border-color: rgba(47, 126, 230, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), #ffffff),
    #ffffff;
}

.campaign-sms-head small {
  display: block;
  margin-bottom: 6px;
  color: #0c66ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.campaign-sms-head strong {
  color: #07153a;
  font-size: 1.05rem;
}

.campaign-sms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
}

.campaign-sms-grid label,
.campaign-sms-count {
  display: grid;
  gap: 7px;
}

.campaign-sms-grid span,
.campaign-sms-count span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.campaign-sms-grid select,
.campaign-sms-card textarea {
  width: 100%;
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: #ffffff;
  color: #07153a;
  font: inherit;
}

.campaign-sms-grid select {
  min-height: 48px;
  padding: 0 14px;
}

.campaign-sms-count {
  align-content: center;
  justify-items: start;
  border: 1px solid #dce7f4;
  border-radius: 14px;
  padding: 10px 14px;
  background: #f5fbff;
}

.campaign-sms-count strong {
  color: #07153a;
  font-size: 1.4rem;
}

.campaign-sms-card textarea {
  min-height: 118px;
  resize: vertical;
  padding: 14px;
  line-height: 1.45;
}

.campaign-sms-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-sms-preview span {
  border: 1px solid #dce7f4;
  border-radius: 999px;
  padding: 7px 10px;
  background: #ffffff;
  color: #40516d;
  font-size: 12px;
  font-weight: 700;
}

.campaign-sms-note {
  margin: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff8e8;
  color: #815000;
  font-size: 12px;
  font-weight: 700;
}

.campaign-sms-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.campaign-sms-feedback {
  border-radius: 14px;
  padding: 11px 12px;
  background: #edf8ff;
  color: #0b5c9f;
  font-size: 13px;
  font-weight: 800;
}

.crm-customer-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.crm-customer-card small,
.campaign-flow-card small {
  color: #98a2b3;
}

.crm-focus-header h3 {
  margin: 8px 0 0;
  font-size: 1.6rem;
}

.crm-focus-stats {
  display: grid;
  gap: 10px;
}

.crm-focus-timeline ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #667085;
}

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

.finance-pnl-rows {
  display: grid;
  gap: 10px;
}

.finance-expense-entry,
.finance-expense-list {
  align-content: start;
}

.finance-expense-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.finance-expense-form label {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.finance-expense-form input,
.finance-expense-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  color: #050b2d;
  font: inherit;
  background: #fff;
}

.finance-expense-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.finance-expense-list > div {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.finance-expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.finance-expense-row strong,
.finance-expense-row b {
  color: #050b2d;
}

.finance-expense-row span,
.finance-empty-copy {
  color: #667085;
}

.finance-empty-copy {
  margin: 14px 0 0;
}

@media (max-width: 980px) {
  .crm-summary-grid,
  .campaigns-kpi-grid,
  .finance-kpi-grid,
  .campaigns-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-layout,
  .finance-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile venue navigation: keep the workspace visible and expose navigation as a drawer. */
.venue-mobile-menu-toggle,
.venue-sidebar-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .venue-mobile-menu-toggle {
    position: fixed;
    z-index: 1202;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: 20px auto;
    align-items: center;
    gap: 0 9px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid rgba(15, 45, 86, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
    color: #102a56;
    box-shadow: 0 8px 28px rgba(15, 45, 86, 0.18);
    backdrop-filter: blur(14px);
  }

  .venue-mobile-menu-toggle span {
    grid-column: 1;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .venue-mobile-menu-toggle span + span {
    margin-top: -11px;
  }

  .venue-mobile-menu-toggle span:nth-child(3) {
    margin-top: -11px;
  }

  .venue-mobile-menu-toggle strong {
    grid-column: 2;
    grid-row: 1 / span 3;
    font: 800 13px/1 Inter, sans-serif;
  }

  .venue-sidebar-backdrop {
    position: fixed;
    z-index: 1198;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(9, 20, 40, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .venue-layout {
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow: visible;
    border-radius: 0;
  }

  .venue-sidebar {
    position: fixed;
    z-index: 1200;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 320px);
    height: 100dvh;
    padding: calc(68px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0 20px 20px 0;
    box-shadow: 18px 0 50px rgba(7, 22, 48, 0.24);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms step-end;
  }

  .venue-mobile-menu-open {
    overflow: hidden;
  }

  .venue-mobile-menu-open .venue-sidebar {
    transform: translateX(0);
    visibility: visible;
    transition: transform 220ms ease;
  }

  .venue-mobile-menu-open .venue-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .venue-mobile-menu-open .venue-mobile-menu-toggle {
    color: #0b67c2;
  }

  .venue-workspace,
  .venue-main {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .crm-summary-grid,
  .campaigns-kpi-grid,
  .finance-kpi-grid,
  .campaigns-board {
    grid-template-columns: 1fr;
  }

  .finance-expense-form {
    grid-template-columns: 1fr;
  }
}

/* V1 workspace refresh */

:root {
  --brand: #2d7ff9;
  --brand-dark: #12315c;
  --ink: #162033;
  --muted: #697386;
  --line: #e7ebf2;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --sidebar: #f8fafc;
  --sidebar-soft: #edf3fb;
  --sidebar-border: #e4eaf2;
}

body {
  background:
    radial-gradient(circle at top left, rgba(45, 127, 249, 0.06), transparent 24%),
    linear-gradient(180deg, #f3f6fb 0%, #eef2f7 100%);
}

.venue-layout {
  grid-template-columns: 272px minmax(0, 1fr);
}

.venue-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 24px;
  min-width: 0;
}

.venue-sidebar {
  padding: 18px 16px 24px;
}

.venue-nav-item {
  font-weight: 750;
}

.venue-nav-item.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.venue-main {
  padding: 26px 0 28px 26px;
}

.venue-topbar {
  margin-bottom: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
}

.topbar-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.workspace-flow-card {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  box-shadow: 0 14px 32px rgba(21, 30, 45, 0.04);
}

.workspace-flow-card small {
  color: #4f6b92;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-flow-card strong {
  font-size: 15px;
}

.workspace-flow-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workspace-flow-card.is-primary {
  border-color: #d6e7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.solid-button {
  background: linear-gradient(135deg, #2d7ff9 0%, #3f92ff 100%);
  box-shadow: 0 10px 22px rgba(45, 127, 249, 0.2);
}

.solid-button:hover {
  background: linear-gradient(135deg, #256fe0 0%, #347fe2 100%);
}

.stat-grid,
.report-summary-grid {
  gap: 16px;
}

.stat-card::before {
  background: linear-gradient(90deg, #2d7ff9, #89b7ff);
}

.panel-grid {
  grid-template-columns: minmax(0, 1.68fr) minmax(300px, 0.82fr);
}

.operation-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(228, 234, 243, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(21, 30, 45, 0.05);
}

.operation-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.operation-hero p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.operation-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.overview-item,
.quick-action,
.report-summary-card,
.stat-card,
.panel,
.section-card,
.filters-card,
.venue-auth-card {
  border-radius: 24px;
}

.quick-action {
  align-items: flex-start;
}

.quick-action strong {
  font-size: 15px;
}

.quick-action span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f1f5fb;
  color: #395375;
  font-size: 11px;
  font-weight: 800;
}

.venue-side-rail {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 26px 28px 28px 0;
}

.venue-side-rail.is-hidden {
  display: none;
}

.rail-panel {
  border: 1px solid rgba(228, 234, 243, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(21, 30, 45, 0.05);
  padding: 20px;
}

.rail-panel-feature {
  background: linear-gradient(135deg, #1d68da 0%, #4f8eff 100%);
  color: #fff;
}

.rail-panel-feature h3,
.rail-panel-feature p,
.rail-panel-feature .rail-kicker {
  color: #fff;
}

.rail-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.92;
}

.rail-panel h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.rail-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.rail-head {
  margin-bottom: 14px;
}

.rail-checklist,
.rail-next-list,
.rail-waitlist-list,
.rail-note-list {
  display: grid;
  gap: 12px;
}

.guide-step,
.rail-appointment-card,
.rail-waitlist-card,
.rail-note-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px 15px;
}

.guide-step.is-complete {
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
}

.guide-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-step-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf3fb;
  color: #35537a;
  font-size: 12px;
  font-weight: 900;
}

.guide-step.is-complete .guide-step-index {
  background: #eafaf1;
  color: #138a48;
}

.guide-step-title {
  font-size: 14px;
  font-weight: 800;
}

.guide-step small,
.rail-appointment-card small,
.rail-waitlist-card small,
.rail-note-card small {
  color: var(--muted);
}

.guide-step-action {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.rail-appointment-card strong,
.rail-waitlist-card strong,
.rail-note-card strong {
  font-size: 14px;
}

.rail-mini-action {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.rail-waitlist-card > span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f4f3ff;
  color: #4d43c6;
  font-size: 11px;
  font-weight: 900;
}

.rail-waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rail-appointment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rail-note-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.schedule-table {
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-table th,
.schedule-table td {
  border-right: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
}

.schedule-table th {
  background: #fbfcff;
}

.schedule-table .schedule-slot-cell {
  min-height: 78px;
  background: #fff;
}

.schedule-choice {
  position: relative;
  gap: 6px;
}

.open-slot-dot {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  background: #ecf4ff;
  color: #2459bf;
  font-size: 11px;
  font-weight: 900;
}

.slot-popover {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid #d6e7ff;
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 18px 38px rgba(26, 63, 124, 0.12);
  padding: 12px;
}

.slot-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slot-options {
  margin-top: 0;
}

.slot-option {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.slot-service-picker {
  display: grid;
  gap: 8px;
}

.slot-service-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.slot-service-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  text-align: left;
}

.slot-service-option.is-active {
  border-color: #b9d5ff;
  background: #f4f8ff;
}

.slot-service-option strong,
.slot-service-option span {
  display: block;
  margin: 0;
}

.slot-popover-edit,
.slot-open-appointment {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 800;
}

.slot-popover-edit {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.slot-open-appointment {
  border: 0;
  background: #edf4ff;
  color: #194b9f;
}

.crm-customer-card {
  gap: 12px;
}

.crm-customer-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.crm-inline-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1f4fa3;
  font-weight: 800;
}

.appointment-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.appointment-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.34);
}

.appointment-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(520px, 100%);
  height: 100%;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -24px 0 60px rgba(16, 24, 40, 0.18);
}

.appointment-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.appointment-drawer-head h2 {
  margin: 0;
  font-size: 28px;
}

.appointment-drawer-body {
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 20px 24px 28px;
}

.drawer-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
}

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

.drawer-card-head strong {
  display: block;
  font-size: 16px;
}

.drawer-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.drawer-metric {
  display: grid;
  gap: 4px;
  border: 1px solid #edf1f7;
  border-radius: 14px;
  background: #fafcff;
  padding: 12px;
}

.drawer-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.drawer-metric strong {
  font-size: 15px;
}

.drawer-list {
  display: grid;
  gap: 10px;
}

.drawer-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.drawer-line strong {
  color: var(--ink);
  font-size: 13px;
}

.drawer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer-cta-row .ghost-button,
.drawer-cta-row .solid-button {
  min-height: 40px;
}

@media (max-width: 1400px) {
  .venue-workspace {
    grid-template-columns: 1fr;
  }

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

  .venue-side-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 28px 28px 26px;
  }

  .rail-panel-feature {
    grid-column: 1 / -1;
  }
}

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

  .venue-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-border);
  }

  .venue-main {
    padding: 20px;
  }

  .venue-side-rail {
    padding: 0 20px 24px;
    grid-template-columns: 1fr;
  }

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

  .operation-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* cohesion pass */

.venue-nav-group {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(228, 234, 243, 0.72);
}

.venue-nav-group:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.venue-nav-item {
  font-size: 14px;
}

.workspace-flow.is-hidden {
  display: none;
}

.panel,
.section-card {
  padding: 24px;
}

.section-card > .panel-head:first-child {
  margin-bottom: 20px;
}

/* fresha-inspired shell refresh */

:root {
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: #6658f5;
  --brand-dark: #1d1b3a;
  --ink: #17171c;
  --muted: #6f7484;
  --line: #e8e8ef;
  --soft: #f5f5f8;
  --panel: #ffffff;
  --sidebar: #111115;
  --sidebar-soft: #1b1b23;
  --sidebar-border: rgba(255, 255, 255, 0.08);
}

body {
  background: #f3f3f6;
  color: var(--ink);
}

.venue-global-header {
  display: none;
}

.venue-layout {
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 0;
}

.venue-sidebar {
  top: 0;
  height: 100vh;
  padding: 28px 18px 20px;
  background:
    radial-gradient(circle at top right, rgba(102, 88, 245, 0.18), transparent 22%),
    linear-gradient(180deg, #111115 0%, #15151b 100%);
  border-right: 0;
  color: #f4f5fb;
}

.venue-nav {
  gap: 18px;
}

.venue-nav-group {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  padding-bottom: 14px;
}

.venue-nav-heading {
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.venue-nav-item {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.venue-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.venue-nav-item.is-active {
  background: linear-gradient(180deg, rgba(102, 88, 245, 0.24), rgba(102, 88, 245, 0.12));
  border-color: rgba(126, 116, 255, 0.28);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.venue-nav-item.venue-nav-logout {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.54);
}

.venue-workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 18px 18px 18px 0;
}

.venue-main {
  padding: 0;
}

.venue-topbar {
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid #e7e7ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(21, 23, 31, 0.05);
}

.eyebrow {
  margin-bottom: 4px;
  color: #7a7f90;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.venue-topbar h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.topbar-subtitle {
  margin-top: 6px;
  color: #7a7f90;
  font-size: 13px;
}

.menu-chip,
.ghost-button {
  border-color: #e8e8ef;
  background: #fff;
  color: #232432;
  font-weight: 700;
}

.solid-button {
  background: #16171d;
  color: #fff;
  box-shadow: none;
}

.solid-button:hover {
  background: #0f1014;
}

.venue-profile {
  min-width: 210px;
  border-left-color: #ededf4;
}

.venue-avatar {
  background: #f2f3fb;
  color: #2a2a42;
}

.workspace-flow {
  gap: 12px;
  margin-bottom: 14px;
}

.workspace-flow-card {
  border-radius: 18px;
  border: 1px solid #e8e8ef;
  padding: 15px 16px;
  box-shadow: none;
}

.workspace-flow-card.is-primary {
  border-color: #dcdafc;
  background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
}

.workspace-flow-card small {
  color: #736cdc;
}

.workspace-flow-card strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.workspace-flow-card span {
  font-size: 12px;
}

.operation-hero,
.panel,
.section-card,
.report-summary-card,
.stat-card,
.rail-panel,
.drawer-card,
.sales-modal-dialog,
.filters-card,
.venue-auth-card {
  border-radius: 22px;
  border-color: #e7e7ef;
  box-shadow: 0 12px 32px rgba(20, 22, 30, 0.05);
}

.operation-hero {
  margin-bottom: 14px;
  padding: 20px 22px;
}

.operation-hero h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.operation-hero p:last-child {
  font-size: 13px;
}

.stat-grid,
.report-summary-grid {
  gap: 12px;
}

.stat-card {
  padding: 18px;
}

.stat-card::before {
  height: 3px;
  background: linear-gradient(90deg, #6658f5, #9f96ff);
}

.stat-card small {
  color: #82889a;
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.panel-head h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.overview-item,
.quick-action {
  border-radius: 16px;
  padding: 14px 16px;
  background: #fbfbfd;
}

.overview-item strong,
.quick-action strong {
  font-size: 14px;
}

.overview-item p,
.overview-item span,
.quick-action span {
  font-size: 12px;
}

.calendar-toolbar,
.filters-card,
.report-filter-line {
  gap: 10px;
}

.calendar-field-pill,
.calendar-icon-button,
.radio-chip,
.week-range-pill {
  min-height: 36px;
  border-radius: 12px;
  font-weight: 700;
}

.calendar-field-pill.is-active,
.radio-chip.is-active {
  background: #f4f3ff;
  border-color: #ddd9ff;
  color: #4d43c6;
}

.schedule-shell {
  border: 1px solid #ececf3;
  border-radius: 20px;
  background: #fbfbfd;
  padding: 10px;
}

.schedule-grid {
  min-width: 1220px;
}

.schedule-table {
  overflow: hidden;
}

.schedule-table th {
  background: #f7f7fb;
  color: #7a7f90;
  font-size: 11px;
}

.time-cell {
  background: #f7f7fb;
  color: #7a7f90;
}

.schedule-table .schedule-slot-cell {
  min-height: 84px;
  background: #fff;
}

.schedule-slot-cell.is-selected {
  box-shadow: inset 0 0 0 2px #dad6ff;
}

.schedule-choice strong {
  font-size: 13px;
  font-weight: 800;
}

.open-slot-dot,
.slot-channel-badge,
.status-pill,
.channel-pill {
  border-radius: 999px;
  font-weight: 800;
}

.slot-popover {
  border-radius: 18px;
  border-color: #e1defd;
  background: #fff;
  box-shadow: 0 20px 50px rgba(32, 30, 58, 0.14);
}

.slot-option.is-active {
  border-color: #6658f5;
  background: #6658f5;
}

.slot-service-option {
  border-radius: 14px;
  font-size: 12px;
}

.table-shell {
  border-radius: 18px;
  border-color: #e7e7ef;
}

.data-table {
  min-width: 1120px;
}

.data-table th {
  background: #f7f7fb;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.data-table td {
  font-size: 12px;
}

.table-action-button {
  min-height: 32px;
  border-radius: 999px;
  font-size: 12px;
}

.table-action-button.is-secondary {
  background: #f3f3fb;
  color: #373c53;
  border-color: #ececf4;
}

.crm-summary-grid,
.campaigns-kpi-grid,
.finance-kpi-grid {
  gap: 12px;
}

.crm-layout,
.finance-layout {
  gap: 14px;
}

.crm-customer-card,
.campaign-flow-card,
.finance-insight-card,
.crm-customer-focus,
.finance-pnl-card {
  border-radius: 18px;
  box-shadow: none;
}

.crm-customer-card-head span,
.campaign-flow-head span,
.crm-focus-header span {
  background: #f3f3fb;
  color: #4d5670;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.venue-side-rail {
  top: 18px;
  gap: 14px;
  padding: 0;
}

.rail-panel {
  padding: 18px;
}

.rail-panel-feature {
  background: linear-gradient(180deg, #17171d 0%, #24233a 100%);
}

.rail-panel h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
}

.guide-step,
.rail-appointment-card,
.rail-note-card {
  border-radius: 16px;
  padding: 13px 14px;
  background: #fbfbfd;
}

.guide-step-index {
  background: #efeff7;
  color: #44495d;
}

.guide-step.is-complete .guide-step-index {
  background: #edf9f1;
}

.guide-step-title,
.rail-appointment-card strong,
.rail-note-card strong {
  font-size: 13px;
}

.guide-step-action,
.crm-inline-button {
  color: #4741b2;
}

.appointment-drawer-backdrop {
  background: rgba(14, 15, 22, 0.48);
}

.appointment-drawer-panel {
  width: min(500px, 100%);
  border-left-color: #ececf4;
  box-shadow: -24px 0 60px rgba(20, 21, 30, 0.16);
}

.appointment-drawer-head {
  padding: 22px 22px 16px;
}

.appointment-drawer-head h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.appointment-drawer-body {
  padding: 18px 22px 24px;
}

.drawer-card {
  border-radius: 18px;
  background: #fbfbfd;
}

.drawer-metric {
  border-radius: 12px;
  background: #fff;
}

.report-summary-card strong,
.drawer-metric strong,
.finance-pnl-card .panel-head h2 {
  letter-spacing: -0.03em;
}

.sales-modal-dialog {
  max-width: 760px;
  border: 1px solid #e7e7ef;
}

.sales-modal-header h2 {
  letter-spacing: -0.03em;
}

@media (max-width: 1500px) {
  .venue-workspace {
    grid-template-columns: minmax(0, 1fr) 332px;
  }
}

/* readability stabilization */

:root {
  --brand: #1f4ed8;
  --brand-dark: #111827;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --panel: #ffffff;
}

body {
  background: #f3f4f6;
}

.eyebrow,
.venue-nav-heading,
.workspace-flow-card small,
.rail-kicker {
  color: #6b7280;
}

.venue-sidebar {
  background: #111827;
}

.venue-nav-item {
  color: rgba(255, 255, 255, 0.82);
}

.venue-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.venue-nav-item.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #111827;
}

.venue-topbar,
.workspace-flow-card,
.operation-hero,
.panel,
.section-card,
.rail-panel,
.drawer-card,
.sales-modal-dialog,
.filters-card,
.venue-auth-card,
.overview-item,
.quick-action,
.guide-step,
.rail-appointment-card,
.rail-note-card,
.crm-customer-card,
.campaign-flow-card,
.finance-insight-card,
.crm-customer-focus,
.finance-pnl-card,
.drawer-metric {
  background: #ffffff;
}

.workspace-flow-card.is-primary,
.rail-panel-feature,
.guide-step.is-complete,
.stat-card::before,
.solid-button,
.solid-button:hover {
  background: unset;
}

.workspace-flow-card.is-primary {
  border-color: #d1d5db;
}

.rail-panel-feature {
  background: #ffffff;
  color: #111827;
}

.rail-panel-feature h3,
.rail-panel-feature p,
.rail-panel-feature .rail-kicker {
  color: inherit;
}

.solid-button {
  background: #111827;
  color: #ffffff;
}

.solid-button:hover {
  background: #0f172a;
}

.stat-card::before {
  background: #d1d5db;
}

.stat-card span,
.report-summary-card span,
.overview-item span,
.quick-action span,
.crm-customer-card p,
.campaign-flow-card p,
.finance-insight-card p,
.rail-panel p,
.guide-step small,
.rail-appointment-card small,
.rail-note-card small,
.drawer-card-head span,
.drawer-metric span,
.drawer-line,
.operation-hero p:last-child,
.topbar-subtitle {
  color: #4b5563;
}

.workspace-flow-card strong,
.operation-hero h2,
.panel-head h2,
.appointment-drawer-head h2,
.drawer-card-head strong,
.drawer-line strong,
.stat-card strong,
.report-summary-card strong,
.venue-topbar h1 {
  color: #111827;
}

.calendar-field-pill.is-active,
.radio-chip.is-active,
.open-slot-dot,
.slot-channel-badge.is-tyee,
.slot-channel-badge.is-rezerv,
.table-action-button.is-secondary,
.guide-step-index,
.crm-customer-card-head span,
.campaign-flow-head span,
.crm-focus-header span {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.slot-option.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.slot-popover {
  background: #ffffff;
  border-color: #d1d5db;
}

.schedule-shell,
.table-shell {
  background: #ffffff;
  border-color: #d1d5db;
}

.schedule-table th,
.time-cell,
.data-table th {
  background: #f9fafb;
  color: #4b5563;
}

.schedule-table .schedule-slot-cell {
  background: #ffffff;
}

.schedule-slot-cell.is-selected {
  box-shadow: inset 0 0 0 2px #9ca3af;
}

.status-pill.is-active,
.subscription-status.is-active,
.transaction-status.is-success {
  background: #ecfdf5;
  color: #166534;
}

.transaction-status.is-warning {
  background: #fffbeb;
  color: #92400e;
}

.transaction-status.is-danger {
  background: #fef2f2;
  color: #991b1b;
}

/* stable sidebar and default calendar fallback */

.venue-nav-group-body {
  display: grid !important;
  gap: 8px;
}

.venue-nav-heading {
  cursor: default;
}

.venue-nav-heading::after {
  display: none !important;
}

.venue-sidebar .venue-nav-heading {
  min-height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
}

.venue-sidebar .venue-nav-heading:hover,
.venue-sidebar .venue-nav-heading[aria-expanded="true"] {
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
}

/* Fresha-inspired clients workspace */
#customers-view .section-card {
  padding: 0;
  overflow: hidden;
  background: #121212;
  border-color: rgba(148, 163, 184, 0.14);
}

.clients-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  min-height: 760px;
}

.clients-side-nav {
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  padding: 28px 24px;
}

.clients-nav-card {
  display: grid;
  gap: 10px;
}

.clients-nav-label {
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #f8fafc;
}

.clients-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 14px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.clients-nav-link:hover {
  border-color: rgba(148, 163, 184, 0.18);
  color: #ffffff;
}

.clients-nav-link.is-active {
  background: rgba(94, 82, 232, 0.22);
  color: #ffffff;
}

.clients-stage {
  padding: 28px 38px 38px;
}

.clients-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.clients-page-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.clients-page-head p {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 1rem;
}

.clients-page-actions {
  display: flex;
  gap: 12px;
}

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

.clients-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 700;
}

.clients-import-banner {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.48), transparent 18%),
    radial-gradient(circle at 72% 86%, rgba(59, 130, 246, 0.28), transparent 18%),
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(76, 29, 149, 0.94));
}

.clients-import-banner strong {
  display: block;
  color: #ffffff;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.clients-import-banner p {
  margin: 8px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

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

.clients-import-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.text-button {
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.clients-toolbar {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.34);
}

.clients-search-field {
  min-width: 280px;
  flex: 1;
  display: grid;
  gap: 8px;
}

.clients-search-field span {
  color: #94a3b8;
  font-size: 0.875rem;
}

.clients-search-field input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.66);
  color: #f8fafc;
  padding: 0 16px;
  font: inherit;
}

.clients-table-shell {
  margin-top: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.36);
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
}

.clients-table thead th {
  height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
}

.clients-table tbody td {
  padding: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #e5e7eb;
  vertical-align: middle;
}

.clients-table tbody tr {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.clients-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.clients-table tbody td strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.clients-table tbody td small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
}

.clients-avatar-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(94, 82, 232, 0.34);
  color: #ffffff;
  font-weight: 800;
}

.clients-table-foot {
  padding: 14px 18px;
  color: #94a3b8;
  font-size: 0.875rem;
}

.clients-empty-state {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.36);
}

.clients-empty-state strong {
  color: #ffffff;
}

.clients-empty-state p {
  margin: 0;
  color: #94a3b8;
}

.clients-segment-grid,
.clients-loyalty-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.clients-segment-card,
.clients-loyalty-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.36);
}

.clients-segment-card strong,
.clients-loyalty-card strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
}

.clients-segment-card span,
.clients-loyalty-head span {
  display: inline-flex;
  margin-top: 12px;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(94, 82, 232, 0.22);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.clients-segment-card p,
.clients-loyalty-card p,
.clients-loyalty-card small {
  color: #94a3b8;
}

.clients-loyalty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1180px) {
  .clients-shell {
    grid-template-columns: 1fr;
  }

  .clients-side-nav {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }
}

@media (max-width: 860px) {
  .clients-page-head,
  .clients-import-banner,
  .clients-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .clients-segment-grid,
  .clients-loyalty-grid {
    grid-template-columns: 1fr;
  }
}

/* final responsive stabilization for the refreshed venue workspace */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .venue-layout {
    display: block;
    min-height: auto;
    padding-top: 0;
  }

  .venue-sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 16px;
  }

  .venue-nav {
    gap: 14px;
  }

  .venue-nav-group {
    padding-bottom: 12px;
  }

  .venue-nav-group-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .venue-nav-heading {
    min-height: 36px;
    align-items: center;
  }

  .venue-nav-item {
    min-height: 42px;
    padding: 10px 12px;
    white-space: normal;
  }

  .venue-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .venue-main {
    min-width: 0;
    padding: 0;
  }

  .venue-main:has(#calendar-view:not(.hidden)) {
    padding: 0;
  }

  .venue-topbar {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .venue-profile {
    min-width: 0;
    border-left: 0;
    padding-left: 0;
  }

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

  .operation-hero {
    display: grid;
    align-items: stretch;
    padding: 18px;
  }

  .operation-hero h2 {
    font-size: 22px;
  }

  .operation-hero-actions,
  .calendar-ops-strip,
  .calendar-toolbar,
  .report-filter-line {
    align-items: stretch;
    flex-direction: column;
  }

  .venue-side-rail {
    position: static;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .panel,
  .section-card {
    padding: 16px;
  }

  #calendar-view .section-card {
    height: auto;
    min-height: 0;
  }

  #calendar-view .operation-hero,
  #calendar-view .section-card {
    width: 100%;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
  }

  .schedule-shell,
  .table-shell,
  .clients-table-shell {
    max-width: 100%;
    overflow-x: auto;
  }

  .schedule-grid {
    min-width: 760px;
  }

  .data-table,
  .clients-table {
    min-width: 720px;
  }

  .clients-stage {
    padding: 22px 18px 24px;
  }

  .clients-side-nav {
    padding: 20px 18px;
  }
}

@media (max-width: 520px) {
  .venue-nav-group-body {
    grid-template-columns: 1fr;
  }

  .venue-workspace {
    padding: 12px;
  }

  .venue-topbar,
  .workspace-flow-card,
  .operation-hero,
  .rail-panel,
  .section-card,
  .panel {
    border-radius: 18px;
  }

  #calendar-view .operation-hero,
  #calendar-view .section-card {
    max-width: calc(100vw - 24px);
  }
}

/* premium layout and typography system */
:root {
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --ink: #111827;
  --muted: #667085;
  --muted-strong: #475467;
  --line: #e4e7ec;
  --soft: #f7f8fb;
  --panel: #ffffff;
  --panel-tint: #fbfcff;
  --sidebar: #0b1220;
  --sidebar-soft: rgba(255, 255, 255, 0.08);
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --green: #16a34a;
  --blue: #2563eb;
  --amber: #d97706;
  --red: #dc2626;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.06);
  --shadow-panel: 0 1px 2px rgba(16, 24, 40, 0.04);
  font-family: var(--font-main);
}

* {
  letter-spacing: 0 !important;
}

html {
  background: #f5f6f8;
}

body {
  overflow-x: hidden;
  background: #f5f6f8;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: var(--font-main);
}

.eyebrow,
.sales-modal-eyebrow,
.rail-kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.venue-global-header {
  display: none;
}

.venue-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #f5f6f8;
  box-shadow: none;
}

.venue-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  width: 264px;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 14px 18px;
  border-right: 1px solid var(--sidebar-border);
  background: var(--sidebar);
  color: #f8fafc;
}

.venue-nav {
  gap: 18px;
}

.venue-nav-group {
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sidebar-border);
}

.venue-nav-heading,
.venue-sidebar .venue-nav-heading {
  min-height: auto;
  margin: 0 0 4px;
  border: 0;
  padding: 0 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.venue-nav-group-body {
  display: grid !important;
  gap: 5px;
}

.venue-nav-item,
.venue-nav-subitem {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
}

.venue-nav-item::before,
.venue-nav-item::after {
  display: none !important;
}

.venue-nav-subitem {
  margin-left: 0;
  padding-left: 10px;
}

.venue-nav-item:hover {
  background: var(--sidebar-soft);
  color: #ffffff;
}

.venue-nav-item.is-active {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.venue-nav-logout {
  color: #fecaca;
}

.venue-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 16px;
  min-width: 0;
  padding: 16px 16px 20px;
}

.venue-workspace:has(.venue-side-rail.is-hidden) {
  grid-template-columns: minmax(0, 1fr);
}

.venue-side-rail.is-hidden {
  display: none !important;
}

.venue-main {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.venue-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: var(--shadow-panel);
}

.venue-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.15;
}

.topbar-subtitle {
  display: block;
  max-width: 760px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.venue-profile {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.venue-profile strong {
  color: var(--ink);
  font-size: 13px;
}

.venue-profile span {
  color: var(--muted);
  font-size: 12px;
}

.venue-avatar,
.venue-global-avatar {
  background: #eef4ff;
  color: var(--brand-dark);
}

.workspace-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.workspace-flow-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 13px 14px;
  box-shadow: var(--shadow-panel);
}

.workspace-flow-card.is-primary {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.workspace-flow-card small {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
}

.workspace-flow-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.workspace-flow-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.view-section {
  min-width: 0;
  max-width: 100%;
}

.panel-grid,
.finance-layout,
.settings-onboarding,
.profile-layout {
  min-width: 0;
  gap: 14px;
}

.panel,
.section-card,
.rail-panel,
.drawer-card,
.sales-modal-dialog,
.filters-card,
.venue-auth-card,
.overview-item,
.quick-action,
.report-summary-card,
.stat-card,
.campaign-flow-card,
.finance-insight-card,
.finance-pnl-card,
.review-summary-card,
.settings-panel,
.profile-card,
.drawer-metric,
.clients-segment-card,
.clients-loyalty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-panel);
}

.panel,
.section-card {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
}

.stat-card::before,
.stat-card::after,
.report-summary-card::before,
.report-summary-card::after {
  display: none !important;
}

.view-section:not(#calendar-view) .section-card,
.view-section:not(#calendar-view) .panel {
  overflow: hidden;
}

.panel-head,
.calendar-panel-head,
.clients-page-head,
.service-catalog-toolbar,
.service-catalog-summary {
  min-width: 0;
  max-width: 100%;
  gap: 14px;
}

.panel-actions {
  min-width: 0;
  flex-wrap: wrap;
}

.panel-head h2,
.operation-hero h2,
.clients-page-head h2,
.appointment-drawer-head h2,
.sales-modal-header h2,
.venue-report-cover h3,
.settings-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.2;
}

.panel-head p,
.operation-hero p:last-child,
.clients-page-head p,
.settings-section-head p,
.rail-panel p {
  color: var(--muted);
}

.ghost-button,
.menu-chip,
.table-action-button,
.calendar-icon-button,
.calendar-field-pill,
.calendar-ops-pill,
.report-period-select,
.settings-tab,
.clients-nav-link,
.service-category-item,
.service-link-button,
.service-row-more,
.service-row-card,
.radio-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--muted-strong);
  box-shadow: none;
}

.ghost-button,
.solid-button,
.table-action-button,
.calendar-ops-pill,
.calendar-field-pill,
.settings-tab,
.clients-nav-link {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}

.ghost-button:hover,
.menu-chip:hover,
.calendar-field-pill:hover,
.calendar-ops-pill:hover,
.settings-tab:hover,
.clients-nav-link:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--ink);
}

.solid-button,
.calendar-ops-pill.is-primary,
.table-action-button:not(.is-secondary) {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  box-shadow: none;
}

.solid-button:hover,
.calendar-ops-pill.is-primary:hover,
.table-action-button:not(.is-secondary):hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.calendar-field-pill.is-active,
.calendar-ops-pill.is-active,
.settings-tab.is-active,
.clients-nav-link.is-active,
.service-category-item.is-active,
.radio-chip.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand-dark);
}

.operation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  background: #eff6ff;
  padding: 16px 18px;
  box-shadow: none;
}

.operation-hero h2 {
  font-size: 21px;
}

.operation-hero p:last-child {
  margin: 6px 0 0;
  max-width: 760px;
  font-size: 13px;
}

.operation-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#calendar-view {
  min-width: 0;
}

#calendar-view .section-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: calc(100vh - 184px);
  min-height: 620px;
  border-color: var(--line);
  background: #ffffff;
  padding: 12px;
}

.calendar-toolbar,
#calendar-view .calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-field-pills,
.calendar-controls,
.calendar-icon-set {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-ops-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fafc;
  padding: 8px;
}

.calendar-ops-group {
  gap: 7px;
}

.calendar-panel-head {
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.calendar-legend {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-shell {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 8px;
}

#calendar-view .schedule-shell {
  overflow: auto;
}

.schedule-grid,
#calendar-view .schedule-grid {
  min-width: 1040px;
}

.schedule-table,
.data-table,
.clients-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-table th,
.data-table th,
.clients-table thead th {
  height: 42px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-table td,
.data-table td,
.clients-table tbody td {
  border-bottom: 1px solid #eef2f6;
  color: var(--ink);
  font-size: 13px;
}

#calendar-view .schedule-table th,
#calendar-view .schedule-table td {
  border-color: #eef2f6;
}

#calendar-view .time-cell {
  width: 52px;
  background: #ffffff;
  color: #94a3b8;
  font-size: 11px;
}

#calendar-view .schedule-slot-cell {
  padding: 3px;
  background: #ffffff;
}

#calendar-view .schedule-choice {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 4px 6px;
  background: #f8fafc;
}

#calendar-view .schedule-slot-cell.is-selected .schedule-choice {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

#calendar-view .slot-tyee .schedule-choice,
#calendar-view .status-marketplace .schedule-choice {
  background: #eff6ff;
  color: var(--brand-dark);
}

#calendar-view .slot-reserved .schedule-choice,
#calendar-view .slot-manual .schedule-choice {
  background: #f8fafc;
  color: var(--ink);
}

#calendar-view .slot-closed .schedule-choice {
  background: #f1f5f9;
  color: #64748b;
}

.slot-channel-badge,
.open-slot-dot,
.status-pill,
.channel-pill,
.transaction-status,
.subscription-status {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.open-slot-dot,
.slot-channel-badge.is-tyee,
.slot-channel-badge.is-rezerv,
.slot-channel-badge.is-online {
  background: #dbeafe;
  color: var(--brand-dark);
}

.slot-channel-badge.is-manual,
.slot-channel-badge.is-manual-reserved {
  background: #fef3c7;
  color: #92400e;
}

.slot-channel-badge.is-subscription-reserved {
  background: #dcfce7;
  color: #166534;
}

.slot-channel-badge.is-closed {
  background: #e5e7eb;
  color: #475467;
}

.slot-popover {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.slot-option,
.slot-service-option,
.slot-popover-edit,
.slot-open-appointment {
  border-radius: var(--radius-sm);
}

.venue-side-rail {
  position: sticky;
  top: 16px;
  align-self: start;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 0;
}

.rail-panel {
  padding: 15px;
}

.rail-panel-feature {
  border-color: #dbeafe;
  background: #eff6ff;
  color: var(--ink);
}

.rail-panel-feature h3,
.rail-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.rail-panel-feature p,
.rail-note-card small,
.rail-appointment-card small,
.rail-waitlist-card small,
.guide-step small {
  color: var(--muted);
}

.guide-step,
.rail-appointment-card,
.rail-waitlist-card,
.rail-note-card {
  border-radius: var(--radius-md);
  padding: 12px;
  background: #ffffff;
}

.guide-step.is-complete {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.guide-step-index {
  background: #eef4ff;
  color: var(--brand-dark);
}

.rail-waitlist-card > span {
  background: #eff6ff;
  color: var(--brand-dark);
}

#customers-view .section-card {
  padding: 0;
  overflow: hidden;
  border-color: var(--line);
  background: #ffffff;
}

.clients-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 680px;
  background: #ffffff;
}

.clients-side-nav {
  border-right: 1px solid var(--line);
  background: #f8fafc;
  padding: 22px 18px;
}

.clients-nav-label {
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.2;
}

.clients-nav-link {
  justify-content: flex-start;
  color: var(--muted-strong);
}

.clients-stage {
  padding: 24px;
  min-width: 0;
}

.clients-page-head {
  align-items: center;
}

.clients-page-head h2 {
  color: var(--ink);
  font-size: 22px;
}

.clients-page-head p,
.clients-table-foot,
.clients-table tbody td small,
.clients-search-field span,
.clients-segment-card p,
.clients-loyalty-card p,
.clients-loyalty-card small {
  color: var(--muted);
}

.clients-count-badge {
  background: #eef4ff;
  color: var(--brand-dark);
}

.clients-import-banner {
  margin-top: 18px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  background: #eff6ff;
  padding: 18px;
}

.clients-import-banner strong {
  color: var(--ink);
  font-size: 20px;
}

.clients-import-banner p {
  color: var(--muted);
}

.clients-import-actions .ghost-button,
.text-button {
  color: var(--brand-dark);
}

.clients-toolbar,
.clients-table-shell,
.clients-empty-state,
.clients-segment-card,
.clients-loyalty-card {
  border-color: var(--line);
  background: #ffffff;
}

.clients-search-field input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
}

.clients-table-shell {
  border-radius: var(--radius-lg);
}

.clients-table tbody td {
  color: var(--ink);
}

.clients-table tbody td strong,
.clients-empty-state strong,
.clients-segment-card strong,
.clients-loyalty-card strong {
  color: var(--ink);
}

.clients-table tbody tr:hover {
  background: #f8fafc;
}

.clients-avatar-cell,
.clients-segment-card span,
.clients-loyalty-head span {
  background: #eef4ff;
  color: var(--brand-dark);
}

.stat-grid,
.report-summary-grid,
.campaigns-kpi-grid,
.finance-kpi-grid {
  gap: 12px;
}

.stat-card,
.report-summary-card,
.venue-report-metric {
  padding: 16px;
}

.stat-card::before {
  background: var(--brand);
}

.stat-card small,
.report-summary-card small,
.venue-report-metric span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong,
.report-summary-card strong,
.venue-report-metric strong {
  color: var(--ink);
  font-size: 24px;
}

.overview-item,
.quick-action,
.campaign-flow-card,
.finance-insight-card {
  border-color: var(--line);
  background: #ffffff;
}

.service-catalog-sidebar,
.service-catalog-main,
.service-editor-shell,
.service-catalog-card,
.settings-section,
.settings-area-card,
.settings-feature-card,
.settings-media-card,
.settings-empty-box,
.settings-upload-box,
.billing-shell,
.profile-form-card,
.review-card,
.venue-report-section,
.venue-report-document,
.venue-report-table {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.service-catalog-toolbar,
.service-catalog-summary,
.service-row-card,
.service-editor-shell,
.settings-section,
.settings-feature-summary,
.settings-empty-box,
.settings-upload-box,
.venue-report-section {
  border-radius: var(--radius-lg);
}

.service-row-card.is-selected,
.service-row-card:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: none;
}

.settings-tabs {
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.settings-tab {
  border-radius: 999px;
}

.settings-onboarding-form,
.settings-form-grid,
.profile-form-grid {
  gap: 14px;
}

.settings-input-field input,
.settings-input-field textarea,
.settings-input-field select,
.sales-field input,
.sales-field textarea,
.report-period-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  min-height: 42px;
}

.settings-input-field span,
.sales-field span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

.table-shell,
.clients-table-shell,
.venue-report-table {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.data-table {
  min-width: 1040px;
}

.data-table td {
  padding: 12px;
  vertical-align: middle;
}

.table-action-stack {
  gap: 6px;
}

.status-pill.is-active,
.subscription-status.is-active,
.transaction-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.is-passive {
  background: #f1f5f9;
  color: #475467;
}

.channel-pill {
  background: #eef4ff;
  color: var(--brand-dark);
}

.appointment-drawer-backdrop,
.sales-modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.appointment-drawer-panel {
  width: min(480px, 100vw);
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.16);
}

.appointment-drawer-head {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.appointment-drawer-body {
  background: #f8fafc;
}

.drawer-card,
.drawer-metric {
  background: #ffffff;
}

.sales-modal-dialog {
  width: min(680px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.sales-modal-header,
.sales-modal-footer {
  border-color: var(--line);
}

.venue-report-document {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 18px;
}

.venue-report-cover {
  border-radius: var(--radius-lg);
  background: #eff6ff;
  color: var(--ink);
}

.venue-report-cover span,
.venue-report-cover p,
.venue-report-cover time {
  color: var(--muted);
}

@media (max-width: 1280px) {
  .venue-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

  .venue-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .venue-nav-group-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .venue-workspace {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .venue-side-rail {
    position: static;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #calendar-view .section-card {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .venue-sidebar {
    width: 100%;
    border-radius: 0;
    padding: 14px;
  }

  .venue-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .venue-nav-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .venue-nav-group-body {
    grid-template-columns: 1fr !important;
  }

  .venue-nav-heading,
  .venue-sidebar .venue-nav-heading {
    font-size: 11px;
  }

  .venue-nav-item,
  .venue-nav-subitem {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .venue-workspace {
    padding: 10px;
  }

  .venue-topbar,
  .operation-hero,
  .calendar-toolbar,
  .calendar-ops-strip,
  .panel-head,
  .clients-page-head,
  .clients-import-banner,
  .clients-toolbar,
  .service-catalog-toolbar,
  .service-catalog-summary {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .venue-topbar {
    padding: 14px;
  }

  .venue-topbar h1 {
    font-size: 22px;
  }

  .topbar-actions,
  .operation-hero-actions,
  .clients-page-actions,
  .clients-import-actions,
  .panel-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .venue-profile {
    border-left: 0;
    padding-left: 0;
  }

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

  .venue-side-rail,
  .clients-shell,
  .clients-segment-grid,
  .clients-loyalty-grid,
  .finance-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .clients-side-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .clients-stage {
    padding: 16px;
  }

  .schedule-grid,
  #calendar-view .schedule-grid {
    min-width: 920px;
  }

  .data-table,
  .clients-table {
    min-width: 760px;
  }
}

/* Final service menu cleanup */
.venue-sidebar .venue-nav-item::before,
.venue-sidebar .venue-nav-item::after,
.venue-sidebar .venue-nav-subitem::before,
.venue-sidebar .venue-nav-subitem::after,
.venue-sidebar .venue-nav-logout::before,
.venue-sidebar .venue-nav-logout::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

.venue-sidebar .venue-nav-item,
.venue-sidebar .venue-nav-subitem {
  padding: 10px 12px !important;
  border-radius: 10px;
  letter-spacing: 0;
}

.venue-sidebar .venue-nav-item.is-active {
  box-shadow: none !important;
}

#sales-products-view .section-card {
  overflow: visible;
}

#sales-products-view .panel-head {
  margin-bottom: 20px;
}

.sales-products-layout {
  display: grid !important;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  width: 100%;
  min-width: 0;
}

.service-catalog-sidebar,
.service-catalog-main,
.service-catalog-card,
.service-catalog-rows,
.service-editor-shell {
  min-width: 0;
}

.service-catalog-sidebar {
  position: sticky;
  top: 16px;
  width: 100%;
}

.service-catalog-main {
  display: grid !important;
  gap: 14px !important;
  width: 100%;
}

.service-catalog-card,
.service-catalog-toolbar,
.service-catalog-summary,
.service-row-card,
.service-editor-shell {
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.service-catalog-card {
  padding: 18px !important;
}

.service-category-list {
  gap: 10px;
}

.service-category-item {
  min-height: 50px;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  color: var(--ink) !important;
}

.service-category-item.is-active {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: var(--brand-dark) !important;
}

.service-category-item em {
  flex: 0 0 auto;
  background: #ffffff;
}

.service-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content !important;
  min-height: 36px;
  margin-top: 2px;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  background: #ffffff !important;
  color: var(--muted-strong, #475569) !important;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.service-catalog-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
}

.service-search-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 10px !important;
  width: 100%;
}

.service-search-input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px;
  border-radius: 14px !important;
}

.service-catalog-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px !important;
}

.service-catalog-rows {
  display: grid !important;
  gap: 12px !important;
}

.service-row-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 72px;
  padding: 16px !important;
  overflow: visible !important;
}

.service-row-card.is-selected,
.service-row-card:hover {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
}

.service-empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.service-row-accent {
  display: none !important;
}

.service-row-main {
  min-width: 0;
  padding: 0 !important;
}

.service-row-main strong,
.service-row-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-row-price {
  white-space: nowrap;
}

.service-row-more {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  background: #ffffff !important;
  color: var(--muted-strong, #475569);
  font-size: 18px !important;
  line-height: 1;
}

.service-editor-shell {
  padding: 18px !important;
}

@media (max-width: 980px) {
  .sales-products-layout {
    grid-template-columns: 1fr !important;
  }

  .service-catalog-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .service-catalog-toolbar,
  .service-search-shell,
  .service-catalog-summary,
  .service-row-card {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .service-catalog-summary {
    display: grid !important;
  }

  .service-row-price,
  .service-row-more {
    justify-self: start;
  }
}

.settings-ops-hero,
.service-blueprint-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.settings-ops-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.settings-ops-hero > div:first-child {
  display: grid;
  gap: 6px;
}

.settings-ops-hero span,
.service-blueprint-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-ops-hero h3,
.settings-ops-hero p {
  margin: 0;
}

.settings-ops-hero h3 {
  color: var(--ink);
  font-size: 22px;
}

.settings-ops-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-ops-score {
  display: grid;
  min-width: 118px;
  gap: 2px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 12px;
  background: #eff6ff;
  text-align: center;
}

.settings-ops-score strong {
  color: var(--brand-dark);
  font-size: 26px;
}

.settings-ops-score span {
  color: var(--brand-dark);
  text-transform: none;
}

.settings-ops-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.settings-module-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
}

.settings-module-summary strong {
  color: var(--ink);
}

.settings-module-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.settings-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.settings-module-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.settings-module-card input {
  width: 16px;
  height: 16px;
}

.settings-module-card.is-enabled {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.settings-module-card.is-required {
  cursor: default;
}

.settings-module-card strong {
  color: var(--ink);
  font-size: 14px;
}

.settings-module-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-module-badge {
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #ffffff;
  color: var(--muted-strong, #475569);
  font-size: 11px;
  font-weight: 800;
}

.settings-module-card.is-required .settings-module-badge {
  border-color: #bfdbfe;
  color: var(--brand-dark);
}

.service-blueprint-card {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.service-blueprint-card strong {
  color: var(--ink);
  font-size: 15px;
}

.service-blueprint-card small {
  color: var(--muted);
  line-height: 1.45;
}

.service-blueprint-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-blueprint-card div span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f8fafc;
  color: var(--muted-strong, #475569);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .settings-ops-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .settings-ops-hero,
  .settings-module-summary {
    display: grid;
  }

  .settings-ops-score {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .settings-ops-meta-grid,
  .settings-module-grid {
    grid-template-columns: 1fr;
  }
}

/* Calendar premium scheduler polish */
body:has(#calendar-view:not(.hidden)) .venue-workspace {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 12px 14px 16px;
}

body:has(#calendar-view:not(.hidden)) .venue-side-rail {
  display: none !important;
}

body:has(#calendar-view:not(.hidden)) .venue-topbar {
  min-height: 58px;
  margin-bottom: 10px;
  border-radius: 14px;
  padding: 10px 14px;
}

body:has(#calendar-view:not(.hidden)) .venue-topbar h1 {
  font-size: 20px;
}

body:has(#calendar-view:not(.hidden)) #workspace-flow,
#calendar-view .operation-hero {
  display: none !important;
}

#calendar-view .section-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  height: calc(100vh - 92px) !important;
  min-height: 690px;
  overflow: hidden;
  border-color: #e6eaf1;
  border-radius: 16px;
  background: #ffffff;
  padding: 0 !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  --calendar-row-height: 46px;
}

#calendar-view .calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  border-bottom: 1px solid #edf0f5;
  background: #ffffff;
  padding: 14px 16px;
}

.calendar-toolbar-left {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.calendar-toolbar-kicker {
  color: #667085;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
}

#calendar-view .calendar-field-pills {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

#calendar-view .calendar-field-pills::-webkit-scrollbar {
  display: none;
}

#calendar-view .calendar-field-pill {
  flex: 0 0 auto;
  min-height: 32px;
  max-width: 190px;
  border-radius: 999px;
  padding: 0 12px;
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .calendar-field-pill.is-active {
  border-color: #bfd8ff;
  background: #eff6ff;
  color: #1d4ed8;
}

#calendar-view .calendar-controls {
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 4px;
}

#calendar-view .calendar-icon-set {
  flex-wrap: nowrap;
  gap: 3px;
}

#calendar-view .calendar-today-button,
#calendar-view .calendar-icon-button,
#calendar-view .week-range-pill {
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #344054;
  font-size: 12px;
  font-weight: 760;
  box-shadow: none;
}

#calendar-view .calendar-today-button {
  padding: 0 10px;
  background: #ffffff;
}

#calendar-view .calendar-icon-button {
  width: 30px;
  padding: 0;
  font-size: 19px;
  line-height: 1;
}

#calendar-view .calendar-icon-button:hover,
#calendar-view .calendar-today-button:hover {
  background: #ffffff;
  color: #1d4ed8;
}

#calendar-view .week-range-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  border-left: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 0 8px;
  color: #111827;
}

.calendar-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.calendar-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 3px;
}

.calendar-view-switch button {
  min-width: 52px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.calendar-view-switch button.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.calendar-create-button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.calendar-create-button:hover {
  background: #1d4ed8;
}

#calendar-view .calendar-ops-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  background: #fbfcff;
  padding: 10px 16px;
}

#calendar-view .calendar-ops-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

#calendar-view .calendar-ops-pill {
  min-height: 31px;
  border-color: #e4e7ec;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}

#calendar-view .calendar-ops-pill.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

#calendar-view .calendar-ops-pill.is-primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

#calendar-view .calendar-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  border-bottom: 1px solid #edf0f5;
  padding: 11px 16px;
}

#calendar-view .calendar-panel-head .eyebrow {
  display: block !important;
  margin: 0 0 2px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
}

#calendar-view .panel-head h2 {
  color: #111827;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

#calendar-view .calendar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#calendar-view .calendar-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

#calendar-view .schedule-shell {
  min-height: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 0;
}

#calendar-view .schedule-grid {
  min-width: 1120px;
  width: 100%;
  height: auto;
}

#calendar-view .schedule-table {
  min-width: 1120px;
  width: 100%;
  height: auto !important;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

#calendar-view .schedule-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 58px !important;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #dfe5ee;
  background: #ffffff;
  color: #111827;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

#calendar-view .schedule-time-head {
  left: 0;
  z-index: 10;
  width: 64px !important;
  color: #98a2b3 !important;
  font-size: 11px !important;
  text-align: right !important;
}

#calendar-view .schedule-time-head span {
  display: block;
  padding-right: 8px;
}

#calendar-view .schedule-day-name,
#calendar-view .schedule-day-date,
#calendar-view .schedule-day-month {
  display: block !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .schedule-day-name {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

#calendar-view .schedule-day-date {
  width: max-content;
  min-width: 30px;
  margin: 3px auto 1px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

#calendar-view .schedule-day-month {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
}

#calendar-view .schedule-table th.is-today-head,
#calendar-view .schedule-table th.is-today {
  background: #f8fbff;
  box-shadow: inset 0 3px 0 #2563eb;
}

#calendar-view .schedule-table th.is-today-head .schedule-day-date,
#calendar-view .schedule-table th.is-today .schedule-day-date {
  background: #2563eb;
  color: #ffffff;
}

#calendar-view .schedule-table tbody tr,
#calendar-view .schedule-table td {
  height: var(--calendar-row-height) !important;
}

#calendar-view .schedule-table td {
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

#calendar-view .time-cell {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 64px !important;
  padding: 6px 10px 0 0;
  background: #ffffff;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-align: right;
  vertical-align: top;
}

#calendar-view .schedule-slot-cell {
  position: relative;
  padding: 3px;
  background: #ffffff;
  vertical-align: middle;
}

#calendar-view .schedule-slot-cell.is-today-column {
  background: #f8fbff;
}

#calendar-view .schedule-slot-cell.is-filter-dimmed {
  opacity: 0.24;
}

#calendar-view .schedule-slot-cell.is-filter-dimmed:hover,
#calendar-view .schedule-slot-cell.is-filter-dimmed.is-selected {
  opacity: 1;
}

#calendar-view .schedule-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  height: calc(var(--calendar-row-height) - 7px);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 8px;
  overflow: hidden;
  box-shadow: none;
}

#calendar-view .schedule-slot-cell.is-selected {
  z-index: 30;
}

#calendar-view .schedule-slot-cell.is-selected .schedule-choice {
  overflow: visible;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

#calendar-view .slot-tyee .schedule-choice {
  justify-content: flex-start;
  background: transparent;
  color: transparent;
}

#calendar-view .slot-tyee .schedule-choice:hover,
#calendar-view .slot-tyee.is-selected .schedule-choice,
#calendar-view .slot-explicit-rezerv .schedule-choice {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 3px 0 0 #60a5fa;
}

#calendar-view .open-slot-dot {
  display: block !important;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  min-height: 0;
  border: 0;
  border-radius: 999px;
  background: #c7dbff;
  padding: 0;
  color: transparent;
  opacity: 0.8;
}

#calendar-view .slot-tyee .open-slot-title,
#calendar-view .slot-tyee .open-slot-meta {
  position: static;
  width: auto;
  height: auto;
  min-width: 0;
  overflow: hidden;
  clip: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-tyee .open-slot-title {
  display: none !important;
  flex: 1 1 auto;
  color: currentColor;
  font-size: 11px;
  font-weight: 760;
}

#calendar-view .slot-tyee .open-slot-meta {
  display: none !important;
  color: #667085;
  font-size: 10px;
  font-weight: 650;
}

#calendar-view .slot-tyee .schedule-choice:hover .open-slot-title,
#calendar-view .schedule-slot-cell.is-selected .open-slot-title {
  display: block !important;
}

#calendar-view .slot-tyee .schedule-choice:hover .open-slot-meta,
#calendar-view .schedule-slot-cell.is-selected .open-slot-meta {
  display: block !important;
}

#calendar-view .slot-reserved .schedule-choice,
#calendar-view .slot-manual .schedule-choice,
#calendar-view .slot-closed .schedule-choice,
#calendar-view .slot-subscription-reserved .schedule-choice,
#calendar-view .slot-online .schedule-choice,
#calendar-view .slot-eft .schedule-choice,
#calendar-view .slot-cash .schedule-choice,
#calendar-view .slot-corporate .schedule-choice {
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 3px 0 0 currentColor;
}

#calendar-view .slot-reserved .schedule-choice {
  background: #eef5ff;
  color: #1d4ed8;
}

#calendar-view .slot-online .schedule-choice {
  background: #eaf2ff;
  color: #175cff;
}

#calendar-view .slot-subscription-reserved .schedule-choice {
  background: #eafaf1;
  color: #138a48;
}

#calendar-view .slot-manual .schedule-choice,
#calendar-view .slot-eft .schedule-choice {
  background: #fff7e6;
  color: #b45309;
}

#calendar-view .slot-cash .schedule-choice,
#calendar-view .slot-manual-reserved .schedule-choice {
  background: #eef8ff;
  color: #075985;
}

#calendar-view .slot-corporate .schedule-choice {
  background: #f5f3ff;
  color: #6d28d9;
}

#calendar-view .slot-closed .schedule-choice {
  background: #f3f4f6;
  color: #667085;
}

#calendar-view .schedule-slot-cell strong:not(.open-slot-title) {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .schedule-slot-cell span:not(.open-slot-dot):not(.open-slot-meta):not(.slot-option-icon) {
  overflow: hidden;
  color: currentColor;
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-channel-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 24px;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.7);
  color: currentColor;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

#calendar-view .slot-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  width: 286px;
  gap: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  color: #111827;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
}

#calendar-view .slot-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
  border-left: 1px solid rgba(226, 232, 240, 0.96);
  background: #ffffff;
  transform: rotate(45deg);
}

#calendar-view .slot-popover.is-popover-right {
  right: 0;
  left: auto;
}

#calendar-view .slot-popover.is-popover-right::before {
  right: 24px;
  left: auto;
}

#calendar-view .slot-popover.is-popover-above {
  top: auto;
  bottom: calc(100% + 8px);
}

#calendar-view .slot-popover.is-popover-above::before {
  top: auto;
  bottom: -6px;
  border: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

#calendar-view .slot-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#calendar-view .slot-popover-head strong {
  flex: 0 0 auto;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

#calendar-view .slot-popover-head span {
  display: block !important;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

#calendar-view .slot-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
}

#calendar-view .slot-option {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 10px 0 6px;
  color: #344054;
  text-align: left;
}

#calendar-view .slot-option:hover,
#calendar-view .slot-option.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

#calendar-view .schedule-slot-cell .slot-option-icon {
  display: grid !important;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

#calendar-view .slot-option.is-active .slot-option-icon {
  background: #2563eb;
  color: #ffffff;
}

#calendar-view .slot-option-closed.is-active .slot-option-icon {
  background: #667085;
}

#calendar-view .slot-option-manual.is-active .slot-option-icon {
  background: #d97706;
}

#calendar-view .slot-option > span:not(.slot-option-icon) {
  display: block !important;
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 760;
}

#calendar-view .slot-service-picker {
  display: grid;
  gap: 7px;
  border-top: 1px solid #edf0f5;
  padding-top: 9px;
}

#calendar-view .slot-service-picker p {
  margin: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

#calendar-view .slot-service-option {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 10px;
  color: #344054;
  text-align: left;
}

#calendar-view .slot-service-option:hover,
#calendar-view .slot-service-option.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

#calendar-view .slot-service-option strong,
#calendar-view .slot-service-option span {
  display: block !important;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-service-option strong {
  font-size: 12px;
  font-weight: 760;
}

#calendar-view .slot-service-option span {
  color: #667085;
  font-size: 11px;
  font-weight: 650;
}

#calendar-view .slot-popover-edit,
#calendar-view .slot-open-appointment {
  min-height: 36px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
}

#calendar-view .slot-popover-edit {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #344054;
}

#calendar-view .slot-open-appointment {
  border: 0;
  background: #111827;
  color: #ffffff;
}

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

  .venue-sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-border);
    padding: 12px 14px;
  }

  .venue-nav {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .venue-nav-group {
    flex: 0 0 auto;
    min-width: max-content;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .venue-nav-group-body {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }

  .venue-nav-heading,
  .venue-sidebar .venue-nav-heading {
    padding: 0 4px;
    font-size: 10px;
  }

  .venue-nav-item,
  .venue-nav-subitem {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
  }

  body:has(#calendar-view:not(.hidden)) .venue-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  #calendar-view .calendar-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .calendar-view-actions,
  #calendar-view .calendar-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  #calendar-view .section-card {
    height: auto !important;
    min-height: 680px;
  }

  #calendar-view .calendar-toolbar,
  #calendar-view .calendar-ops-strip,
  #calendar-view .calendar-panel-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #calendar-view .calendar-controls,
  .calendar-view-actions {
    flex-wrap: wrap;
  }

  #calendar-view .schedule-grid,
  #calendar-view .schedule-table {
    min-width: 940px;
  }
}

/* Premium glass sidebar */
:root {
  --sidebar: rgba(42, 49, 51, 0.84);
  --sidebar-soft: rgba(255, 255, 255, 0.07);
  --sidebar-border: rgba(255, 255, 255, 0.16);
}

.venue-layout {
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, #f6f7f9 0%, #eef1f5 100%);
}

.venue-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  width: 232px;
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(52, 60, 63, 0.82) 0%, rgba(38, 45, 48, 0.88) 54%, rgba(31, 37, 40, 0.92) 100%),
    radial-gradient(circle at 24px 16px, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(42, 49, 51, 0.84);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    18px 0 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
  padding: 20px 12px 16px;
  color: #f8fafc;
}

.venue-sidebar .venue-nav-heading {
  color: rgba(226, 232, 240, 0.68);
}

.venue-nav {
  gap: 15px;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-flow: row !important;
}

.venue-nav-group {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
  min-width: 0;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.venue-nav-group-body {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4px;
}

.venue-nav-item,
.venue-nav-subitem {
  min-height: 36px;
  border-radius: 9px;
  padding: 8px 9px;
  color: rgba(241, 245, 249, 0.78);
  font-size: 12.5px;
  font-weight: 650;
}

.venue-nav-item:hover,
.venue-nav-subitem:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.venue-nav-item.is-active,
.venue-nav-subitem.is-active {
  border-color: rgba(148, 188, 255, 0.38);
  background: rgba(37, 99, 235, 0.22);
  color: #ffffff;
  box-shadow:
    inset 3px 0 0 #7fb3ff,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.venue-nav-logout {
  color: rgba(254, 202, 202, 0.88);
}

@media (max-width: 1240px) {
  .venue-layout {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .venue-sidebar {
    position: sticky;
    top: 0;
    width: 224px;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0;
    padding: 16px 10px;
  }

  .venue-nav {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
  }

  .venue-nav-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-width: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
  }

  .venue-nav-group-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px;
  }

  .venue-nav-item,
  .venue-nav-subitem {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

}

@media (max-width: 860px) {
  .venue-layout {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .venue-sidebar {
    width: 204px;
  }
}

/* Premium surface pass across all venue screens */
:root {
  --line: #e3e8f0;
  --soft: #f5f7fa;
  --panel-tint: #fbfcfe;
  --muted: #667085;
  --muted-strong: #475467;
}

.venue-workspace {
  gap: 14px;
  padding: 16px 18px 22px;
  background:
    radial-gradient(circle at 72% 0, rgba(37, 99, 235, 0.06), transparent 28%),
    linear-gradient(180deg, #f6f7f9 0%, #eef2f6 100%);
}

.venue-topbar {
  min-height: 72px;
  border-color: rgba(216, 224, 235, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  padding: 14px 18px;
}

.venue-topbar h1 {
  font-size: 23px;
  font-weight: 780;
}

.topbar-subtitle {
  color: #5f6b7a;
  font-size: 13px;
  font-weight: 620;
}

.venue-topbar .eyebrow {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
}

.marketplace-link,
.venue-profile {
  border-color: #dfe5ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.panel,
.section-card,
.stat-card,
.report-summary-card,
.overview-item,
.quick-action,
.finance-insight-card,
.finance-pnl-card,
.review-card,
.review-score-card,
.review-request-note,
.clients-segment-card,
.clients-loyalty-card,
.settings-section,
.settings-location-block,
.settings-upload-box,
.settings-empty-box,
.settings-note {
  border-color: #e3e8f0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045) !important;
}

.section-card,
.panel {
  padding: 18px;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head h2,
.operation-hero h2,
.clients-page-head h2,
.settings-section-head h3,
.service-catalog-card strong,
.service-catalog-summary strong {
  color: #111827;
  font-weight: 780;
}

.panel-head h2,
.operation-hero h2,
.clients-page-head h2 {
  font-size: 20px;
}

.eyebrow,
.sales-modal-eyebrow,
.rail-kicker {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
}

.stat-card {
  min-height: 104px;
  padding: 18px 18px 16px;
}

.stat-card small,
.report-summary-card small {
  color: #667085;
  font-size: 12px;
  font-weight: 720;
}

.stat-card strong,
.report-summary-card strong {
  color: #111827;
  font-size: 25px;
  font-weight: 790;
  letter-spacing: 0;
}

.overview-item,
.quick-action {
  padding: 15px 16px;
}

.ghost-button,
.solid-button,
.table-action-button,
.calendar-ops-pill,
.calendar-field-pill,
.settings-tab,
.clients-nav-link,
.service-link-button,
.service-row-more,
.report-period-select,
input,
select,
textarea {
  border-radius: 12px !important;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  color: #111827;
  border-color: #dfe5ee !important;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.data-table th,
.clients-table thead th,
.venue-report-table-head {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 760 !important;
}

.data-table td,
.clients-table tbody td {
  color: #344054;
  font-size: 13px;
}

#sales-products-view .section-card {
  padding: 18px;
}

.sales-products-layout {
  grid-template-columns: minmax(248px, 300px) minmax(0, 1fr) !important;
  gap: 16px !important;
}

.service-catalog-card,
.service-catalog-toolbar,
.service-catalog-summary,
.service-row-card,
.service-editor-shell {
  border-color: #e3e8f0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
}

.service-catalog-card {
  padding: 16px !important;
}

.service-category-item {
  min-height: 46px;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  color: #344054 !important;
}

.service-category-item.is-active {
  border-color: #b7d3ff !important;
  background: #eef6ff !important;
  color: #1d4ed8 !important;
}

.service-catalog-toolbar,
.service-catalog-summary {
  padding: 14px !important;
}

.service-row-card {
  min-height: 64px;
  border-radius: 14px !important;
  padding: 13px 14px !important;
}

.service-row-card.is-selected,
.service-row-card:hover {
  border-color: #b7d3ff !important;
  background: #eef6ff !important;
}

.service-row-main strong {
  color: #344054;
  font-size: 15px;
  font-weight: 760;
}

.service-row-main span {
  color: #667085;
  font-size: 13px;
}

.service-row-price {
  color: #111827;
  font-size: 14px;
  font-weight: 780;
}

#sales-products-view .service-editor-shell {
  padding: 20px !important;
  background: #ffffff !important;
}

#sales-products-view .service-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7edf5;
}

#sales-products-view .service-editor-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.service-editor-kicker {
  color: #2563eb;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

#sales-products-view .service-editor-head strong {
  color: #111827;
  font-size: 22px;
  font-weight: 790;
  line-height: 1.2;
}

#sales-products-view .service-editor-head span:not(.service-editor-kicker) {
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

#sales-products-view .service-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.service-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  padding: 0 12px;
  color: #344054;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.service-status-toggle input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.service-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
}

.service-field-wide,
.service-editor-helper {
  grid-column: 1 / -1;
}

.service-editor-grid .settings-input-field {
  display: grid;
  gap: 8px;
}

.service-editor-grid .settings-input-field span {
  color: #475467;
  font-size: 12px;
  font-weight: 760;
}

.service-editor-grid input {
  min-height: 48px;
  border-radius: 12px !important;
  font-size: 14px;
}

.service-editor-helper {
  display: grid;
  gap: 4px;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}

.service-editor-helper strong {
  color: #111827;
  font-size: 13px;
  font-weight: 780;
}

.service-editor-helper span {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.service-payment-box {
  display: grid;
  gap: 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px;
  background: #f8fbff;
}

.service-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.service-payment-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.service-payment-head span {
  max-width: 430px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
}

.service-payment-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
}

.service-payment-grid select {
  min-height: 48px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  padding: 0 12px;
  color: #111827;
  background: #ffffff;
  font: inherit;
}

.service-payment-summary {
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

@media (max-width: 760px) {
  #sales-products-view .service-editor-head,
  #sales-products-view .service-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-editor-grid {
    grid-template-columns: 1fr;
  }

  .service-payment-head {
    display: grid;
  }

  .service-payment-head span {
    max-width: none;
    text-align: left;
  }

  .service-payment-grid {
    grid-template-columns: 1fr;
  }
}

#settings-view .section-card {
  padding: 18px;
}

.settings-tabs {
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e3e8f0;
  padding-bottom: 12px;
}

.settings-tab {
  min-height: 34px;
  border-radius: 999px !important;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 740;
}

.settings-onboarding {
  gap: 16px;
}

.settings-section {
  padding: 18px !important;
}

.settings-section-head {
  margin-bottom: 16px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 12px;
}

.settings-section-head h3 {
  font-size: 20px !important;
}

.settings-section-head p {
  color: #667085;
  font-size: 13px;
  font-weight: 620;
}

.settings-section-body {
  gap: 12px;
}

.settings-form-grid,
.profile-form-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.settings-input-field,
.settings-select-field,
.settings-question {
  gap: 7px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.settings-input-field:has(textarea),
.settings-select-field:has(textarea) {
  grid-column: 1 / -1;
}

.settings-input-field span,
.settings-select-field span,
.settings-question strong,
.settings-field span,
.profile-field span {
  color: #475467;
  font-size: 12px;
  font-weight: 740;
}

.settings-input-field input,
.settings-select-field input,
.settings-select-field select,
.settings-input-field textarea,
.settings-field input,
.settings-field select,
.settings-field textarea,
.profile-field input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border-color: #dfe5ee !important;
  border-radius: 12px !important;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
}

.settings-input-field textarea {
  min-height: 108px;
}

.settings-business-info-grid {
  grid-template-columns: minmax(180px, 1.15fr) minmax(150px, 0.85fr) minmax(160px, 0.85fr) minmax(190px, 1fr);
  gap: 10px 12px;
  align-items: start;
}

.settings-business-info-grid .settings-business-description-field,
.settings-business-info-grid .settings-input-field:has(textarea) {
  grid-column: span 2;
}

.settings-business-info-grid .settings-business-policy-field {
  grid-column: span 2;
}

.settings-business-info-grid .settings-input-field textarea {
  min-height: 88px;
}

.settings-contract-status {
  align-items: start;
  gap: 10px;
}

.settings-contract-status .settings-contract-check {
  width: fit-content;
  max-width: min(100%, 720px);
  align-items: center;
  justify-self: start;
  border-color: #dfe5ee;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: #111827;
  line-height: 1.35;
}

.settings-contract-status .settings-contract-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.settings-contract-status .settings-contract-check span {
  font-size: 13px;
  font-weight: 780;
}

@media (max-width: 1180px) {
  .settings-business-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-business-info-grid .settings-business-description-field,
  .settings-business-info-grid .settings-input-field:has(textarea),
  .settings-business-info-grid .settings-business-policy-field {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .settings-business-info-grid {
    grid-template-columns: 1fr;
  }

  .settings-business-info-grid .settings-business-description-field,
  .settings-business-info-grid .settings-input-field:has(textarea),
  .settings-business-info-grid .settings-business-policy-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .settings-contract-status .settings-contract-check {
    width: 100%;
  }
}

.settings-save-row,
.profile-save-row {
  border-top: 1px solid #edf0f5;
  margin-top: 4px;
  padding-top: 14px;
}

/* Tyee blue full-height glass rail */
:root {
  --venue-sidebar-width: 232px;
  --tyee-rail-blue: #0c2d72;
  --tyee-rail-blue-dark: #041746;
  --tyee-rail-cyan: #1769ac;
  --sidebar: rgba(3, 20, 68, 0.96);
  --sidebar-soft: rgba(255, 255, 255, 0.12);
  --sidebar-border: rgba(255, 255, 255, 0.28);
}

.venue-layout {
  display: block;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 0 0, rgba(64, 144, 240, 0.1), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.venue-workspace {
  width: auto;
  min-height: 100dvh;
  margin-left: var(--venue-sidebar-width);
}

.venue-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--venue-sidebar-width);
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(12, 45, 114, 0.985) 0%, rgba(4, 23, 70, 0.99) 44%, rgba(1, 9, 38, 0.995) 100%),
    radial-gradient(circle at 18% 0, rgba(23, 105, 172, 0.2), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(255, 255, 255, 0.07), transparent 28%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.16),
    22px 0 56px rgba(2, 10, 35, 0.48);
  backdrop-filter: blur(34px) saturate(1.32);
  -webkit-backdrop-filter: blur(34px) saturate(1.32);
}

.venue-sidebar::before,
.venue-sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.venue-sidebar::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 34%, rgba(0, 0, 0, 0.1));
  mix-blend-mode: screen;
  opacity: 0.9;
}

.venue-sidebar::after {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(10, 38, 103, 0), rgba(7, 24, 64, 0.3));
}

.venue-sidebar > * {
  position: relative;
  z-index: 1;
}

.venue-sidebar .venue-nav-heading {
  color: rgba(239, 247, 255, 0.76);
}

.venue-sidebar .venue-nav-item,
.venue-sidebar .venue-nav-subitem {
  color: rgba(255, 255, 255, 0.84);
}

.venue-sidebar .venue-nav-item:hover,
.venue-sidebar .venue-nav-subitem:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.venue-sidebar .venue-nav-item.is-active,
.venue-sidebar .venue-nav-subitem.is-active {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow:
    inset 3px 0 0 #ffffff,
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(14, 58, 147, 0.18);
}

.venue-nav-group {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1240px) {
  :root {
    --venue-sidebar-width: 224px;
  }

  .venue-layout {
    display: block;
  }

  .venue-workspace {
    margin-left: var(--venue-sidebar-width);
  }

  .venue-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--venue-sidebar-width);
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --venue-sidebar-width: 204px;
  }
}

/* Calendar status colors */
#calendar-view .slot-tyee .schedule-choice,
#calendar-view .slot-explicit-rezerv .schedule-choice {
  background: #fff7ed !important;
  color: #ea580c !important;
  box-shadow: inset 3px 0 0 #f97316 !important;
}

#calendar-view .slot-tyee .open-slot-dot {
  display: none !important;
}

#calendar-view .slot-tyee .open-slot-title,
#calendar-view .slot-explicit-rezerv .open-slot-title {
  display: block !important;
  flex: 1 1 auto;
  color: #ea580c !important;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  text-transform: lowercase;
}

#calendar-view .slot-tyee .open-slot-meta,
#calendar-view .slot-explicit-rezerv .open-slot-meta {
  display: none !important;
}

#calendar-view .slot-manual .schedule-choice,
#calendar-view .slot-manual-reserved .schedule-choice {
  background: #eaf2ff !important;
  color: #1d4ed8 !important;
  box-shadow: inset 3px 0 0 #3b82f6 !important;
}

#calendar-view .slot-closed .schedule-choice {
  background: #f2f4f7 !important;
  color: #667085 !important;
  box-shadow: inset 3px 0 0 #98a2b3 !important;
}

#calendar-view .slot-closed .slot-channel-badge,
#calendar-view .slot-closed .slot-badge {
  background: #ffffff !important;
  color: #667085 !important;
}

#calendar-view .slot-manual .slot-channel-badge,
#calendar-view .slot-manual .slot-badge,
#calendar-view .slot-manual-reserved .slot-channel-badge,
#calendar-view .slot-manual-reserved .slot-badge {
  background: rgba(255, 255, 255, 0.76) !important;
  color: #1d4ed8 !important;
}

#calendar-view .legend-open {
  border: 0 !important;
  background: #f97316 !important;
}

#calendar-view .legend-manual {
  background: #3b82f6 !important;
}

#calendar-view .legend-closed {
  background: #98a2b3 !important;
}

/* Warm control center accents */
.venue-sidebar .venue-nav-item[data-view="overview"] {
  border-color: rgba(255, 186, 128, 0.38);
  background: rgba(251, 146, 60, 0.2);
  color: #fff4ea;
  box-shadow: inset 3px 0 0 rgba(255, 183, 77, 0.86);
}

.venue-sidebar .venue-nav-item[data-view="overview"]:hover,
.venue-sidebar .venue-nav-item[data-view="overview"].is-active {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #ff8a3d 0%, #f97316 52%, #d95b0f 100%);
  color: #ffffff;
  box-shadow:
    inset 3px 0 0 #fff7ed,
    0 14px 28px rgba(216, 91, 15, 0.24);
}

body[data-venue-view="overview"] .venue-workspace {
  background:
    radial-gradient(circle at 16% 0, rgba(255, 138, 61, 0.26), transparent 34%),
    radial-gradient(circle at 100% 24%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #f6f8fb 44%, #eef3f8 100%);
}

body[data-venue-view="overview"] .venue-topbar {
  border-color: rgba(255, 198, 153, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.96) 0%, rgba(249, 115, 22, 0.96) 54%, rgba(216, 83, 10, 0.96) 100%),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.28), transparent 30%);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(216, 91, 15, 0.2);
}

body[data-venue-view="overview"] .venue-topbar h1,
body[data-venue-view="overview"] .venue-topbar .topbar-subtitle,
body[data-venue-view="overview"] .venue-topbar .eyebrow {
  color: #ffffff;
}

body[data-venue-view="overview"] .marketplace-link,
body[data-venue-view="overview"] .venue-profile {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

#overview-view {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.78), rgba(255, 255, 255, 0.7) 42%, rgba(239, 246, 255, 0.72) 100%);
  padding: 16px;
}

#overview-view .panel,
#overview-view .stat-card,
#overview-view .overview-item,
#overview-view .quick-action {
  border-color: rgba(251, 146, 60, 0.18) !important;
}

#overview-view .stat-card:nth-child(1)::before {
  background: linear-gradient(90deg, #f97316, #fdba74);
}

#overview-view .stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, #2563eb, #93c5fd);
}

#overview-view .stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, #16a34a, #86efac);
}

#overview-view .stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
}

#overview-view .wide-panel {
  box-shadow:
    inset 4px 0 0 #f97316,
    0 14px 30px rgba(15, 23, 42, 0.05) !important;
}

#overview-view .side-panel {
  box-shadow:
    inset 4px 0 0 #2563eb,
    0 14px 30px rgba(15, 23, 42, 0.05) !important;
}

#overview-view .overview-item span,
#overview-view .quick-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  background: #fff1e7;
  color: #c2410c;
  padding: 0 10px;
  font-weight: 780;
}

#overview-view .overview-item:nth-child(2) span,
#overview-view .quick-action:nth-child(2) span {
  background: #eaf2ff;
  color: #1d4ed8;
}

#overview-view .overview-item:nth-child(3) span,
#overview-view .quick-action:nth-child(3) span {
  background: #eafaf1;
  color: #15803d;
}

#overview-view .overview-item:nth-child(4) span,
#overview-view .quick-action:nth-child(4) span {
  background: #f5f3ff;
  color: #6d28d9;
}

#overview-view .solid-button {
  border-color: #f97316 !important;
  background: #f97316 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

#overview-view .ghost-button {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
  color: #c2410c !important;
}

/* Left setup route */
.venue-setup-roadmap {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(9, 34, 91, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 32px rgba(1, 9, 38, 0.2);
}

.venue-setup-roadmap-head {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.venue-setup-roadmap-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.venue-setup-roadmap-head span {
  display: block;
  color: rgba(226, 239, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.venue-setup-roadmap-head strong {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.venue-setup-roadmap-head output {
  flex: 0 0 auto;
  min-width: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  line-height: 24px;
  text-align: center;
}

.venue-setup-roadmap-chevron {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(226, 239, 255, 0.86) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: transform 0.18s ease;
}

.venue-setup-roadmap.is-open .venue-setup-roadmap-chevron {
  transform: rotate(180deg);
}

.venue-setup-roadmap.is-collapsed {
  gap: 0;
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 14px;
}

.venue-setup-roadmap.is-collapsed .venue-setup-roadmap-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.venue-setup-roadmap.is-collapsed .venue-setup-roadmap-head strong {
  margin-top: 0;
  color: rgba(226, 239, 255, 0.7);
  font-size: 11px;
  font-weight: 720;
}

.venue-setup-roadmap.is-collapsed .venue-setup-steps {
  display: none;
}

.venue-nav-accordion {
  gap: 7px !important;
  padding-bottom: 10px;
}

.venue-nav-accordion .venue-nav-heading,
.venue-sidebar .venue-nav-accordion .venue-nav-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(239, 247, 255, 0.84);
  cursor: pointer;
  text-transform: uppercase;
}

.venue-nav-accordion .venue-nav-heading:hover,
.venue-nav-accordion.is-open .venue-nav-heading,
.venue-nav-accordion:has(.venue-nav-item.is-active) .venue-nav-heading {
  border-color: rgba(151, 218, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.venue-nav-heading-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-nav-heading-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(226, 239, 255, 0.9);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
}

.venue-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(226, 239, 255, 0.86);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s ease;
}

.venue-nav-accordion.is-open .venue-nav-chevron {
  transform: rotate(180deg);
}

.venue-nav-accordion.is-collapsed .venue-nav-group-body,
.venue-nav-accordion:not(.is-open) .venue-nav-group-body {
  display: none !important;
}

.venue-nav-accordion.is-open .venue-nav-group-body {
  display: grid !important;
}

.venue-setup-steps {
  display: grid;
  gap: 7px;
}

.venue-setup-step {
  appearance: none;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.venue-setup-step:hover {
  border-color: rgba(151, 218, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.venue-setup-step:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.92);
  outline-offset: 2px;
}

.venue-setup-step.is-complete {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(20, 184, 166, 0.14);
}

.venue-setup-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #dff5ff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.venue-setup-step.is-complete .venue-setup-step-index {
  border-color: rgba(167, 243, 208, 0.64);
  background: #25d695;
  color: #06352d;
}

.venue-setup-step-copy {
  min-width: 0;
}

.venue-setup-step-copy strong {
  display: block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-setup-step-copy small {
  display: block;
  margin-top: 3px;
  color: rgba(226, 239, 255, 0.68);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .venue-setup-roadmap {
    padding: 10px;
  }

  .venue-setup-roadmap-head {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  .venue-setup-roadmap-head output {
    justify-self: auto;
  }

  .venue-setup-step {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 44px;
    padding: 7px;
  }

  .venue-setup-step-index {
    width: 22px;
    height: 22px;
  }

  .venue-setup-step-copy small {
    display: none;
  }
}

/* Venue profile image */
.venue-avatar,
.venue-global-avatar {
  overflow: hidden;
  flex: 0 0 auto;
}

.venue-avatar.has-image,
.venue-global-avatar.has-image {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: #ffffff;
  color: transparent;
}

.venue-avatar img,
.venue-global-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-profile-image-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.settings-profile-image-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 50%;
  background: #eaf6ff;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 900;
}

.settings-profile-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-profile-image-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.settings-profile-image-copy > strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.settings-profile-image-copy > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.settings-profile-url-field {
  margin: 0;
}

.settings-profile-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  border: 1px solid #cfe8ff;
  border-radius: 10px;
  padding: 0 14px;
  background: #eef8ff;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.settings-profile-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

body[data-venue-view="overview"] #venue-branch {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ada-topbar-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(198, 226, 250, 0.9);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(238, 248, 255, 0.92);
  color: #07345f;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(4, 167, 244, 0.08);
}

.ada-topbar-button:hover {
  border-color: rgba(4, 167, 244, 0.58);
  background: #ffffff;
}

.ada-topbar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20d089;
  box-shadow: 0 0 0 5px rgba(32, 208, 137, 0.16);
}

@media (max-width: 760px) {
  .settings-profile-image-card {
    grid-template-columns: 1fr;
  }
}

/* Tyee assistant */
.ada-assistant {
  position: fixed;
  right: 24px;
  bottom: 36px;
  z-index: 10020;
  display: grid;
  justify-items: end;
  gap: 12px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.ada-assistant button,
.ada-assistant input {
  font: inherit;
}

.ada-launcher,
.ada-panel {
  pointer-events: auto;
}

.ada-launcher {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 12px;
  min-width: 248px;
  border: 1px solid rgba(191, 221, 249, 0.78);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 248, 255, 0.82)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(7, 52, 95, 0.2);
  color: #07153a;
  text-align: left;
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.ada-launcher:hover {
  border-color: rgba(4, 167, 244, 0.62);
  box-shadow: 0 22px 56px rgba(7, 52, 95, 0.26);
  transform: translateY(-2px);
}

.ada-launcher-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.8), transparent 38%),
    linear-gradient(145deg, #0ea5e9, #052b5f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.ada-launcher-avatar img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  object-position: center 14%;
  transform: translateY(8px) scale(1.08);
}

.ada-launcher-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ada-launcher-copy strong {
  color: #07153a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.ada-launcher-copy span {
  overflow: hidden;
  color: #61708a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ada-launcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20d089;
  box-shadow: 0 0 0 6px rgba(32, 208, 137, 0.16);
}

.ada-panel {
  width: 100%;
  max-height: min(720px, calc(100vh - 112px));
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(207, 226, 246, 0.92);
  border-radius: 24px;
  padding-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.92)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 80px rgba(7, 52, 95, 0.26);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.ada-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.ada-panel-head .eyebrow {
  margin-bottom: 4px;
  color: #0d5f9d;
  font-size: 10.5px;
  font-weight: 900;
}

.ada-panel-head h2 {
  margin: 0;
  color: #07153a;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}

.ada-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dde8f4;
  border-radius: 50%;
  background: #ffffff;
  color: #07153a;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.ada-stage {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 18px;
  border: 1px solid rgba(200, 224, 248, 0.9);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(4, 167, 244, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(7, 52, 95, 0.98), rgba(9, 29, 68, 0.94));
  color: #ffffff;
  overflow: hidden;
}

.ada-avatar-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 142px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(160deg, rgba(14, 165, 233, 0.34), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ada-avatar-stage img {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 172px;
  height: 208px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%) translateY(0);
  transform-origin: 50% 88%;
  animation: ada-idle-sway 5.6s ease-in-out infinite;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}

@keyframes ada-idle-sway {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-0.8deg);
  }

  50% {
    transform: translateX(-50%) translateY(-4px) rotate(0.9deg);
  }
}

.ada-stage-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ada-stage-copy strong {
  font-size: 16px;
  font-weight: 900;
}

.ada-stage-copy span {
  color: rgba(234, 245, 255, 0.8);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
}

.ada-speech {
  margin: 14px 18px 0;
  border: 1px solid #d8eafe;
  border-radius: 18px;
  padding: 13px 14px;
  background: #eff8ff;
  color: #0b2552;
  font-size: 13.5px;
  font-weight: 780;
  line-height: 1.45;
}

.ada-actions {
  display: grid;
  gap: 8px;
  max-height: 174px;
  overflow: auto;
  padding: 12px 18px 0;
}

.ada-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #dfebf8;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #07153a;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.ada-action:hover {
  border-color: rgba(4, 167, 244, 0.5);
  background: #f5fbff;
  transform: translateX(2px);
}

.ada-action-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eaf6ff;
  font-size: 15px;
}

.ada-action-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ada-action-copy strong {
  overflow: hidden;
  color: #07153a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ada-action-copy span {
  overflow: hidden;
  color: #66738a;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ada-action-next {
  color: #2784df;
  font-size: 18px;
  font-weight: 900;
}

.ada-chat-log {
  display: grid;
  gap: 8px;
  max-height: 148px;
  overflow: auto;
  margin: 14px 18px 0;
  padding: 2px 2px 4px;
}

.ada-chat-message {
  width: fit-content;
  max-width: 92%;
  border-radius: 15px;
  padding: 9px 11px;
  color: #07153a;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ada-chat-message.is-user {
  justify-self: end;
  background: #2784df;
  color: #ffffff;
}

.ada-chat-form {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-radius: 0 0 22px 22px;
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.72), rgba(246, 250, 255, 0.98));
}

.ada-chat-form input {
  min-width: 0;
  border: 1px solid #d9e7f5;
  border-radius: 14px;
  padding: 0 12px;
  background: #ffffff;
  color: #07153a;
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

.ada-chat-form input:focus {
  border-color: rgba(4, 167, 244, 0.72);
  box-shadow: 0 0 0 4px rgba(4, 167, 244, 0.1);
}

.ada-chat-form button,
.ada-live-button {
  border: 0;
  border-radius: 14px;
  background: #2784df;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.ada-chat-form button {
  min-height: 42px;
  padding: 0 14px;
}

.ada-live-button {
  display: block;
  width: calc(100% - 36px);
  min-height: 44px;
  margin: 12px 18px 0;
  background: linear-gradient(135deg, #04a7f4, #0869c9);
  box-shadow: 0 12px 24px rgba(4, 167, 244, 0.22);
}

.ada-live-button.is-waiting {
  background: #eaf3ff;
  color: #0b4c87;
  box-shadow: none;
}

.ada-stage iframe {
  width: 100%;
  min-height: 300px;
  height: min(44vh, 420px);
  grid-column: 1 / -1;
  border: 0;
  border-radius: 18px;
  background: #07153a;
}

.ada-assistant.is-live {
  width: min(280px, calc(100vw - 28px));
}

.ada-assistant.is-live .ada-launcher {
  display: none;
}

.ada-assistant.is-live .ada-panel {
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ada-assistant.is-live .ada-speech,
.ada-assistant.is-live .ada-actions,
.ada-assistant.is-live .ada-chat-log,
.ada-assistant.is-live .ada-chat-form,
.ada-assistant.is-live .ada-live-button {
  display: none;
}

.ada-assistant.is-live .ada-panel-head {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: block;
  padding: 0;
}

.ada-assistant.is-live .ada-panel-head > div {
  display: none;
}

.ada-assistant.is-live .ada-close {
  border-color: rgba(7, 21, 58, 0.18);
  background: rgba(7, 21, 58, 0.88);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(3, 15, 38, 0.32);
  backdrop-filter: blur(14px);
}

.ada-assistant.is-live .ada-close:hover {
  background: #07153a;
  border-color: rgba(255, 255, 255, 0.72);
}

.ada-assistant.is-live .ada-stage {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 34px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ada-assistant.is-live .ada-stage iframe {
  min-height: 390px;
  height: min(54vh, 470px);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 26px 54px rgba(7, 52, 95, 0.24));
}

@media (max-width: 760px) {
  .ada-assistant {
    right: 14px;
    bottom: 18px;
    width: min(390px, calc(100vw - 28px));
  }

  .ada-launcher {
    min-width: 210px;
  }

  .ada-panel {
    max-height: calc(100vh - 78px);
    border-radius: 20px;
  }

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

  .ada-avatar-stage {
    height: 110px;
  }
}

/* Jade workspace theme */
:root {
  --tyee-jade: #22b89d;
  --tyee-jade-strong: #158873;
  --tyee-jade-soft: #e8faf4;
  --tyee-graphite: #15211d;
  --tyee-graphite-deep: #0d1715;
  --tyee-ice: #f4f7f6;
  --tyee-violet: #6a5bff;
}

.venue-layout {
  background:
    radial-gradient(circle at 86% 4%, rgba(34, 184, 157, 0.14), transparent 34%),
    radial-gradient(circle at 28% 0, rgba(106, 91, 255, 0.07), transparent 32%),
    linear-gradient(180deg, #f6f8f8 0%, #edf3f2 100%);
}

.venue-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(39, 56, 49, 0.99) 0%, rgba(20, 34, 30, 0.99) 46%, rgba(10, 18, 16, 0.995) 100%),
    radial-gradient(circle at 20% 0, rgba(34, 184, 157, 0.18), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(255, 255, 255, 0.055), transparent 26%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    22px 0 56px rgba(8, 18, 16, 0.34);
}

.venue-sidebar::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 38%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 34%, rgba(0, 0, 0, 0.08));
  opacity: 0.82;
}

.venue-sidebar::after {
  background: linear-gradient(180deg, rgba(16, 31, 28, 0), rgba(4, 12, 10, 0.34));
}

.venue-sidebar .venue-nav-heading,
.venue-setup-roadmap-head span,
.venue-setup-step-copy small {
  color: rgba(234, 246, 242, 0.68);
}

.venue-sidebar .venue-nav-item,
.venue-sidebar .venue-nav-subitem,
.venue-setup-roadmap-head strong,
.venue-setup-step-copy strong {
  color: rgba(244, 251, 248, 0.9);
}

.venue-sidebar .venue-nav-item:hover,
.venue-sidebar .venue-nav-subitem:hover {
  border-color: rgba(182, 236, 225, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.venue-sidebar .venue-nav-item.is-active,
.venue-sidebar .venue-nav-subitem.is-active,
.venue-sidebar .venue-nav-item[data-view="overview"],
.venue-sidebar .venue-nav-item[data-view="overview"]:hover,
.venue-sidebar .venue-nav-item[data-view="overview"].is-active {
  border-color: rgba(123, 226, 204, 0.58);
  background: linear-gradient(135deg, #2dc7aa 0%, #3bd0a8 100%);
  color: #06241d;
  box-shadow:
    inset 3px 0 0 rgba(246, 255, 251, 0.9),
    0 14px 28px rgba(34, 184, 157, 0.24);
}

.venue-sidebar .venue-nav-item[data-view="overview"]:not(.is-active) {
  border-color: transparent;
  background: transparent;
  color: rgba(244, 251, 248, 0.9);
  box-shadow: none;
}

.venue-sidebar .venue-nav-item[data-view="overview"]:not(.is-active):hover {
  border-color: rgba(182, 236, 225, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.venue-setup-roadmap {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 32px rgba(7, 20, 17, 0.18);
}

.venue-setup-roadmap-head output,
.venue-nav-heading-count,
.venue-nav-chevron,
.venue-setup-roadmap-chevron {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(236, 252, 246, 0.92) !important;
}

.venue-nav-accordion .venue-nav-heading,
.venue-sidebar .venue-nav-accordion .venue-nav-heading {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 246, 242, 0.84);
}

.venue-nav-accordion .venue-nav-heading:hover,
.venue-nav-accordion.is-open .venue-nav-heading,
.venue-nav-accordion:has(.venue-nav-item.is-active) .venue-nav-heading {
  border-color: rgba(123, 226, 204, 0.36);
  background: rgba(255, 255, 255, 0.11);
}

.venue-setup-step:hover {
  border-color: rgba(123, 226, 204, 0.44);
}

.venue-setup-step.is-complete {
  border-color: rgba(123, 226, 204, 0.34);
  background: rgba(34, 184, 157, 0.14);
}

.venue-setup-step.is-complete .venue-setup-step-index {
  background: var(--tyee-jade);
  color: #06241d;
}

body[data-venue-view="overview"] .venue-workspace {
  background:
    radial-gradient(circle at 82% 8%, rgba(34, 184, 157, 0.13), transparent 34%),
    radial-gradient(circle at 30% 0, rgba(106, 91, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #f7faf9 0%, #f3f7f6 48%, #edf3f2 100%);
}

body[data-venue-view="overview"] .venue-topbar {
  border-color: rgba(138, 204, 190, 0.48);
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(135deg, #1d8f7b 0%, #2bbf9f 58%, #b7eadc 100%);
  color: #ffffff;
  box-shadow: 0 24px 54px rgba(31, 142, 123, 0.22);
}

body[data-venue-view="overview"] .venue-topbar h1,
body[data-venue-view="overview"] .venue-topbar .topbar-subtitle,
body[data-venue-view="overview"] .venue-topbar .eyebrow {
  color: #ffffff;
}

body[data-venue-view="overview"] .marketplace-link,
body[data-venue-view="overview"] .venue-profile {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-venue-view="overview"] .venue-profile strong,
body[data-venue-view="overview"] .venue-profile span {
  color: #ffffff;
}

body[data-venue-view="overview"] .venue-avatar.has-image {
  border-color: rgba(255, 255, 255, 0.7);
}

#overview-view {
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(232, 250, 244, 0.82), rgba(255, 255, 255, 0.72) 45%, rgba(245, 247, 255, 0.62) 100%);
  padding: 18px;
}

#overview-view .panel,
#overview-view .stat-card,
#overview-view .overview-item,
#overview-view .quick-action {
  border-color: rgba(203, 217, 216, 0.82) !important;
}

#overview-view .wide-panel {
  box-shadow:
    inset 5px 0 0 var(--tyee-jade),
    0 18px 44px rgba(15, 23, 42, 0.06) !important;
}

#overview-view .side-panel {
  box-shadow:
    inset 5px 0 0 var(--tyee-violet),
    0 18px 44px rgba(15, 23, 42, 0.06) !important;
}

#overview-view .overview-item span,
#overview-view .quick-action span {
  background: #eef9ff;
  color: #37719a;
}

#overview-view .overview-item:nth-child(2) span,
#overview-view .quick-action:nth-child(2) span,
#overview-view .overview-item:nth-child(3) span,
#overview-view .quick-action:nth-child(3) span,
#overview-view .overview-item:nth-child(4) span,
#overview-view .quick-action:nth-child(4) span {
  background: #ecfaf5;
  color: #137a67;
}

#overview-view .solid-button {
  border-color: var(--tyee-jade) !important;
  background: var(--tyee-jade) !important;
  color: #06241d !important;
  box-shadow: 0 12px 24px rgba(34, 184, 157, 0.18);
}

#overview-view .ghost-button {
  border-color: #ccefe6 !important;
  background: #ecfaf5 !important;
  color: #137a67 !important;
}

.ada-assistant {
  bottom: 34px;
  width: min(460px, calc(100vw - 28px));
}

.ada-launcher {
  grid-template-columns: 78px minmax(0, 1fr) 14px;
  gap: 16px;
  min-width: 330px;
  min-height: 92px;
  border-color: rgba(151, 211, 200, 0.78);
  padding: 10px 18px 10px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 250, 246, 0.92)),
    #ffffff;
  box-shadow: 0 24px 58px rgba(17, 55, 48, 0.2);
}

.ada-launcher:hover {
  border-color: rgba(34, 184, 157, 0.72);
  box-shadow: 0 28px 64px rgba(17, 55, 48, 0.24);
}

.ada-launcher-avatar {
  width: 78px;
  height: 78px;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.8), transparent 38%),
    linear-gradient(145deg, #28b99d, #164139);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(22, 65, 57, 0.18);
}

.ada-launcher-avatar img {
  width: 100%;
  height: 100%;
  object-position: center center;
  transform: none;
}

.ada-launcher-copy {
  gap: 5px;
}

.ada-launcher-copy strong {
  font-size: 19px;
}

.ada-launcher-copy span {
  color: #60736f;
  font-size: 15px;
  font-weight: 850;
}

.ada-launcher-dot {
  width: 14px;
  height: 14px;
  background: #20d08a;
  box-shadow: 0 0 0 8px rgba(32, 208, 138, 0.14);
}

.ada-panel {
  border-color: rgba(151, 211, 200, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 246, 0.94)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 80px rgba(17, 55, 48, 0.22);
}

.ada-stage {
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 184, 157, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(21, 88, 76, 0.98), rgba(14, 38, 34, 0.96));
}

.ada-chat-form {
  background: linear-gradient(180deg, rgba(240, 249, 246, 0.72), rgba(240, 249, 246, 0.98));
}

.ada-chat-form button,
.ada-live-button {
  background: #198f78;
}

.ada-live-button {
  background: linear-gradient(135deg, #20b99d, #147866);
  box-shadow: 0 12px 24px rgba(34, 184, 157, 0.22);
}

@media (max-width: 760px) {
  .ada-assistant {
    bottom: 18px;
    width: min(390px, calc(100vw - 28px));
  }

  .ada-launcher {
    grid-template-columns: 68px minmax(0, 1fr) 12px;
    min-width: 288px;
    min-height: 82px;
  }

  .ada-launcher-avatar {
    width: 68px;
    height: 68px;
  }

  .ada-launcher-avatar img {
    width: 100%;
    height: 100%;
  }
}

/* Tyee blue refinements */
:root {
  --tyee-blue: #04a7f4;
  --tyee-blue-mid: #2d7ff9;
  --tyee-blue-deep: #07345f;
  --tyee-blue-ink: #06284d;
  --tyee-blue-soft: #eaf4ff;
}

.venue-layout {
  background:
    radial-gradient(circle at 86% 4%, rgba(4, 167, 244, 0.14), transparent 34%),
    radial-gradient(circle at 28% 0, rgba(106, 91, 255, 0.07), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.venue-sidebar {
  background:
    linear-gradient(180deg, rgba(20, 38, 62, 0.99) 0%, rgba(10, 27, 53, 0.99) 48%, rgba(4, 15, 33, 0.995) 100%),
    radial-gradient(circle at 20% 0, rgba(4, 167, 244, 0.2), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(255, 255, 255, 0.055), transparent 26%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    22px 0 56px rgba(4, 15, 33, 0.34);
}

.venue-sidebar::after {
  background: linear-gradient(180deg, rgba(12, 30, 58, 0), rgba(4, 12, 28, 0.34));
}

.venue-sidebar .venue-nav-heading,
.venue-setup-roadmap-head span,
.venue-setup-step-copy small {
  color: rgba(232, 243, 255, 0.7);
}

.venue-sidebar .venue-nav-item,
.venue-sidebar .venue-nav-subitem,
.venue-setup-roadmap-head strong,
.venue-setup-step-copy strong {
  color: rgba(245, 250, 255, 0.9);
}

.venue-sidebar .venue-nav-item:hover,
.venue-sidebar .venue-nav-subitem:hover,
.venue-sidebar .venue-nav-item[data-view="overview"]:not(.is-active):hover {
  border-color: rgba(183, 221, 255, 0.24);
}

.venue-sidebar .venue-nav-item.is-active,
.venue-sidebar .venue-nav-subitem.is-active,
.venue-sidebar .venue-nav-item[data-view="overview"]:hover,
.venue-sidebar .venue-nav-item[data-view="overview"].is-active {
  border-color: rgba(174, 218, 255, 0.62);
  background: linear-gradient(135deg, var(--tyee-blue) 0%, var(--tyee-blue-mid) 100%);
  color: #ffffff;
  box-shadow:
    inset 3px 0 0 rgba(246, 255, 251, 0.9),
    0 14px 28px rgba(45, 127, 249, 0.24);
}

.venue-sidebar .venue-nav-item[data-view="overview"]:not(.is-active) {
  color: rgba(245, 250, 255, 0.9);
}

.venue-setup-roadmap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 32px rgba(4, 15, 33, 0.18);
}

.venue-setup-roadmap-head output,
.venue-nav-heading-count,
.venue-nav-chevron,
.venue-setup-roadmap-chevron {
  color: rgba(237, 247, 255, 0.94) !important;
}

.venue-nav-accordion .venue-nav-heading,
.venue-sidebar .venue-nav-accordion .venue-nav-heading {
  color: rgba(232, 243, 255, 0.84);
}

.venue-nav-accordion .venue-nav-heading:hover,
.venue-nav-accordion.is-open .venue-nav-heading,
.venue-nav-accordion:has(.venue-nav-item.is-active) .venue-nav-heading,
.venue-setup-step:hover {
  border-color: rgba(174, 218, 255, 0.38);
}

.venue-setup-step.is-complete {
  border-color: rgba(174, 218, 255, 0.34);
  background: rgba(4, 167, 244, 0.14);
}

.venue-setup-step.is-complete .venue-setup-step-index {
  background: var(--tyee-blue);
  color: #ffffff;
}

body[data-venue-view="overview"] .venue-workspace {
  background:
    radial-gradient(circle at 82% 8%, rgba(4, 167, 244, 0.13), transparent 34%),
    radial-gradient(circle at 30% 0, rgba(106, 91, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f3f8fd 48%, #edf4fb 100%);
}

body[data-venue-view="overview"] .venue-topbar {
  border-color: rgba(152, 208, 255, 0.5);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, var(--tyee-blue-deep) 0%, #0869c9 48%, var(--tyee-blue) 100%);
  box-shadow: 0 24px 54px rgba(8, 105, 201, 0.22);
}

body[data-venue-view="overview"] .marketplace-link,
body[data-venue-view="overview"] .venue-profile {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.86);
  color: var(--tyee-blue-deep);
  box-shadow: 0 14px 30px rgba(7, 52, 95, 0.16);
}

body[data-venue-view="overview"] .marketplace-link {
  font-weight: 900;
}

body[data-venue-view="overview"] .marketplace-link::before {
  background: var(--tyee-blue-mid);
  color: #ffffff;
}

body[data-venue-view="overview"] .venue-profile strong {
  color: var(--tyee-blue-ink);
}

body[data-venue-view="overview"] .venue-profile span {
  color: #4b6680;
}

body[data-venue-view="overview"] .venue-profile #venue-branch,
body[data-venue-view="overview"] #venue-branch {
  color: #4b6680 !important;
}

body[data-venue-view="overview"] .venue-avatar.has-image {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(7, 52, 95, 0.14);
}

body[data-venue-view="overview"] .topbar-actions {
  gap: 22px;
}

body[data-venue-view="overview"] .marketplace-link,
body[data-venue-view="overview"] .venue-profile {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-venue-view="overview"] .marketplace-link {
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(6, 40, 77, 0.18);
}

body[data-venue-view="overview"] .marketplace-link::before {
  content: none;
}

body[data-venue-view="overview"] .venue-profile {
  gap: 10px;
}

body[data-venue-view="overview"] .venue-profile strong,
body[data-venue-view="overview"] .venue-profile span {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 40, 77, 0.18);
}

body[data-venue-view="overview"] .venue-profile #venue-branch,
body[data-venue-view="overview"] #venue-branch {
  color: rgba(232, 244, 255, 0.88) !important;
}

.venue-topbar .topbar-actions {
  gap: 22px;
}

.venue-topbar .marketplace-link,
.venue-topbar .venue-profile {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.venue-topbar .marketplace-link {
  display: inline-flex;
  align-items: center;
  color: #334155;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.venue-topbar .marketplace-link::before {
  content: none !important;
}

.venue-topbar .venue-profile {
  gap: 12px;
}

.venue-topbar .venue-profile strong {
  color: #07153a;
  font-size: 16.25px;
  font-weight: 900;
  line-height: 1.08;
}

.venue-topbar .venue-profile span {
  color: #61708a;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

body[data-venue-view="overview"] .venue-topbar .marketplace-link,
body[data-venue-view="overview"] .venue-topbar .venue-profile strong {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 40, 77, 0.18);
}

body[data-venue-view="overview"] .venue-topbar .venue-profile span,
body[data-venue-view="overview"] .venue-topbar #venue-branch {
  color: rgba(232, 244, 255, 0.88) !important;
  text-shadow: 0 1px 2px rgba(6, 40, 77, 0.18);
}

#overview-view {
  background:
    linear-gradient(135deg, rgba(234, 244, 255, 0.82), rgba(255, 255, 255, 0.72) 45%, rgba(245, 247, 255, 0.62) 100%);
}

#overview-view .wide-panel {
  box-shadow:
    inset 5px 0 0 var(--tyee-blue),
    0 18px 44px rgba(15, 23, 42, 0.06) !important;
}

#overview-view .overview-item:nth-child(2) span,
#overview-view .quick-action:nth-child(2) span,
#overview-view .overview-item:nth-child(3) span,
#overview-view .quick-action:nth-child(3) span,
#overview-view .overview-item:nth-child(4) span,
#overview-view .quick-action:nth-child(4) span,
#overview-view .ghost-button {
  background: var(--tyee-blue-soft) !important;
  color: #0b5fc6 !important;
}

#overview-view .solid-button {
  background: var(--tyee-blue-mid) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(45, 127, 249, 0.18);
}

.ada-launcher {
  border-color: rgba(152, 208, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 246, 255, 0.92)),
    #ffffff;
  box-shadow: 0 24px 58px rgba(7, 52, 95, 0.2);
}

.ada-launcher:hover {
  border-color: rgba(4, 167, 244, 0.72);
  box-shadow: 0 28px 64px rgba(7, 52, 95, 0.24);
}

.ada-assistant.is-open .ada-launcher {
  display: none;
}

.ada-launcher-avatar {
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.8), transparent 38%),
    linear-gradient(145deg, var(--tyee-blue), var(--tyee-blue-deep));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(7, 52, 95, 0.18);
}

.ada-launcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.34) translateY(7px);
}

.ada-avatar-stage img {
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.ada-panel {
  border-color: rgba(152, 208, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.94)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 80px rgba(7, 52, 95, 0.22);
}

.ada-stage {
  background:
    radial-gradient(circle at 10% 0%, rgba(4, 167, 244, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(7, 52, 95, 0.98), rgba(6, 28, 62, 0.96));
}

.ada-chat-form {
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.72), rgba(239, 247, 255, 0.98));
}

.ada-chat-form button,
.ada-live-button {
  background: #0b75d1;
}

.ada-live-button {
  background: linear-gradient(135deg, var(--tyee-blue), #0869c9);
  box-shadow: 0 12px 24px rgba(4, 167, 244, 0.22);
}

.ada-launcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transform: scale(1.22) translateY(4px);
}

.ada-avatar-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: none;
  animation: none;
}

body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) {
  right: auto;
  left: 256px;
  bottom: 22px;
  justify-items: start;
  width: auto;
}

body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) .ada-launcher {
  grid-template-columns: 64px;
  gap: 0;
  width: 74px;
  min-width: 74px;
  min-height: 74px;
  padding: 5px;
  border-color: rgba(152, 208, 255, 0.86);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(7, 52, 95, 0.18);
}

body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) .ada-launcher:hover {
  transform: translateY(-2px) scale(1.02);
}

body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) .ada-launcher-avatar {
  width: 64px;
  height: 64px;
}

body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) .ada-launcher-avatar img {
  object-position: center center;
  transform: none;
}

body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) .ada-launcher-copy,
body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) .ada-launcher-dot {
  display: none;
}

@media (max-width: 980px) {
  body[data-venue-view]:not([data-venue-view="overview"]) .ada-assistant:not(.is-open) {
    right: 16px;
    left: auto;
    bottom: 18px;
  }
}

/* Keep this override last: later dashboard themes must not turn the mobile drawer
   back into a permanently visible rail. */
@media (max-width: 900px) {
  .venue-layout {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding-top: 0;
    overflow: visible;
    border-radius: 0;
  }

  .venue-workspace {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .venue-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(84vw, 320px);
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: calc(68px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 0 20px 20px 0 !important;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms step-end;
  }

  .venue-mobile-menu-open .venue-sidebar {
    transform: translateX(0);
    visibility: visible;
    transition: transform 220ms ease;
  }
}
