:root {
  --ink: #17191b;
  --muted: #687075;
  --line: #d5d0c7;
  --panel: #fbfaf6;
  --surface: #e8e8e3;
  --dark: #111315;
  --teal: #15191c;
  --success: #2f4744;
  --gold: #a37742;
  --red: #884152;
  --blue: #30434c;
  --primary-dark: #07090a;
  --warm: #f4f2eb;
  --shadow: 0 18px 42px rgba(18, 20, 21, 0.08);
  --soft-shadow: 0 10px 24px rgba(18, 20, 21, 0.055);
  --inner-line: rgba(255, 255, 255, 0.72);
}

body:has(.app-shell),
body:has(.admin-shell) {
  --ink: #f4efe6;
  --muted: #a8a198;
  --line: rgba(232, 214, 184, 0.14);
  --panel: #17191b;
  --surface: #0f1113;
  --dark: #08090a;
  --teal: #090b0c;
  --success: #4f7c70;
  --gold: #d2a35f;
  --red: #c36a78;
  --blue: #8fa7ad;
  --primary-dark: #050607;
  --warm: #151719;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  --inner-line: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -8%, rgba(210, 163, 95, 0.16), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(79, 124, 112, 0.16), transparent 32%),
    linear-gradient(180deg, #111315 0%, #0d0f10 54%, #090a0b 100%);
}

body:has(.app-shell) .app-shell,
body:has(.admin-shell) .admin-shell {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 38%),
    transparent;
}

body:has(.app-shell) .main,
body:has(.admin-shell) .admin-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 260px),
    transparent;
}

body:has(.app-shell) .sidebar,
body:has(.admin-shell) .admin-sidebar {
  border-right: 1px solid rgba(232, 214, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(210, 163, 95, 0.1), transparent 32%),
    linear-gradient(160deg, #0c0d0e, #171411 62%, #0b0c0d);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.42);
}

body:has(.app-shell) .brand-mark,
body:has(.admin-shell) .brand-mark {
  color: #11100e;
  background: #0a0704;
  box-shadow: 0 14px 28px rgba(210, 163, 95, 0.18);
}

body:has(.app-shell) .nav-item,
body:has(.admin-shell) .nav-item {
  color: rgba(244, 239, 230, 0.64);
}

body:has(.app-shell) .nav-item:hover,
body:has(.app-shell) .nav-item.active,
body:has(.admin-shell) .nav-item:hover,
body:has(.admin-shell) .nav-item.active {
  border-color: rgba(210, 163, 95, 0.18);
  border-left-color: var(--gold);
  color: #fff9ed;
  background: linear-gradient(90deg, rgba(210, 163, 95, 0.14), rgba(255, 255, 255, 0.055));
}

body:has(.app-shell) .sidebar-card,
body:has(.admin-shell) .sidebar-card {
  border-color: rgba(210, 163, 95, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 42px rgba(0, 0, 0, 0.2);
}

body:has(.app-shell) .topbar h1,
body:has(.admin-shell) .admin-topbar h1,
body:has(.app-shell) .panel h2,
body:has(.admin-shell) .panel h2,
body:has(.app-shell) .metric strong,
body:has(.admin-shell) .metric strong,
body:has(.app-shell) .insight-banner strong,
body:has(.admin-shell) .insight-banner strong {
  color: #fff8ee;
}

body:has(.app-shell) .topbar-subtitle,
body:has(.admin-shell) .admin-topbar p,
body:has(.app-shell) .metric span,
body:has(.app-shell) .metric small,
body:has(.admin-shell) .metric span,
body:has(.admin-shell) .metric small,
body:has(.app-shell) .muted,
body:has(.admin-shell) .muted {
  color: var(--muted);
}

body:has(.app-shell) .panel,
body:has(.admin-shell) .panel,
body:has(.app-shell) .priority-board,
body:has(.app-shell) .insight-banner,
body:has(.admin-shell) .insight-banner,
body:has(.app-shell) .metric,
body:has(.admin-shell) .metric {
  border-color: rgba(232, 214, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #141618;
  box-shadow: var(--shadow);
}

body:has(.app-shell) .metric,
body:has(.admin-shell) .metric {
  border-top-color: rgba(210, 163, 95, 0.5);
}

body:has(.app-shell) .metric:nth-child(2),
body:has(.admin-shell) .metric:nth-child(2) {
  border-top-color: rgba(79, 124, 112, 0.72);
}

body:has(.app-shell) .metric:nth-child(3),
body:has(.admin-shell) .metric:nth-child(3) {
  border-top-color: rgba(195, 106, 120, 0.72);
}

body:has(.app-shell) .priority-item,
body:has(.admin-shell) .priority-item,
body:has(.app-shell) .compact-list article,
body:has(.admin-shell) .compact-list article,
body:has(.app-shell) .client-row,
body:has(.app-shell) .suggestion,
body:has(.app-shell) .wait-card,
body:has(.app-shell) .club-plan,
body:has(.app-shell) .setup-entity-card,
body:has(.app-shell) .integration-status-card,
body:has(.app-shell) .return-row,
body:has(.admin-shell) .client-admin-card,
body:has(.admin-shell) .ops-list article,
body:has(.admin-shell) .ops-links a {
  border-color: rgba(232, 214, 184, 0.12);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    #191c1e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body:has(.app-shell) .appointment {
  border-color: rgba(232, 214, 184, 0.12);
  border-left-color: rgba(210, 163, 95, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #171a1c;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body:has(.app-shell) .appointment.open {
  border-left-color: #d2a35f;
  background:
    linear-gradient(90deg, rgba(210, 163, 95, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #171a1c;
}

body:has(.app-shell) .appointment.recovered {
  border-left-color: #6ea99a;
  background:
    linear-gradient(90deg, rgba(79, 124, 112, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #171a1c;
}

body:has(.app-shell) .time {
  color: #f8efe1;
  background: rgba(255, 255, 255, 0.07);
}

body:has(.app-shell) .appointment strong,
body:has(.admin-shell) strong,
body:has(.app-shell) .client-row strong,
body:has(.app-shell) .suggestion strong {
  color: #fff8ee;
}

body:has(.app-shell) .appointment span,
body:has(.app-shell) .client-row span,
body:has(.app-shell) .suggestion span,
body:has(.app-shell) .compact-list span,
body:has(.admin-shell) .compact-list span,
body:has(.app-shell) .message-card-main span,
body:has(.app-shell) .invite-card-main span,
body:has(.app-shell) .message-meta span,
body:has(.app-shell) .invite-card-meta span,
body:has(.app-shell) .toggle-row span,
body:has(.app-shell) .pricing-card small {
  color: var(--muted);
}

body:has(.app-shell) select,
body:has(.app-shell) textarea,
body:has(.app-shell) input,
body:has(.admin-shell) select,
body:has(.admin-shell) textarea,
body:has(.admin-shell) input {
  border-color: rgba(232, 214, 184, 0.14);
  color: #fff8ee;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body:has(.app-shell) input::placeholder,
body:has(.app-shell) textarea::placeholder,
body:has(.admin-shell) input::placeholder,
body:has(.admin-shell) textarea::placeholder {
  color: rgba(244, 239, 230, 0.42);
}

body:has(.app-shell) .primary-button,
body:has(.admin-shell) .primary-button {
  color: #11100e;
  background: linear-gradient(180deg, #f1cf8f, #c48a4c);
  box-shadow: 0 16px 34px rgba(210, 163, 95, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

body:has(.app-shell) .secondary-button,
body:has(.app-shell) .icon-button,
body:has(.app-shell) .tiny-button,
body:has(.admin-shell) .secondary-button,
body:has(.admin-shell) .icon-button,
body:has(.admin-shell) .tiny-button {
  border-color: rgba(232, 214, 184, 0.16);
  color: #fff8ee;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body:has(.app-shell) .secondary-button:hover,
body:has(.app-shell) .icon-button:hover,
body:has(.app-shell) .tiny-button:hover,
body:has(.admin-shell) .secondary-button:hover,
body:has(.admin-shell) .icon-button:hover,
body:has(.admin-shell) .tiny-button:hover {
  border-color: rgba(210, 163, 95, 0.42);
  background: rgba(210, 163, 95, 0.12);
}

body:has(.app-shell) .status-pill,
body:has(.admin-shell) .status-pill {
  border-color: rgba(232, 214, 184, 0.13);
  color: #d8e7e2;
  background: rgba(143, 167, 173, 0.12);
}

body:has(.app-shell) .status-pill.good,
body:has(.admin-shell) .status-pill.good {
  color: #c7eee1;
  background: rgba(79, 124, 112, 0.2);
}

body:has(.app-shell) .status-pill.warning,
body:has(.admin-shell) .status-pill.warning {
  color: #f2d29a;
  background: rgba(210, 163, 95, 0.16);
}

body:has(.app-shell) .message-outbox,
body:has(.app-shell) .invite-queue,
body:has(.app-shell) .appointment-form {
  border-color: rgba(232, 214, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

body:has(.app-shell) .message-card,
body:has(.app-shell) .invite-card {
  border-color: rgba(232, 214, 184, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    #191c1e !important;
}

body:has(.app-shell) .message-meta,
body:has(.app-shell) .invite-card-meta {
  background: rgba(255, 255, 255, 0.055);
}

body:has(.app-shell) .return-table-head {
  color: rgba(244, 239, 230, 0.58);
}

body:has(.app-shell) .empty-state,
body:has(.admin-shell) .empty-state {
  border-color: rgba(232, 214, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

body:has(.app-shell) .modal-card {
  border-color: rgba(232, 214, 184, 0.16);
  color: var(--ink);
  background: #151719;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 245, 240, 0.98), rgba(230, 230, 224, 0.98)),
    var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
  white-space: nowrap;
}

a {
  color: inherit;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(160deg, rgba(17, 17, 17, 0.94), rgba(28, 27, 25, 0.9)),
    var(--surface);
}

.login-screen.hidden {
  display: none;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8f3eb;
  background: rgba(17, 17, 17, 0.88);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.login-card .brand-mark {
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 6px 0 8px;
  font-size: 34px;
}

.login-card p {
  margin: 0 0 18px;
  color: rgba(248, 243, 235, 0.68);
  line-height: 1.45;
}

.login-card .field {
  color: rgba(248, 243, 235, 0.82);
}

.password-change-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(210, 163, 95, 0.16), transparent 34%),
    linear-gradient(145deg, #0c0d0e, #171511);
}

.password-change-screen.hidden {
  display: none;
}

.password-change-card {
  border-color: rgba(210, 163, 95, 0.3);
}

.app-shell,
.admin-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar,
.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 24px 22px;
  color: #f8f3eb;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #111315, #1b1a17);
  box-shadow: 18px 0 48px rgba(18, 20, 21, 0.13);
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #111315, #201b16);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(221, 168, 83, 0.34);
  border-radius: 8px;
  color: #15120f;
  background: #0a0704;
  font-weight: 760;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.brand strong,
.brand span,
.sidebar-card strong,
.sidebar-card small {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: rgba(248, 243, 235, 0.58);
  font-size: 13px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  border-left: 2px solid transparent;
  color: rgba(248, 243, 235, 0.68);
  background: transparent;
  text-align: left;
  font-weight: 650;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: #d3aa6f;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #caa166;
}

.sidebar-card {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-card strong {
  margin: 8px 0 12px;
  font-size: 26px;
  font-weight: 760;
}

.sidebar-card small {
  margin-top: 8px;
  color: rgba(248, 243, 235, 0.66);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d6a3c, #d7b37e);
}

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

.admin-main {
  min-width: 0;
  padding: 34px;
}

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

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

.topbar h1,
.admin-topbar h1,
.panel h2 {
  margin: 4px 0 0;
  letter-spacing: 0;
}

.topbar h1,
.admin-topbar h1 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 780;
  line-height: 1.12;
}

.admin-topbar p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.topbar-subtitle {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

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

.topbar-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.admin-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid rgba(245, 223, 183, 0.22);
  border-radius: 8px;
  color: #f8f3eb;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.admin-return:hover {
  border-color: rgba(245, 223, 183, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.pilot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(169, 130, 76, 0.34);
  border-radius: 999px;
  color: #5c4324;
  background: #f8eddb;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(180deg, #202529, #111416);
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

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

.secondary-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fffdf8;
  box-shadow: inset 0 1px 0 var(--inner-line);
}

.secondary-button {
  padding: 0 14px;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.full {
  width: 100%;
}

.insight-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(211, 202, 190, 0.92);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 248, 242, 0.94));
  box-shadow: var(--soft-shadow);
}

.insight-banner strong,
.insight-banner p {
  display: block;
}

.insight-banner strong {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: 0;
}

.insight-banner p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
}

.priority-board {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(211, 202, 190, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #f7f4ee);
  box-shadow: var(--soft-shadow);
}

.priority-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(229, 225, 218, 0.82);
}

.priority-header h2 {
  margin: 4px 0 0;
  font-size: 21px;
  font-weight: 760;
}

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

.priority-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(211, 202, 190, 0.88);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: inset 0 1px 0 var(--inner-line);
}

.priority-item.strong {
  border-color: rgba(166, 125, 73, 0.32);
  background: #fbf7ef;
}

.priority-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 760;
}

.priority-item.strong .priority-number {
  color: var(--dark);
  background: #ead0a3;
}

.priority-item strong,
.priority-item p {
  display: block;
}

.priority-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.metric {
  min-height: 120px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(211, 202, 190, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 245, 239, 0.96));
  box-shadow: var(--soft-shadow);
  border-top: 2px solid rgba(49, 64, 71, 0.42);
}

.metric:nth-child(2) {
  border-top-color: var(--gold);
}

.metric:nth-child(3) {
  border-top-color: var(--red);
}

.metric:nth-child(4) {
  border-top-color: #18191c;
}

.metric span,
.metric small,
.muted {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 14px 0 5px;
  font-size: 31px;
  font-weight: 780;
  line-height: 1;
}

.workspace-grid {
  display: none;
  grid-template-columns: minmax(0, 1.38fr) minmax(380px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.workspace-grid.active {
  display: grid;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: grid;
  gap: 16px;
}

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

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

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(211, 202, 190, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(247, 245, 239, 0.98));
  box-shadow: var(--shadow);
}

.panel-header {
  border-bottom: 1px solid rgba(211, 202, 190, 0.72);
  padding-bottom: 14px;
}

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

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

.panel h2 {
  font-size: 20px;
  font-weight: 780;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid rgba(197, 190, 179, 0.92);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: inset 0 1px 0 var(--inner-line), 0 1px 0 rgba(22, 20, 18, 0.02);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  accent-color: var(--teal);
  box-shadow: none;
}

select,
input {
  min-height: 40px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

.schedule-list,
.client-table,
.waitlist-grid,
.plan-grid,
.setup-list {
  display: grid;
  gap: 10px;
}

.pilot-steps,
.question-list,
.pipeline-board,
.roi-grid,
.roi-result,
.client-admin-list,
.report-list,
.admin-checklist,
.ops-list,
.ops-links {
  display: grid;
  gap: 10px;
}

.admin-checklist label,
.ops-list article,
.ops-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.admin-checklist label {
  justify-content: flex-start;
  color: var(--muted);
  font-weight: 750;
}

.admin-checklist input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--dark);
}

.ops-list code {
  padding: 6px 8px;
  border: 1px solid rgba(47, 58, 67, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #f1f3f4;
  font-size: 13px;
}

.ops-links a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.ops-links a:hover {
  border-color: rgba(169, 130, 76, 0.42);
  background: #fbf6ee;
}

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

.segment-controls .field {
  margin-bottom: 0;
}

.action-panel,
#reactivation .panel:nth-child(2) {
  background: #fbfaf8;
}

#reactivation .panel:nth-child(2) textarea,
#reactivation .panel:nth-child(2) select,
#reactivation .panel:nth-child(2) input {
  background: #ffffff;
}

#reactivation .panel:nth-child(2) .primary-button,
#reactivation .panel:nth-child(2) .secondary-button {
  width: 100%;
}

.appointment-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.campaign-history,
.onboarding-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.campaign-history article,
.onboarding-box,
.real-roi-box,
.client-history-box,
.report-card,
.report-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6f1;
}

.campaign-history strong,
.campaign-history span,
.onboarding-box strong,
.real-roi-box strong,
.client-history-box strong,
.client-history-box span,
.report-card strong,
.report-card span,
.report-list strong,
.report-list span {
  display: block;
}

.campaign-history span,
.real-roi-box p,
.client-history-box p,
.client-history-box span,
.report-card span,
.report-list span {
  color: var(--muted);
  font-size: 13px;
}

.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.campaign-actions .tiny-button,
.campaign-actions .status-pill {
  min-width: max-content;
}

.onboarding-box {
  margin-top: 16px;
  border-left: 3px solid var(--gold);
  background: #f4efe6;
}

.onboarding-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(222, 216, 206, 0.72);
  color: var(--ink);
  font-size: 14px;
}

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

.real-roi-box {
  margin-top: 12px;
  background: #f7f2ea;
}

.real-roi-box strong {
  margin-top: 6px;
  font-size: 32px;
}

.client-history-box {
  margin-top: 12px;
  border-left: 4px solid var(--gold);
}

.client-history-box p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.report-card strong {
  margin-top: 8px;
  font-size: 30px;
}

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

.management-grid section,
.compact-list article,
.lgpd-grid article,
.booking-link-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6f1;
}

.mini-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-section-header strong,
.mini-section-header span,
.compact-list strong,
.compact-list span {
  display: block;
}

.mini-section-header span,
.compact-list span {
  color: var(--muted);
  font-size: 13px;
}

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

.compact-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.message-outbox,
.invite-queue {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(229, 225, 218, 0.86);
  border-radius: 8px;
  background: #f7f6f3;
}

.message-outbox {
  margin-top: 14px;
}

.message-outbox .mini-section-header,
.invite-queue .mini-section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-bottom: 0;
}

.message-card,
.invite-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 12px !important;
  background: #fbfaf7 !important;
}

.message-card-main,
.invite-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.message-card-main > div,
.invite-card-main > div {
  min-width: 0;
}

.message-card-main .status-pill,
.invite-card-main .status-pill {
  align-self: start;
  max-width: 100%;
  white-space: nowrap;
}

.message-card-main strong,
.invite-card-main strong {
  font-size: 15px;
  line-height: 1.25;
}

.message-card-main span,
.invite-card-main span,
.message-meta span,
.invite-card-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.message-meta,
.invite-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4f3f0;
}

.message-meta strong,
.invite-card-meta strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.compact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.compact-form .tiny-button,
.tenant-form .tiny-button {
  min-height: 40px;
}

.appointment-form {
  padding: 12px;
  border: 1px solid rgba(222, 216, 206, 0.9);
  border-radius: 8px;
  background: #f2efe8;
}

.appointment-form input,
.appointment-form select,
.appointment-form button {
  min-width: 0;
}

.appointment-form input[name="date"],
.appointment-form input[name="client"],
.appointment-form input[name="service"],
.appointment-form button {
  grid-column: 1 / -1;
}

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.schedule-controls input,
.schedule-controls select {
  min-width: 150px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fffdf9;
}

.empty-state strong,
.empty-state span {
  display: block;
}

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

.integration-form .management-grid section,
.shop-settings-form .management-grid section {
  background: #f3f0e8;
}

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

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

.role-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.role-matrix article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6f1;
}

.role-matrix strong,
.role-matrix span {
  display: block;
}

.role-matrix span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tenant-form {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.public-booking-row,
.lgpd-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.public-booking-row {
  align-items: end;
}

.public-booking-row .field {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.public-booking-row input,
.public-booking-row select {
  min-width: 0;
}

.integration-status,
.audit-list {
  margin-top: 12px;
}

.booking-link-box {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  background: #f3f0e8;
}

.booking-link-box a {
  color: var(--blue);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
}

.lgpd-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.lgpd-grid article {
  align-content: start;
  min-height: 124px;
}

.lgpd-grid strong,
.lgpd-grid span {
  display: block;
}

.lgpd-grid span {
  color: var(--muted);
  font-size: 13px;
}

.setup-entity-card,
.integration-status-card {
  align-items: start !important;
}

.setup-entity-card {
  grid-template-columns: minmax(0, 1fr) max-content !important;
  min-height: 72px;
  padding: 14px !important;
}

.setup-entity-card > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.setup-entity-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.setup-entity-card span {
  line-height: 1.35;
}

.setup-entity-card .tiny-button {
  align-self: center;
}

.integration-status-card {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) !important;
}

.integration-status-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

#settings {
  align-items: start;
}

#settings .management-grid {
  grid-template-columns: 1fr;
}

#settings .management-grid section {
  min-width: 0;
}

#settings .compact-list {
  gap: 10px;
}

#settings .mini-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

#settings .compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
  border: 1px solid rgba(222, 216, 206, 0.9);
  border-radius: 8px;
  background: #f2efe8;
}

#settings .compact-form .tiny-button {
  grid-column: 1 / -1;
}

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

#reactivation .client-table {
  overflow: hidden;
}

#reactivation .panel:nth-child(2) {
  max-width: 760px;
}

#settings .tenant-form {
  grid-template-columns: 1fr !important;
}

#settings #barbershopList article,
#settings #userList article {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

#settings #barbershopList .status-pill,
#settings #userList .status-pill {
  justify-self: start;
}

#settings #barbershopList strong,
#settings #userList strong {
  line-height: 1.2;
}

#settings #barbershopList span,
#settings #userList span {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.appointment {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(203, 197, 187, 0.92);
  border-left: 4px solid rgba(49, 64, 71, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #f8f6f0);
  box-shadow: 0 10px 22px rgba(18, 20, 21, 0.045), inset 0 1px 0 var(--inner-line);
}

.appointment.open {
  border-color: rgba(166, 125, 73, 0.42);
  border-left-color: var(--gold);
  background: linear-gradient(180deg, #fff8ea, #f5edde);
}

.appointment.recovered {
  border-color: rgba(47, 71, 68, 0.28);
  border-left-color: var(--success);
  background: linear-gradient(180deg, #f5fbf8, #eaf0ee);
}

.time {
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 8px;
  color: #111315;
  background: rgba(17, 19, 21, 0.055);
  font-weight: 780;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.appointment-body,
.appointment-main {
  min-width: 0;
}

.appointment-body {
  display: grid;
  gap: 12px;
}

.appointment-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.appointment-status {
  justify-self: end;
}

.appointment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  gap: 8px;
  width: 100%;
}

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

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

.appointment strong,
.appointment span,
.client-row strong,
.client-row span,
.suggestion strong,
.suggestion span {
  display: block;
}

.appointment strong {
  font-size: 15.5px;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.appointment span,
.client-row span,
.suggestion span,
.toggle-row span,
.pricing-card small {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 96px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(49, 64, 71, 0.1);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(49, 64, 71, 0.085);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.status-pill.warning {
  color: #6a4a20;
  border-color: rgba(166, 125, 73, 0.18);
  background: rgba(166, 125, 73, 0.16);
}

.status-pill.good {
  color: #223936;
  border-color: rgba(47, 71, 68, 0.14);
  background: rgba(47, 71, 68, 0.12);
}

.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(197, 190, 179, 0.92);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--inner-line);
}

.tiny-button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tiny-button:hover,
.secondary-button:hover,
.icon-button:hover {
  border-color: rgba(169, 130, 76, 0.42);
  background: #fbf4e9;
}

.opportunity-card {
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(150deg, #151515, #27231e);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
}

.opportunity-card p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.opportunity-card .primary-button {
  color: var(--dark);
  background: #ead0a3;
  box-shadow: none;
}

.signal-grid,
.segment-summary {
  display: grid;
  gap: 10px;
}

.signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.signal-grid > div,
.segment-summary article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.signal-grid strong,
.signal-grid span,
.segment-summary strong,
.segment-summary span {
  display: block;
}

.signal-grid strong,
.segment-summary strong {
  font-size: 22px;
}

.signal-grid span,
.segment-summary span {
  color: var(--muted);
  font-size: 12px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.invite-queue {
  margin-top: 14px;
}

.mini-list > div,
.suggestion,
.client-row,
.wait-card,
.club-plan,
.setup-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mini-list > div {
  display: grid;
  gap: 4px;
  background: #fbfaf7;
}

.mini-list > div strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.mini-list > div span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px 96px 120px;
  gap: 12px;
  align-items: center;
}

.return-table-head,
.return-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) minmax(110px, 0.75fr) minmax(130px, 0.8fr) minmax(120px, 0.75fr) minmax(116px, 0.7fr);
  gap: 12px;
  align-items: center;
}

.return-table-head {
  padding: 0 12px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.return-row {
  min-height: 76px;
  cursor: pointer;
}

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

.return-checkbox,
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--teal);
  box-shadow: none;
}

.return-cell,
.return-client > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.return-row strong,
.return-client strong,
.return-cell strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.return-row small,
.return-cell small,
.return-client small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.return-row .status-pill {
  justify-self: start;
  min-width: 94px;
}

.segment-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

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

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 750;
}

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

.wait-card strong,
.club-plan strong,
.setup-item strong {
  display: block;
  margin-bottom: 6px;
}

.wait-card button,
.club-plan button {
  margin-top: 12px;
}

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

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

.switch {
  position: relative;
  display: inline-block;
  flex: 0 0 52px;
  width: 52px;
  height: 30px;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd9d4;
  transition: 0.2s ease;
}

.switch span::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  content: "";
  transition: 0.2s ease;
}

.switch input:checked + span {
  background: var(--dark);
}

.switch input:checked + span::before {
  transform: translateX(22px);
}

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

.club-plan {
  border-top: 4px solid var(--blue);
}

.club-plan:nth-child(2) {
  border-top-color: var(--gold);
}

.club-plan:nth-child(3) {
  border-top-color: var(--red);
}

.revenue-box {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px solid rgba(47, 58, 67, 0.2);
  border-radius: 8px;
  background: #f1f3f4;
  text-align: center;
}

.revenue-box strong {
  display: block;
  color: var(--dark);
  font-size: 40px;
}

.setup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setup-check {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.pricing-card {
  padding: 18px;
  border: 1px solid rgba(47, 58, 67, 0.2);
  border-radius: 8px;
  background: #f1f3f4;
}

.pricing-card span,
.pricing-card strong,
.pricing-card small {
  display: block;
}

.pricing-card strong {
  margin: 8px 0;
  font-size: 34px;
}

.guarantee-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(169, 130, 76, 0.32);
  border-radius: 8px;
  background: #fbf4e9;
}

.guarantee-card strong {
  display: block;
  margin-bottom: 6px;
}

.guarantee-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pitch-box,
.pilot-offer,
.pilot-step,
.question-item,
.pipeline-card,
.next-actions,
.prospect-form,
.proposal-card,
.break-even,
.client-admin-card,
.import-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.pitch-box {
  margin-bottom: 12px;
  border-color: rgba(47, 58, 67, 0.22);
  background: #f1f3f4;
}

.pitch-box span,
.pilot-offer span,
.pilot-offer strong,
.pilot-step strong,
.question-item strong {
  display: block;
}

.pitch-box span,
.pilot-offer span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pitch-box p,
.pilot-offer p,
.pilot-step p,
.question-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.pilot-offer {
  background: #f1f3f4;
}

.pilot-offer strong {
  margin-top: 6px;
  font-size: 34px;
}

.pilot-step,
.question-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--dark);
  font-weight: 850;
}

.question-item .step-number {
  background: var(--blue);
}

.validation-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.validation-scoreboard article {
  padding: 14px;
  border: 1px solid rgba(47, 58, 67, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.validation-scoreboard strong,
.validation-scoreboard span,
.pipeline-card strong,
.pipeline-card span {
  display: block;
}

.validation-scoreboard strong {
  font-size: 26px;
}

.validation-scoreboard span,
.pipeline-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.pipeline-card {
  min-height: 188px;
}

.pipeline-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pipeline-card header > div {
  min-width: 0;
}

.pipeline-card .status-pill {
  max-width: 100%;
  height: auto;
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.pipeline-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.pipeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.scenario-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.next-actions {
  margin-top: 12px;
  background: #fbf4e9;
}

.prospect-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.prospect-form .field {
  margin-bottom: 0;
}

.next-actions strong {
  display: block;
}

.next-actions p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.roi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

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

.roi-result article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f2ea;
}

.roi-result span,
.proposal-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.roi-result strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.break-even {
  margin-top: 12px;
  border-left: 4px solid var(--gold);
}

.break-even strong,
.proposal-card strong {
  display: block;
}

.break-even p,
.proposal-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.proposal-card {
  margin-bottom: 14px;
  background: #f1f3f4;
}

.proposal-card strong {
  margin-top: 8px;
  font-size: 27px;
}

.client-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px auto;
  gap: 12px;
  align-items: center;
}

.client-admin-card strong,
.client-admin-card span {
  display: block;
}

.client-admin-card span,
.import-box p {
  color: var(--muted);
  font-size: 13px;
}

.import-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.import-box p {
  margin: 0;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: #201719;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
  pointer-events: none;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(4px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(17, 17, 17, 0.22);
}

.invite-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.invite-summary article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.invite-summary strong,
.invite-summary span {
  display: block;
}

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

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

.public-page {
  min-height: 100vh;
  padding: 28px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.78), rgba(32, 23, 25, 0.5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='760' viewBox='0 0 1200 760'%3E%3Crect width='1200' height='760' fill='%23201719'/%3E%3Cpath d='M0 520h1200v240H0z' fill='%23f7f2ea' opacity='.9'/%3E%3Cpath d='M760 0h220v760H760z' fill='%23a9824c' opacity='.34'/%3E%3Cpath d='M900 0h300v760H900z' fill='%23ffffff' opacity='.08'/%3E%3C/svg%3E");
  background-size: cover;
}

.public-hero,
.public-booking-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: end;
  min-height: 36vh;
  color: #ffffff;
}

.public-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: 0;
}

.public-hero p,
.public-signal span {
  color: rgba(255, 255, 255, 0.76);
}

.public-signal {
  padding: 16px;
  border: 1px solid rgba(245, 223, 183, 0.36);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.46);
}

.public-signal strong,
.public-signal span,
.public-feedback {
  display: block;
}

.public-booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 16px;
  margin-top: 24px;
}

.public-booking-form,
.public-summary {
  padding: 22px;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.public-booking-form .roi-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.public-summary {
  align-self: start;
}

.public-summary .mini-list > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.public-summary .mini-list strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin: 0;
  border-radius: 999px;
  color: #fffdf9;
  background: var(--gold);
  font-size: 13px;
}

.public-summary .mini-list span {
  display: block;
  min-width: 0;
}

.public-feedback {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .metric-grid,
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-settings-form .roi-grid,
  .management-grid,
  .lgpd-grid,
  .role-matrix {
    grid-template-columns: 1fr;
  }

  .appointment {
    grid-template-columns: 60px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .app-shell,
  .admin-shell {
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar,
  .admin-sidebar {
    position: static;
    min-width: 0;
    max-width: 100vw;
    overflow: hidden;
    height: auto;
    gap: 14px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(18, 20, 21, 0.16);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    font-size: 12px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    border-left-width: 1px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .sidebar-card {
    margin-top: 0;
    display: grid;
    grid-template-columns: auto minmax(130px, 1fr);
    gap: 8px 14px;
    align-items: center;
    padding: 12px;
  }

  .sidebar-card strong {
    margin: 0;
    font-size: 22px;
  }

  .sidebar-card .progress-track {
    grid-column: 2;
  }

  .sidebar-card small {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .admin-return {
    margin-top: 0;
  }

  .main,
  .admin-main {
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 18px 14px;
  }

  .topbar,
  .admin-topbar {
    display: grid;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-actions .primary-button {
    flex: 1;
  }

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

  .panel-actions .secondary-button {
    flex: 1;
  }

  .scenario-row .tiny-button {
    flex: 1;
  }

  .insight-banner,
  .priority-header,
  .priority-item {
    display: grid;
  }

  .metric-grid,
  .admin-metric-grid,
  .waitlist-grid,
  .plan-grid,
  .signal-grid,
  .invite-summary,
  .segment-summary,
  .validation-scoreboard,
  .pipeline-board,
  .roi-grid,
  .roi-result,
  .management-grid,
  .compact-form,
  .tenant-form,
  .public-booking-row,
  .lgpd-grid,
  .role-matrix,
  .segment-controls,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .integration-status-card {
    grid-template-columns: 1fr !important;
  }

  .integration-status-card small {
    grid-column: auto;
  }

  .client-row,
  .return-row,
  .priority-item,
  .client-admin-card {
    grid-template-columns: 1fr;
  }

  .appointment {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
  }

  .time {
    min-height: 70px;
    font-size: 15px;
  }

  .appointment-status {
    justify-self: end;
  }

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

  .campaign-actions,
  .appointment-actions {
    display: grid;
  }

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

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

  .campaign-actions .tiny-button,
  .campaign-actions .status-pill,
  .appointment-actions .tiny-button {
    width: 100%;
    min-width: 0;
  }

  .message-card-main,
  .invite-card-main,
  .message-meta,
  .invite-card-meta {
    display: grid;
  }

  .message-card-main .status-pill,
  .invite-card-main .status-pill {
    justify-self: start;
  }

  .return-table-head {
    display: none;
  }

  .return-row .status-pill {
    justify-self: stretch;
  }

  .appointment .time {
    font-size: 18px;
  }

  .public-page {
    padding: 16px;
  }

  .public-hero,
  .public-booking-shell {
    grid-template-columns: 1fr;
  }

  .public-hero h1 {
    font-size: 44px;
  }
}

body:has(.app-shell) .panel,
body:has(.admin-shell) .panel {
  border-color: rgba(232, 214, 184, 0.13) !important;
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #141618 !important;
  box-shadow: var(--shadow) !important;
}

body:has(.app-shell) .report-card,
body:has(.app-shell) .report-list article,
body:has(.app-shell) .segment-summary article,
body:has(.app-shell) .validation-scoreboard article,
body:has(.app-shell) .signal-card,
body:has(.app-shell) .pricing-card,
body:has(.app-shell) .real-roi-box,
body:has(.app-shell) .client-history-box,
body:has(.admin-shell) .report-card,
body:has(.admin-shell) .report-list article {
  border-color: rgba(232, 214, 184, 0.12) !important;
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    #191c1e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

body:has(.app-shell) .report-card strong,
body:has(.app-shell) .report-list strong,
body:has(.app-shell) .segment-summary strong,
body:has(.app-shell) .validation-scoreboard strong,
body:has(.app-shell) .signal-card strong,
body:has(.app-shell) .pricing-card strong,
body:has(.app-shell) .real-roi-box strong,
body:has(.app-shell) .client-history-box strong {
  color: #fff8ee !important;
}

body:has(.app-shell) .report-card span,
body:has(.app-shell) .report-list span,
body:has(.app-shell) .segment-summary span,
body:has(.app-shell) .validation-scoreboard span,
body:has(.app-shell) .signal-card span,
body:has(.app-shell) .pricing-card small,
body:has(.app-shell) .real-roi-box p,
body:has(.app-shell) .client-history-box p,
body:has(.app-shell) .client-history-box span {
  color: var(--muted) !important;
}

body:has(.app-shell) select,
body:has(.app-shell) textarea,
body:has(.app-shell) input,
body:has(.admin-shell) select,
body:has(.admin-shell) textarea,
body:has(.admin-shell) input {
  border-color: rgba(232, 214, 184, 0.14) !important;
  color: #fff8ee !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

body:has(.app-shell) .campaign-history article,
body:has(.app-shell) .role-matrix article,
body:has(.app-shell) .onboarding-list article,
body:has(.app-shell) .mini-list > div,
body:has(.admin-shell) .mini-list > div,
body:has(.app-shell) .client-admin-card,
body:has(.app-shell) .prospect-form,
body:has(.app-shell) .import-box,
body:has(.app-shell) .client-history-box {
  border-color: rgba(232, 214, 184, 0.12) !important;
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    #191c1e !important;
}

body:has(.app-shell) .client-admin-list {
  display: grid;
  gap: 10px;
}

body:has(.app-shell) .client-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, auto) auto;
  gap: 14px;
  align-items: center;
}

body:has(.app-shell) .client-admin-card strong,
body:has(.app-shell) .client-admin-card span,
body:has(.app-shell) .field,
body:has(.app-shell) .import-box p,
body:has(.app-shell) .client-history-box p {
  color: var(--muted);
}

body:has(.app-shell) .client-admin-card strong,
body:has(.app-shell) .field {
  color: #fff8ee !important;
}

body:has(.app-shell) .client-admin-card > span {
  color: #f7d49b !important;
  font-weight: 780;
  text-align: right;
  white-space: nowrap;
}

body:has(.app-shell) .client-admin-card .campaign-actions {
  margin-top: 0;
}

body:has(.app-shell) .prospect-form .field {
  gap: 8px;
}

body:has(.app-shell) .prospect-form input,
body:has(.app-shell) .import-box textarea {
  border-color: rgba(232, 214, 184, 0.13) !important;
  color: #fff8ee !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body:has(.app-shell) .prospect-form input::placeholder,
body:has(.app-shell) .import-box textarea::placeholder {
  color: rgba(244, 239, 230, 0.36) !important;
}

@media (max-width: 1120px) {
  body:has(.app-shell) .client-admin-card {
    grid-template-columns: 1fr;
  }

  body:has(.app-shell) .client-admin-card > span {
    text-align: left;
  }
}

body:has(.app-shell),
body:has(.admin-shell) {
  background:
    linear-gradient(115deg, rgba(210, 163, 95, 0.09) 0%, transparent 28%),
    linear-gradient(245deg, rgba(79, 124, 112, 0.08) 0%, transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #121416 0%, #0d0f10 58%, #08090a 100%) !important;
}

body:has(.app-shell) .main,
body:has(.admin-shell) .admin-main {
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.04), transparent 260px),
    linear-gradient(90deg, rgba(210, 163, 95, 0.035), transparent 34%) !important;
}

body:has(.app-shell) .topbar,
body:has(.admin-shell) .admin-topbar {
  position: relative;
  padding-bottom: 24px;
  margin-bottom: 22px;
}

body:has(.app-shell) .topbar::after,
body:has(.admin-shell) .admin-topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(210, 163, 95, 0.72), rgba(232, 214, 184, 0.14), transparent);
}

body:has(.app-shell) .eyebrow,
body:has(.admin-shell) .eyebrow {
  color: #d7ad72;
}

body:has(.app-shell) .panel,
body:has(.admin-shell) .panel,
body:has(.app-shell) .priority-board,
body:has(.app-shell) .metric,
body:has(.admin-shell) .metric {
  border-color: rgba(232, 214, 184, 0.15) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.035)),
    linear-gradient(135deg, rgba(210, 163, 95, 0.04), transparent 46%),
    #141618 !important;
}

body:has(.app-shell) .priority-board,
body:has(.admin-shell) .priority-board {
  padding: 20px;
}

body:has(.app-shell) .priority-header,
body:has(.admin-shell) .priority-header,
body:has(.app-shell) .panel-header,
body:has(.admin-shell) .panel-header {
  border-bottom-color: rgba(232, 214, 184, 0.16) !important;
}

body:has(.app-shell) .priority-item,
body:has(.admin-shell) .priority-item {
  border-left: 3px solid rgba(210, 163, 95, 0.28);
}

body:has(.app-shell) .priority-item.strong,
body:has(.admin-shell) .priority-item.strong {
  border-left-color: #d2a35f;
  background:
    linear-gradient(90deg, rgba(210, 163, 95, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    #191c1e !important;
}

body:has(.app-shell) .priority-number,
body:has(.admin-shell) .priority-number {
  border: 1px solid rgba(232, 214, 184, 0.12);
  color: #11100e;
  background: linear-gradient(180deg, #f2d49a, #bd8750);
  box-shadow: 0 10px 24px rgba(210, 163, 95, 0.18);
}

body:has(.app-shell) .priority-item:not(.strong) .priority-number,
body:has(.admin-shell) .priority-item:not(.strong) .priority-number {
  color: #f6ead8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: none;
}

body:has(.app-shell) .metric {
  position: relative;
  overflow: hidden;
}

body:has(.app-shell) .metric::after,
body:has(.admin-shell) .metric::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: rgba(210, 163, 95, 0.34);
}

body:has(.app-shell) .metric strong,
body:has(.admin-shell) .metric strong {
  color: #f7d49b !important;
}

body:has(.app-shell) .appointment,
body:has(.app-shell) .return-row,
body:has(.app-shell) .message-card,
body:has(.app-shell) .invite-card,
body:has(.app-shell) .setup-entity-card,
body:has(.app-shell) .integration-status-card,
body:has(.app-shell) .wait-card,
body:has(.app-shell) .club-plan,
body:has(.app-shell) .client-row {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

body:has(.app-shell) .appointment:hover,
body:has(.app-shell) .return-row:hover,
body:has(.app-shell) .message-card:hover,
body:has(.app-shell) .invite-card:hover {
  border-color: rgba(210, 163, 95, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    #191c1e !important;
}

body:has(.app-shell) .status-pill,
body:has(.admin-shell) .status-pill {
  backdrop-filter: blur(8px);
}

body:has(.app-shell) .status-pill,
body:has(.admin-shell) .status-pill {
  gap: 7px;
  min-width: 0;
  min-height: 24px;
  padding: 0 10px;
  border-color: rgba(232, 214, 184, 0.13) !important;
  border-radius: 999px;
  color: #d8e7e2;
  background: rgba(255, 255, 255, 0.045) !important;
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body:has(.app-shell) .status-pill::before,
body:has(.admin-shell) .status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

body:has(.app-shell) .status-pill.good,
body:has(.admin-shell) .status-pill.good {
  color: #9fe3cf;
  background: rgba(79, 124, 112, 0.12) !important;
}

body:has(.app-shell) .status-pill.warning,
body:has(.admin-shell) .status-pill.warning {
  color: #edc783;
  background: rgba(210, 163, 95, 0.12) !important;
}

body:has(.app-shell) .appointment-status {
  align-self: start;
  margin-top: 1px;
}

body:has(.app-shell) .appointment .appointment-status {
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  color: var(--muted);
  background: transparent !important;
  box-shadow: none;
  font-size: 12px;
  font-weight: 780;
  text-align: right;
}

body:has(.app-shell) .appointment .appointment-status.good {
  color: #8fd9c3;
}

body:has(.app-shell) .appointment .appointment-status.warning,
body:has(.app-shell) .appointment .appointment-status.pix {
  color: #e4bd78;
}

body:has(.app-shell) .appointment .appointment-status::before {
  width: 5px;
  height: 5px;
  flex-basis: 5px;
}

body:has(.app-shell) .return-row .status-pill {
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  color: var(--muted);
  background: transparent !important;
  box-shadow: none;
  font-size: 12px;
  font-weight: 760;
}

body:has(.app-shell) .return-row .status-pill.good {
  color: #8fd9c3;
}

body:has(.app-shell) .appointment .appointment-status.pix,
body:has(.app-shell) .appointment .appointment-status.warning {
  background: transparent !important;
}

body:has(.app-shell) .status-pill.info,
body:has(.admin-shell) .status-pill.info {
  color: #bcd3ff;
  background: rgba(101, 124, 179, 0.14) !important;
}

body:has(.app-shell) .status-pill.pix,
body:has(.admin-shell) .status-pill.pix {
  color: #edc783;
  background: rgba(210, 163, 95, 0.12) !important;
}

body:has(.app-shell) .signal-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

body:has(.app-shell) .signal-grid > div {
  min-height: 88px;
  padding: 13px 14px !important;
  border: 1px solid rgba(232, 214, 184, 0.12) !important;
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    #191c1e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 24px rgba(0, 0, 0, 0.18);
}

body:has(.app-shell) .signal-grid strong {
  color: #f7d49b !important;
  font-size: 20px;
  line-height: 1.05;
}

body:has(.app-shell) .signal-grid span {
  margin-top: 8px;
  color: var(--muted) !important;
  line-height: 1.25;
}

body:has(.app-shell) .invite-queue .invite-card {
  gap: 12px !important;
}

body:has(.app-shell) .invite-queue .invite-card-main {
  grid-template-columns: 1fr;
  gap: 8px;
}

body:has(.app-shell) .invite-queue .invite-card-main .status-pill {
  justify-self: start;
}

body:has(.app-shell) .invite-card-meta {
  border: 1px solid rgba(232, 214, 184, 0.08);
}

.hidden {
  display: none !important;
}

body[data-role="barber"] .priority-board,
body[data-role="barber"] .metric-grid,
body[data-role="barber"] .sidebar-card {
  display: none !important;
}

body[data-role="barber"] .main {
  gap: 20px;
}

body[data-role="barber"] .topbar {
  border-color: rgba(210, 163, 95, 0.2);
  background:
    linear-gradient(135deg, rgba(210, 163, 95, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.032)),
    #181b1d;
}

.employee-view {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
}

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

.employee-summary-grid article,
.employee-rules article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(232, 214, 184, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    #191c1e;
}

.employee-summary-grid strong {
  display: block;
  color: #f7d49b;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.employee-summary-grid span,
.employee-rules span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.employee-rules {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.employee-actions {
  align-items: center;
}

@media (max-width: 900px) {
  .employee-view {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .employee-summary-grid,
  .employee-actions.appointment-actions-three {
    grid-template-columns: 1fr;
  }
}

body:has(.app-shell) .appointment-actions {
  gap: 10px;
  justify-content: end;
}

body:has(.app-shell) .appointment-actions-two {
  grid-template-columns: repeat(2, minmax(116px, 150px));
}

body:has(.app-shell) .appointment-actions-three {
  grid-template-columns: repeat(3, minmax(94px, 122px));
}

body:has(.app-shell) .appointment-actions .tiny-button {
  min-height: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)) !important;
}

body:has(.app-shell) .revenue-box {
  min-height: 152px;
  place-items: stretch;
  padding: 20px;
  border-color: rgba(232, 214, 184, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(210, 163, 95, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    #171a1c !important;
  text-align: left;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body:has(.app-shell) .revenue-box strong {
  align-self: end;
  color: #f7d49b !important;
  font-size: 42px;
  line-height: 1;
}

body:has(.app-shell) .revenue-box span {
  align-self: start;
  margin-top: 12px;
  color: var(--muted) !important;
  font-size: 13px;
}

body:has(.app-shell) #club .mini-list {
  gap: 10px;
}

body:has(.app-shell) #club .mini-list > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px !important;
  border-color: rgba(232, 214, 184, 0.12) !important;
}

body:has(.app-shell) #club .mini-list strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(210, 163, 95, 0.22);
  border-radius: 8px;
  color: #f7d49b !important;
  background: rgba(210, 163, 95, 0.1);
  font-size: 18px;
  line-height: 1;
}

body:has(.app-shell) #club .mini-list span {
  color: #d7cec1 !important;
  font-size: 13px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  body:has(.app-shell) .appointment-actions {
    justify-content: stretch;
  }

  body:has(.app-shell) .appointment-actions-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.app-shell) .appointment-actions-three {
    grid-template-columns: 1fr;
  }
}

body:has(.app-shell) #settings .management-grid section,
body:has(.app-shell) #settings .compact-form,
body:has(.app-shell) #settings .compact-list article,
body:has(.app-shell) #settings .onboarding-box,
body:has(.app-shell) #settings .onboarding-list label,
body:has(.app-shell) #settings .setup-item,
body:has(.app-shell) #settings .role-matrix article,
body:has(.app-shell) #settings .checkbox-row,
body:has(.app-shell) #settings .booking-link-box,
body:has(.app-shell) #settings .lgpd-grid article {
  border-color: rgba(232, 214, 184, 0.12) !important;
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    #191c1e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

body:has(.app-shell) #settings .field,
body:has(.app-shell) #settings .checkbox-row,
body:has(.app-shell) #settings .onboarding-list label,
body:has(.app-shell) #settings .compact-list strong,
body:has(.app-shell) #settings .setup-item strong,
body:has(.app-shell) #settings .role-matrix strong {
  color: #fff8ee !important;
}

body:has(.app-shell) #settings .compact-list span,
body:has(.app-shell) #settings .setup-item span,
body:has(.app-shell) #settings .role-matrix span,
body:has(.app-shell) #settings .mini-section-header span,
body:has(.app-shell) #settings .onboarding-list span {
  color: var(--muted) !important;
}

body:has(.app-shell) #settings input,
body:has(.app-shell) #settings select,
body:has(.app-shell) #settings textarea {
  border-color: rgba(232, 214, 184, 0.13) !important;
  color: #fff8ee !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body:has(.app-shell) #settings input::placeholder,
body:has(.app-shell) #settings textarea::placeholder {
  color: rgba(244, 239, 230, 0.34) !important;
}

body:has(.app-shell) #settings .setup-list {
  gap: 10px;
}

body:has(.app-shell) #settings .setup-item {
  min-height: 72px;
  padding: 14px !important;
}

body:has(.app-shell) #settings .setup-check {
  color: #f8efe1;
  background: rgba(79, 124, 112, 0.32) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:has(.app-shell) #settings .checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px !important;
}

body:has(.app-shell) #settings .checkbox-row input[type="checkbox"],
body:has(.app-shell) #settings .onboarding-list input[type="checkbox"] {
  accent-color: #d2a35f;
}

body:has(.app-shell) #settings .onboarding-box {
  border-left: 3px solid #d2a35f !important;
  padding: 14px !important;
}

body:has(.app-shell) #settings .onboarding-list label {
  border-width: 0 0 1px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body:has(.app-shell) #settings .onboarding-list label:last-child {
  border-bottom: 0 !important;
}

body:has(.app-shell),
body:has(.admin-shell) {
  color-scheme: dark;
}

body:has(.app-shell) *,
body:has(.admin-shell) * {
  scrollbar-color: rgba(210, 163, 95, 0.42) rgba(255, 255, 255, 0.04);
}

body:has(.app-shell) ::selection,
body:has(.admin-shell) ::selection {
  color: #11100e;
  background: rgba(242, 212, 154, 0.86);
}

body:has(.app-shell) button,
body:has(.app-shell) a,
body:has(.app-shell) input,
body:has(.app-shell) select,
body:has(.app-shell) textarea,
body:has(.admin-shell) button,
body:has(.admin-shell) a,
body:has(.admin-shell) input,
body:has(.admin-shell) select,
body:has(.admin-shell) textarea {
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

body:has(.app-shell) button:focus-visible,
body:has(.app-shell) a:focus-visible,
body:has(.app-shell) input:focus-visible,
body:has(.app-shell) select:focus-visible,
body:has(.app-shell) textarea:focus-visible,
body:has(.admin-shell) button:focus-visible,
body:has(.admin-shell) a:focus-visible,
body:has(.admin-shell) input:focus-visible,
body:has(.admin-shell) select:focus-visible,
body:has(.admin-shell) textarea:focus-visible {
  outline: 2px solid rgba(242, 212, 154, 0.88);
  outline-offset: 2px;
}

body:has(.app-shell) .primary-button:hover,
body:has(.admin-shell) .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(210, 163, 95, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body:has(.app-shell) .panel,
body:has(.app-shell) .metric,
body:has(.app-shell) .priority-board,
body:has(.app-shell) .appointment,
body:has(.app-shell) .return-row,
body:has(.app-shell) .client-admin-card,
body:has(.app-shell) .club-plan,
body:has(.app-shell) .wait-card,
body:has(.admin-shell) .panel,
body:has(.admin-shell) .metric,
body:has(.admin-shell) .client-admin-card {
  backdrop-filter: blur(10px);
}

body:has(.app-shell) .view:not(.active),
body:has(.admin-shell) .admin-view:not(.active) {
  visibility: hidden;
}

body:has(.app-shell) .view.active,
body:has(.admin-shell) .admin-view.active {
  visibility: visible;
  animation: view-enter .22s ease-out both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item,
.primary-button,
.secondary-button,
.tiny-button,
.icon-button {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.nav-item:active,
.primary-button:active,
.secondary-button:active,
.tiny-button:active,
.icon-button:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  body:has(.app-shell) .view.active,
  body:has(.admin-shell) .admin-view.active {
    animation: none;
  }

  .nav-item,
  .primary-button,
  .secondary-button,
  .tiny-button,
  .icon-button {
    transition: none;
  }
}

@media (max-width: 1180px) {
  #reactivation .return-table-head {
    display: none;
  }

  #reactivation .return-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
    gap: 10px;
  }

  #reactivation .return-client {
    grid-column: 1 / -1;
  }

  #reactivation .return-cell {
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid rgba(232, 214, 184, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
  }

  #reactivation .return-row .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ===== V2: Marketing, confiança e operação real ===== */
.marketing-body, .public-body { background: #0d0e0f; color: #f5efe5; min-height: 100vh; overflow-x:hidden; }
.marketing-nav, .public-header { box-sizing:border-box; width:100%; max-width: 1200px; margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; }
.marketing-brand { display:flex; align-items:center; gap:14px; color:inherit; text-decoration:none; }
.marketing-brand img { width:48px; height:48px; border-radius:14px; background:#0a0704; }
.marketing-brand img,
.brand-mark img {
  object-fit: cover;
}
.marketing-brand strong { display:block; font-size:17px; }
.marketing-brand span { display:block; color:#a79d91; font-size:12px; }
.marketing-nav nav { display:flex; align-items:center; gap:26px; }
.marketing-nav nav a { color:#d9d0c4; text-decoration:none; font-size:14px; }
.marketing-nav nav .nav-login { border:1px solid rgba(221,174,101,.4); border-radius:12px; padding:12px 20px; color:#f7d59b; }
.marketing-main { box-sizing:border-box; width:100%; max-width:1200px; margin:0 auto; padding:44px 32px 80px; }
.marketing-hero { display:grid; grid-template-columns: minmax(400px, 1.03fr) minmax(380px, .97fr); gap:56px; align-items:center; min-height:620px; }
.hero-copy h1 { font-size: clamp(45px, 5vw, 62px); line-height:1.05; margin:18px 0 22px; letter-spacing:-.055em; max-width:680px; }
.hero-copy h1 em,
.fit-section h2 em,
.roi-section h2 em { color:#e7bb74; font-style:normal; }
.hero-copy p { color:#bbb1a5; line-height:1.7; font-size:17px; max-width:560px; }
.hero-actions { display:flex; gap:14px; margin-top:34px; }
.hero-actions a { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; padding:17px 25px; }
.hero-action-note { max-width:520px; margin:14px 0 0; color:#9f968b; font-size:13px; line-height:1.55; }
.trust-row { display:flex; gap:22px; flex-wrap:wrap; margin-top:34px; color:#aaa092; font-size:13px; }
.hero-dashboard { border:1px solid rgba(222,179,111,.2); background:linear-gradient(145deg,#181a1b,#111213); border-radius:27px; padding:28px; box-shadow:0 35px 90px rgba(0,0,0,.42); }
.preview-head { padding:8px 6px 28px; border-bottom:1px solid rgba(255,255,255,.08); }
.preview-head span, .preview-grid span { display:block; color:#9c9388; font-size:13px; }
.preview-head strong { display:block; margin-top:12px; font-size:48px; color:#f1c57f; letter-spacing:-.04em; }
.preview-head small { color:#afa395; }
.preview-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; padding-top:20px; }
.preview-grid article { padding:19px; border-radius:17px; background:#202223; border:1px solid rgba(255,255,255,.06); min-height:102px; }
.preview-grid strong { display:block; margin-top:12px; font-size:27px; }
.preview-grid .preview-accent { background:linear-gradient(135deg,rgba(218,165,91,.2),rgba(30,31,32,.7)); }
.preview-grid .preview-accent strong { font-size:17px; color:#f1c57f; }
.benefit-section,
.fit-section,
.roi-section { padding:78px 0; border-top:1px solid rgba(255,255,255,.07); }
.section-heading { max-width:700px; margin-bottom:36px; }
.section-heading h2, .results-section h2, .pilot-section h2, .fit-section h2, .roi-section h2 { margin:12px 0 0; font-size:36px; letter-spacing:-.04em; line-height:1.15; }
.benefit-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.benefit-grid article { background:#151617; border:1px solid rgba(255,255,255,.07); border-radius:20px; padding:27px; }
.benefit-grid strong { font-size:20px; }
.benefit-grid p { color:#aca397; line-height:1.65; margin:13px 0 0; }
.fit-section { display:grid; grid-template-columns:.9fr 1.1fr; gap:36px; align-items:start; }
.fit-grid { display:grid; gap:12px; }
.fit-grid article { display:grid; gap:8px; padding:20px 22px; border:1px solid rgba(255,255,255,.07); border-radius:16px; background:#151617; }
.fit-grid strong { color:#f4eadc; font-size:18px; }
.fit-grid span { color:#aca397; line-height:1.55; font-size:14px; }
.results-section { display:grid; grid-template-columns:.95fr 1.05fr; gap:55px; align-items:center; padding:76px 0; border-top:1px solid rgba(255,255,255,.07); }
.results-section p, .pilot-section p, .roi-section p { color:#aca397; line-height:1.7; font-size:16px; }
.results-list { display:flex; flex-direction:column; gap:12px; }
.results-list div { display:flex; align-items:center; gap:19px; padding:20px 22px; border-radius:16px; background:#161718; border:1px solid rgba(255,255,255,.07); }
.results-list strong { color:#e7bb74; font-size:22px; }
.roi-section { display:grid; grid-template-columns:1fr 420px; gap:48px; align-items:center; }
.roi-copy { max-width:620px; }
.roi-card { display:grid; gap:12px; padding:22px; border:1px solid rgba(222,179,111,.2); border-radius:24px; background:linear-gradient(145deg,#181a1b,#111213); box-shadow:0 28px 70px rgba(0,0,0,.32); }
.roi-card div { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px; border-radius:15px; background:#202223; border:1px solid rgba(255,255,255,.06); }
.roi-card span { color:#a79d91; font-size:13px; }
.roi-card strong { color:#f2dcc0; font-size:28px; }
.roi-card .roi-total { background:linear-gradient(135deg,rgba(218,165,91,.2),rgba(30,31,32,.7)); }
.roi-card .roi-total strong { color:#eec37d; }
.pilot-section { display:grid; grid-template-columns:1fr 390px; gap:54px; align-items:center; padding:76px 0; border-top:1px solid rgba(255,255,255,.07); }
.pilot-card { background:linear-gradient(145deg,#1b1c1d,#131414); border:1px solid rgba(222,179,111,.26); border-radius:25px; padding:28px; }
.pilot-card > span { color:#a99d90; font-size:14px; }
.pilot-card > strong { font-size:48px; color:#eec37d; display:block; margin:14px 0 24px; }
.pilot-card > strong small { font-size:15px; color:#a99d90; font-weight:500; }
.pilot-card ul { list-style:none; padding:0; margin:0 0 28px; display:flex; flex-direction:column; gap:13px; color:#cec5b9; }
.pilot-card li::before { content:"✓"; color:#e7bb74; margin-right:12px; }
.pilot-card a { text-decoration:none; justify-content:center; padding:17px; display:flex; }
.marketing-footer { box-sizing:border-box; width:100%; max-width:1200px; margin:0 auto; border-top:1px solid rgba(255,255,255,.07); padding:28px 32px 36px; display:flex; justify-content:space-between; gap:20px; color:#938a80; font-size:13px; }
.marketing-footer div { display:flex; gap:22px; }
.marketing-footer a { color:#bdb2a3; text-decoration:none; }
.checkout-footer,
.legal-footer { padding-bottom:42px; }
.parent-company-badge {
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(210, 163, 95, 0.16);
  border-radius: 8px;
  color: rgba(248, 243, 235, 0.58);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.parent-company-badge strong {
  display: block;
  margin-top: 3px;
  color: #d7b37e;
  font-size: 12px;
  letter-spacing: .1em;
}
.login-links { display:flex; justify-content:center; gap:20px; margin-top:20px; font-size:13px; }
.login-links a { color:#bfb2a1; text-decoration:none; }
.secure-config-note { background:rgba(231,187,116,.08); border:1px solid rgba(231,187,116,.18); border-radius:12px; color:#c8bcaa; padding:13px 14px; font-size:13px; line-height:1.55; margin:14px 0; }
.public-header { padding-bottom:10px; }
.enhanced-public-page { max-width:1080px; padding-top:32px; }
.public-explainer { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; padding:16px 18px; border:1px solid rgba(222,179,111,.17); border-radius:18px; background:rgba(231,187,116,.08); color:#d8cdbd; }
.public-explainer strong { color:#f3d49a; font-size:14px; }
.public-explainer span { max-width:680px; color:#bfb3a4; font-size:13px; line-height:1.55; }
.public-hero-premium { border:1px solid rgba(222,179,111,.17); background:linear-gradient(135deg,#191a1b,#111213); border-radius:25px; padding:34px; }
.public-meta { display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; }
.public-meta span { font-size:13px; color:#c9bdad; border:1px solid rgba(255,255,255,.09); padding:9px 13px; border-radius:999px; }
.public-services-showcase { margin:25px 0; padding:25px; border:1px solid rgba(255,255,255,.06); border-radius:20px; background:#111213; }
.service-showcase-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:17px; }
.service-showcase-grid article { padding:18px; border-radius:14px; background:#1a1b1c; display:flex; flex-direction:column; gap:9px; }
.service-showcase-grid article span { color:#ecc17e; font-size:20px; font-weight:700; }
.service-showcase-grid article small { color:#9d9489; }
.consent-row { align-items:flex-start; line-height:1.5; font-size:13px; color:#b9aea0; }
.consent-row a { color:#ebbd76; }
.honeypot { position:absolute !important; opacity:0 !important; pointer-events:none !important; left:-10000px !important; }
.public-policy { margin-top:28px; padding:18px; border-radius:14px; background:#18191a; color:#b7ada0; font-size:13px; line-height:1.55; }
.public-policy strong { display:block; color:#efe6db; margin-bottom:7px; }
.legal-page { max-width:820px; margin:0 auto; padding:36px 28px 80px; color:#e9e2d9; }
.legal-page article { background:#141516; border:1px solid rgba(255,255,255,.07); border-radius:22px; padding:36px; margin-top:32px; }
.legal-page h1 { font-size:40px; letter-spacing:-.04em; }
.legal-page h2 { margin-top:32px; color:#ebbd76; font-size:20px; }
.legal-page p, .legal-page li { color:#bcb2a6; line-height:1.75; }
@media (max-width: 900px) { .marketing-nav { padding:20px; } .marketing-nav nav a:not(.nav-login) { display:none; } .marketing-main { padding:20px 20px 54px; } .marketing-hero, .results-section, .pilot-section, .fit-section, .roi-section { display:block; min-height:0; } .hero-actions, .public-explainer { flex-direction:column; align-items:stretch; } .hero-dashboard, .pilot-card, .roi-card { margin-top:38px; } .benefit-grid, .service-showcase-grid { grid-template-columns:1fr; } .marketing-footer { flex-direction:column; padding:25px 20px; } .hero-copy h1 { font-size:39px; } }

/* ===== Hotfix Stripe/Admin ===== */
body:has(.admin-shell) .prospect-form,
body:has(.admin-shell) .next-actions,
body:has(.admin-shell) .proposal-card,
body:has(.admin-shell) .pitch-box,
body:has(.admin-shell) .pilot-offer,
body:has(.admin-shell) .pilot-step,
body:has(.admin-shell) .question-item,
body:has(.admin-shell) .pipeline-card,
body:has(.admin-shell) .break-even,
body:has(.admin-shell) .client-admin-card,
body:has(.admin-shell) .import-box {
  border-color: rgba(232, 214, 184, 0.12) !important;
  color: #fff8ee !important;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)), #191c1e !important;
}

body:has(.admin-shell) .prospect-form .field,
body:has(.admin-shell) .prospect-form label,
body:has(.admin-shell) .next-actions,
body:has(.admin-shell) .next-actions p {
  color: #fff8ee !important;
}

body:has(.admin-shell) .prospect-form input,
body:has(.admin-shell) .prospect-form textarea,
body:has(.admin-shell) .prospect-form select {
  border-color: rgba(232, 214, 184, 0.14) !important;
  color: #fff8ee !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

body:has(.admin-shell) .prospect-form input::placeholder,
body:has(.admin-shell) .prospect-form textarea::placeholder {
  color: rgba(244, 239, 230, 0.42) !important;
}

.checkout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(231,187,116,.42);
  border-radius: 10px;
  color: #f7d59b;
  background: rgba(231,187,116,.08);
  font-weight: 800;
  text-decoration: none;
}
.checkout-link:hover,
.checkout-secondary:hover { background: rgba(231,187,116,.16); }
.checkout-secondary { margin-top: 12px; color: #f7d59b !important; background: rgba(231,187,116,.08) !important; }
.billing-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(232, 214, 184, .13);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)), #191c1e;
}
.billing-card > span { color: var(--muted); font-size: 13px; }
.billing-card strong { color: #fff8ee; font-size: clamp(28px, 4vw, 42px); }
.billing-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.billing-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.billing-actions .primary-button,
.billing-actions .secondary-button { min-width: 190px; }
.billing-admin-list article { align-items: center; }

/* Hotfix venda/Stripe: corrige estados claros e novas páginas */
body:has(.admin-shell) .roi-result article,
body:has(.admin-shell) .admin-checklist label,
body:has(.admin-shell) .ops-list article,
body:has(.admin-shell) .ops-links a,
body:has(.admin-shell) .question-item,
body:has(.admin-shell) .pilot-step,
body:has(.admin-shell) .pipeline-card,
body:has(.admin-shell) .compact-list article,
body:has(.app-shell) .setup-list article,
body:has(.app-shell) .checkbox-row,
body:has(.app-shell) .toggle-row,
body:has(.app-shell) .revenue-box,
body:has(.app-shell) .mini-list > div {
  color: #fff8ee !important;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)) !important;
  border: 1px solid rgba(232,214,184,.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body:has(.admin-shell) .roi-result article span,
body:has(.admin-shell) .admin-checklist label,
body:has(.admin-shell) .compact-list span,
body:has(.admin-shell) .muted-small,
body:has(.app-shell) .setup-list span,
body:has(.app-shell) .checkbox-row span,
body:has(.app-shell) .mini-list span {
  color: rgba(244,239,230,.68) !important;
}

body:has(.admin-shell) input,
body:has(.admin-shell) select,
body:has(.admin-shell) textarea,
body:has(.app-shell) input,
body:has(.app-shell) select,
body:has(.app-shell) textarea {
  color: #fff8ee !important;
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(232,214,184,.16) !important;
  caret-color: #e7bb74;
}

body:has(.admin-shell) input::placeholder,
body:has(.admin-shell) textarea::placeholder,
body:has(.app-shell) input::placeholder,
body:has(.app-shell) textarea::placeholder {
  color: rgba(244,239,230,.42) !important;
}

body:has(.admin-shell) input:disabled,
body:has(.admin-shell) select:disabled,
body:has(.admin-shell) textarea:disabled,
body:has(.app-shell) input:disabled,
body:has(.app-shell) select:disabled,
body:has(.app-shell) textarea:disabled {
  opacity: 1 !important;
  color: rgba(244,239,230,.62) !important;
  background: rgba(255,255,255,.035) !important;
}

body:has(.admin-shell) input:-webkit-autofill,
body:has(.admin-shell) input:-webkit-autofill:hover,
body:has(.admin-shell) input:-webkit-autofill:focus,
body:has(.app-shell) input:-webkit-autofill,
body:has(.app-shell) input:-webkit-autofill:hover,
body:has(.app-shell) input:-webkit-autofill:focus,
.checkout-form input:-webkit-autofill,
.checkout-form input:-webkit-autofill:hover,
.checkout-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff8ee !important;
  -webkit-box-shadow: 0 0 0 1000px #1d2022 inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.status-pill.danger,
body:has(.admin-shell) .status-pill.danger,
body:has(.app-shell) .status-pill.danger {
  color: #ffc2ca;
  border-color: rgba(195,106,120,.22);
  background: rgba(195,106,120,.15);
}

.checkout-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% -10%, rgba(210,163,95,.18), transparent 36%),
    radial-gradient(circle at 90% 0%, rgba(79,124,112,.14), transparent 34%),
    #08090a;
}

.checkout-main {
  width: min(1100px, calc(100% - 40px));
  margin: 72px auto;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 430px);
  gap: 32px;
  align-items: start;
}

.checkout-copy h1,
.success-card h1 {
  margin: 10px 0 14px;
  max-width: 720px;
  color: #fff8ee;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.04em;
}

.checkout-copy p,
.success-card p {
  color: rgba(244,239,230,.72);
  line-height: 1.65;
  font-size: 16px;
}

.checkout-steps,
.success-next {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.checkout-steps article,
.success-next article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(232,214,184,.14);
  border-radius: 14px;
  color: #fff8ee;
  background: rgba(255,255,255,.045);
}

.checkout-steps strong,
.success-next strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #17110a;
  background: linear-gradient(180deg, #f8d899, #d79c4f);
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 22px;
  color: #fff8ee;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)), #151719;
  border-color: rgba(232,214,184,.16);
}

.checkout-form h2 { color: #fff8ee; font-size: 28px; }
.checkout-form .field { color: #fff8ee; }
.billing-entity-note {
  margin: -4px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(231,187,116,.18);
  border-radius: 14px;
  color: rgba(244,239,230,.76);
  background: rgba(231,187,116,.075);
  font-size: 13px;
  line-height: 1.55;
}
.checkout-form input {
  color: #fff8ee;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(232,214,184,.16);
}
.checkout-form input::placeholder { color: rgba(244,239,230,.38); }

.success-card {
  width: min(760px, calc(100% - 40px));
  margin: 86px auto;
  padding: 34px;
  border-radius: 24px;
  color: #fff8ee;
  text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)), #151719;
}

.success-actions { margin-top: 24px; }

@media (max-width: 820px) {
  .checkout-main { grid-template-columns: 1fr; margin: 42px auto; }
}

/* ===== Release comercial: landing, onboarding e admin premium ===== */
.release-hero { min-height: 690px; }
.release-dashboard { position: relative; overflow: hidden; }
.release-dashboard::after { content:""; position:absolute; inset:auto -20% -30% 20%; height:160px; background: radial-gradient(circle, rgba(231,187,116,.18), transparent 68%); pointer-events:none; }
.marketing-body .primary-button,
.marketing-body .secondary-button,
.admin-shell .primary-button,
.admin-shell .secondary-button { text-decoration: none; }
.marketing-body .primary-button { box-shadow: 0 18px 42px rgba(201,143,60,.18); }
.marketing-body .secondary-button { border-color: rgba(231,187,116,.26); }
.onboarding-summary-card,
.onboarding-next-box,
.manual-onboarding-mini {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(232,214,184,.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028)), #131517;
  color: #fff8ee;
}
.onboarding-summary-card h3 { margin: 8px 0 14px; font-size: 22px; color: #fff8ee; }
.onboarding-summary-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: rgba(244,239,230,.72); line-height: 1.55; }
.form-split { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.checkout-form textarea {
  min-height: 86px;
  resize: vertical;
  color: #fff8ee !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(232,214,184,.16) !important;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.checkout-form textarea::placeholder { color: rgba(244,239,230,.38); }
.success-card-upgraded { width: min(860px, calc(100% - 40px)); }
.manual-onboarding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.manual-onboarding-grid article,
.onboarding-board article {
  padding: 16px;
  border: 1px solid rgba(232,214,184,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}
.manual-onboarding-grid strong,
.onboarding-board strong { display: block; color: #fff8ee; margin-bottom: 6px; }
.manual-onboarding-grid span,
.onboarding-board p { color: rgba(244,239,230,.68); line-height: 1.55; margin: 0; }
.onboarding-page { width: min(1100px, calc(100% - 40px)); margin: 60px auto 90px; }
.onboarding-page .checkout-copy { max-width: 860px; }
.onboarding-page h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.045em; color: #fff8ee; margin: 12px 0; }
.onboarding-page p { color: rgba(244,239,230,.72); line-height: 1.65; }
.onboarding-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.onboarding-board article span { color: #e7bb74; font-weight: 900; font-size: 13px; letter-spacing: .08em; }
.onboarding-actions { margin-top: 30px; }
.barbershop-admin-card,
.billing-admin-card,
.billing-summary-row,
.stripe-events-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.card-side-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 140px; }
.card-side-actions .tiny-button { width: 100%; justify-content: center; }
.manual-onboarding-mini { display: grid; gap: 8px; margin-top: 16px; }
.manual-onboarding-mini span { color: rgba(244,239,230,.68); line-height: 1.55; }
.onboarding-admin-checklist label { color: #fff8ee !important; }
body:has(.admin-shell) .roi-result article,
body:has(.admin-shell) .admin-checklist label,
body:has(.admin-shell) .compact-list article,
body:has(.admin-shell) .manual-onboarding-mini,
body:has(.admin-shell) .prospect-form,
body:has(.admin-shell) .next-actions,
body:has(.admin-shell) .pipeline-card,
body:has(.admin-shell) .question-item,
body:has(.admin-shell) .pilot-step,
body:has(.admin-shell) .proposal-card,
body:has(.admin-shell) .pitch-box,
body:has(.app-shell) .panel,
body:has(.app-shell) .setup-list article,
body:has(.app-shell) .checkbox-row,
body:has(.app-shell) .toggle-row {
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.028)), #17191b !important;
  border-color: rgba(232,214,184,.15) !important;
  color: #fff8ee !important;
}
body:has(.admin-shell) input,
body:has(.admin-shell) select,
body:has(.admin-shell) textarea,
body:has(.app-shell) input,
body:has(.app-shell) select,
body:has(.app-shell) textarea {
  color: #fff8ee !important;
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(232,214,184,.16) !important;
}
body:has(.admin-shell) input[type="checkbox"],
body:has(.app-shell) input[type="checkbox"] {
  accent-color: #e7bb74;
  background: #151719 !important;
}
body:has(.admin-shell) input:disabled,
body:has(.admin-shell) textarea:disabled,
body:has(.app-shell) input:disabled,
body:has(.app-shell) textarea:disabled {
  opacity: 1 !important;
  color: rgba(244,239,230,.62) !important;
  background: rgba(255,255,255,.035) !important;
}
body:has(.admin-shell) input:-webkit-autofill,
body:has(.admin-shell) input:-webkit-autofill:hover,
body:has(.admin-shell) input:-webkit-autofill:focus,
body:has(.app-shell) input:-webkit-autofill,
body:has(.app-shell) input:-webkit-autofill:hover,
body:has(.app-shell) input:-webkit-autofill:focus,
.checkout-form input:-webkit-autofill,
.checkout-form input:-webkit-autofill:hover,
.checkout-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff8ee !important;
  -webkit-box-shadow: 0 0 0 1000px #1d2022 inset !important;
  transition: background-color 9999s ease-in-out 0s;
}
.status-pill.warning { color: #f8d899; border-color: rgba(231,187,116,.25); background: rgba(231,187,116,.12); }
.status-pill.danger { color: #ffc2ca; border-color: rgba(195,106,120,.26); background: rgba(195,106,120,.16); }
.billing-admin-list article strong { color: #fff8ee; }
.billing-admin-list article span { color: rgba(244,239,230,.68); }
@media (max-width: 900px) {
  .form-split, .manual-onboarding-grid, .onboarding-board, .barbershop-admin-card, .billing-admin-card, .billing-summary-row, .stripe-events-card { grid-template-columns: 1fr; }
  .card-side-actions { align-items: stretch; width: 100%; }
  .onboarding-checkout-main { margin-top: 32px; }
}

/* Release comercial final: ajustes de venda, admin e onboarding */
.marketing-hero.release-hero h1,
.checkout-copy h1,
.success-card-upgraded h1,
.onboarding-page h1 {
  text-wrap: balance;
}
.commercial-admin-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.026)), #17191b !important;
  border: 1px solid rgba(232,214,184,.16) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.shop-card-main { display: grid; gap: 8px; min-width: 0; }
.shop-card-title-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.shop-card-title-row strong { font-size: 16px; color: #fff8ee; }
.shop-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.shop-meta-grid span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(232,214,184,.10);
  color: rgba(244,239,230,.72) !important;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-meta-grid b {
  display: block;
  color: #e7bb74;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.onboarding-action-board article label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.onboarding-action-board input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #e7bb74;
}
.onboarding-action-board article strong { margin-bottom: 0; }
.checkout-form .primary-button,
.success-actions .primary-button,
.pilot-card .primary-button {
  box-shadow: 0 18px 44px rgba(210, 163, 95, .22);
}
.success-card-upgraded {
  border-color: rgba(231,187,116,.28) !important;
}
.success-card-upgraded .brand-mark { margin-bottom: 12px; }
.admin-topbar .topbar-actions .secondary-button,
.admin-topbar .topbar-actions .primary-button {
  min-width: 112px;
  text-align: center;
  justify-content: center;
}
body:has(.admin-shell) .roi-result article span,
body:has(.admin-shell) .roi-result article strong,
body:has(.admin-shell) .admin-checklist label,
body:has(.admin-shell) .manual-onboarding-mini,
body:has(.admin-shell) .manual-onboarding-mini span {
  color: #fff8ee !important;
}
body:has(.admin-shell) .roi-result article,
body:has(.admin-shell) .admin-checklist label {
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026)), #17191b !important;
}
@media (max-width: 980px) {
  .shop-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shop-meta-grid { grid-template-columns: 1fr; }
  .admin-topbar .topbar-actions { width: 100%; }
  .admin-topbar .topbar-actions a { flex: 1; }
}

/* ===== Hotfix visual final: acabamento comercial ===== */
.polished-shop-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 18px;
  padding: 18px 18px 18px 20px !important;
}
.polished-shop-card .shop-card-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.shop-card-title-row {
  align-items: flex-start !important;
  gap: 18px;
}
.shop-card-title-row > div {
  min-width: 0;
}
.shop-card-title-row strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.02em;
  color: #fff8ee;
}
.shop-card-title-row span:not(.status-pill) {
  display: block;
  margin-top: 5px;
  color: rgba(244,239,230,.68);
  line-height: 1.45;
}
.shop-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(244,239,230,.62);
  font-size: 13px;
}
.shop-contact-line span {
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
  padding: 6px 10px;
}
.shop-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.commercial-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  color: rgba(244,239,230,.78);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}
.commercial-badge.good {
  border-color: rgba(91, 190, 144, .28);
  background: rgba(91, 190, 144, .12);
  color: #b9f0d5;
}
.commercial-badge.warning {
  border-color: rgba(231, 187, 116, .28);
  background: rgba(231, 187, 116, .12);
  color: #f2d3a0;
}
.commercial-badge.danger {
  border-color: rgba(245, 112, 112, .28);
  background: rgba(245, 112, 112, .12);
  color: #ffbaba;
}
.commercial-badge.muted {
  color: rgba(244,239,230,.64);
}
.technical-details {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 10px;
  color: rgba(244,239,230,.56);
  font-size: 12px;
}
.technical-details summary {
  cursor: pointer;
  color: #e7bb74;
  font-weight: 750;
  list-style: none;
}
.technical-details summary::-webkit-details-marker { display: none; }
.technical-details summary::after { content: " +"; }
.technical-details[open] summary::after { content: " –"; }
.technical-details span {
  display: inline-flex;
  margin: 8px 10px 0 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.admin-card-note {
  margin: 0;
  color: rgba(244,239,230,.6);
  font-size: 13px;
  line-height: 1.45;
}
.polished-actions {
  min-width: 150px;
  justify-content: center !important;
}
.polished-actions .tiny-button {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.polished-summary-card {
  display: flex !important;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px !important;
}
.polished-summary-card strong {
  display: block;
  font-size: 18px;
  color: #fff8ee;
  margin-bottom: 4px;
}
.polished-summary-card span:not(.status-pill) {
  color: rgba(244,239,230,.64);
  line-height: 1.45;
}
body:has(.admin-shell) .shop-meta-grid {
  display: none !important;
}
body:has(.admin-shell) .admin-topbar {
  padding-top: 34px;
}
body:has(.admin-shell) .admin-topbar h1 {
  max-width: 820px;
}
.checkout-main.onboarding-checkout-main {
  align-items: start;
  min-height: auto;
  padding-top: clamp(32px, 6vh, 72px);
  padding-bottom: 88px;
}
.checkout-main.onboarding-checkout-main .checkout-copy h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
}
.checkout-main.onboarding-checkout-main .checkout-form {
  position: sticky;
  top: 20px;
}
.success-body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 42px 20px 90px;
  box-sizing: border-box;
}
.success-card.success-card-upgraded {
  width: min(940px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
}
.success-card.success-card-upgraded h1 {
  max-width: 780px;
  font-size: clamp(40px, 5vw, 64px);
}
.success-card.success-card-upgraded p {
  max-width: 760px;
}
.success-actions {
  flex-wrap: wrap;
}
.success-actions a {
  min-width: 190px;
}
.onboarding-page {
  padding-top: 34px;
  padding-bottom: 140px;
}
.onboarding-page .checkout-copy h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  max-width: 900px;
}
.onboarding-actions {
  margin-top: 30px;
  padding-bottom: 44px;
}
.onboarding-board label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.onboarding-board input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e7bb74;
}
.onboarding-board article {
  min-height: 150px;
}
@media (max-width: 980px) {
  .polished-shop-card,
  .polished-summary-card {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
  .polished-actions {
    min-width: 0;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-main.onboarding-checkout-main .checkout-form {
    position: static;
  }
}
@media (max-width: 620px) {
  .shop-badge-row,
  .shop-contact-line {
    display: grid;
    grid-template-columns: 1fr;
  }
  .commercial-badge,
  .shop-contact-line span {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .polished-actions {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Landing pre-ads polish ===== */
.marketing-body {
  background:
    radial-gradient(circle at 16% 4%, rgba(231,187,116,.13), transparent 30%),
    linear-gradient(180deg, #111111 0%, #0b0c0d 42%, #101112 100%);
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: none;
  padding-left: max(32px, calc((100vw - 1200px) / 2 + 32px));
  padding-right: max(32px, calc((100vw - 1200px) / 2 + 32px));
  background: rgba(13,14,15,.82);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}

.marketing-main {
  padding-top: 58px;
}

.hero-copy h1 {
  max-width: 720px;
}

.hero-copy p {
  color: #d0c6b8;
  font-size: 18px;
}

.primary-button {
  box-shadow: 0 18px 44px rgba(222, 169, 91, .18);
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-height: 56px;
}

.hero-actions .secondary-button {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
  color: #f5ead9;
}

.trust-row span {
  border: 1px solid rgba(231,187,116,.16);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(231,187,116,.055);
  color: #d9ccb9;
}

.release-dashboard {
  position: relative;
  overflow: hidden;
}

.release-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(231,187,116,.13), transparent 44%);
  pointer-events: none;
}

.release-dashboard > * {
  position: relative;
}

.conversion-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: -18px 0 58px;
}

.conversion-strip article {
  padding: 20px 22px;
  border: 1px solid rgba(231,187,116,.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
}

.conversion-strip strong,
.proof-grid strong {
  display: block;
  color: #f5ead9;
  font-size: 17px;
}

.conversion-strip span,
.proof-grid span {
  display: block;
  margin-top: 7px;
  color: #afa497;
  line-height: 1.55;
  font-size: 14px;
}

.proof-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  padding: 78px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.proof-section h2 {
  margin: 12px 0 0;
  font-size: 36px;
  letter-spacing: -.04em;
  line-height: 1.15;
}

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

.proof-grid article {
  min-height: 134px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background: linear-gradient(145deg, #171819, #121314);
}

.pilot-card {
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
}

.pilot-card .primary-button {
  margin-bottom: 12px;
}

.case-section,
.faq-section {
  padding: 78px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.case-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.case-section h2,
.faq-section h2 {
  margin: 12px 0 0;
  font-size: 36px;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.case-section p {
  color: #afa497;
  line-height: 1.7;
  font-size: 16px;
}

.case-card,
.faq-list details {
  border: 1px solid rgba(231,187,116,.18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(231,187,116,.105), rgba(255,255,255,.035));
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}

.case-card {
  padding: 28px;
}

.case-card strong {
  display: block;
  color: #f5ead9;
  font-size: 22px;
  margin-bottom: 16px;
}

.case-card li,
.case-card span,
.faq-list p {
  color: #cfc3b4;
  line-height: 1.6;
}

.case-card span {
  display: block;
  margin-top: 16px;
  color: #e7bb74;
  font-weight: 800;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  color: #f5ead9;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: #e7bb74;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .marketing-nav {
    position: static;
    padding-left: 20px;
    padding-right: 20px;
  }

  .conversion-strip,
  .proof-section,
  .proof-grid,
  .case-section,
  .faq-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .conversion-strip {
    margin: 16px 0 34px;
  }

  .proof-section {
    gap: 26px;
    padding: 56px 0;
  }

  .hero-copy p {
    font-size: 16px;
  }
}

/* ===== Final commercial pages checkup ===== */
.checkout-main,
.onboarding-page,
.success-card {
  box-sizing: border-box;
}

.checkout-form,
.checkout-form *,
.success-card,
.success-card *,
.onboarding-board,
.onboarding-board * {
  box-sizing: border-box;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  min-width: 0;
}

.success-card h1 {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.success-actions .secondary-button {
  color: #f5ead9;
  background: rgba(255,255,255,.045);
}

.onboarding-action-board article {
  min-width: 0;
}

.onboarding-action-board article label {
  align-items: flex-start;
}

.onboarding-action-board input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

body:has(.admin-shell) .admin-return,
body:has(.admin-shell) .marketing-nav nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.admin-return {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

body:has(.admin-shell) .commercial-admin-card {
  min-width: 0;
}

body:has(.admin-shell) .card-side-actions {
  align-self: stretch;
  justify-content: center;
}

body:has(.admin-shell) .shop-meta-grid span,
body:has(.admin-shell) .admin-card-note,
body:has(.admin-shell) .compact-list article span {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .checkout-main,
  .onboarding-page,
  .success-card,
  .success-card-upgraded {
    width: min(100% - 28px, 560px);
  }

  .checkout-main {
    margin: 30px auto 54px;
    gap: 24px;
  }

  .checkout-copy h1,
  .success-card h1,
  .onboarding-page h1 {
    font-size: clamp(31px, 10.5vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  .checkout-form,
  .success-card {
    padding: 20px;
    border-radius: 20px;
  }

  .form-split,
  .manual-onboarding-grid {
    grid-template-columns: 1fr;
  }

  .checkout-steps article,
  .success-next article {
    align-items: flex-start;
  }

  .success-actions,
  .onboarding-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .success-actions a,
  .onboarding-actions a {
    width: 100%;
  }

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

  body:has(.admin-shell) .barbershop-admin-card,
  body:has(.admin-shell) .billing-admin-card,
  body:has(.admin-shell) .billing-summary-row,
  body:has(.admin-shell) .stripe-events-card,
  body:has(.admin-shell) .polished-shop-card,
  body:has(.admin-shell) .polished-summary-card {
    grid-template-columns: 1fr !important;
  }

  body:has(.admin-shell) .card-side-actions,
  body:has(.admin-shell) .polished-actions {
    width: 100%;
    align-items: stretch;
  }

  body:has(.admin-shell) .card-side-actions .tiny-button,
  body:has(.admin-shell) .polished-actions .tiny-button {
    min-height: 42px;
  }
}

/* ===== Final UI launch pass ===== */
input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  flex: 0 0 22px;
  accent-color: #e7bb74;
  cursor: pointer;
}

input[type="checkbox"]:disabled {
  cursor: default;
}

.primary-button,
.secondary-button,
.tiny-button {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 720px) {
  .pipeline-card header {
    grid-template-columns: 1fr;
  }

  .pipeline-card .status-pill {
    justify-self: flex-start;
  }
}

body:has(.admin-shell) .pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

body:has(.admin-shell) .pipeline-card {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  min-width: 0;
}

body:has(.admin-shell) .pipeline-card header {
  width: 100%;
}

body:has(.admin-shell) .pipeline-card header strong,
body:has(.admin-shell) .pipeline-card header span:not(.status-pill) {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  body:has(.admin-shell) .pipeline-board {
    grid-template-columns: 1fr;
  }
}

/* ===== Admin premium pass ===== */
body:has(.admin-shell) {
  background:
    radial-gradient(circle at 70% -10%, rgba(205, 151, 72, .12), transparent 34%),
    linear-gradient(180deg, #0b0c0c, #101112 48%, #090a0a);
}

body:has(.admin-shell) .admin-shell {
  grid-template-columns: 264px minmax(0, 1fr);
  color: #f6f0e8;
}

body:has(.admin-shell) .admin-sidebar {
  gap: 18px;
  padding: 28px 22px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    linear-gradient(160deg, #15120e, #0e0d0c 64%, #090909);
}

body:has(.admin-shell) .admin-sidebar .brand {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

body:has(.admin-shell) .admin-sidebar .brand strong {
  max-width: 150px;
  font-size: 15px;
  line-height: 1.18;
}

body:has(.admin-shell) .admin-sidebar .brand span {
  margin-top: 4px;
  font-size: 12px;
}

body:has(.admin-shell) .admin-sidebar .nav-list {
  gap: 8px;
}

body:has(.admin-shell) .admin-sidebar .nav-item {
  min-height: 43px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 14px;
}

body:has(.admin-shell) .admin-return {
  margin-top: auto;
  min-height: 42px;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.admin-sidebar-footer {
  padding: 14px 2px 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(248,243,235,.46);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

body:has(.admin-shell) .parent-company-badge {
  display: none;
}

body:has(.admin-shell) .admin-main {
  padding: 26px clamp(22px, 3vw, 42px) 64px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 34px 34px;
}

body:has(.admin-shell) .admin-main > * {
  max-width: 1180px;
  margin-inline: auto;
}

body:has(.admin-shell) .admin-topbar {
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(231,187,116,.08), rgba(255,255,255,.035)),
    rgba(18,19,20,.82);
}

body:has(.admin-shell) .admin-topbar h1 {
  max-width: 700px;
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

body:has(.admin-shell) .admin-topbar p {
  max-width: 720px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}

body:has(.admin-shell) .admin-view.active {
  gap: 16px;
}

body:has(.admin-shell) .admin-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .78fr);
  gap: 16px;
  align-items: start;
}

body:has(.admin-shell) .admin-metric-grid {
  gap: 12px;
  margin-bottom: 16px;
}

body:has(.admin-shell) .metric,
body:has(.admin-shell) .panel {
  border-radius: 16px;
  border-color: rgba(235, 210, 170, .13);
  background:
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(20, 21, 21, .92);
  box-shadow: 0 20px 54px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.055);
}

body:has(.admin-shell) .panel {
  padding: 18px;
}

body:has(.admin-shell) .panel-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

body:has(.admin-shell) .panel h2 {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -.02em;
}

body:has(.admin-shell) .compact-list {
  gap: 10px;
}

body:has(.admin-shell) .polished-shop-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px !important;
  border-radius: 14px;
  border: 1px solid rgba(232, 199, 146, .13);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.028)),
    #161818;
}

body:has(.admin-shell) .polished-shop-card .shop-card-main {
  gap: 9px;
}

body:has(.admin-shell) .shop-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

body:has(.admin-shell) .shop-card-title-row strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.015em;
}

body:has(.admin-shell) .shop-card-title-row span:not(.status-pill) {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

body:has(.admin-shell) .status-pill,
body:has(.admin-shell) .commercial-badge {
  min-height: 26px;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
}

body:has(.admin-shell) .status-pill {
  justify-self: start;
  text-align: center;
}

body:has(.admin-shell) .shop-contact-line {
  gap: 6px;
  font-size: 12px;
}

body:has(.admin-shell) .shop-contact-line span {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}

body:has(.admin-shell) .shop-badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 6px;
}

body:has(.admin-shell) .commercial-badge {
  justify-content: center;
  text-align: center;
}

body:has(.admin-shell) .technical-details {
  margin-top: 2px;
  padding-top: 8px;
}

body:has(.admin-shell) .technical-details summary {
  font-size: 12px;
}

body:has(.admin-shell) .technical-details span {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

body:has(.admin-shell) .polished-actions {
  min-width: 0;
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 8px;
}

body:has(.admin-shell) .polished-actions .tiny-button {
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
  white-space: normal;
  text-align: center;
}

body:has(.admin-shell) .polished-actions .primary-action {
  border-color: rgba(231,187,116,.34);
  color: #17110a;
  background: linear-gradient(180deg, #f1cf8f, #c48a4c);
}

body:has(.admin-shell) .admin-checklist {
  gap: 10px;
}

body:has(.admin-shell) .admin-checklist label {
  min-height: 54px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 14px;
}

body:has(.admin-shell) .admin-checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

body:has(.admin-shell) .polished-summary-card {
  padding: 15px !important;
  border-radius: 14px;
}

body:has(.admin-shell) .polished-summary-card strong {
  font-size: 16px;
}

body:has(.admin-shell) .polished-summary-card span:not(.status-pill) {
  font-size: 12px;
}

body:has(.admin-shell) .billing-summary-row,
body:has(.admin-shell) .stripe-events-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

body:has(.admin-shell) .admin-card-note {
  margin: 0;
  color: rgba(246,240,232,.62);
  font-size: 12px;
  line-height: 1.45;
}

body:has(.admin-shell) .commercial-admin-card {
  overflow: hidden;
}

@media (max-width: 1180px) {
  body:has(.admin-shell) .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:has(.admin-shell) .admin-shell {
    grid-template-columns: 1fr;
  }
  body:has(.admin-shell) .admin-sidebar {
    position: static;
    height: auto;
  }
  body:has(.admin-shell) .polished-shop-card {
    grid-template-columns: 1fr;
  }
  body:has(.admin-shell) .polished-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:has(.admin-shell) .shop-card-title-row {
    grid-template-columns: 1fr;
  }
  body:has(.admin-shell) .status-pill {
    justify-self: start;
  }
}

/* ===== Product clarity pass ===== */
.marketing-body h1,
.marketing-body h2,
.public-body h1,
.public-body h2 {
  font-family: "Sora", "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

body:has(.app-shell) .sidebar {
  gap: 18px;
  padding-bottom: 20px;
}

body:has(.app-shell) .nav-list {
  gap: 7px;
}

body:has(.app-shell) .nav-item {
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

body:has(.app-shell) .nav-icon {
  display: none;
}

body:has(.app-shell) .parent-company-badge {
  display: none;
}

.app-sidebar-footer {
  margin-top: auto;
  padding: 13px 2px 3px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: rgba(248, 243, 235, .46);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body:has(.app-shell) .panel,
body:has(.app-shell) .metric,
body:has(.app-shell) .priority-board,
body:has(.app-shell) .appointment,
body:has(.app-shell) .client-row,
body:has(.app-shell) .return-row,
body:has(.app-shell) .wait-card,
body:has(.app-shell) .setup-entity-card,
body:has(.app-shell) .integration-status-card,
body:has(.app-shell) .compact-list article,
body:has(.app-shell) .billing-card,
body:has(.app-shell) .revenue-box {
  border-radius: 12px !important;
}

body:has(.app-shell) .primary-button,
body:has(.app-shell) .secondary-button,
body:has(.app-shell) .tiny-button,
body:has(.app-shell) .icon-button,
body:has(.admin-shell) .primary-button,
body:has(.admin-shell) .secondary-button,
body:has(.admin-shell) .tiny-button,
body:has(.admin-shell) .icon-button {
  border-radius: 8px !important;
}

body:has(.app-shell) .status-pill,
body:has(.app-shell) .commercial-badge {
  border-radius: 8px !important;
}

.advanced-config {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(232, 214, 184, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.advanced-config summary {
  cursor: pointer;
  color: #f1cf8f;
  font-size: 13px;
  font-weight: 900;
}

.advanced-config .field:first-of-type {
  margin-top: 14px;
}

.public-shop-brand {
  pointer-events: none;
}

.public-brand-monogram {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(231, 187, 116, .32);
  border-radius: 10px;
  color: #1b1309;
  background: linear-gradient(180deg, #f1cf8f, #bd8750);
  font-weight: 950;
}

.public-body .public-explainer {
  border-radius: 12px;
}

.public-body .marketing-footer span {
  color: rgba(245, 239, 229, .52);
}

.marketing-body .hero-dashboard,
.marketing-body .release-dashboard {
  overflow: hidden;
}

.link-button {
  padding: 0;
  border: 0;
  color: #f1cf8f;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.form-feedback {
  min-height: 20px;
  margin: 12px 0 0;
  color: rgba(248, 243, 235, .72);
  font-size: 13px;
  line-height: 1.45;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #f3b2a5;
  font-size: 13px;
  line-height: 1.4;
}

body:has(.admin-shell) .wide-panel {
  grid-column: 1 / -1;
}

body:has(.admin-shell) .admin-marketing-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

body:has(.admin-shell) .admin-marketing-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(245, 239, 229, .68);
  line-height: 1.55;
}

body:has(.admin-shell) .marketing-metric-grid {
  margin-bottom: 18px;
}

body:has(.admin-shell) .admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body:has(.admin-shell) .marketing-action-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(232, 214, 184, .12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
}

body:has(.admin-shell) .marketing-action-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff8ee;
  line-height: 1.25;
}

body:has(.admin-shell) .marketing-action-card span {
  color: rgba(245, 239, 229, .68);
  font-size: 13px;
  line-height: 1.5;
}

.mobile-menu-button,
.sidebar-overlay {
  display: none;
}

@media (max-width: 760px) {
  body:has(.admin-shell) .admin-marketing-hero {
    display: block;
  }

  body:has(.admin-shell) .admin-action-grid {
    grid-template-columns: 1fr;
  }

  body:has(.app-shell) .app-shell {
    grid-template-columns: 1fr;
  }

  body:has(.app-shell) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(292px, 84vw);
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  body:has(.app-shell) .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .mobile-menu-button {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(232, 214, 184, .14);
    border-radius: 8px;
    color: #fff8ee;
    background: rgba(255, 255, 255, .06);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    border: 0;
    background: rgba(0, 0, 0, .58);
  }

  body.sidebar-is-open .sidebar-overlay {
    display: block;
  }

  body:has(.app-shell) .topbar {
    align-items: flex-start;
  }
}

/* ===== UX review 2026-07: clarity, progressive disclosure and real empty states ===== */
body:has(.app-shell) .panel,
body:has(.admin-shell) .panel,
body:has(.app-shell) .metric,
body:has(.admin-shell) .metric,
body:has(.app-shell) button,
body:has(.admin-shell) button,
.marketing-body .primary-button,
.marketing-body .secondary-button,
.marketing-body .hero-dashboard,
.marketing-body .preview-grid article,
.marketing-body .benefit-grid article,
.marketing-body .proof-grid article,
.marketing-body .roi-card,
.marketing-body .roi-card div,
.marketing-body .pilot-card,
.marketing-body .faq-list details {
  border-radius: 8px;
}

body:has(.app-shell) .action-panel {
  align-self: start;
}

body:has(.app-shell) #settings,
body:has(.app-shell) #reports {
  grid-template-columns: minmax(0, 1fr);
}

body:has(.app-shell) #settings > .panel,
body:has(.app-shell) #reports > .panel {
  min-width: 0;
}

.action-disclosure,
.settings-disclosure,
.import-disclosure {
  margin-top: 16px;
  border: 1px solid rgba(232, 214, 184, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.action-disclosure > summary,
.settings-disclosure > summary,
.import-disclosure > summary {
  cursor: pointer;
  padding: 15px 16px;
  color: #fff8ee;
  font-weight: 750;
  list-style: none;
}

.action-disclosure > summary::-webkit-details-marker,
.settings-disclosure > summary::-webkit-details-marker,
.import-disclosure > summary::-webkit-details-marker {
  display: none;
}

.action-disclosure > summary::after,
.settings-disclosure > summary::after,
.import-disclosure > summary::after {
  content: "+";
  float: right;
  color: #d7ad6b;
}

.action-disclosure[open] > summary::after,
.settings-disclosure[open] > summary::after,
.import-disclosure[open] > summary::after {
  content: "−";
}

.action-disclosure[open] > summary,
.settings-disclosure[open] > summary,
.import-disclosure[open] > summary {
  border-bottom: 1px solid rgba(232, 214, 184, .1);
}

.action-disclosure .appointment-form,
.settings-disclosure > .setup-list,
.settings-disclosure > .onboarding-box,
.settings-disclosure > .management-grid,
.settings-disclosure > .role-matrix,
.import-disclosure > p,
.import-disclosure > textarea,
.import-disclosure > button {
  margin: 16px;
}

.settings-disclosure > .setup-list,
.settings-disclosure > .management-grid,
.settings-disclosure > .role-matrix {
  width: auto;
}

.settings-disclosure > .onboarding-box {
  width: auto;
  margin-top: 0;
}

.integration-disclosure .integration-form {
  padding: 16px;
}

.compact-disclosure {
  margin-top: 12px;
}

body:has(.app-shell) #settings .setup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:has(.app-shell) #settings .setup-item {
  min-height: 82px;
}

body:has(.app-shell) #settings .setup-check.pending {
  color: #d9b573;
  background: rgba(217, 181, 115, .12);
}

body:has(.app-shell) #settings .setup-check.complete {
  color: #9ed9c2;
  background: rgba(82, 163, 132, .15);
}

body:has(.app-shell) #settings .management-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:has(.app-shell) #settings .role-matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:has(.app-shell) #reports .report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:has(.app-shell) .client-history-box[hidden],
body:has(.app-shell) .signal-grid[hidden],
.advanced-config[hidden] {
  display: none !important;
}

body:has(.app-shell) .import-disclosure textarea {
  width: calc(100% - 32px);
  box-sizing: border-box;
  resize: vertical;
}

body:has(.admin-shell) .admin-topbar h1 {
  max-width: 760px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.marketing-main {
  padding-top: 34px;
}

.release-hero {
  min-height: 560px;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 16px 0 18px;
  font-size: clamp(42px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  font-size: 16px;
  line-height: 1.62;
}

.hero-actions {
  margin-top: 26px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-height: 50px;
  padding: 14px 20px;
}

.trust-row {
  margin-top: 24px;
  gap: 9px;
}

.preview-label {
  display: inline-flex;
  margin: 0 0 12px 6px;
  color: #d7ad6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marketing-body .benefit-section,
.marketing-body .results-section,
.marketing-body .proof-section,
.marketing-body .roi-section,
.marketing-body .pilot-section,
.marketing-body .faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.marketing-body .section-heading h2,
.marketing-body .results-section h2,
.marketing-body .proof-section h2,
.marketing-body .roi-section h2,
.marketing-body .pilot-section h2,
.marketing-body .faq-section h2 {
  font-size: clamp(30px, 3.2vw, 38px);
  letter-spacing: 0;
}

.proof-section > div > p {
  max-width: 520px;
  color: #afa497;
  line-height: 1.65;
}

.public-hero-premium,
.public-explainer,
.public-services-showcase,
.public-booking-form,
.public-summary,
.public-policy {
  border-radius: 8px;
}

.public-hero {
  min-height: 250px;
}

.public-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .marketing-main {
    padding-top: 12px;
  }

  .release-hero {
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-dashboard,
  .pilot-card,
  .roi-card {
    margin-top: 26px;
  }

  .conversion-strip article,
  .benefit-grid article,
  .proof-grid article {
    min-height: 0;
    padding: 18px;
  }

  .marketing-body .benefit-section,
  .marketing-body .results-section,
  .marketing-body .proof-section,
  .marketing-body .roi-section,
  .marketing-body .pilot-section,
  .marketing-body .faq-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .public-page {
    padding: 12px;
  }

  .public-explainer {
    margin-bottom: 12px;
    padding: 13px 14px;
  }

  .public-hero-premium {
    padding: 20px;
  }

  .public-hero {
    min-height: 0;
  }

  .public-hero h1 {
    margin: 8px 0;
    font-size: 34px;
  }

  .public-meta {
    margin-top: 14px;
  }

  .public-booking-shell {
    margin-top: 12px;
  }

  .public-booking-form,
  .public-summary,
  .public-services-showcase {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  body:has(.app-shell) #settings .setup-list,
  body:has(.app-shell) #settings .management-grid,
  body:has(.app-shell) #settings .role-matrix,
  body:has(.app-shell) #reports .report-grid {
    grid-template-columns: 1fr;
  }

  .action-disclosure .appointment-form {
    grid-template-columns: 1fr;
  }

  .hero-action-note {
    display: none;
  }

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

  .trust-row span {
    padding: 7px 9px;
    font-size: 11px;
  }

  .hero-dashboard {
    padding: 18px;
  }

  .preview-head {
    padding-bottom: 20px;
  }

  .preview-head strong {
    font-size: 38px;
  }

  .preview-grid article {
    min-height: 78px;
    padding: 12px;
  }

  .preview-grid strong {
    margin-top: 8px;
    font-size: 22px;
  }

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

  .proof-grid article {
    padding: 15px;
  }

  .proof-grid strong {
    font-size: 15px;
  }

  .proof-grid span {
    font-size: 12px;
    line-height: 1.45;
  }
}

body:has(.app-shell) .workspace-grid.active {
  animation: view-enter .2s ease-out both;
}

.honeypot {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body:has(.app-shell) .workspace-grid.active {
    animation: none;
  }
}
