:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f4f7;
  --surface-3: #e9eef3;
  --ink: #17202a;
  --muted: #64717f;
  --soft: #8b98a7;
  --line: #dbe2ea;
  --line-strong: #c5ced9;
  --blue: #286fe8;
  --blue-soft: #e6efff;
  --teal: #008f83;
  --teal-soft: #dff6f2;
  --coral: #dc5b45;
  --coral-soft: #fde9e4;
  --amber: #aa7900;
  --amber-soft: #fff2cc;
  --green: #18794e;
  --green-soft: #e4f5eb;
  --violet: #7357d8;
  --violet-soft: #ede9ff;
  --shadow: 0 14px 42px rgba(23, 32, 42, 0.08);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 143, 131, 0.08), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(40, 111, 232, 0.08), transparent 30%),
    var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #b6d8d4;
  border-radius: 8px;
  color: var(--teal);
  background: var(--teal-soft);
  font-weight: 800;
}

.logo-mark {
  width: 112px;
  padding: 5px 7px;
  background: #ffffff;
  overflow: hidden;
}

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

.brand strong {
  display: block;
  font-size: 14px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-button.active {
  box-shadow: inset 3px 0 0 var(--teal);
}

.ico {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: inherit;
  font-size: 14px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.user-chip {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.avatar.client {
  background: var(--teal-soft);
  color: var(--teal);
}

.user-chip strong {
  display: block;
  font-size: 13px;
}

.user-chip span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 440px) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
}

.topbar > *,
.content,
.grid,
.panel,
.panel-body,
.section-list,
.section-card,
.field {
  min-width: 0;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
}

.crumb strong {
  color: var(--ink);
  font-size: 18px;
  display: block;
  margin-top: 2px;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 0 12px 0 36px;
  color: var(--ink);
  outline: none;
}

.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #84b4ee;
  box-shadow: 0 0 0 3px rgba(40, 111, 232, 0.12);
}

.search .ico {
  position: absolute;
  left: 9px;
  top: 9px;
  color: var(--soft);
}

.global-search {
  z-index: 30;
}

.global-search-menu {
  width: min(680px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 110px));
  border: 1px solid rgba(203, 213, 225, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  left: 50%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 9px);
  transform: translate(-50%, -6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
  visibility: hidden;
  z-index: 100;
}

.global-search.is-open .global-search-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.global-search-menu-head {
  align-items: center;
  border-bottom: 1px solid #e6eaf0;
  color: #6d7889;
  display: flex;
  font-size: 11px;
  font-weight: 750;
  justify-content: space-between;
  min-height: 42px;
  padding: 7px 10px 7px 14px;
}

.global-search-menu-head button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #778396;
  display: grid;
  place-items: center;
}

.global-search-menu-head button:hover {
  background: #f0f3f7;
  color: #1f2937;
}

.global-search-menu-scroll {
  display: grid;
  gap: 3px;
  max-height: min(560px, calc(100vh - 160px));
  overflow-y: auto;
  padding: 8px;
}

.global-search-group {
  padding: 3px 0 7px;
}

.global-search-group + .global-search-group {
  border-top: 1px solid #eef1f4;
  padding-top: 10px;
}

.global-search-group h3 {
  color: #8a95a5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
  padding: 0 8px 5px;
  text-transform: uppercase;
}

.global-search-group > div {
  display: grid;
  gap: 2px;
}

.global-search-result {
  width: 100%;
  min-height: 50px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1c2638;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 7px 9px;
  text-align: left;
}

.global-search-result:hover,
.global-search-result:focus-visible {
  background: #f1f7f4;
  box-shadow: inset 3px 0 0 #31a56b;
  outline: none;
}

.global-search-result-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #edf2f6;
  color: #526174;
  display: grid;
  place-items: center;
}

.global-search-result > span:last-child,
.global-search-result strong,
.global-search-result small {
  display: block;
  min-width: 0;
}

.global-search-result strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result small {
  color: #7a8697;
  font-size: 10px;
  font-weight: 650;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-empty {
  color: #788496;
  font-size: 12px;
  padding: 24px 18px;
  text-align: center;
}

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

.top-menu {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.72fr) auto;
  align-items: center;
  gap: 10px;
  width: min(760px, 100%);
  min-width: 0;
}

.top-workspace-menu {
  position: relative;
  min-width: min(360px, 100%);
}

.top-workspace-menu summary {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(118px, auto) auto auto;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 12px;
  cursor: pointer;
  list-style: none;
}

.top-workspace-menu summary::-webkit-details-marker {
  display: none;
}

.top-workspace-project,
.top-workspace-user,
.top-workspace-pending {
  min-width: 0;
}

.top-workspace-project,
.top-workspace-pending {
  display: grid;
  gap: 3px;
}

.top-workspace-project small,
.top-workspace-pending small,
.top-workspace-status span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.top-workspace-project strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-workspace-user {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.top-workspace-user strong {
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-workspace-pending {
  min-width: 46px;
  justify-items: center;
}

.top-workspace-pending strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.top-workspace-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  padding: 12px;
}

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

.top-workspace-status > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.top-workspace-status strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.top-select-field {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.top-select-field span,
.top-pending-pill span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.top-select-field select {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 34px 0 10px;
  font-weight: 700;
}

.project-select-field {
  width: auto;
}

.user-select-field {
  width: auto;
}

.top-user-menu {
  position: relative;
  min-width: 0;
}

.top-user-menu summary {
  min-height: 39px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  cursor: pointer;
  list-style: none;
}

.top-user-menu summary::-webkit-details-marker {
  display: none;
}

.top-user-menu summary small,
.top-user-menu-popover span,
.top-user-list small {
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
}

.top-user-menu summary strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-user-chevron {
  color: var(--soft);
  font-weight: 800;
}

.top-user-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  padding: 10px;
}

.top-user-menu-head {
  border-bottom: 1px solid var(--line);
  padding: 6px 6px 10px;
  display: grid;
  gap: 3px;
}

.top-user-list {
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}

.top-user-list button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  text-align: left;
}

.top-user-list button:hover,
.top-user-list button.active {
  background: var(--surface-2);
}

.top-user-list strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.top-user-logout {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(220, 91, 69, 0.24);
  border-radius: 7px;
  background: var(--coral-soft);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
}

.top-pending-pill {
  min-height: 39px;
  min-width: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 4px 10px;
}

.top-pending-pill strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

.content {
  padding: 22px 24px 40px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background:
    linear-gradient(135deg, rgba(0, 143, 131, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(40, 111, 232, 0.09), transparent 44%), var(--bg);
}

.login-visual {
  padding: 48px;
  display: flex;
  align-items: center;
}

.product-shot {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--line-strong);
}

.shot-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 440px;
}

.shot-rail {
  border-right: 1px solid var(--line);
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.shot-line {
  height: 13px;
  border-radius: 4px;
  background: var(--surface-3);
}

.shot-line.short {
  width: 64%;
}

.shot-work {
  padding: 18px;
}

.shot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.shot-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.shot-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

.shot-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.shot-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

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

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

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

.login-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.login-card form {
  display: grid;
  gap: 14px;
}

.login-hint,
.login-error {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  background: #fbfcfd;
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.login-hint strong {
  color: var(--ink);
}

.login-hint span {
  color: var(--muted);
}

.login-hint small {
  color: var(--muted);
}

.login-hint.client {
  border-color: #bfe3dc;
  background: var(--teal-soft);
}

.login-hint.compact {
  margin-top: -8px;
}

.login-error {
  border-color: #f0b6aa;
  background: var(--coral-soft);
  color: #8f2f20;
  font-weight: 700;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.setup-landing {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(246, 247, 249, 0.94), rgba(255, 255, 255, 0.86)),
    url("assets/siesta-logo-green.jpg");
  background-repeat: no-repeat;
  background-size: auto, 300px 82px;
  background-position: center, left 34px top 30px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
}

.setup-landing::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: #34d65b;
}

.setup-landing-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4f5466;
  font-weight: 850;
}

.setup-landing-brand span:last-child {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.setup-landing-stage {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: center;
}

.setup-sia-orbit {
  display: grid;
  place-items: center;
}

.setup-sia-orbit img {
  width: min(460px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 42, 0.18);
}

.setup-access-card,
.setup-admin-login details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.setup-access-card {
  padding: 30px;
}

.setup-access-card h1 {
  margin: 8px 0 10px;
  font-size: 42px;
  line-height: 1.06;
  color: #232532;
}

.setup-access-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 650;
}

.setup-access-card form {
  display: grid;
  gap: 9px;
}

.setup-access-card label {
  color: #73788a;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 850;
}

.setup-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.setup-code-row input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 0 14px;
  color: #232532;
  font-weight: 850;
  letter-spacing: 0;
  outline: none;
  text-transform: uppercase;
}

.setup-code-row input:focus {
  border-color: #34d65b;
  box-shadow: 0 0 0 3px rgba(52, 214, 91, 0.16);
}

.setup-demo-codes {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-demo-codes button {
  border: 1px solid #d5f4de;
  border-radius: 8px;
  background: #eefbf2;
  color: #209d41;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
}

.setup-admin-login {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  justify-self: end;
}

.setup-admin-login details {
  padding: 14px;
}

.setup-admin-login summary {
  cursor: pointer;
  color: #697086;
  font-weight: 850;
}

.setup-admin-login form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.admin-command {
  border: 1px solid rgba(0, 143, 131, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(223, 246, 242, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.admin-command h1 {
  margin: 6px 0 8px;
  font-size: 26px;
  line-height: 1.18;
}

.admin-command p {
  margin: 0;
  color: var(--muted);
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.02);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.panel:hover {
  border-color: rgba(0, 143, 131, 0.22);
  box-shadow: 0 12px 32px rgba(23, 32, 42, 0.06);
}

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

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

.panel-header h2,
.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.panel-header p,
.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-body {
  padding: 16px;
}

.metric {
  min-height: 116px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

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

.metric strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
}

.metric small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.progress {
  height: 8px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.stage {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.stage.is-drop-target {
  border-color: var(--teal);
  background: rgba(0, 143, 131, 0.06);
  box-shadow: inset 0 0 0 2px rgba(0, 143, 131, 0.12);
}

.stage h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.mini-project {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
  width: 100%;
}

.mini-project-wrap {
  margin-bottom: 10px;
  position: relative;
}

.mini-project-wrap .mini-project {
  margin-bottom: 0;
  padding-bottom: 46px;
}

.mini-project-wrap.is-dragging {
  opacity: 0.48;
}

.mini-project-wrap[draggable="true"] {
  cursor: grab;
}

.mini-project-wrap[draggable="true"]:active {
  cursor: grabbing;
}

.mini-project-stage {
  bottom: 9px;
  font-size: 11px;
  height: 28px;
  left: 9px;
  min-height: 28px;
  padding: 0 28px 0 8px;
  position: absolute;
  right: 9px;
  width: calc(100% - 18px);
}

.mini-project:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 143, 131, 0.32);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.08);
}

.mini-project strong {
  font-size: 13px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.btn {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn:hover {
  background: var(--surface-2);
}

.btn.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.btn.primary:hover {
  background: #007a70;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}

.btn.danger {
  border-color: #f0b6aa;
  background: var(--coral-soft);
  color: #8f2f20;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.icon-btn.danger-icon {
  border-color: rgba(220, 91, 69, 0.24);
  background: #fff1ee;
  color: #a53625;
}

.icon-btn.danger-icon:hover {
  border-color: rgba(220, 91, 69, 0.42);
  background: #ffe5df;
}

.danger-zone {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.chip,
.status {
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}

.status.green {
  background: var(--green-soft);
  color: var(--green);
}

.status.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.status.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.status.violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.table-wrap {
  overflow: auto;
}

.search-results-panel {
  margin-bottom: 16px;
}

.search-results-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.search-results-body h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
}

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

.search-result-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.search-result-item:hover {
  border-color: rgba(40, 111, 232, 0.32);
  background: #f7fbff;
}

.search-result-item strong {
  font-size: 13px;
}

.search-result-item span {
  color: var(--muted);
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: #fbfcfd;
}

tr.clickable {
  cursor: pointer;
}

tr.clickable:hover td {
  background: #fbfcfd;
}

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

.detail {
  position: sticky;
  top: 92px;
  align-self: start;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  white-space: nowrap;
}

.tab.active {
  color: var(--ink);
  border-color: var(--teal);
}

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

.field {
  display: grid;
  gap: 8px;
}

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

.field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3f4556;
  font-weight: 900;
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 8px 10px;
  color: var(--ink);
  outline: none;
  width: 100%;
}

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

.field-help {
  color: var(--muted);
  line-height: 1.4;
}

.endpoint {
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

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

.section-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.section-card.complete {
  border-color: #bfe3dc;
  background: linear-gradient(0deg, rgba(228, 245, 235, 0.48), rgba(255, 255, 255, 0.96));
}

.section-card summary {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.section-card summary::-webkit-details-marker {
  display: none;
}

.section-card .form-grid {
  padding: 14px;
  border-top: 1px solid var(--line);
}

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

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

.room-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

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

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

.room-editor-head strong,
.room-editor-head span {
  display: block;
}

.room-editor-head span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.room-editor .form-grid {
  padding: 14px;
}

.task {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.task.movable {
  cursor: grab;
}

.task.movable:hover {
  border-color: rgba(40, 111, 232, 0.28);
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.06);
}

.task.dragging {
  opacity: 0.58;
  cursor: grabbing;
}

button.task {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.task:hover {
  border-color: var(--green);
  background: #f7fff9;
}

button.task.selected {
  border-color: var(--green);
  background: #dcf8e5;
}

.task input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

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

.task small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

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

.task-move-select {
  min-height: 30px;
  max-width: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 28px 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.task-drop-zone {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.task-drop-zone.drag-over {
  border-color: rgba(40, 111, 232, 0.42);
  background: #f4f8ff;
  box-shadow: inset 0 0 0 2px rgba(40, 111, 232, 0.12);
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  background: #fbfcfd;
}

.client-hero {
  border: 1px solid rgba(0, 143, 131, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 246, 242, 0.96), rgba(230, 239, 255, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.client-hero::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 140px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
  opacity: 0.62;
}

.client-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.client-url {
  border: 1px solid rgba(40, 111, 232, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  border-radius: 7px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
}

.api-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.api-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.access-code-card {
  border-color: #d5f4de;
  background: linear-gradient(135deg, #ffffff, #f4fff7);
}

.access-code-box {
  min-height: 42px;
  border: 1px solid #c8f1d3;
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 8px 7px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.access-code-box span {
  color: #209d41;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-panel {
  overflow: hidden;
}

.guide-card {
  border: 1px solid rgba(0, 143, 131, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(223, 246, 242, 0.86)),
    var(--surface);
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(0, 143, 131, 0.09);
}

.guide-start {
  margin-top: 10px;
}

.guide-live-actions {
  margin-top: 10px;
}

.guide-live-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

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

.guide-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 14px 30px rgba(0, 143, 131, 0.16);
  overflow: hidden;
  background: #f6f7f9;
}

.guide-avatar img,
.mini-sia img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.guide-score {
  min-width: 112px;
  border: 1px solid rgba(0, 143, 131, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
  text-align: center;
}

.guide-score strong {
  display: block;
  font-size: 24px;
}

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

.mission-path {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.mission {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.mission > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mission strong {
  font-size: 13px;
}

.mission small {
  color: var(--muted);
  line-height: 1.35;
}

.mission.done {
  border-color: #bfe3dc;
  background: var(--teal-soft);
}

.mission.done > span,
.mission.active > span {
  background: var(--teal);
  color: white;
}

.mission.active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(0, 143, 131, 0.16);
}

.mission.locked {
  opacity: 0.72;
}

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

.ai-chat-preview {
  display: grid;
  gap: 10px;
}

.ai-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.ai-message.bot {
  border-color: #bfe3dc;
  background: var(--teal-soft);
}

.ai-message strong {
  display: block;
  margin-bottom: 6px;
}

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

.ai-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

.client-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.client-step > span:first-child {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  line-height: 1;
}

.client-step strong {
  display: block;
  font-size: 14px;
}

.client-step p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.45;
}

.client-step small {
  color: var(--muted);
}

.active-mission .panel-body {
  display: grid;
  gap: 14px;
}

.mission-focus {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mission-focus > span {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
}

.mission-focus strong {
  display: block;
  font-size: 16px;
}

.mission-focus p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.mission-focus small {
  color: var(--muted);
}

.quiet-panel {
  opacity: 0.92;
}

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

.client-form-wizard {
  overflow: hidden;
  border-color: rgba(0, 143, 131, 0.22);
  box-shadow: var(--shadow);
}

.wizard-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(223, 246, 242, 0.98), rgba(255, 255, 255, 0.9) 48%, rgba(230, 239, 255, 0.82)),
    var(--surface);
  padding: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.wizard-hero h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  line-height: 1.15;
}

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

.wizard-hero small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.sia-praise {
  margin: 16px 18px 0;
  border: 1px solid rgba(0, 143, 131, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(228, 245, 235, 0.96), rgba(223, 246, 242, 0.86)),
    var(--green-soft);
  color: var(--green);
  padding: 14px 16px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 121, 78, 0.08);
}

.client-wizard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
}

.wizard-side {
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.wizard-side .mini-sia {
  width: 68px;
  height: 68px;
}

.wizard-side strong {
  font-size: 15px;
}

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

.form-section-rail {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.section-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  min-height: 78px;
  padding: 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.section-pill:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(0, 143, 131, 0.28);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.07);
}

.section-pill span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 800;
}

.section-pill strong {
  font-size: 13px;
}

.section-pill small {
  color: var(--muted);
}

.section-pill.active {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(0, 143, 131, 0.14),
    0 12px 24px rgba(0, 143, 131, 0.08);
}

.section-pill.complete {
  border-color: #bfe3dc;
  background: linear-gradient(135deg, rgba(223, 246, 242, 0.94), rgba(228, 245, 235, 0.9));
}

.section-pill.locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.section-pill.complete span,
.section-pill.active span {
  background: var(--teal);
  color: white;
}

.wizard-card {
  border-top: 1px solid var(--line);
  animation: formIn 220ms ease both;
}

.client-field-grid .field {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.client-field-grid .field:focus-within {
  border-color: rgba(0, 143, 131, 0.45);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 143, 131, 0.08);
  transform: translateY(-1px);
}

.client-field-grid .field label {
  margin-bottom: 8px;
  color: #232532;
  font-size: 14px;
  font-weight: 900;
}

.rooms-mission-head {
  border: 1px solid rgba(0, 143, 131, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(223, 246, 242, 0.82), rgba(255, 255, 255, 0.92));
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.rooms-mission-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.wizard-footer {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  background: #fbfcfd;
}

.section-ready-overlay {
  position: fixed;
  inset: 0;
  z-index: 36;
  background: rgba(23, 32, 42, 0.38);
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fadeIn 180ms ease both;
}

.section-ready-card {
  width: min(460px, 100%);
  border: 1px solid rgba(0, 143, 131, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(23, 32, 42, 0.2);
  padding: 20px;
  display: grid;
  gap: 12px;
  justify-items: start;
  animation: popIn 220ms ease both;
}

.section-ready-card .mini-sia {
  width: 74px;
  height: 74px;
}

.section-ready-card h3 {
  margin: 0;
  font-size: 22px;
}

.section-ready-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.guide-transition {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  background: rgba(246, 247, 249, 0.84);
  backdrop-filter: blur(10px);
  animation: transitionFade 1400ms ease both;
}

.guide-transition-card {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid #bfe3dc;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.guide-transition-card img {
  width: 220px;
  max-width: 100%;
  border-radius: 6px;
}

.guide-loader {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

.guide-loader span {
  display: block;
  height: 100%;
  width: 46%;
  border-radius: inherit;
  background: var(--teal);
  animation: loaderSweep 1400ms ease-in-out infinite;
}

@keyframes transitionFade {
  0% {
    opacity: 0;
  }
  18%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(230%);
  }
}

.guide-scrim {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  background: rgba(23, 32, 42, 0.34);
}

.guide-highlight {
  position: relative;
  z-index: 26;
  box-shadow:
    0 0 0 3px rgba(0, 143, 131, 0.34),
    0 18px 48px rgba(23, 32, 42, 0.22);
}

.guide-popover {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 34;
  width: min(430px, calc(100vw - 28px));
  border: 1px solid #bfe3dc;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.guide-popover.welcome {
  left: 50%;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  padding: 18px;
}

.guide-popover.welcome .guide-popover-head {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.guide-popover.welcome .mini-sia {
  width: 70px;
  height: 70px;
}

.guide-popover.welcome h3 {
  font-size: 22px;
}

.guide-popover.welcome p {
  font-size: 15px;
}

.guide-popover-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.guide-popover h3 {
  margin: 6px 0 0;
  font-size: 17px;
}

.guide-popover p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.5;
}

.mini-sia {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  background: #f6f7f9;
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.1);
}

.guide-progress-dots {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}

.guide-progress-dots span {
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-3);
}

.guide-progress-dots span.active {
  background: var(--teal);
}

.guide-actions {
  justify-content: flex-end;
}

.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101820;
  color: #dbeafe;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(23, 32, 42, 0.36);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal .panel-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.missing-fields-modal {
  width: min(560px, 100%);
}

.missing-fields-alert {
  border: 1px solid rgba(220, 91, 69, 0.22);
  border-radius: 8px;
  background: #fff6f4;
  color: #7f2d1d;
  padding: 16px;
  margin-bottom: 16px;
}

.missing-fields-alert strong {
  display: block;
  margin-bottom: 10px;
}

.missing-fields-alert ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 1px solid #bfe3dc;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

.mobile-nav-toggle {
  display: none;
}

/* Siesta Extranet visual language */
:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #eeeeF2;
  --surface-3: #e3e4ea;
  --ink: #232532;
  --muted: #7e8294;
  --soft: #a7aaba;
  --line: #e3e5ec;
  --line-strong: #cfd3de;
  --blue: #697086;
  --blue-soft: #f1f2f6;
  --teal: #36d65b;
  --teal-soft: #e6faec;
  --green: #36d65b;
  --green-soft: #dcf8e5;
  --coral: #ff5555;
  --coral-soft: #ffe6e6;
  --amber: #ffb526;
  --amber-soft: #fff2d6;
  --violet: #697086;
  --violet-soft: #f1f2f6;
  --shadow: 0 4px 18px rgba(38, 42, 56, 0.12);
  --shadow-soft: 0 2px 10px rgba(38, 42, 56, 0.08);
  --radius: 8px;
}

html,
body,
#app {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

.app-shell {
  grid-template-columns: 230px 1fr;
}

.sidebar {
  border-right: 0;
  background: #f8f8fb;
  padding: 18px 0 16px;
  gap: 18px;
}

.brand {
  border-bottom: 0;
  padding: 0 10px 12px;
  gap: 10px;
}

.mark {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(54, 214, 91, 0.34);
  font-size: 0;
  position: relative;
}

.logo-mark {
  width: 118px;
  padding: 5px 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 21, 32, 0.08);
}

.mark::before {
  content: "S";
  font-size: 21px;
  font-weight: 900;
  transform: skew(-10deg);
}

.logo-mark::before {
  content: none;
}

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

.brand strong {
  font-size: 19px;
  line-height: 1;
  color: #5b6072;
  font-weight: 800;
}

.brand span {
  color: #a4a7b5;
  font-size: 11px;
}

.nav {
  gap: 6px;
}

.nav-section-label {
  margin: 14px 18px 8px;
  color: #b2b5c2;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-button {
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  border-radius: 0 8px 8px 0;
  grid-template-columns: 24px minmax(0, 1fr);
  color: #727789;
  font-weight: 650;
}

.nav-button .ico {
  color: currentColor;
  font-size: 18px;
}

.nav-button:hover {
  background: #ececf1;
  color: #333642;
}

.nav-button.active {
  color: #232532;
  background: #e8e8ee;
  box-shadow: none;
}

.nav-button.active[data-view="dashboard"],
.nav-button.active[data-view="forms"],
.nav-button.active[data-view="portal"] {
  background: var(--green);
  color: #ffffff;
}

.sidebar-footer {
  border-top: 0;
  padding: 12px 14px 0;
}

.sidebar-footer .field label {
  color: #a4a7b5;
}

.user-chip {
  grid-template-columns: 36px 1fr;
}

.avatar {
  border-radius: 50%;
  background: #e6e7ed;
  color: #626779;
}

.avatar.client {
  background: var(--green);
  color: #ffffff;
}

.user-chip strong {
  color: #5b6072;
  font-size: 14px;
}

.user-chip span {
  color: #a4a7b5;
}

.topbar {
  min-height: 64px;
  border-bottom: 0;
  background: var(--bg);
  backdrop-filter: none;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 360px) auto;
  padding: 12px 28px 10px 34px;
}

.crumb {
  color: #a4a7b5;
  font-size: 14px;
  font-weight: 650;
}

.crumb strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  margin-top: 6px;
}

.search input,
.top-pill {
  height: 39px;
  border: 1px solid #cfd3de;
  border-radius: 8px;
  background: #f8f8fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.search input {
  color: #6f7487;
  font-weight: 600;
}

.top-actions {
  gap: 10px;
}

.top-pill {
  min-width: 136px;
  padding: 4px 12px;
  display: grid;
  align-content: center;
  color: #8b8f9f;
}

.top-pill small {
  font-size: 11px;
  line-height: 1;
  color: #aeb1be;
  font-weight: 700;
}

.top-pill strong {
  font-size: 14px;
  line-height: 1.15;
  color: #7a7f90;
  font-weight: 700;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content {
  padding: 22px 24px 44px 34px;
}

.panel,
.api-card,
.section-card,
.room-editor,
.task,
.stage,
.mini-project,
.client-hero,
.guide-card,
.client-step,
.mission,
.admin-command {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.panel:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.panel-header {
  min-height: 58px;
  padding: 18px 20px;
  border-bottom: 0;
}

.panel-header h2,
.section-title h2 {
  color: #707587;
  font-size: 22px;
  font-weight: 700;
}

.panel-header p,
.section-title p {
  color: #a4a7b5;
  font-weight: 600;
}

.panel-body {
  padding: 18px 20px;
}

.admin-command,
.client-hero,
.wizard-hero,
.guide-card,
.sia-praise,
.rooms-mission-head {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.admin-command {
  padding: 20px;
}

.admin-command h1 {
  color: #232532;
  font-size: 24px;
  font-weight: 760;
}

.eyebrow {
  color: #9ea2b0;
  font-weight: 800;
}

.btn {
  min-height: 38px;
  border: 1px solid #d7dae3;
  border-radius: 7px;
  background: #ffffff;
  color: #73788a;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none;
}

.btn:hover {
  background: #f1f2f6;
}

.btn.primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 5px 10px rgba(54, 214, 91, 0.24);
}

.btn.primary:hover {
  background: #30c954;
}

.btn.ghost {
  color: var(--green);
  border-color: transparent;
}

.btn.danger {
  border-color: var(--coral);
  background: var(--coral);
  color: #ffffff;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #8f93a3;
}

.icon-btn:hover {
  background: #ececf1;
  color: #3f4350;
}

.metric {
  min-height: 108px;
}

.metric::after {
  background: var(--green);
}

.metric span,
.metric small {
  color: #9ea2b0;
  font-weight: 650;
}

.metric strong {
  color: #232532;
  font-size: 28px;
}

.progress {
  height: 7px;
  background: #e6e7ed;
}

.progress > span {
  background: var(--green);
}

.pipeline {
  gap: 14px;
}

.stage {
  background: #f8f8fb;
}

.stage h3 {
  color: #7a7f90;
  font-weight: 800;
}

.mini-project {
  background: #ffffff;
  box-shadow: none;
}

.mini-project:hover {
  border-color: #cfd3de;
  box-shadow: var(--shadow-soft);
  transform: none;
}

.chip,
.status {
  min-height: 23px;
  border-radius: 8px;
  background: #e6e7ed;
  color: #7e8294;
  font-weight: 800;
}

.status.green,
.chip.green {
  background: var(--green);
  color: #ffffff;
}

.status.blue,
.status.violet {
  background: #e6e7ed;
  color: #73788a;
}

.status.amber {
  background: #ffb526;
  color: #232532;
}

.status.coral {
  background: var(--coral);
  color: #ffffff;
}

.table-wrap {
  border-radius: 0 0 8px 8px;
}

table {
  min-width: 780px;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid #e8e9ef;
  color: #566078;
  font-size: 14px;
}

th {
  background: #f0f0f4;
  color: #7b8092;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:nth-child(1) td {
  background: #dcf8e5;
}

tr.clickable:hover td {
  background: #e9faef;
}

.tabs {
  gap: 0;
  padding: 0 14px;
  border-bottom: 1px solid #e8e9ef;
}

.tab {
  min-height: 44px;
  padding: 0 13px;
  color: #8b8f9f;
  font-weight: 800;
}

.tab.active {
  color: var(--green);
  border-color: var(--green);
}

.field {
  gap: 5px;
}

.field label {
  position: relative;
  width: fit-content;
  max-width: 100%;
  background: #ffffff;
  color: #a0a4b2;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
  margin: 0 0 -13px 10px;
  z-index: 1;
}

.field input,
.field select,
.field textarea {
  min-height: 39px;
  border: 1px solid #d9dce5;
  border-radius: 8px;
  background: #ffffff;
  color: #686d7f;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 600;
}

.field textarea {
  min-height: 104px;
}

.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #bfc4d1;
  box-shadow: 0 0 0 2px rgba(54, 214, 91, 0.18);
}

.field-help {
  color: #a4a7b5;
  font-size: 12px;
  font-weight: 600;
}

.endpoint {
  background: #f1f2f6;
  color: #9ea2b0;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.78;
  max-width: 130px;
}

.section-card.complete {
  border-color: #d9dce5;
  background: #ffffff;
}

.section-card summary {
  min-height: 58px;
}

.room-editor {
  background: #ffffff;
}

.room-editor-head {
  background: #f8f8fb;
}

.task {
  box-shadow: none;
}

.empty {
  border-color: #d9dce5;
  background: #f8f8fb;
  color: #9ea2b0;
}

.client-hero {
  padding: 24px;
}

.client-hero::after {
  background: var(--green);
}

.client-hero h1 {
  color: #232532;
  font-size: 26px;
}

.client-url {
  border-color: #d9dce5;
  background: #f8f8fb;
  color: #7a7f90;
}

.guide-avatar,
.mini-sia {
  box-shadow: var(--shadow-soft);
}

.wizard-hero {
  border-bottom: 1px solid #e8e9ef;
}

.wizard-hero h2 {
  color: #232532;
}

.sia-praise {
  border-color: #d5f4de;
  color: #209d41;
}

.wizard-side {
  background: #f8f8fb;
}

.section-pill {
  background: #ffffff;
  border-color: #e1e3ea;
}

.section-pill:hover:not(:disabled) {
  transform: none;
  border-color: #cfd3de;
  box-shadow: var(--shadow-soft);
}

.section-pill span {
  border-radius: 7px;
  background: #e6e7ed;
  color: #73788a;
}

.section-pill.active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 5px 10px rgba(54, 214, 91, 0.24);
}

.section-pill.active span,
.section-pill.complete span {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.section-pill.active small,
.section-pill.active strong {
  color: #ffffff;
}

.section-pill.complete {
  background: #dcf8e5;
  border-color: #c8f1d3;
}

.section-pill.complete span {
  background: var(--green);
}

.client-field-grid .field {
  border-color: #e1e3ea;
  background: #ffffff;
  padding: 14px;
}

.client-field-grid .field label {
  color: #232532;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.client-field-grid .field:focus-within {
  border-color: #cfd3de;
  box-shadow: var(--shadow-soft);
  transform: none;
}

.rooms-mission-head {
  border-color: #e1e3ea;
}

.wizard-footer {
  background: #ffffff;
}

.drawer-backdrop,
.section-ready-overlay {
  background: rgba(61, 64, 78, 0.46);
}

.modal,
.section-ready-card,
.guide-popover,
.guide-transition-card {
  border: 1px solid #e1e3ea;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(39, 42, 56, 0.28);
}

.modal .panel-header {
  border-bottom: 1px solid #e8e9ef;
}

.toast {
  border-color: #d5f4de;
  color: #209d41;
  box-shadow: var(--shadow);
}

.setup-device-shell {
  display: grid;
  gap: 0;
  min-height: calc(100vh - 76px);
}

.setup-device-hero {
  min-height: 330px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82) 58%, rgba(220, 248, 229, 0.86)),
    url("assets/siesta-logo-green.jpg");
  background-size: auto, 300px 82px;
  background-repeat: no-repeat;
  background-position: center, right 26px top 24px;
  box-shadow: none;
  padding: clamp(28px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
}

.setup-hero-copy h1 {
  max-width: 720px;
  margin: 8px 0 10px;
  font-size: 38px;
  line-height: 1.08;
  color: #232532;
}

.setup-hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #697086;
  line-height: 1.6;
  font-weight: 650;
}

.setup-total-progress {
  max-width: 640px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.setup-total-progress strong {
  color: #34d65b;
  font-size: 42px;
  line-height: 1;
}

.setup-total-progress span {
  display: block;
  margin-bottom: 8px;
  color: #73788a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.setup-total-progress span.done {
  color: #209d41;
}

.setup-hero-sia {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.setup-hero-sia img {
  width: min(250px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #ffffff;
  box-shadow: 0 18px 45px rgba(39, 42, 56, 0.18);
}

.setup-stage-panel {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 406px);
}

.setup-stepper,
.setup-stage-card {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.setup-stepper {
  position: sticky;
  top: 76px;
  min-height: calc(100vh - 76px);
  align-self: start;
  border-right: 1px solid #e1e3ea;
  background: #f8f9fb;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.setup-step {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  min-height: 66px;
  padding: 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  color: #697086;
}

.setup-step:hover {
  background: #f8f8fb;
}

.setup-step > span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e6e7ed;
  color: #73788a;
  font-weight: 900;
}

.setup-step strong {
  display: block;
  color: #4f5466;
  font-size: 14px;
}

.setup-step small {
  display: block;
  margin-top: 3px;
  color: #9ea2b0;
  font-size: 12px;
  font-weight: 750;
}

.setup-step.active {
  border-color: rgba(52, 214, 91, 0.42);
  background: #f4fff7;
}

.setup-step.complete > span,
.setup-step.active > span {
  background: #34d65b;
  color: #ffffff;
}

.setup-stage-card {
  overflow: hidden;
  min-height: 100%;
  background: #ffffff;
}

.setup-stage-head {
  min-height: 84px;
  border-bottom: 1px solid #e8e9ef;
  padding: 22px clamp(22px, 4vw, 54px);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.setup-stage-head h2 {
  margin: 5px 0 0;
  color: #232532;
  font-size: 25px;
}

.setup-welcome-body,
.setup-review-grid {
  padding: clamp(22px, 4vw, 54px);
}

.setup-welcome-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.setup-phone-preview {
  min-height: 310px;
  border: 1px solid #dfe3eb;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f3f6fa);
  box-shadow: 0 18px 42px rgba(39, 42, 56, 0.12);
  padding: 34px 18px 22px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  position: relative;
}

.setup-phone-notch {
  position: absolute;
  top: 14px;
  width: 78px;
  height: 18px;
  border-radius: 99px;
  background: #232532;
}

.setup-phone-preview img {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.setup-phone-preview strong {
  color: #232532;
  font-size: 18px;
  text-align: center;
}

.setup-phone-preview span {
  color: #34d65b;
  font-weight: 850;
}

.setup-brief {
  display: grid;
  gap: 14px;
}

.setup-brief h3 {
  margin: 0;
  font-size: 24px;
}

.setup-brief ul {
  margin: 0;
  padding-left: 20px;
  color: #697086;
  line-height: 1.7;
  font-weight: 650;
}

.setup-form-progress {
  padding: 22px clamp(22px, 4vw, 54px) 0;
  display: grid;
  gap: 8px;
}

.setup-form-progress span {
  color: #73788a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.setup-stage-card > .client-field-grid,
.setup-stage-card > .form-grid {
  padding: 22px clamp(22px, 4vw, 54px) clamp(26px, 4vw, 58px);
}

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

.setup-stage-actions {
  border-top: 1px solid #e8e9ef;
  background: #ffffff;
  padding: 16px clamp(22px, 4vw, 54px);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.client-adventure-app {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  display: grid;
  grid-template-rows: auto 1fr;
}

.client-adventure-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(220px, 420px) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
  background: rgba(248, 248, 251, 0.92);
  border-bottom: 1px solid #e1e3ea;
  box-shadow: 0 10px 28px rgba(39, 42, 56, 0.08);
  backdrop-filter: blur(16px);
}

.client-adventure-topbar .brand {
  padding: 0;
  border: 0;
}

.client-adventure-progress {
  display: grid;
  gap: 8px;
}

.client-adventure-progress > span {
  color: #73788a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.client-adventure-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.client-adventure-app .panel {
  border-radius: 8px;
}

.client-game-shell {
  display: grid;
  gap: 18px;
}

.client-game-hero {
  min-height: 520px;
  border-radius: 8px;
  border: 1px solid #e1e3ea;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 48%, rgba(220, 248, 229, 0.72) 100%),
    url("assets/siesta-logo-green.jpg");
  background-size:
    auto,
    300px 82px;
  background-repeat: no-repeat;
  background-position:
    center,
    right 34px top 34px;
  box-shadow: var(--shadow);
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.client-game-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--green);
}

.client-game-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.client-game-copy h1 {
  margin: 10px 0 14px;
  color: #232532;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 850;
}

.client-game-copy p {
  max-width: 590px;
  margin: 0 0 22px;
  color: #6f7487;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 650;
}

.game-progress {
  max-width: 520px;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.game-progress > div:first-child {
  display: flex;
  align-items: end;
  gap: 10px;
}

.game-progress strong {
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.game-progress span {
  color: #8b8f9f;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.journey-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.journey-breakdown span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dde0e8;
  border-radius: 8px;
  background: #ffffff;
  color: #73788a;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
}

.journey-breakdown span.done {
  border-color: #c8f1d3;
  background: #dcf8e5;
  color: #209d41;
}

.journey-breakdown.prominent {
  margin: -8px 0 20px;
}

.journey-breakdown.prominent span:last-child:not(.done) {
  border-color: #ffe4b6;
  background: #fff7e8;
  color: #9b6400;
}

.client-game-sia {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.client-game-sia > img {
  width: min(360px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #ffffff;
  box-shadow: 0 18px 45px rgba(39, 42, 56, 0.18);
}

.sia-dialog {
  width: min(420px, 100%);
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e1e3ea;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  color: #697086;
}

.sia-dialog strong {
  color: #232532;
}

.sia-dialog p {
  margin: 6px 0 0;
  line-height: 1.5;
  font-weight: 650;
}

.game-map .panel-header h2 {
  color: #232532;
}

.game-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.game-mission-card {
  min-height: 112px;
  border: 1px solid #e1e3ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  color: #697086;
  box-shadow: none;
}

.game-mission-card:hover {
  border-color: #cfd3de;
  box-shadow: var(--shadow-soft);
}

.game-mission-card > span {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #e6e7ed;
  color: #73788a;
  font-weight: 900;
}

.game-mission-card strong,
.game-mission-card small {
  grid-column: 2;
}

.game-mission-card strong {
  align-self: end;
  color: #4f5466;
  font-size: 15px;
}

.game-mission-card small {
  align-self: start;
  color: #9ea2b0;
  font-weight: 800;
}

.game-mission-card.complete {
  background: #dcf8e5;
  border-color: #c8f1d3;
}

.game-mission-card.complete > span {
  background: var(--green);
  color: #ffffff;
}

.locked-overview {
  margin-top: 16px;
  border: 1px dashed #cfd3de;
  border-radius: 8px;
  background: #f8f8fb;
  padding: 16px;
}

.locked-overview strong {
  color: #4f5466;
}

.locked-overview p {
  margin: 6px 0 0;
  color: #8b8f9f;
  line-height: 1.5;
  font-weight: 650;
}

@media (max-width: 1180px) {
  .client-adventure-topbar {
    grid-template-columns: 1fr;
  }

  .client-adventure-actions {
    justify-content: flex-start;
  }

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

  .split,
  .grid.two,
  .ai-layout,
  .client-wizard-layout,
  .setup-landing-stage,
  .setup-device-hero,
  .setup-stage-panel,
  .setup-welcome-body,
  .client-game-hero {
    grid-template-columns: 1fr;
  }

  .client-game-hero {
    min-height: auto;
  }

  .wizard-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .detail {
    position: static;
  }

  .setup-stepper {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 860px) {
  .client-adventure-topbar {
    padding: 12px 14px;
  }

  .client-adventure-main {
    padding: 14px;
  }

  .client-adventure-actions .btn {
    flex: 1 1 150px;
    justify-content: center;
  }

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

  .sidebar {
    position: fixed;
    z-index: 15;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

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

  .mobile-nav-toggle {
    display: grid;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 14px;
  }

  .topbar .search,
  .top-actions {
    grid-column: 1 / -1;
  }

  .content {
    padding: 16px 14px 32px;
  }

  .grid.three,
  .grid.four,
  .form-grid,
  .login-screen,
  .admin-command,
  .rooms-mission-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-command h1 {
    font-size: 22px;
  }

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

  .command-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .panel-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel-header .toolbar {
    width: 100%;
  }

  .crumb strong,
  .crumb {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .login-visual {
    display: none;
  }

  .setup-landing {
    padding: 18px 14px 28px;
  }

  .setup-access-card {
    padding: 22px;
  }

  .setup-access-card h1,
  .setup-hero-copy h1 {
    font-size: 30px;
  }

  .setup-code-row,
  .setup-total-progress,
  .setup-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .setup-admin-login {
    justify-self: stretch;
  }

  .setup-device-hero {
    padding: 22px;
  }

  .setup-stage-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .client-game-hero {
    padding: 24px;
  }

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

  .client-game-copy p {
    font-size: 15px;
  }

  .client-game-sia > img {
    width: min(260px, 100%);
  }

  .guide-card {
    grid-template-columns: 1fr;
  }

  .guide-score {
    text-align: left;
  }

  .client-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .client-step .status {
    grid-column: 2;
    justify-self: start;
  }

  .guide-popover {
    left: 14px;
    right: 14px;
    bottom: 14px;
    top: auto;
    transform: none;
    width: auto;
  }

  .guide-popover.welcome {
    left: 14px;
    right: 14px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
  }

  .guide-popover-head {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .guide-popover.welcome .guide-popover-head {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .guide-popover.welcome .mini-sia {
    width: 56px;
    height: 56px;
  }

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

  .guide-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .wizard-hero,
  .mission-focus,
  .client-step {
    grid-template-columns: 1fr;
  }

  .wizard-side {
    grid-template-columns: 1fr;
  }

  .form-section-rail {
    grid-template-columns: 1fr;
  }

  .section-pill {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .wizard-footer .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Client first-launch redesign */
.setup-landing,
.client-adventure-app {
  --setup-ink: #151924;
  --setup-muted: #646c7d;
  --setup-soft: #8e96a8;
  --setup-line: #dde3ea;
  --setup-panel: #ffffff;
  --setup-wash: #f4f7fa;
  --setup-green: #36d65b;
  --setup-green-dark: #209d41;
  --setup-blue: #2f6fed;
  --setup-blue-soft: #e9f0ff;
  --setup-amber: #f4b23c;
  --setup-coral: #e65b4f;
  color: var(--setup-ink);
}

.setup-landing {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.96)),
    var(--setup-wash);
  background-repeat: no-repeat;
  padding: 30px;
}

.setup-landing::after {
  background: linear-gradient(90deg, var(--setup-green), var(--setup-blue), var(--setup-amber));
}

.setup-landing-stage {
  grid-template-columns: minmax(340px, 0.95fr) minmax(380px, 0.85fr);
  gap: 42px;
}

.setup-launch-visual {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
}

.setup-device-card {
  min-height: 430px;
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: 0 24px 70px rgba(21, 25, 36, 0.12);
  padding: 26px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}

.setup-device-status,
.setup-device-lines {
  width: 100%;
  display: grid;
  gap: 10px;
}

.setup-device-status {
  position: absolute;
}

.setup-device-card {
  position: relative;
}

.setup-device-status {
  top: 18px;
  left: 18px;
  width: 72px;
  grid-template-columns: repeat(3, 1fr);
}

.setup-device-status span {
  height: 8px;
  border-radius: 999px;
  background: #d7dde6;
}

.setup-device-card img {
  width: 190px;
  max-width: 100%;
  border-radius: 8px;
}

.setup-device-card strong {
  color: var(--setup-ink);
  font-size: 24px;
}

.setup-device-lines span {
  height: 10px;
  border-radius: 999px;
  background: #e2e7ee;
}

.setup-device-lines span:nth-child(2) {
  width: 72%;
}

.setup-device-lines span:nth-child(3) {
  width: 48%;
}

.setup-launch-visual .setup-sia-orbit {
  align-self: end;
}

.setup-sia-orbit img {
  width: min(390px, 100%);
  border: 8px solid #ffffff;
  box-shadow: 0 28px 72px rgba(21, 25, 36, 0.16);
}

.setup-access-card {
  border-color: rgba(221, 227, 234, 0.96);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(21, 25, 36, 0.12);
  padding: 34px;
}

.setup-access-card h1 {
  color: var(--setup-ink);
  font-size: 44px;
  line-height: 1.05;
}

.setup-access-card p {
  color: var(--setup-muted);
  font-size: 16px;
}

.setup-code-row input {
  min-height: 52px;
  border-color: #cfd7e2;
  background: #ffffff;
  color: var(--setup-ink);
}

.setup-demo-codes button {
  border-color: #dce5ee;
  background: #f7fafc;
  color: var(--setup-muted);
}

.client-adventure-app {
  min-height: 100vh;
  background: #ffffff;
}

.client-adventure-topbar {
  min-height: 78px;
  grid-template-columns: minmax(220px, 0.82fr) minmax(260px, 1fr) auto;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--setup-line);
  box-shadow: 0 12px 34px rgba(21, 25, 36, 0.08);
}

.client-adventure-progress strong {
  color: var(--setup-ink);
  font-size: 15px;
  line-height: 1.1;
}

.client-adventure-actions .btn {
  text-transform: none;
}

.client-adventure-main {
  background: #ffffff;
}

.setup-device-shell {
  min-height: calc(100vh - 78px);
  background: #ffffff;
}

.setup-device-hero {
  min-height: 390px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  background:
    linear-gradient(100deg, #ffffff 0%, #ffffff 54%, #f0f7ff 100%);
  background-size: auto;
  border-bottom: 1px solid var(--setup-line);
  padding: 52px 64px;
  position: relative;
}

.setup-device-hero::after {
  content: "";
  position: absolute;
  inset: auto 64px 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--setup-green), var(--setup-blue), var(--setup-amber), var(--setup-coral));
}

.setup-hero-copy h1 {
  color: var(--setup-ink);
  font-size: 46px;
  line-height: 1.04;
  font-weight: 850;
}

.setup-hero-copy p {
  color: var(--setup-muted);
  font-size: 17px;
}

.setup-total-progress strong {
  color: var(--setup-green-dark);
}

.setup-total-progress span {
  color: var(--setup-soft);
}

.setup-hero-badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-hero-badges span {
  min-height: 30px;
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--setup-muted);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
}

.setup-hero-sia img {
  width: min(270px, 100%);
}

.sia-dialog {
  border-color: var(--setup-line);
  box-shadow: 0 18px 42px rgba(21, 25, 36, 0.12);
}

.setup-stage-panel {
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: calc(100vh - 468px);
}

.setup-stepper {
  top: 78px;
  min-height: calc(100vh - 78px);
  border-right: 1px solid var(--setup-line);
  background: #f7fafc;
  padding: 20px;
}

.setup-stepper-head {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.setup-stepper-head span {
  color: var(--setup-soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.setup-stepper-head strong {
  color: var(--setup-ink);
  font-size: 22px;
}

.setup-step {
  min-height: 70px;
  border-color: transparent;
  color: var(--setup-muted);
}

.setup-step:hover {
  background: #ffffff;
}

.setup-step.active {
  border-color: #bfe6c8;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 25, 36, 0.08);
}

.setup-step.complete:not(.active) {
  background: #ecfbf0;
}

.setup-stage-card {
  background: #ffffff;
}

.setup-stage-head {
  border-bottom: 1px solid var(--setup-line);
  padding: 24px 56px;
}

.setup-stage-head h2 {
  color: var(--setup-ink);
  font-size: 28px;
}

.setup-welcome-body,
.setup-review-panel {
  padding: 44px 56px;
}

.setup-welcome-body {
  grid-template-columns: 240px minmax(0, 1fr);
}

.setup-phone-preview {
  border-color: var(--setup-line);
  border-radius: 28px;
}

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

.setup-flow-list div,
.review-section-row {
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.setup-flow-list span,
.review-section-row > span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--setup-blue-soft);
  color: var(--setup-blue);
  font-weight: 900;
}

.setup-flow-list strong,
.review-section-row strong {
  display: block;
  color: var(--setup-ink);
}

.setup-flow-list small,
.review-section-row small {
  display: block;
  margin-top: 4px;
  color: var(--setup-muted);
  line-height: 1.4;
}

.setup-section-intro {
  padding: 32px 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: end;
}

.setup-section-intro h3,
.setup-review-hero h3 {
  margin: 6px 0 8px;
  color: var(--setup-ink);
  font-size: 26px;
  line-height: 1.16;
}

.setup-section-intro p,
.setup-review-hero p {
  margin: 0;
  max-width: 690px;
  color: var(--setup-muted);
  line-height: 1.55;
  font-weight: 650;
}

.setup-section-meter {
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: #f7fafc;
  padding: 14px;
  display: grid;
  gap: 4px;
  text-align: center;
}

.setup-section-meter strong {
  color: var(--setup-green-dark);
  font-size: 30px;
  line-height: 1;
}

.setup-section-meter span {
  color: var(--setup-soft);
  font-size: 12px;
  font-weight: 850;
}

.setup-form-progress {
  padding: 18px 56px 0;
}

.missing-fields-strip {
  margin: 14px 56px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.missing-fields-strip span {
  min-height: 28px;
  border: 1px solid #ffd5ca;
  border-radius: 8px;
  background: #fff1ed;
  color: #aa3f32;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.missing-fields-strip.complete span {
  border-color: #c8f1d3;
  background: #ecfbf0;
  color: var(--setup-green-dark);
}

.ares-lookup-panel {
  border: 1px solid rgba(49, 165, 107, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 251, 240, 0.72)),
    #ffffff;
  box-shadow: 0 18px 48px rgba(49, 165, 107, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: end;
  padding: 18px;
  margin-bottom: 16px;
}

.setup-frame-body > .ares-lookup-panel {
  margin: 18px 56px 0;
}

.ares-lookup-panel h3 {
  margin: 5px 0 6px;
  color: #111827;
  font-size: 20px;
}

.ares-lookup-panel p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.ares-lookup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ares-lookup-controls input {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ares-inline-btn {
  min-height: 42px;
  white-space: nowrap;
}

.setup-stage-card > .client-field-grid,
.setup-stage-card > .form-grid {
  padding: 22px 56px 46px;
}

.client-adventure-app .field label {
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  color: var(--setup-ink);
}

.client-adventure-app .field-state {
  display: none;
}

.client-adventure-app .field.filled .field-state {
  background: #ecfbf0;
  color: var(--setup-green-dark);
}

.client-adventure-app .field.required.empty .field-state {
  background: #fff1ed;
  color: #aa3f32;
}

.client-field-grid .field {
  border-color: rgba(223, 229, 236, 0.9);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(17, 21, 32, 0.04);
}

.client-field-grid .field.required.empty {
  border-color: rgba(223, 229, 236, 0.9);
  background: #ffffff;
}

.client-field-grid .field.filled {
  border-color: #cdebd4;
}

.client-field-grid .field input,
.client-field-grid .field select,
.client-field-grid .field textarea {
  min-height: 48px;
  border-color: #cfd7e2;
  color: var(--setup-ink);
  border-radius: 12px;
  background: #fbfcfd;
  padding-left: 12px;
  padding-right: 12px;
}

.password-visibility-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.password-visibility-control input {
  min-width: 0;
}

.password-visibility-control .password-toggle {
  width: 44px;
  height: 44px;
}

.client-field-grid .field textarea {
  min-height: 112px;
}

.rooms-mission-head {
  margin: 26px 56px 16px;
  border-color: var(--setup-line);
  background: #f7fafc;
}

.rooms-bottom-actions {
  display: flex;
  justify-content: flex-end;
  width: min(980px, calc(100% - 56px));
  margin: 16px auto 0;
}

.setup-review-panel {
  display: grid;
  gap: 18px;
  width: min(980px, calc(100% - 56px));
  margin: 34px auto;
  border: 1px solid rgba(223, 229, 236, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(17, 21, 32, 0.09);
  padding: 30px 34px;
}

.setup-review-grid {
  padding: 0;
}

.setup-review-sections {
  display: grid;
  gap: 10px;
}

.review-section-row > span.done {
  background: var(--setup-green);
  color: #ffffff;
}

.setup-stage-actions {
  border-top: 1px solid var(--setup-line);
  padding: 18px 56px;
}

@media (max-width: 1180px) {
  .setup-landing-stage,
  .setup-launch-visual,
  .setup-device-hero,
  .setup-stage-panel,
  .setup-welcome-body {
    grid-template-columns: 1fr;
  }

  .setup-launch-visual {
    min-height: auto;
  }

  .setup-device-card {
    min-height: 300px;
  }

  .setup-stepper {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--setup-line);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .setup-stepper-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .setup-landing {
    padding: 18px 14px 28px;
  }

  .setup-landing-stage {
    gap: 18px;
    align-items: start;
  }

  .setup-access-card {
    order: -1;
    padding: 22px;
  }

  .setup-access-card h1,
  .setup-hero-copy h1 {
    font-size: 32px;
  }

  .setup-access-card p,
  .setup-hero-copy p {
    font-size: 15px;
  }

  .setup-launch-visual {
    min-height: auto;
    gap: 12px;
  }

  .setup-device-card {
    display: none;
  }

  .setup-sia-orbit img {
    width: min(210px, 70vw);
  }

  .setup-code-row {
    grid-template-columns: 1fr;
  }

  .setup-code-row .btn {
    justify-content: center;
  }

  .ares-lookup-panel,
  .ares-lookup-controls,
  .field-with-action {
    grid-template-columns: 1fr;
  }

  .setup-frame-body > .ares-lookup-panel {
    margin-left: 20px;
    margin-right: 20px;
  }

  .ares-lookup-controls .btn,
  .field-with-action .btn {
    justify-content: center;
  }

  .client-adventure-topbar {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .client-adventure-actions {
    justify-content: stretch;
  }

  .client-adventure-actions .btn,
  .client-adventure-actions .status {
    flex: 1 1 150px;
    justify-content: center;
  }

  .setup-device-hero,
  .setup-stage-head,
  .setup-welcome-body,
  .setup-review-panel,
  .setup-stage-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .setup-device-hero {
    min-height: auto;
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .setup-device-hero::after {
    left: 20px;
    right: 20px;
  }

  .setup-hero-sia {
    display: none;
  }

  .setup-section-intro,
  .setup-form-progress,
  .setup-stage-card > .client-field-grid,
  .setup-stage-card > .form-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .setup-section-intro,
  .setup-review-grid {
    grid-template-columns: 1fr;
  }

  .missing-fields-strip,
  .rooms-mission-head {
    margin-left: 20px;
    margin-right: 20px;
  }

  .setup-hero-badges span {
    flex: 1 1 130px;
    justify-content: center;
  }

  .setup-stepper {
    grid-template-columns: 1fr;
    padding: 14px;
    order: 2;
  }

  .setup-stage-card {
    order: 1;
  }

  .setup-flow-list div,
  .review-section-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}

/* New-device client setup */
.setup-activation,
.setup-screen-shell {
  --setup-ink: #111520;
  --setup-muted: #626b7b;
  --setup-soft: #8b94a5;
  --setup-line: #dfe5ec;
  --setup-panel: #ffffff;
  --setup-wash: #f5f7fa;
  --setup-green: #36d65b;
  --setup-green-dark: #1e8f3c;
  --setup-blue: #2f6fed;
  --setup-blue-soft: #e8f0ff;
  --setup-amber: #f4b23c;
  --setup-coral: #e65b4f;
  color: var(--setup-ink);
}

.setup-activation {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98)),
    #f5f7fa;
}

.setup-activation::after {
  height: 6px;
  background: linear-gradient(90deg, var(--setup-green), var(--setup-blue), var(--setup-amber));
}

.setup-activation-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.setup-activation-pill,
.setup-frame-meta span {
  min-height: 30px;
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--setup-muted);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
}

.setup-activation-stage {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 620px);
  gap: 42px;
  align-items: center;
  min-height: 0;
  padding: 12px 0 30px;
}

.setup-activation-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.setup-activation-copy > .eyebrow {
  animation: activationRise 520ms ease both;
}

.setup-activation-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--setup-ink);
  font-size: 60px;
  line-height: 1.02;
  font-weight: 860;
  animation: activationRise 620ms ease 60ms both;
}

.setup-activation-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--setup-muted);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 650;
  animation: activationRise 620ms ease 130ms both;
}

.setup-activation-status {
  width: min(440px, 100%);
  border-left: 4px solid var(--setup-green);
  background: transparent;
  padding: 8px 0 8px 14px;
  display: grid;
  gap: 4px;
  animation: activationRise 620ms ease 200ms both;
}

.setup-activation-status span {
  color: var(--setup-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-activation-status strong {
  color: var(--setup-ink);
  font-size: 17px;
  line-height: 1.25;
}

.setup-activation-device {
  min-height: 430px;
  display: grid;
  place-items: center;
  position: relative;
  animation: activationFloat 5200ms ease-in-out infinite;
}

.setup-imac {
  --imac-shell: #b8d6c4;
  --imac-shell-dark: #8fb59e;
  --imac-shell-light: #d7eadf;
  --imac-edge: #86aa95;
  width: min(650px, 100%);
  display: grid;
  justify-items: center;
  gap: 0;
  animation: deviceLift 700ms ease 120ms both;
}

.setup-imac-screen {
  width: 100%;
  border: 1px solid var(--imac-edge);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--imac-shell-light) 0%, var(--imac-shell) 58%, #a6cbb4 100%);
  box-shadow:
    0 34px 90px rgba(72, 107, 86, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 12px 12px 72px;
  position: relative;
}

.setup-imac-screen::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 72px;
  border-radius: 0 0 13px 13px;
  background:
    linear-gradient(180deg, rgba(184, 214, 196, 0.82), rgba(159, 194, 173, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.setup-device-glass {
  width: 100%;
  min-height: 330px;
  border: 1px solid rgba(112, 156, 172, 0.16);
  border-radius: 10px 10px 8px 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.92)),
    linear-gradient(180deg, rgba(54, 214, 91, 0.08), transparent 42%);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr);
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.setup-device-main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-width: 0;
}

.setup-device-top {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 21, 32, 0.34);
  transform: translateX(-50%);
}

.setup-device-glass img {
  width: 190px;
  max-width: 100%;
  border-radius: 8px;
}

.setup-device-glass strong {
  margin-top: 6px;
  color: var(--setup-ink);
  font-size: 28px;
  line-height: 1.1;
}

.setup-device-glass small {
  color: var(--setup-soft);
  font-weight: 850;
}

.setup-device-scan {
  width: min(260px, 100%);
  height: 8px;
  border-radius: 999px;
  background: #e2e8ef;
  overflow: hidden;
}

.setup-device-scan span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--setup-green), var(--setup-blue));
  animation: scanLine 1800ms ease-in-out infinite;
}

.setup-sia-card {
  width: 100%;
  max-width: 235px;
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(17, 21, 32, 0.13);
  padding: 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-self: end;
  animation: sheetIn 520ms ease 140ms both;
}

.setup-imac-stand {
  width: 122px;
  height: 96px;
  margin-top: -1px;
  border-radius: 0 0 5px 5px;
  background:
    linear-gradient(90deg, #98bea7 0%, var(--imac-shell-light) 48%, #91b69f 100%);
  box-shadow:
    14px 8px 22px rgba(72, 107, 86, 0.12),
    inset 12px 0 22px rgba(255, 255, 255, 0.24),
    inset -14px 0 18px rgba(72, 107, 86, 0.12);
  position: relative;
}

.setup-imac-stand::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: 0;
  height: 12px;
  border-radius: 8px 8px 3px 3px;
  background:
    linear-gradient(180deg, #ecf6f0 0%, #b4d3bf 100%);
  box-shadow:
    0 4px 8px rgba(72, 107, 86, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.setup-imac-stand::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -8px;
  height: 13px;
  border-radius: 2px 2px 7px 7px;
  background:
    linear-gradient(180deg, #e8f3ed 0%, #9fbea9 100%);
  box-shadow:
    0 3px 7px rgba(72, 107, 86, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.setup-imac-foot {
  width: 390px;
  height: 13px;
  margin-top: 6px;
  border-radius: 999px 999px 8px 8px;
  background:
    linear-gradient(180deg, #eff7f2 0%, #bad6c4 48%, #94b39d 100%);
  box-shadow:
    0 12px 28px rgba(72, 107, 86, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  position: relative;
}

.setup-imac-foot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 82%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transform: translateX(-50%);
}

.setup-sia-card img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.setup-sia-card strong,
.setup-sia-card span {
  display: block;
}

.setup-sia-card span {
  margin-top: 3px;
  color: var(--setup-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.setup-access-sheet {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 4px 0 0;
  border: 1px solid rgba(223, 229, 236, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(17, 21, 32, 0.12);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  animation: activationRise 620ms ease 270ms both;
}

.setup-access-sheet label {
  display: block;
  margin-bottom: 8px;
  color: var(--setup-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-access-sheet .setup-code-row input {
  min-height: 52px;
  background: #ffffff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.setup-access-sheet .setup-code-row input:focus {
  transform: translateY(-1px);
}

.setup-access-sheet .setup-demo-codes {
  margin: 0;
  justify-content: flex-start;
}

.setup-access-sheet .login-error {
  margin-top: 10px;
}

.setup-activation .setup-admin-login {
  position: absolute;
  z-index: 2;
  top: 84px;
  left: 30px;
  right: auto;
  width: auto;
  justify-self: auto;
}

.setup-activation .setup-admin-login details {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.setup-activation .setup-admin-login summary {
  min-height: 30px;
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--setup-muted);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.setup-activation .setup-admin-login details[open] {
  width: min(360px, calc(100vw - 60px));
  border: 1px solid var(--setup-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 64px rgba(17, 21, 32, 0.13);
  padding: 14px;
}

.setup-activation .setup-admin-login details[open] summary {
  margin-bottom: 12px;
}

.client-adventure-app {
  min-height: 100vh;
  display: block;
  background: #f5f7fa;
  overflow-x: hidden;
}

.setup-screen-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  overflow: visible;
}

.client-adventure-app,
.setup-screen-shell,
.setup-screen-stage,
.setup-frame,
.setup-frame-body {
  overflow-anchor: none;
}

.setup-screen-nav {
  position: sticky;
  top: 0;
  z-index: 24;
  min-height: 74px;
  border-bottom: 1px solid rgba(223, 229, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(150px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
}

.setup-screen-nav .setup-landing-brand {
  padding: 0;
}

.setup-screen-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: min(360px, 34vw);
}

.setup-screen-dots button {
  width: 34px;
  height: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #dfe5ec;
  color: var(--setup-soft);
  padding: 0;
  display: block;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.setup-screen-dots button:hover {
  transform: scaleY(1.4);
  border-color: transparent;
  background: #cfd8e3;
}

.setup-screen-dots button.complete {
  background: rgba(54, 214, 91, 0.42);
}

.setup-screen-dots button.active {
  width: 64px;
  border-color: transparent;
  background: var(--setup-ink);
  animation: activeStepPulse 1100ms ease-in-out infinite;
}

.setup-screen-dots button span {
  display: block;
  width: 100%;
  height: 100%;
}

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

.setup-screen-stage {
  min-height: 0;
  height: auto;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: visible;
}

.setup-frame {
  width: min(1180px, 100%);
  min-height: 0;
  height: auto;
  border: 1px solid rgba(223, 229, 236, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 36px 100px rgba(17, 21, 32, 0.11);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  animation: frameEnter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.setup-frame.welcome {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% 34%, rgba(54, 214, 91, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.setup-frame.form,
.setup-frame.rooms,
.setup-frame.gate-intro,
.setup-frame.review {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(54, 214, 91, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.setup-frame.welcome .setup-frame-copy,
.setup-frame.welcome .setup-frame-sia,
.setup-frame.form .setup-frame-copy,
.setup-frame.form .setup-frame-sia,
.setup-frame.rooms .setup-frame-copy,
.setup-frame.rooms .setup-frame-sia,
.setup-frame.gate-intro .setup-frame-copy,
.setup-frame.gate-intro .setup-frame-sia,
.setup-frame.review .setup-frame-copy,
.setup-frame.review .setup-frame-sia {
  display: none;
}

.setup-frame-copy {
  padding: 42px 48px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  animation: setupContentIn 440ms ease both;
}

.setup-frame-copy h1 {
  margin: 0;
  color: var(--setup-ink);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 860;
}

.setup-frame-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--setup-muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 650;
}

.setup-frame-copy .setup-total-progress {
  margin-top: 10px;
}

.setup-frame-meta {
  margin-top: 4px;
}

.setup-frame-meta span {
  border: 0;
  background: transparent;
  color: var(--setup-soft);
  padding: 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
}

.setup-frame-sia {
  border-left: 1px solid var(--setup-line);
  background:
    linear-gradient(180deg, #f8fbff, #ffffff);
  padding: 34px 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  animation: setupSideIn 520ms ease 80ms both;
}

.setup-frame-sia img {
  width: 190px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 7px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 18px 46px rgba(17, 21, 32, 0.14);
}

.setup-frame-sia .sia-dialog {
  width: 100%;
  border: 1px solid var(--setup-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 21, 32, 0.08);
}

.setup-frame-body {
  grid-column: 1 / -1;
  min-height: 0;
  overflow: visible;
  border-top: 1px solid var(--setup-line);
  background: linear-gradient(180deg, #ffffff, #fafbfc);
  animation: setupBodyIn 500ms ease 120ms both;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.setup-frame.form .setup-frame-body,
.setup-frame.rooms .setup-frame-body,
.setup-frame.gate-intro .setup-frame-body,
.setup-frame.review .setup-frame-body {
  border-top: 0;
  background: transparent;
}

.setup-frame.welcome .setup-frame-body {
  grid-column: 1;
  border-top: 0;
  overflow: hidden;
  background: transparent;
  display: grid;
  place-items: center;
}

.setup-frame-body .setup-welcome-body,
.setup-frame-body .setup-review-panel {
  padding: 34px 48px;
}

.setup-frame-body .setup-welcome-body {
  grid-template-columns: 250px minmax(0, 1fr);
}

.setup-frame-body .setup-section-intro {
  width: min(980px, calc(100% - 56px));
  margin: 34px auto 0;
  border: 1px solid rgba(223, 229, 236, 0.92);
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(17, 21, 32, 0.09);
  padding: 30px 34px 0;
}

.setup-frame-body .setup-form-progress {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px 34px 0;
}

.setup-frame-body .missing-fields-strip {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 34px 0;
}

.setup-frame-body > .client-field-grid,
.setup-frame-body > .form-grid {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto 34px;
  border: 1px solid rgba(223, 229, 236, 0.92);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(17, 21, 32, 0.09);
  padding: 24px 34px 34px;
}

.setup-frame-body .rooms-mission-head {
  width: min(980px, calc(100% - 56px));
  margin: 34px auto 18px;
  border-radius: 22px;
  padding: 22px 24px;
}

.setup-frame-body .room-editor-list {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto 34px;
  padding: 0;
}

.setup-frame-body > .empty {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto 34px;
}

.setup-frame-actions {
  grid-column: 1 / -1;
  border-top: 1px solid var(--setup-line);
  background: rgba(255, 255, 255, 0.94);
  padding: 16px max(28px, calc((100% - 980px) / 2));
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-frame-actions .btn.primary {
  min-width: 190px;
  justify-content: center;
}

.setup-brief p {
  max-width: 680px;
  margin: 0;
  color: var(--setup-muted);
  line-height: 1.58;
  font-weight: 650;
}

.setup-focus-panel {
  width: min(620px, 100%);
  border: 1px solid rgba(223, 229, 236, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.setup-focus-panel div {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.setup-focus-panel div + div {
  border-left: 1px solid var(--setup-line);
}

.setup-focus-panel span {
  color: var(--setup-green-dark);
  font-size: 30px;
  line-height: 1;
  font-weight: 860;
}

.setup-focus-panel strong {
  color: var(--setup-muted);
  font-size: 13px;
}

.client-field-group-stack {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto 34px;
  display: grid;
  gap: 18px;
}

.client-field-group {
  border: 1px solid rgba(223, 229, 236, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 54px rgba(17, 21, 32, 0.07);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.client-field-group-head {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.client-field-group-head > span {
  border-radius: 99px;
  background: linear-gradient(180deg, var(--setup-green), #20a846);
}

.client-field-group-head h4,
.client-field-group-head p {
  margin: 0;
}

.client-field-group-head h4 {
  color: var(--setup-ink);
  font-size: 18px;
}

.client-field-group-head p {
  margin-top: 5px;
  color: var(--setup-muted);
  line-height: 1.5;
  font-weight: 650;
}

.client-field-group .form-grid {
  padding: 0;
}

.reservation-gate-form {
  gap: 22px;
}

.reservation-gate-items-field {
  border: 1px solid rgba(223, 229, 236, 0.9);
  border-radius: 16px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(17, 21, 32, 0.04);
}

.reservation-gate-items-field.filled {
  border-color: #cdebd4;
}

.reservation-gate-items-head,
.reservation-gate-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reservation-gate-items-head > label {
  flex: 1;
}

.reservation-gate-item-list {
  display: grid;
  gap: 12px;
}

.reservation-gate-item {
  border: 1px solid rgba(207, 215, 226, 0.92);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 14px;
  display: grid;
  gap: 14px;
}

.reservation-gate-item-title strong {
  color: var(--setup-ink);
  font-size: 14px;
}

.reservation-gate-item-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) minmax(125px, 0.8fr) minmax(120px, 0.7fr) minmax(180px, 1.1fr);
  gap: 12px;
}

.reservation-gate-item-grid .field label span {
  color: var(--setup-muted);
  font-size: 11px;
  font-weight: 700;
}

.promotion-items-field {
  display: grid;
  gap: 14px;
}

.field.validation-error input,
.field.validation-error select,
.field.validation-error textarea {
  border-color: #d92d20 !important;
  background: #fff6f5;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.field.validation-error > label,
.field.validation-error > label .field-state,
.field.validation-error > .field-help {
  color: #b42318;
}

.promotion-items-field.validation-error,
.reservation-gate-items-field.validation-error {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.promotion-item-list {
  display: grid;
  gap: 14px;
}

.promotion-item {
  border: 1px solid rgba(223, 229, 236, 0.94);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

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

.promotion-item-grid .field.full {
  grid-column: 1 / -1;
}

.promotion-item-grid textarea {
  min-height: 86px;
}

.promotion-weekday-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.promotion-weekday-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #dfe7e1;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.promotion-weekday-options label:has(input:checked) {
  border-color: #75c487;
  background: #f1faf3;
}

.promotion-weekday-options input {
  width: 18px;
  height: 18px;
  accent-color: #2fbd54;
}

@media (max-width: 720px) {
  .promotion-weekday-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.integration-scope-picker,
.room-model-start-picker {
  margin-bottom: 10px;
}

.room-model-start-picker {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
}

.room-model-start-picker legend {
  padding: 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.room-model-start-picker .integration-scope-options {
  gap: 14px;
  margin-top: 4px;
}

.room-model-start-picker .integration-scope-option {
  padding: 16px 48px 16px 16px;
  min-height: 126px;
}

.room-model-start-picker .integration-scope-option span {
  gap: 8px;
}

.room-model-start-picker .integration-scope-option strong {
  font-size: 15px;
  line-height: 1.3;
}

.room-model-start-picker .integration-scope-option small {
  font-size: 13px;
  line-height: 1.55;
}

.room-model-start-picker textarea {
  width: 100%;
  min-height: 104px;
  margin-top: 16px;
  line-height: 1.5;
}

.admin-project-cockpit {
  grid-column: 1 / -1;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.admin-cockpit-head,
.reservation-gate-admin-section-head,
.client-room-wizard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-cockpit-head h3,
.client-room-wizard-head h3 {
  margin: 4px 0 6px;
}

.admin-cockpit-head p,
.client-room-wizard-head p {
  margin: 0;
  color: #64748b;
}

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

.admin-cockpit-grid article,
.admin-cockpit-alerts > div,
.client-room-wizard,
.gate-decision-block {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.admin-cockpit-grid span,
.admin-cockpit-alerts strong {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-cockpit-grid strong {
  display: block;
  margin: 6px 0;
  color: #0f172a;
  font-size: 24px;
}

.admin-client-submit-notice {
  border: 1px solid rgba(26, 176, 78, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, #effdf3, #ffffff);
  box-shadow: 0 16px 38px rgba(26, 176, 78, 0.12);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-client-submit-notice h4,
.admin-client-submit-notice p {
  margin: 0;
}

.admin-client-submit-notice h4 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
}

.admin-client-submit-notice p {
  margin-top: 5px;
  color: #64748b;
}

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

.admin-submission-inbox {
  grid-column: 1 / -1;
  border: 1px solid rgba(242, 169, 59, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7e8, #ffffff);
  box-shadow: 0 18px 48px rgba(180, 98, 24, 0.13);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.admin-submission-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-submission-inbox-head h2,
.admin-submission-inbox-head p {
  margin: 0;
}

.admin-submission-inbox-head h2 {
  margin-top: 4px;
  color: #0f172a;
}

.admin-submission-inbox-head p {
  margin-top: 5px;
  color: #64748b;
}

.admin-submission-inbox-list {
  display: grid;
  gap: 10px;
}

.admin-submission-row {
  width: 100%;
  border: 1px solid rgba(242, 169, 59, 0.42);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.admin-submission-row .ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2a93b;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.admin-submission-row strong,
.admin-submission-row small {
  display: block;
}

.admin-submission-row small {
  margin-top: 4px;
  color: #64748b;
}

.submission-row-badge {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  background: #fff3d8;
  color: #8a4d08;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-cockpit-alerts {
  display: grid;
  gap: 10px;
}

.admin-cockpit-alerts > div {
  display: grid;
  gap: 4px;
  background: #ffffff;
}

.admin-cockpit-alerts > div.danger {
  border-color: #f1c2bb;
  background: #fff8f6;
}

.client-room-wizard {
  width: min(980px, calc(100% - 56px));
  margin: 34px auto 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 21, 32, 0.08);
}

.room-mode-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.room-mode-choice button {
  min-height: 110px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  padding: 14px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 8px;
}

.room-mode-choice button.active {
  border-color: var(--setup-green);
  background: #ecfbf0;
  box-shadow: 0 0 0 3px rgba(54, 214, 91, 0.16);
}

.room-quick-add {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(110px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.client-room-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.client-room-summary span {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.gate-decision-block {
  padding: 0;
  overflow: hidden;
}

.gate-decision-block summary {
  cursor: pointer;
  list-style: none;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.gate-decision-block summary::-webkit-details-marker {
  display: none;
}

.gate-decision-block summary h4 {
  margin: 4px 0 6px;
}

.gate-decision-block summary p,
.gate-decision-description {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.gate-decision-description {
  padding: 0 16px 12px;
}

.gate-decision-block > .form-grid,
.gate-decision-block > .client-field-grid {
  padding: 0 16px 16px;
}

.approval-return-note {
  width: min(520px, 100%);
  min-height: 74px;
  margin-top: 10px;
}

.reservation-gate-items-empty {
  border: 1px dashed rgba(174, 185, 199, 0.88);
  border-radius: 10px;
  color: var(--setup-muted);
  padding: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.reservation-gate-shared {
  border: 1px solid rgba(54, 214, 91, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, #effcf3, #ffffff);
  box-shadow: 0 18px 54px rgba(17, 21, 32, 0.06);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.reservation-gate-shared-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

.reservation-gate-shared-head > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--setup-green);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.reservation-gate-shared-head h3,
.reservation-gate-shared-head p {
  margin: 0;
}

.reservation-gate-shared-head p {
  margin-top: 5px;
  color: var(--setup-muted);
  line-height: 1.5;
}

.reservation-gate-shared-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(205, 229, 212, 0.85);
  border-radius: 14px;
  background: rgba(205, 229, 212, 0.85);
  overflow: hidden;
}

.reservation-gate-shared-grid > div {
  min-height: 82px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.gate-transition {
  width: min(980px, calc(100% - 56px));
  min-height: 100%;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.gate-transition-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #eaf9ef;
  color: var(--setup-green-dark);
  padding: 8px 14px;
  font-weight: 850;
}

.gate-transition-kicker span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--setup-green);
  color: #fff;
}

.gate-transition > h2,
.gate-transition > p {
  margin: 0;
}

.gate-transition > h2 {
  color: var(--setup-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.gate-transition > p {
  max-width: 760px;
  color: var(--setup-muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}

.gate-transition-flow {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  text-align: left;
}

.gate-transition-flow article {
  min-height: 235px;
  border: 1px solid var(--setup-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(17, 21, 32, 0.07);
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.gate-transition-flow article.complete {
  border-color: rgba(54, 214, 91, 0.35);
  background: linear-gradient(145deg, #effcf3, #fff);
}

.gate-transition-flow article > span {
  color: var(--setup-soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gate-transition-flow h3,
.gate-transition-flow ul {
  margin: 0;
}

.gate-transition-flow h3 {
  color: var(--setup-ink);
  font-size: 23px;
}

.gate-transition-flow ul {
  padding-left: 20px;
  color: var(--setup-muted);
  line-height: 1.7;
}

.gate-transition-flow strong {
  margin-top: auto;
  color: var(--setup-green-dark);
}

.gate-transition-arrow {
  color: var(--setup-green);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.gate-transition-note {
  width: 100%;
  border: 1px solid rgba(223, 229, 236, 0.9);
  border-radius: 16px;
  background: #f7f9fb;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
}

.gate-transition-note > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--setup-ink);
  color: #fff;
  font-weight: 900;
}

.gate-transition-note p {
  margin: 0;
  color: var(--setup-muted);
  line-height: 1.5;
}

.reservation-gate-shared-grid span {
  color: var(--setup-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reservation-gate-shared-grid strong {
  color: var(--setup-ink);
  line-height: 1.35;
}

.reservation-gate-shared > .btn,
.reservation-gate-shared > .status {
  justify-self: start;
}

.reservation-gate-admin {
  display: grid;
  gap: 20px;
}

.reservation-gate-admin-client-groups {
  display: grid;
  gap: 18px;
}

.reservation-gate-admin-client-groups > section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fafb;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.reservation-gate-admin-client-groups h4,
.reservation-gate-admin-client-groups p {
  margin: 0;
}

.reservation-gate-admin-client-groups h4 {
  color: var(--ink);
  font-size: 16px;
}

.reservation-gate-admin-client-groups p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.reservation-gate-admin-hero,
.reservation-gate-admin-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 22px;
}

.reservation-gate-admin-hero,
.reservation-gate-admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.reservation-gate-admin-hero {
  background: linear-gradient(135deg, #effcf3, #ffffff);
  border-color: rgba(54, 214, 91, 0.25);
}

.reservation-gate-admin-hero h2,
.reservation-gate-admin-hero p,
.reservation-gate-admin-section-head h3,
.reservation-gate-admin-section-head p {
  margin: 0;
}

.reservation-gate-admin-hero p,
.reservation-gate-admin-section-head p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.reservation-gate-admin-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reservation-gate-admin-checks article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.reservation-gate-admin-checks article > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9edf0;
  color: var(--muted);
  font-weight: 900;
}

.reservation-gate-admin-checks article.done {
  border-color: #ccebd5;
  background: #f2fbf5;
}

.reservation-gate-admin-checks article.done > span {
  background: var(--setup-green);
  color: #fff;
}

.reservation-gate-admin-checks strong,
.reservation-gate-admin-checks small {
  display: block;
}

.reservation-gate-admin-checks small {
  margin-top: 3px;
  color: var(--muted);
}

.reservation-gate-admin-section {
  display: grid;
  gap: 18px;
}

.reservation-gate-admin-section > .reservation-gate-shared {
  box-shadow: none;
}

.reservation-gate-admin-section.internal {
  background: linear-gradient(135deg, #fbf9ff, #ffffff);
}

.reservation-gate-admin-section.internal > .form-grid {
  padding: 0;
}

.ubyport-guide,
.email-app-password-guide {
  border: 1px solid #f0d7aa;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.ubyport-guide-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
}

.ubyport-guide-head > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2a93b;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.ubyport-guide-head strong {
  color: var(--setup-ink);
  font-size: 18px;
}

.ubyport-guide-head p,
.ubyport-request-list,
.ubyport-send-options {
  margin: 5px 0 0;
  color: var(--setup-muted);
  line-height: 1.55;
}

.ubyport-guide .btn,
.email-app-password-guide .btn {
  width: fit-content;
}

.email-app-password-guide {
  margin-top: 4px;
}

.email-app-password-guide a {
  color: var(--setup-green);
  font-weight: 800;
}

.email-app-password-note {
  border-top: 1px solid rgba(215, 179, 113, 0.34);
  padding-top: 14px;
  color: var(--setup-muted);
  line-height: 1.55;
}

.ubyport-request-list ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.ubyport-send-options {
  border-top: 1px solid rgba(215, 179, 113, 0.34);
  padding-top: 14px;
  display: grid;
  gap: 9px;
}

.ubyport-send-options > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.3fr) minmax(0, 1fr);
  gap: 12px;
}

.ubyport-send-options span {
  color: #976914;
  font-weight: 850;
}

.ubyport-credentials {
  border: 1px solid rgba(54, 214, 91, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, #f2fff5, #ffffff);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.ubyport-credentials-head,
.ubyport-credential-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ubyport-credentials-head h4,
.ubyport-credentials-head p {
  margin: 0;
}

.ubyport-credentials-head p {
  margin-top: 5px;
  color: var(--setup-muted);
  line-height: 1.5;
}

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

.ubyport-credential-card {
  border: 1px solid rgba(223, 229, 236, 0.94);
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.ubyport-credential-card .form-grid {
  padding: 0;
}

.photo-upload-slot {
  grid-column: 1 / -1;
}

.photo-upload-slot:empty {
  display: none;
}

.photo-upload-slot .photo-upload-card {
  margin: 0;
}

.room-model-guide {
  width: min(980px, calc(100% - 56px));
  margin: 34px auto 18px;
  border: 1px solid rgba(54, 214, 91, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(235, 252, 239, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 22px 68px rgba(17, 21, 32, 0.08);
  padding: 28px;
}

.room-model-guide-head h3,
.room-model-guide-head p {
  margin: 0;
}

.room-model-guide-head h3 {
  margin-top: 6px;
  color: var(--setup-ink);
  font-size: 25px;
}

.room-model-guide-head p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--setup-muted);
  line-height: 1.55;
  font-weight: 650;
}

.room-model-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.room-model-grid article {
  border: 1px solid rgba(204, 226, 211, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.room-model-grid article > span {
  color: var(--setup-green-dark);
  font-size: 12px;
  font-weight: 900;
}

.room-model-grid h4,
.room-model-grid p {
  margin: 0;
}

.room-model-grid h4 {
  margin-top: 5px;
  color: var(--setup-ink);
  font-size: 18px;
}

.room-model-grid p,
.room-model-grid li {
  color: var(--setup-muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
}

.room-model-grid p {
  margin-top: 8px;
}

.room-model-grid ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

.room-model-grid article.siesta-recommended {
  position: relative;
  border: 2px solid var(--setup-green);
  background: linear-gradient(145deg, #ffffff, #effcf2);
  box-shadow: 0 16px 38px rgba(32, 153, 71, 0.16);
  transform: translateY(-4px);
}

.siesta-recommended-badge {
  width: fit-content;
  margin: -7px 0 8px auto;
  border-radius: 999px;
  background: var(--setup-green);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.siesta-recommendation-note {
  display: grid;
  gap: 4px;
  max-width: 820px;
  margin-top: 18px;
  border-left: 4px solid var(--setup-green);
  border-radius: 10px;
  background: #ffffff;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(17, 21, 32, 0.06);
}

.siesta-recommendation-note strong {
  color: var(--setup-green-dark);
  font-size: 15px;
}

.siesta-recommendation-note span {
  color: var(--setup-ink);
  line-height: 1.5;
  font-weight: 650;
}

.room-recommendation-editor {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid #cfe2dd;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4fbf8, #ffffff);
  padding: 22px;
}

.room-recommendation-editor h3,
.room-recommendation-editor p {
  margin: 0;
}

.room-recommendation-editor h3 {
  margin-top: 5px;
  color: var(--ink);
}

.room-recommendation-editor p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.room-recommendation-editor .form-grid {
  align-items: start;
}

.room-recommendation-editor .btn {
  width: fit-content;
}

/* Native selects need a real content box; vertical padding clips the selected option on some browsers. */
select {
  line-height: normal;
}

.field select {
  display: block;
  height: 48px;
  min-height: 48px;
  padding: 0 40px 0 12px;
  line-height: normal;
}

.admin-app-shell .sidebar-footer select {
  height: 46px;
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: normal;
}

.task-move-select,
[data-user-role] {
  height: 36px;
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: normal;
}

.setup-launch {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 46%, rgba(54, 214, 91, 0.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(54, 214, 91, 0.1), transparent 24%),
    linear-gradient(135deg, #f7fff9 0%, #ffffff 48%, #f4f8f6 100%);
  color: var(--setup-ink);
  animation: setupLaunchCanvasIn 420ms ease both;
}

.setup-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(35, 55, 45, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 55, 45, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 88%);
}

.setup-launch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: var(--setup-green);
  transform-origin: left;
  animation: setupLaunchLine 1500ms cubic-bezier(0.16, 1, 0.3, 1) 900ms both;
}

.setup-launch-glow {
  position: absolute;
  z-index: 0;
  left: 25%;
  top: 48%;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 214, 91, 0.16), rgba(54, 214, 91, 0.04) 42%, transparent 68%);
  transform: translate(-50%, -50%) scale(0.3);
  animation: setupLaunchGlow 1800ms ease-out 260ms both;
}

.setup-launch-nav {
  position: relative;
  z-index: 6;
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px clamp(20px, 4vw, 58px);
  animation: setupLaunchContentIn 520ms ease 1450ms both;
}

.setup-launch-exit {
  border-color: rgba(17, 21, 32, 0.08);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(12px);
}

.setup-launch-stage {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - 44px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 58px) 0 90px;
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(440px, 1.22fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

.setup-launch-mark {
  width: clamp(260px, 31vw, 430px);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  animation: setupLaunchMarkIn 1450ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.setup-launch-mark::before,
.setup-launch-mark::after,
.setup-launch-mark span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(54, 214, 91, 0.23);
  animation: setupLaunchRing 2200ms ease-out 600ms both;
}

.setup-launch-mark::before {
  inset: 0;
}

.setup-launch-mark::after {
  inset: 12%;
  animation-delay: 760ms;
}

.setup-launch-mark span {
  inset: 24%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 32px 100px rgba(35, 77, 50, 0.12);
  backdrop-filter: blur(12px);
  animation-delay: 920ms;
}

.setup-launch-mark img {
  position: relative;
  z-index: 2;
  width: 39%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(54, 214, 91, 0.2));
  animation: setupLaunchLogoSettle 1500ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
}

.setup-launch-copy {
  max-width: 650px;
  display: grid;
  justify-items: start;
  gap: 18px;
}

.setup-launch-copy > * {
  animation: setupLaunchContentIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.setup-launch-copy > :nth-child(1) { animation-delay: 1120ms; }
.setup-launch-copy > :nth-child(2) { animation-delay: 1190ms; }
.setup-launch-copy > :nth-child(3) { animation-delay: 1260ms; }
.setup-launch-copy > :nth-child(4) { animation-delay: 1330ms; }
.setup-launch-copy > :nth-child(5) { animation-delay: 1410ms; }
.setup-launch-copy > :nth-child(6) { animation-delay: 1490ms; }
.setup-launch-copy > :nth-child(7) { animation-delay: 1560ms; }

.setup-launch-verified {
  min-height: 34px;
  border: 1px solid rgba(54, 214, 91, 0.34);
  border-radius: 999px;
  background: rgba(235, 252, 239, 0.86);
  color: #168f35;
  padding: 6px 13px 6px 7px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-launch-verified span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--setup-green);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.setup-launch-wordmark {
  width: 184px;
  max-width: 54vw;
  mix-blend-mode: multiply;
}

.setup-launch-copy h1 {
  max-width: 660px;
  margin: 0;
  color: #151924;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.setup-launch-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--setup-muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.6;
  font-weight: 620;
}

.setup-launch-copy > p strong {
  color: var(--setup-ink);
  font-weight: 900;
}

.setup-launch-facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.setup-launch-facts div {
  min-height: 112px;
  border: 1px solid rgba(223, 229, 236, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 5px;
  backdrop-filter: blur(12px);
}

.setup-launch-facts span {
  color: var(--setup-green-dark);
  font-size: 12px;
  font-weight: 900;
}

.setup-launch-facts strong,
.setup-launch-facts small {
  display: block;
}

.setup-launch-facts strong {
  color: var(--setup-ink);
  font-size: 13px;
}

.setup-launch-facts small {
  color: var(--setup-soft);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.setup-launch-start {
  min-width: min(340px, 100%);
  min-height: 60px;
  border-radius: 14px;
  justify-content: space-between;
  padding: 0 12px 0 24px;
  box-shadow: 0 20px 54px rgba(54, 214, 91, 0.28);
  font-size: 16px;
}

.setup-launch-start span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: transform 180ms ease;
}

.setup-launch-start:hover span {
  transform: translateX(3px);
}

.setup-launch-returning {
  color: var(--setup-soft);
  font-weight: 750;
}

.setup-launch-sia {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 3vw, 46px);
  bottom: 26px;
  border: 1px solid rgba(223, 229, 236, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 48px rgba(17, 21, 32, 0.1);
  padding: 9px 14px 9px 9px;
  display: grid;
  grid-template-columns: 48px auto;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(14px);
  animation: setupLaunchSiaIn 620ms cubic-bezier(0.16, 1, 0.3, 1) 1770ms both;
}

.setup-launch-sia img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.setup-launch-sia strong,
.setup-launch-sia span {
  display: block;
}

.setup-launch-sia strong {
  color: var(--setup-ink);
  font-size: 12px;
}

.setup-launch-sia span {
  margin-top: 3px;
  color: var(--setup-soft);
  font-size: 11px;
  font-weight: 700;
}

.setup-launch-arrows {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.setup-launch-arrow {
  position: absolute;
  width: clamp(150px, 19vw, 290px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 24px 38px rgba(54, 214, 91, 0.14));
}

.setup-launch-arrow:nth-child(odd) {
  left: -34vw;
  animation: setupLaunchArrowFlight 2500ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.setup-launch-arrow:nth-child(even) {
  right: -34vw;
  animation: setupLaunchArrowFlightReverse 2700ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.setup-launch-arrow.arrow-1 { top: -8%; animation-delay: 0ms; }
.setup-launch-arrow.arrow-2 { top: 8%; animation-delay: 90ms; width: clamp(110px, 14vw, 220px); }
.setup-launch-arrow.arrow-3 { top: 31%; animation-delay: 180ms; width: clamp(190px, 25vw, 380px); }
.setup-launch-arrow.arrow-4 { top: 51%; animation-delay: 40ms; }
.setup-launch-arrow.arrow-5 { top: 68%; animation-delay: 260ms; width: clamp(120px, 16vw, 250px); }
.setup-launch-arrow.arrow-6 { top: 82%; animation-delay: 150ms; width: clamp(180px, 23vw, 350px); }
.setup-launch-arrow.arrow-7 { top: 42%; animation-delay: 360ms; width: clamp(100px, 12vw, 190px); }

@keyframes setupLaunchCanvasIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes setupLaunchLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes setupLaunchGlow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  52% { opacity: 1; }
  100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
}

@keyframes setupLaunchArrowFlight {
  0% { opacity: 0; transform: translate3d(0, 18vh, 0) rotate(-520deg) scale(0.42); }
  14% { opacity: 0.42; }
  68% { opacity: 0.18; }
  100% { opacity: 0; transform: translate3d(152vw, -22vh, 0) rotate(340deg) scale(1.08); }
}

@keyframes setupLaunchArrowFlightReverse {
  0% { opacity: 0; transform: translate3d(0, -14vh, 0) rotate(520deg) scale(0.36); }
  16% { opacity: 0.32; }
  70% { opacity: 0.15; }
  100% { opacity: 0; transform: translate3d(-152vw, 20vh, 0) rotate(-340deg) scale(1); }
}

@keyframes setupLaunchMarkIn {
  0% { opacity: 0; transform: scale(0.42) rotate(-42deg); }
  64% { opacity: 1; transform: scale(1.04) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes setupLaunchLogoSettle {
  0% { opacity: 0; transform: scale(0.26) rotate(-620deg); }
  74% { opacity: 1; transform: scale(1.08) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes setupLaunchRing {
  0% { opacity: 0; transform: scale(0.4); }
  46% { opacity: 1; }
  100% { opacity: 0.65; transform: scale(1); }
}

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

@keyframes setupLaunchSiaIn {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .setup-launch {
    min-height: 100svh;
  }

  .setup-launch-stage {
    width: min(760px, calc(100% - 36px));
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 8px;
    text-align: center;
  }

  .setup-launch-mark {
    width: min(230px, 54vw);
  }

  .setup-launch-copy {
    justify-items: center;
    margin: 0 auto;
  }

  .setup-launch-copy h1,
  .setup-launch-copy > p {
    max-width: 720px;
  }

  .setup-launch-sia {
    display: none;
  }
}

@media (max-height: 800px) and (min-width: 981px) {
  .setup-launch-nav {
    min-height: 66px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .setup-launch-stage {
    min-height: calc(100vh - 72px);
    padding-top: 4px;
    padding-bottom: 40px;
    gap: clamp(32px, 6vw, 82px);
  }

  .setup-launch-mark {
    width: clamp(250px, 27vw, 340px);
  }

  .setup-launch-copy {
    gap: 11px;
  }

  .setup-launch-wordmark {
    width: 154px;
  }

  .setup-launch-copy h1 {
    font-size: clamp(46px, 5vw, 66px);
  }

  .setup-launch-copy > p {
    font-size: 16px;
    line-height: 1.45;
  }

  .setup-launch-facts div {
    min-height: 88px;
    padding: 12px;
  }

  .setup-launch-start {
    min-height: 52px;
  }

  .setup-launch-sia {
    right: 22px;
    bottom: 14px;
  }
}

@media (max-width: 680px) {
  .setup-launch-nav {
    min-height: 68px;
    padding: 14px 16px;
  }

  .setup-launch-nav .setup-landing-brand div,
  .setup-launch-exit .ico {
    display: none;
  }

  .setup-launch-exit {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .setup-launch-stage {
    width: min(100% - 28px, 560px);
    padding: 0 0 48px;
  }

  .setup-launch-mark {
    width: min(176px, 50vw);
  }

  .setup-launch-copy {
    gap: 13px;
  }

  .setup-launch-copy h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .setup-launch-copy > p {
    font-size: 15px;
    line-height: 1.5;
  }

  .setup-launch-facts {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .setup-launch-facts div {
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px 12px;
    text-align: left;
  }

  .setup-launch-facts span {
    grid-row: 1 / 3;
  }

  .setup-launch-start {
    min-width: 100%;
  }

  .setup-launch-arrow.arrow-2,
  .setup-launch-arrow.arrow-5,
  .setup-launch-arrow.arrow-7 {
    display: none;
  }
}

.setup-complete {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(54, 214, 91, 0.18), transparent 31%),
    linear-gradient(180deg, #f8fff9 0%, #ffffff 54%, #f3f8f5 100%);
  color: var(--setup-ink);
}

.setup-complete::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  z-index: 8;
  background: var(--setup-green);
  animation: setupLaunchLine 1300ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
  transform-origin: center;
}

.setup-complete-nav {
  position: relative;
  z-index: 5;
  min-height: 76px;
  padding: 16px clamp(20px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: setupLaunchContentIn 520ms ease 1100ms both;
}

.setup-complete-stage {
  position: relative;
  z-index: 3;
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: clamp(22px, 4vh, 52px) 0 70px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.setup-complete-symbol {
  width: 142px;
  height: 142px;
  border: 1px solid rgba(54, 214, 91, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 90px rgba(35, 111, 57, 0.16);
  display: grid;
  place-items: center;
  position: relative;
  animation: setupCompleteSymbolIn 1200ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.setup-complete-symbol::before,
.setup-complete-symbol::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(54, 214, 91, 0.22);
  border-radius: 50%;
  animation: setupLaunchRing 1800ms ease-out 520ms both;
}

.setup-complete-symbol::before { inset: -28px; }
.setup-complete-symbol::after { inset: -54px; animation-delay: 700ms; }

.setup-complete-symbol img {
  width: 60px;
  opacity: 0.14;
}

.setup-complete-symbol > span {
  position: absolute;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--setup-green);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(54, 214, 91, 0.32);
}

.setup-complete-copy {
  width: min(820px, 100%);
  margin-top: 34px;
  display: grid;
  justify-items: center;
  gap: 15px;
}

.setup-complete-copy > * {
  animation: setupLaunchContentIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.setup-complete-copy > :nth-child(1) { animation-delay: 920ms; }
.setup-complete-copy > :nth-child(2) { animation-delay: 1000ms; }
.setup-complete-copy > :nth-child(3) { animation-delay: 1080ms; }
.setup-complete-copy > :nth-child(4) { animation-delay: 1160ms; }
.setup-complete-copy > :nth-child(5) { animation-delay: 1240ms; }
.setup-complete-copy > :nth-child(6) { animation-delay: 1320ms; }

.setup-complete-kicker {
  border: 1px solid rgba(54, 214, 91, 0.32);
  border-radius: 999px;
  background: rgba(235, 252, 239, 0.9);
  color: var(--setup-green-dark);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-complete-copy h1,
.setup-complete-copy p {
  margin: 0;
}

.setup-complete-copy h1 {
  max-width: 800px;
  color: #151924;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.setup-complete-copy > p {
  max-width: 720px;
  color: var(--setup-muted);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 650;
}

.setup-complete-copy > p strong {
  color: var(--setup-ink);
}

.setup-complete-statuses {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.setup-complete-statuses > div {
  border: 1px solid rgba(223, 229, 236, 0.94);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  display: grid;
  justify-items: center;
  gap: 4px;
  backdrop-filter: blur(12px);
}

.setup-complete-statuses span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f9ed;
  color: var(--setup-green-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.setup-complete-statuses strong {
  font-size: 13px;
}

.setup-complete-statuses small,
.setup-complete-copy > small {
  color: var(--setup-soft);
  font-size: 11px;
  font-weight: 700;
}

.setup-complete-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-complete-actions .btn {
  min-height: 52px;
  min-width: 220px;
  justify-content: center;
}

.setup-complete-review {
  width: min(980px, 100%);
  margin-top: 46px;
  border: 1px solid rgba(223, 229, 236, 0.94);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(17, 21, 32, 0.11);
  padding: 28px;
  text-align: left;
  animation: setupCompleteReviewIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.setup-complete-review-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.setup-complete-review-head h2 {
  margin: 5px 0 0;
  color: var(--setup-ink);
}

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

.setup-complete-review-grid section {
  border: 1px solid var(--setup-line);
  border-radius: 16px;
  padding: 18px;
}

.setup-complete-review-grid h3 {
  margin: 0 0 12px;
  color: var(--setup-ink);
  font-size: 17px;
}

.setup-complete-review-grid section > div {
  border-top: 1px solid #edf0f3;
  padding: 9px 0;
  display: grid;
  gap: 3px;
}

.setup-complete-review-grid span {
  color: var(--setup-soft);
  font-size: 11px;
  font-weight: 800;
}

.setup-complete-review-grid strong {
  color: var(--setup-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.setup-complete-review-grid .summary-secret-value {
  letter-spacing: 0.08em;
}

.setup-complete-review-grid .summary-secret-toggle {
  justify-self: start;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.setup-complete-arrows {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.setup-complete-arrow {
  position: absolute;
  width: clamp(100px, 15vw, 240px);
  opacity: 0;
  animation: setupCompleteArrowBurst 2200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.setup-complete-arrow.complete-arrow-1 { left: 4%; top: 12%; animation-delay: 0ms; }
.setup-complete-arrow.complete-arrow-2 { right: 6%; top: 8%; animation-delay: 80ms; }
.setup-complete-arrow.complete-arrow-3 { left: 12%; top: 58%; animation-delay: 180ms; }
.setup-complete-arrow.complete-arrow-4 { right: 13%; top: 62%; animation-delay: 260ms; }
.setup-complete-arrow.complete-arrow-5 { left: 39%; top: -18%; animation-delay: 120ms; }
.setup-complete-arrow.complete-arrow-6 { right: 42%; bottom: -20%; animation-delay: 300ms; }

@keyframes setupCompleteSymbolIn {
  0% { opacity: 0; transform: scale(0.2) rotate(-240deg); }
  68% { opacity: 1; transform: scale(1.08) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes setupCompleteArrowBurst {
  0% { opacity: 0; transform: scale(0.2) rotate(-420deg) translateY(80px); }
  32% { opacity: 0.26; }
  100% { opacity: 0; transform: scale(1.15) rotate(320deg) translateY(-160px); }
}

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

@media (max-height: 800px) and (min-width: 761px) {
  .setup-complete-nav {
    min-height: 62px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .setup-complete-stage {
    min-height: calc(100vh - 68px);
    padding-top: 4px;
    padding-bottom: 32px;
  }

  .setup-complete-symbol {
    width: 108px;
    height: 108px;
  }

  .setup-complete-symbol::before { inset: -18px; }
  .setup-complete-symbol::after { inset: -34px; }

  .setup-complete-copy {
    margin-top: 20px;
    gap: 9px;
  }

  .setup-complete-copy h1 {
    font-size: clamp(44px, 5vw, 60px);
  }

  .setup-complete-copy > p {
    font-size: 15px;
    line-height: 1.45;
  }

  .setup-complete-statuses > div {
    padding: 10px;
  }

  .setup-complete-actions .btn {
    min-height: 46px;
  }

  .setup-complete.review-open .setup-complete-stage {
    padding-top: 24px;
    align-content: start;
  }
}

@media (max-width: 760px) {
  .setup-complete-nav {
    padding: 12px 16px;
  }

  .setup-complete-nav .setup-landing-brand div {
    display: none;
  }

  .setup-complete-stage {
    width: min(100% - 28px, 620px);
  }

  .setup-complete-symbol {
    width: 112px;
    height: 112px;
  }

  .setup-complete-copy h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .setup-complete-copy > p {
    font-size: 15px;
  }

  .setup-complete-statuses,
  .setup-complete-review-grid {
    grid-template-columns: 1fr;
  }

  .setup-complete-actions,
  .setup-complete-actions .btn {
    width: 100%;
  }

  .setup-complete-review {
    padding: 20px 16px;
  }
}

/* Select labels must never float over the selected value. Keep a dedicated label row everywhere. */
.field:has(> select) {
  gap: 6px;
}

.field:has(> select) > label {
  position: static;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 2px;
  background: transparent;
  line-height: 1.35;
  z-index: auto;
}

.field:has(> select) > select {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 40px 0 12px;
  line-height: normal;
}

.project-package-field > label:not(:first-child) {
  margin-top: 10px;
}

.setup-welcome-center {
  width: min(920px, 100%);
  min-height: 100%;
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  place-items: center;
}

.setup-welcome-card {
  width: min(860px, 100%);
  min-height: 430px;
  border: 1px solid rgba(223, 229, 236, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 34px 100px rgba(17, 21, 32, 0.13);
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1fr);
  overflow: hidden;
  animation: welcomeDeviceIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.setup-welcome-visual {
  min-height: 430px;
  border-right: 1px solid var(--setup-line);
  background:
    radial-gradient(circle at 50% 42%, rgba(54, 214, 91, 0.12), transparent 38%),
    linear-gradient(180deg, #f7fafc, #ffffff);
  display: grid;
  place-items: center;
  padding: 34px;
}

.setup-welcome-copy {
  padding: clamp(30px, 5vw, 56px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
}

.setup-welcome-device {
  width: min(210px, 54vw);
  min-height: 245px;
  border: 1px solid rgba(223, 229, 236, 0.92);
  border-radius: 36px;
  background: linear-gradient(180deg, #ffffff, #f4f8fb);
  box-shadow: 0 28px 76px rgba(17, 21, 32, 0.14);
  padding: 44px 24px 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  position: relative;
  animation: welcomeDeviceFloat 5200ms ease-in-out 900ms infinite;
}

.setup-welcome-device-top {
  position: absolute;
  top: 16px;
  width: 68px;
  height: 17px;
  border-radius: 999px;
  background: #151924;
}

.setup-welcome-device img {
  width: 132px;
  max-width: 100%;
  border-radius: 8px;
}

.setup-welcome-device span {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--setup-green), var(--setup-blue), var(--setup-green));
  background-size: 180% 100%;
  animation: setupLoaderLine 1200ms ease-in-out infinite;
}

.setup-welcome-center h1 {
  max-width: 480px;
  margin: 0;
  color: var(--setup-ink);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04;
  font-weight: 860;
  animation: activationRise 520ms ease 120ms both;
}

.setup-welcome-center p {
  max-width: 460px;
  margin: 0;
  color: var(--setup-muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 650;
  animation: activationRise 520ms ease 180ms both;
}

.setup-welcome-state {
  border-left: 4px solid var(--setup-green);
  padding: 7px 0 7px 14px;
  display: grid;
  gap: 3px;
  animation: activationRise 520ms ease 220ms both;
}

.setup-welcome-state span {
  color: var(--setup-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-welcome-state strong {
  color: var(--setup-ink);
  font-size: 15px;
}

.setup-welcome-start {
  min-width: min(280px, 100%);
  min-height: 52px;
  justify-content: center;
  box-shadow: 0 16px 42px rgba(54, 214, 91, 0.26);
  animation: activationRise 520ms ease 240ms both;
}

@keyframes welcomeDeviceIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcomeDeviceFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.setup-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(circle at 50% 42%, rgba(54, 214, 91, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  animation: setupLoaderFade 220ms ease both;
}

.setup-loading-mark {
  width: min(290px, 72vw);
  border: 1px solid rgba(223, 229, 236, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(17, 21, 32, 0.14);
  padding: 28px 30px 24px;
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: setupLoaderLift 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.setup-loading-mark img {
  width: 198px;
  max-width: 100%;
  border-radius: 8px;
}

.setup-loading-mark span {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--setup-green), var(--setup-blue), var(--setup-green));
  background-size: 180% 100%;
  animation: setupLoaderLine 900ms ease-in-out infinite;
}

.setup-loading-overlay p {
  margin: 0;
  color: var(--setup-muted);
  font-size: 13px;
  font-weight: 850;
}

.project-creation-loading-overlay {
  z-index: 120;
}

.project-creation-loading-mark img {
  animation: projectCreationLogoPulse 1200ms ease-in-out infinite;
}

@keyframes setupLoaderFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes projectCreationLogoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes setupLoaderLine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 180% 50%;
  }
}

@keyframes frameEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

@keyframes scanLine {
  0% {
    transform: translateX(-110%);
  }
  55%,
  100% {
    transform: translateX(230%);
  }
}

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

@keyframes activationFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes activeStepPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(17, 21, 32, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(17, 21, 32, 0.07);
  }
}

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

@keyframes setupSideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@media (max-width: 980px) {
  .setup-activation {
    padding: 20px;
  }

  .setup-activation-stage,
  .setup-access-sheet,
  .setup-frame {
    grid-template-columns: 1fr;
  }

  .setup-activation-stage {
    padding-top: 12px;
  }

  .setup-activation-copy h1,
  .setup-frame-copy h1 {
    font-size: 42px;
  }

  .setup-activation-device {
    min-height: 330px;
  }

  .setup-device-glass {
    min-height: 300px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
    padding: 22px;
  }

  .setup-sia-card {
    max-width: 220px;
  }

  .setup-imac-stand {
    width: 104px;
    height: 76px;
  }

  .setup-imac-foot {
    width: min(320px, 82vw);
  }

  .setup-access-sheet .setup-demo-codes {
    justify-content: flex-start;
  }

  .setup-screen-nav {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .setup-screen-dots {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .setup-screen-actions {
    justify-content: flex-start;
  }

  .setup-frame-sia {
    border-left: 0;
    border-top: 1px solid var(--setup-line);
    grid-row: 2;
  }

  .setup-frame-sia img {
    width: 128px;
  }

  .setup-frame-body {
    grid-row: 3;
  }

  .setup-frame-actions {
    grid-row: 4;
  }

  .setup-frame.form,
  .setup-frame.rooms,
  .setup-frame.gate-intro,
  .setup-frame.review {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .setup-frame.form .setup-frame-body,
  .setup-frame.rooms .setup-frame-body,
  .setup-frame.gate-intro .setup-frame-body,
  .setup-frame.review .setup-frame-body {
    grid-row: 1;
  }

  .setup-frame.form .setup-frame-actions,
  .setup-frame.rooms .setup-frame-actions,
  .setup-frame.gate-intro .setup-frame-actions,
  .setup-frame.review .setup-frame-actions {
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .setup-activation {
    gap: 16px;
    padding: 16px;
  }

  .setup-activation-copy h1,
  .setup-frame-copy h1 {
    font-size: 34px;
  }

  .setup-activation-copy p,
  .setup-frame-copy p {
    font-size: 15px;
  }

  .setup-activation-device {
    display: none;
  }

  .setup-activation-copy {
    gap: 14px;
  }

  .setup-access-sheet {
    margin-top: 0;
  }

  .setup-activation .setup-admin-login {
    position: static;
    width: 100%;
  }

  .setup-access-sheet {
    padding: 14px;
  }

  .setup-code-row {
    grid-template-columns: 1fr;
  }

  .setup-code-row .btn {
    justify-content: center;
  }

  .setup-screen-stage {
    padding: 0;
  }

  .setup-frame {
    min-height: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .setup-welcome-center {
    padding: 14px;
  }

  .setup-welcome-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .setup-welcome-visual {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--setup-line);
    padding: 22px;
  }

  .setup-welcome-copy {
    padding: 24px 20px;
    justify-items: center;
    text-align: center;
  }

  .setup-welcome-device {
    width: min(170px, 62vw);
    min-height: 190px;
    border-radius: 30px;
  }

  .setup-welcome-state {
    text-align: left;
  }

  .setup-frame-sia {
    display: none;
  }

  .setup-frame-copy,
  .setup-frame-body .setup-welcome-body,
  .setup-frame-body .setup-review-panel,
  .setup-frame-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .setup-frame-body .setup-section-intro,
  .setup-frame-body .setup-form-progress,
  .setup-frame-body > .client-field-grid,
  .setup-frame-body > .form-grid,
  .setup-frame-body > .client-field-group-stack,
  .setup-frame-body > .room-model-guide {
    width: calc(100% - 28px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .client-field-group-stack,
  .room-model-guide {
    width: calc(100% - 28px);
  }

  .client-field-group,
  .room-model-guide {
    padding: 20px 16px;
  }

  .reservation-gate-items-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-gate-items-head .btn {
    width: 100%;
    justify-content: center;
  }

  .reservation-gate-item-grid {
    grid-template-columns: 1fr;
  }

  .promotion-item-grid {
    grid-template-columns: 1fr;
  }

  .admin-cockpit-grid,
  .room-mode-choice,
  .room-quick-add {
    grid-template-columns: 1fr;
  }

  .admin-cockpit-head,
  .admin-submission-inbox-head,
  .admin-client-submit-notice,
  .reservation-gate-admin-section-head,
  .client-room-wizard-head,
  .gate-decision-block summary {
    flex-direction: column;
  }

  .admin-client-submit-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-client-submit-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .admin-submission-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .admin-submission-row > .status {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .client-room-wizard {
    width: calc(100% - 28px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .room-model-start-picker .integration-scope-options {
    grid-template-columns: 1fr;
  }

  .room-model-grid {
    grid-template-columns: 1fr;
  }

  .ubyport-guide .btn {
    width: 100%;
    justify-content: center;
  }

  .ubyport-send-options > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .setup-frame-body .missing-fields-strip,
  .setup-frame-body .rooms-mission-head {
    width: calc(100% - 28px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .setup-frame-body .room-editor-list {
    width: calc(100% - 28px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .setup-review-panel {
    width: calc(100% - 28px);
    padding: 22px 20px;
  }

  .setup-frame-body .setup-welcome-body,
  .setup-section-intro,
  .setup-review-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .setup-frame-actions .btn {
    flex: 1 1 150px;
    justify-content: center;
  }

  .setup-frame-actions {
    position: relative;
    z-index: 4;
    padding-top: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    overflow: visible;
  }

  .setup-frame-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .setup-frame-actions .btn.primary {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .room-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-editor-actions,
  .room-editor-actions .btn {
    width: 100%;
  }

  .room-editor-actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .setup-activation-copy > .eyebrow,
  .setup-activation-copy h1,
  .setup-activation-copy p,
  .setup-activation-status,
  .setup-access-sheet,
  .setup-activation-device,
  .setup-imac,
  .setup-device-glass,
  .setup-sia-card,
  .setup-frame,
  .setup-frame-copy,
  .setup-frame-sia,
  .setup-frame-body,
  .setup-loading-overlay,
  .setup-loading-mark,
  .setup-loading-mark span,
  .project-creation-loading-mark img,
  .setup-welcome-device,
  .setup-welcome-device span,
  .setup-welcome-card,
  .setup-welcome-center h1,
  .setup-welcome-center p,
  .setup-welcome-state,
  .setup-welcome-start,
  .setup-launch,
  .setup-launch::after,
  .setup-launch-glow,
  .setup-launch-nav,
  .setup-launch-mark,
  .setup-launch-mark::before,
  .setup-launch-mark::after,
  .setup-launch-mark span,
  .setup-launch-mark img,
  .setup-launch-copy > *,
  .setup-launch-sia,
  .setup-complete,
  .setup-complete::after,
  .setup-complete-nav,
  .setup-complete-symbol,
  .setup-complete-symbol::before,
  .setup-complete-symbol::after,
  .setup-complete-copy > *,
  .setup-complete-review,
  .setup-screen-dots button.active {
    animation: none;
  }

  .setup-launch-arrow {
    display: none;
  }

  .setup-complete-arrow {
    display: none;
  }
}

/* Modern admin workspace */
.admin-app-shell {
  grid-template-columns: 296px minmax(0, 1fr);
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.admin-app-shell .sidebar {
  border-right: 0;
  background:
    linear-gradient(180deg, #111827 0%, #162033 58%, #10231f 100%);
  color: #e7edf5;
  padding: 18px;
  box-shadow: 18px 0 54px rgba(17, 24, 39, 0.16);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.admin-app-shell .brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 4px 18px;
  flex: 0 0 auto;
}

.admin-app-shell .brand strong {
  color: #ffffff;
}

.admin-app-shell .brand span,
.admin-app-shell .nav-section-label {
  color: rgba(231, 237, 245, 0.58);
}

.admin-app-shell .mark {
  border-color: rgba(54, 214, 91, 0.45);
  background: rgba(255, 255, 255, 0.96);
  color: #72ef91;
}

.admin-app-shell .nav {
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.admin-app-shell .nav::-webkit-scrollbar {
  width: 7px;
}

.admin-app-shell .nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.admin-app-shell .nav-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(231, 237, 245, 0.7);
  padding: 0 12px;
}

.admin-app-shell .nav-button:hover,
.admin-app-shell .nav-button.active {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-app-shell .nav-button.active {
  box-shadow:
    inset 3px 0 0 #36d65b,
    0 16px 36px rgba(0, 0, 0, 0.14);
}

.admin-app-shell .sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
  margin-top: 0;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(16, 35, 31, 0.3) 22%);
}

.admin-app-shell .sidebar-footer .field label,
.admin-app-shell .user-chip span {
  color: rgba(231, 237, 245, 0.6);
}

.admin-app-shell .sidebar-footer select,
.admin-app-shell .sidebar-footer .btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-app-shell .sidebar-footer select {
  min-height: 46px;
  padding-right: 38px;
  font-size: 14px;
}

.admin-app-shell .project-picker-current {
  display: block;
  margin: 2px 4px 0;
  color: rgba(231, 237, 245, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-app-shell .user-chip strong {
  color: #ffffff;
}

.admin-app-shell .topbar {
  min-height: 82px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.78);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(22px);
  padding: 14px 34px;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 0.65fr) minmax(520px, 1.7fr);
}

.admin-app-shell .crumb {
  color: #778395;
}

.admin-app-shell .crumb strong {
  color: #111827;
  font-size: 22px;
  letter-spacing: 0;
}

.admin-app-shell .search {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.admin-app-shell .search input {
  min-height: 46px;
}

.admin-app-shell .top-pill {
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.admin-app-shell .top-menu,
.admin-app-shell .top-workspace-menu {
  justify-self: end;
}

.admin-app-shell .top-select-field span,
.admin-app-shell .top-pending-pill span {
  color: #718096;
}

.admin-app-shell .top-select-field select,
.admin-app-shell .top-workspace-menu summary,
.admin-app-shell .top-user-menu summary,
.admin-app-shell .top-pending-pill {
  min-height: 46px;
  border-color: rgba(203, 213, 225, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.admin-app-shell .top-select-field select {
  color: #172033;
}

.admin-app-shell .top-user-menu summary strong,
.admin-app-shell .top-workspace-project strong,
.admin-app-shell .top-workspace-user strong,
.admin-app-shell .top-workspace-pending strong,
.admin-app-shell .top-workspace-status strong,
.admin-app-shell .top-user-menu-head strong,
.admin-app-shell .top-user-list strong,
.admin-app-shell .top-pending-pill strong {
  color: #172033;
}

.admin-app-shell .top-workspace-menu {
  width: min(520px, 100%);
}

.admin-app-shell .top-workspace-menu summary {
  border-radius: 14px;
}

.admin-app-shell .top-workspace-popover,
.admin-app-shell .top-user-menu-popover {
  border-color: rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
}

.admin-app-shell .content {
  padding: 28px 34px 48px;
}

.admin-app-shell .admin-command {
  min-height: 190px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 253, 245, 0.82)),
    #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
  padding: 32px;
  overflow: hidden;
  position: relative;
}

.admin-app-shell .admin-command::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 0;
  width: 260px;
  height: 7px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #36d65b, #2f6fed, #f4b23c);
}

.admin-app-shell .admin-command h1 {
  max-width: 760px;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  font-weight: 860;
}

.admin-app-shell .admin-command p {
  max-width: 720px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.admin-app-shell .panel,
.admin-app-shell .api-card,
.admin-app-shell .section-card,
.admin-app-shell .room-editor,
.admin-app-shell .task,
.admin-app-shell .stage,
.admin-app-shell .mini-project {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.admin-app-shell .panel:hover,
.admin-app-shell .mini-project:hover {
  border-color: rgba(54, 214, 91, 0.35);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.admin-app-shell .panel-header {
  min-height: 72px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  padding: 18px 22px;
}

.admin-app-shell .panel-header h2 {
  color: #111827;
  font-size: 20px;
}

.admin-app-shell .panel-header p {
  color: #718096;
  font-weight: 650;
}

.admin-app-shell .panel-body {
  padding: 20px 22px;
}

.admin-app-shell .metric {
  min-height: 138px;
  border-radius: 20px;
  padding: 20px;
}

.admin-app-shell .metric span,
.admin-app-shell .metric small {
  color: #718096;
  font-weight: 760;
}

.admin-app-shell .metric strong {
  color: #111827;
  font-size: 38px;
}

.admin-app-shell .pipeline {
  gap: 14px;
}

.admin-app-shell .stage {
  background: rgba(248, 250, 252, 0.92);
}

.admin-app-shell .stage h3 {
  color: #111827;
  font-size: 15px;
}

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

  .admin-app-shell .sidebar {
    position: fixed;
    z-index: 30;
    width: min(320px, calc(100vw - 24px));
    padding: 16px;
  }

  .admin-app-shell .topbar,
  .admin-app-shell .content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-results-body {
    grid-template-columns: 1fr;
  }
}

/* Admin integration detail */
.admin-app-shell .project-detail-page {
  display: grid;
  gap: 18px;
  animation: adminDetailIn 360ms ease both;
}

.admin-app-shell .project-detail-hero {
  min-height: 250px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.9)),
    #ffffff;
  box-shadow: 0 30px 86px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.admin-app-shell .project-detail-hero::after {
  content: "";
  position: absolute;
  right: 30px;
  top: 30px;
  width: 210px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #36d65b, #2f6fed, #f4b23c);
}

.admin-app-shell .project-detail-hero > div {
  position: relative;
  z-index: 1;
}

.admin-app-shell .project-detail-hero .back-link {
  margin: 0 0 24px -8px;
  color: #526174;
}

.admin-app-shell .project-detail-hero h1 {
  margin: 8px 0 10px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 880;
  letter-spacing: 0;
}

.admin-app-shell .project-detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 650;
}

.admin-app-shell .project-detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-app-shell .project-detail-hero-actions .btn,
.admin-app-shell .project-detail-hero-actions .status {
  min-height: 44px;
}

.admin-app-shell .btn.danger {
  border-color: rgba(220, 91, 69, 0.28);
  background: #fff1ee;
  color: #a53625;
}

.admin-app-shell .btn.danger:hover {
  border-color: rgba(220, 91, 69, 0.42);
  background: #ffe5df;
}

.admin-app-shell .project-detail-panel {
  overflow: hidden;
}

.admin-app-shell .project-detail-panel:hover {
  transform: none;
}

.admin-app-shell .project-detail-panel .tabs {
  padding: 0 20px;
  gap: 4px;
  background: rgba(248, 250, 252, 0.82);
}

.admin-app-shell .project-detail-panel .tab {
  min-height: 54px;
  padding: 0 14px;
  font-weight: 780;
}

.admin-app-shell .client-data-large {
  display: grid;
  gap: 18px;
}

.admin-app-shell .client-data-section {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.admin-app-shell .client-data-section-head {
  min-height: 78px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.admin-app-shell .client-data-section-head h3 {
  margin: 4px 0 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}

.admin-app-shell .client-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
  padding: 16px;
}

.admin-app-shell .client-data-card {
  min-height: 116px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: start;
  padding: 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.admin-app-shell .client-data-card:hover {
  border-color: rgba(47, 111, 237, 0.24);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-app-shell .client-data-card.empty {
  background: #fbfcfd;
}

.admin-app-shell .client-data-card small {
  display: block;
  margin-bottom: 7px;
  color: #8491a5;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-app-shell .client-data-card strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.admin-app-shell .client-data-card span {
  display: block;
  margin-top: 9px;
  color: #334155;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-app-shell .client-data-card.empty span {
  color: #94a3b8;
  font-style: italic;
}

.admin-app-shell .client-data-card .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #2f6fed;
}

.admin-app-shell .client-data-card .icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

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

@media (max-width: 980px) {
  .admin-app-shell .project-detail-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-app-shell .project-detail-hero-actions {
    justify-content: flex-start;
  }

  .admin-app-shell .client-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-app-shell .project-detail-hero {
    min-height: auto;
    padding: 22px;
  }

  .admin-app-shell .project-detail-hero h1 {
    font-size: 34px;
  }

  .admin-app-shell .project-detail-hero-actions,
  .admin-app-shell .project-detail-hero-actions .btn {
    width: 100%;
  }

  .admin-app-shell .project-detail-hero-actions .btn {
    justify-content: center;
  }

  .admin-app-shell .client-data-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Package catalogue, entitlements and photo handoff */
.entitlement-summary {
  border: 1px solid #cfe2dd;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4fbf8, #ffffff 58%);
  padding: 20px;
}

.entitlement-summary.custom-offer {
  border-color: #cfc5f4;
  background: linear-gradient(135deg, #f7f4ff, #ffffff 58%);
}

.custom-extras-summary {
  border: 1px solid #dcd4f7;
  border-radius: 8px;
  background: rgba(237, 233, 255, 0.58);
  padding: 14px;
  margin: 0 0 16px;
}

.custom-extras-summary > strong,
.custom-extras-summary small {
  display: block;
}

.custom-extras-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.custom-extras-summary span {
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.entitlement-head,
.entitlement-meta,
.entitlement-columns,
.settings-save-bar {
  display: flex;
  gap: 16px;
}

.entitlement-head {
  align-items: flex-start;
  justify-content: space-between;
}

.entitlement-head h3 {
  margin: 4px 0 0;
  font-size: 23px;
}

.entitlement-head > strong {
  color: var(--teal);
  font-size: 20px;
  text-align: right;
}

.entitlement-head small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.entitlement-meta {
  flex-wrap: wrap;
  margin: 16px 0;
}

.entitlement-meta span {
  border-radius: 999px;
  background: #e5f4ef;
  color: #146b55;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.entitlement-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #dce9e5;
  padding-top: 16px;
}

.entitlement-columns > div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.entitlement-columns > div > strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.entitlement {
  font-size: 13px;
  line-height: 1.4;
}

.entitlement.yes {
  color: var(--green);
}

.entitlement.no {
  color: var(--muted);
}

.project-package-field {
  margin-top: 16px;
}

.project-package-field > label:not(:first-child) {
  margin-top: 10px;
}

.custom-pricing-fields {
  margin-top: 12px;
}

.custom-pricing-fields[hidden] {
  display: none !important;
}

.custom-pricing-fields textarea {
  min-height: 112px;
}

.project-package-field .btn {
  margin-top: 8px;
  justify-self: start;
}

.photo-drive-admin-card .status {
  margin-top: 12px;
}

.field.not-entitled {
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
  opacity: 0.78;
}

.field.not-entitled .field-state {
  background: var(--coral-soft);
  color: var(--coral);
}

.photo-upload-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #cbdcf8;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f6ff, #ffffff);
  padding: 18px;
  margin-bottom: 18px;
}

.photo-upload-card.blocked {
  border-color: #ead8aa;
  background: #fffaf0;
}

.photo-upload-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 24px;
}

.photo-upload-card h3 {
  margin: 4px 0 5px;
}

.photo-upload-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.new-project-modal {
  width: min(860px, 100%);
}

.new-project-modal .field select {
  box-sizing: border-box;
  display: block;
  height: 48px;
  min-height: 48px;
  padding: 0 40px 0 12px;
  font-size: 16px;
  line-height: 1.35;
}

.integration-scope-picker {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.integration-scope-picker legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

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

.integration-scope-option {
  position: relative;
  min-width: 0;
  display: block;
  padding: 14px 46px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.integration-scope-option::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1.5px solid #aeb4c2;
  border-radius: 50%;
  background: #ffffff;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.integration-scope-option:hover {
  border-color: #91caa9;
  background: #f7fcf9;
}

.integration-scope-option:has(input:checked) {
  border-color: var(--green);
  background: #effaf3;
  box-shadow: inset 3px 0 0 var(--green), 0 0 0 2px rgba(82, 196, 110, 0.12);
}

.integration-scope-option:has(input:checked)::after {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.integration-scope-option:has(input:focus-visible) {
  outline: 3px solid rgba(54, 214, 91, 0.24);
  outline-offset: 2px;
}

.integration-scope-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.integration-scope-option span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.integration-scope-option strong {
  font-size: 14px;
}

.integration-scope-option small {
  color: var(--muted);
  line-height: 1.4;
}

.integration-scope-cards {
  gap: 14px;
  margin-top: 4px;
}

.integration-scope-card {
  min-height: 132px;
  padding: 18px 52px 18px 18px;
}

.integration-scope-card span {
  gap: 8px;
}

.integration-scope-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.integration-scope-card small {
  display: block;
  max-width: 96%;
  color: #5d687a;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.package-preview {
  display: grid;
  gap: 7px;
  border: 1px solid #cfe2dd;
  border-radius: 8px;
  background: #f4fbf8;
  padding: 14px;
  margin: 16px 0;
}

.package-preview.empty {
  border-style: dashed;
  background: var(--surface-2);
  color: var(--muted);
}

.package-preview span,
.package-preview small {
  color: var(--muted);
  line-height: 1.5;
}

.package-settings-panel {
  grid-column: 1 / -1;
}

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

.package-settings-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 16px;
}

.compact-grid {
  gap: 10px;
  margin-top: 10px;
}

.package-feature-editor {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.package-feature-editor label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.settings-save-bar {
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.settings-save-bar small {
  color: var(--muted);
}

.autosave-status {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  color: #536172;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

.autosave-status-dot {
  background: #31a56b;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.autosave-status.is-checking .autosave-status-dot,
.autosave-status.is-saving .autosave-status-dot {
  animation: autosave-pulse 1s ease-in-out infinite;
  background: #d58a1f;
}

.autosave-status.is-local .autosave-status-dot {
  background: #7a8798;
}

.autosave-status.is-error .autosave-status-dot {
  background: #d75b4b;
}

.client-save-status {
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(28, 38, 52, 0.12);
  position: fixed;
  right: 18px;
  z-index: 80;
}

.admin-sync-status {
  min-height: 42px;
  border-color: rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  cursor: help;
  flex: 0 0 auto;
  outline: none;
  padding: 8px 10px;
  position: relative;
  z-index: 12;
}

.admin-sync-status:hover,
.admin-sync-status:focus-visible {
  border-color: rgba(49, 165, 107, 0.5);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.1),
    0 0 0 3px rgba(49, 165, 107, 0.1);
}

.admin-sync-status.is-error {
  border-color: rgba(215, 91, 75, 0.36);
}

.sync-status-chevron {
  color: #8a96a5;
  font-size: 14px;
  margin-left: 2px;
}

.sync-status-popover {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  color: #172033;
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-align: left;
  top: calc(100% + 10px);
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
  visibility: hidden;
  white-space: normal;
  z-index: 120;
}

.sync-status-popover::before {
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(203, 213, 225, 0.92);
  border-left: 1px solid rgba(203, 213, 225, 0.92);
  background: #ffffff;
  content: "";
  position: absolute;
  right: 22px;
  top: -7px;
  transform: rotate(45deg);
}

.admin-sync-status:hover .sync-status-popover,
.admin-sync-status:focus .sync-status-popover,
.admin-sync-status:focus-within .sync-status-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.sync-status-popover-head {
  align-items: center;
  border-bottom: 1px solid #e7ebf0;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 1px 1px 12px;
}

.sync-status-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eaf8f0;
  display: grid;
  place-items: center;
}

.sync-status-icon .autosave-status-dot {
  height: 10px;
  width: 10px;
}

.sync-status-popover-head strong,
.sync-status-popover-head small {
  display: block;
}

.sync-status-popover-head strong {
  font-size: 14px;
}

.sync-status-popover-head small {
  color: #738093;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 3px;
}

.sync-status-list {
  display: grid;
  padding-top: 8px;
}

.sync-status-list > div {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 31px;
}

.sync-status-list span {
  color: #6b7789;
  font-size: 11px;
  font-weight: 650;
}

.sync-status-list strong {
  color: #253044;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.sync-status-list .sync-ok {
  color: #238459;
}

.sync-status-error {
  border: 1px solid #f1c2bb;
  border-radius: 7px;
  background: #fff4f2;
  color: #a33d30;
  font-size: 11px;
  line-height: 1.4;
  margin: 8px 0 0;
  padding: 8px 9px;
  white-space: normal;
}

.sync-status-error code {
  display: block;
  font-family: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sync-status-copy {
  align-items: center;
  border: 1px solid rgba(163, 61, 48, 0.28);
  border-radius: 6px;
  background: #ffffff;
  color: #8f352a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  gap: 5px;
  margin-top: 8px;
  padding: 6px 8px;
}

.sync-status-copy:hover,
.sync-status-copy:focus-visible {
  background: #ffe8e4;
  outline: none;
}

.sync-status-error[hidden] {
  display: none;
}

@keyframes autosave-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 900px) {
  .new-project-modal {
    width: min(760px, 100%);
  }

  .integration-scope-cards {
    grid-template-columns: 1fr;
  }

  .integration-scope-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .drawer-backdrop:has(.new-project-modal) {
    align-items: start;
    padding: 10px;
  }

  .new-project-modal {
    max-height: calc(100dvh - 20px);
  }

  .new-project-modal .panel-body {
    padding: 16px;
  }

  .new-project-modal .form-grid {
    gap: 14px;
  }

  .new-project-modal .field select {
    height: 52px;
    min-height: 52px;
  }

  .integration-scope-options {
    grid-template-columns: 1fr;
  }

  .new-project-modal [data-action="create-project"] {
    width: 100%;
    justify-content: center;
  }

  .gate-transition {
    width: calc(100% - 28px);
    padding: 28px 0;
  }

  .gate-transition-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gate-transition-arrow {
    transform: rotate(90deg);
  }

  .reservation-gate-shared-grid,
  .reservation-gate-admin-checks {
    grid-template-columns: 1fr;
  }

  .reservation-gate-admin-hero,
  .reservation-gate-admin-section-head {
    flex-direction: column;
  }

  .ubyport-credentials-head,
  .ubyport-credential-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .ubyport-credentials-head .btn {
    width: 100%;
  }

  .entitlement-columns,
  .package-settings-grid,
  .photo-upload-card {
    grid-template-columns: 1fr;
  }

  .entitlement-head,
  .settings-save-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .entitlement-head > strong {
    text-align: left;
  }

  .client-save-status {
    bottom: 10px;
    right: 10px;
  }

  .admin-sync-status {
    min-width: 0;
  }

  .sync-status-popover {
    position: fixed;
    right: 10px;
    top: 78px;
    transform-origin: top right;
  }

  .sync-status-popover::before {
    display: none;
  }
}

@media (max-width: 1500px) {
  .admin-app-shell .top-pill {
    display: none;
  }
}

/* Admin directory: keep identity, avatar and actions on one visual baseline. */
.admin-app-shell .admin-directory-table td {
  vertical-align: middle;
}

.admin-app-shell .admin-directory-table .admin-user-identity {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-width: 210px;
  min-height: 48px;
  align-items: center;
}

.admin-app-shell .admin-directory-table .admin-user-identity > .avatar,
.admin-app-shell .edit-client-identity .admin-user-identity > .avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: start;
  color: #186b3b;
  background: #e8f8ee;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.admin-app-shell .admin-directory-table .admin-user-identity > .avatar.internal,
.admin-app-shell .edit-client-identity .admin-user-identity > .avatar.internal {
  color: #2457a7;
  background: #eaf1ff;
}

.admin-app-shell .admin-directory-table .user-chip-copy,
.admin-app-shell .edit-client-identity .user-chip-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: center;
}

.admin-app-shell .admin-directory-table .user-chip-copy strong,
.admin-app-shell .edit-client-identity .user-chip-copy strong {
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.25;
}

.admin-app-shell .admin-directory-table .user-chip-copy span,
.admin-app-shell .edit-client-identity .user-chip-copy span {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-app-shell .directory-actions {
  flex-wrap: nowrap;
}

.client-code-status {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.text-code-button {
  border: 0;
  background: transparent;
  color: #2457a7;
  padding: 0;
  font: 750 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  cursor: pointer;
}

.text-code-button:hover {
  color: #173d78;
  text-decoration: underline;
}

.edit-client-modal {
  width: min(680px, calc(100vw - 32px));
}

.edit-client-identity {
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  margin-bottom: 18px;
}

.edit-client-identity .admin-user-identity {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.client-access-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.client-access-summary > div,
.api-health-item {
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.client-access-summary span,
.api-health-item span {
  display: block;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
}

.client-access-summary strong,
.api-health-item strong {
  display: block;
  margin-top: 5px;
  color: #172033;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.ai-capability-grid {
  align-items: stretch;
}

.ai-capability {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-right: 1px solid #e2e8f0;
  padding-right: 18px;
}

.ai-capability:last-child {
  border-right: 0;
}

.ai-capability .ico {
  border-radius: 8px;
  background: #e8f8ee;
  color: #186b3b;
  font-weight: 850;
}

.ai-capability strong {
  color: #172033;
}

.ai-capability p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.ai-write-boundary,
.api-security-note {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
  padding-top: 18px;
}

.ai-write-boundary div,
.api-security-note {
  color: #475569;
}

.ai-write-boundary span:not(.status),
.api-security-note span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

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

.api-security-note {
  align-items: flex-start;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .client-access-summary,
  .api-health-grid {
    grid-template-columns: 1fr;
  }

  .ai-capability {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 0 16px;
  }

  .ai-capability:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .ai-write-boundary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Zoom resilience: browser zoom effectively shrinks the usable viewport, so
   structural containers must wrap and scroll instead of clipping content. */
html {
  overflow-x: auto;
}

body {
  overflow-x: auto;
}

.app-shell,
.admin-app-shell,
.client-adventure-app,
.setup-screen-shell,
.setup-activation,
.setup-landing {
  min-width: 0;
}

.admin-app-shell .sidebar {
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-app-shell .topbar {
  grid-template-columns: minmax(0, 0.6fr) minmax(220px, 360px) minmax(520px, 1.4fr);
}

.admin-app-shell .top-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.top-select-field {
  min-width: 0;
}

.top-user-menu {
  min-width: 0;
}

.project-select-field {
  min-width: 0;
}

.user-select-field {
  min-width: 0;
}

.admin-app-shell .topbar,
.setup-screen-nav,
.panel-header,
.admin-command,
.setup-stage-head,
.project-detail-hero,
.client-data-section-head {
  min-width: 0;
}

.admin-app-shell .admin-command,
.admin-app-shell .project-detail-hero,
.admin-app-shell .project-detail-panel,
.admin-app-shell .client-data-section,
.setup-frame,
.setup-frame.welcome .setup-frame-body,
.setup-welcome-card {
  overflow: visible;
}

.toolbar,
.command-actions,
.project-detail-hero-actions,
.setup-screen-actions,
.setup-stage-actions,
.modal-actions,
.admin-app-shell .panel-header,
.admin-app-shell .topbar {
  flex-wrap: wrap;
}

.toolbar,
.command-actions,
.project-detail-hero-actions,
.setup-stage-actions,
.modal-actions {
  min-width: 0;
}

.toolbar .btn,
.command-actions .btn,
.project-detail-hero-actions .btn,
.setup-stage-actions .btn,
.modal-actions .btn {
  min-width: max-content;
}

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

.admin-directory-table {
  min-width: 760px;
}

.tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab {
  white-space: nowrap;
}

.global-search-menu {
  max-height: min(620px, calc(100dvh - 110px));
  overflow: auto;
}

.modal {
  max-height: min(820px, calc(100dvh - 32px));
}

.drawer-backdrop {
  overflow: auto;
  align-items: start;
}

@media (max-width: 1200px) {
  .admin-app-shell {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

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

  .admin-app-shell .top-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .admin-app-shell .top-actions {
    grid-template-columns: auto minmax(280px, 1fr) auto;
  }

  .admin-app-shell .top-workspace-menu {
    width: 100%;
  }

  .admin-app-shell .content {
    padding-left: 22px;
    padding-right: 22px;
  }
}

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

  .admin-app-shell .sidebar {
    height: auto;
    max-height: 72dvh;
  }

  .admin-app-shell .topbar {
    position: relative;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-app-shell .search,
  .admin-app-shell .top-actions,
  .admin-app-shell .top-workspace-menu {
    width: 100%;
  }

  .admin-app-shell .top-actions {
    grid-template-columns: 1fr;
  }

  .admin-app-shell .top-workspace-menu summary {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .admin-app-shell .top-workspace-user {
    display: none;
  }

  .setup-screen-nav {
    position: relative;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .setup-screen-dots,
  .setup-screen-actions {
    justify-content: flex-start;
  }

  .setup-frame {
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .toolbar .btn,
  .command-actions .btn,
  .project-detail-hero-actions .btn,
  .setup-stage-actions .btn,
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-app-shell .content {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Final mobile/tablet containment and admin navigation hardening */
@media (max-width: 1024px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .admin-app-shell,
  .client-adventure-app,
  .setup-screen-shell,
  .setup-activation,
  .setup-landing,
  .main,
  .content,
  .setup-frame,
  .setup-frame-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

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

  .admin-app-shell .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(326px, calc(100vw - 28px));
    height: 100dvh;
    max-height: none;
    padding: 16px;
    transform: translateX(-108%);
    transition: transform 180ms ease;
  }

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

  .admin-app-shell .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    padding: 0;
  }

  .admin-app-shell .mobile-nav-toggle {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    z-index: 100;
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  }

  .admin-app-shell .admin-sidebar-footer {
    display: grid;
    gap: 12px;
  }

  .admin-app-shell .sidebar-user-switch {
    display: grid;
    gap: 6px;
    margin: 0;
  }

  .admin-app-shell .sidebar-user-switch > span {
    color: rgba(231, 237, 245, 0.62);
    font-size: 11px;
    font-weight: 760;
    text-transform: uppercase;
  }

  .admin-app-shell .topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 72px;
    padding-right: 18px;
  }

  .admin-app-shell .search,
  .admin-app-shell .top-actions {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .admin-app-shell .top-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-app-shell .top-workspace-menu {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .admin-app-shell .top-workspace-menu summary {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .admin-app-shell .top-workspace-user,
  .admin-app-shell .top-user-menu-head,
  .admin-app-shell .top-user-list,
  .admin-app-shell .top-user-logout,
  .admin-app-shell .top-workspace-status > div:nth-child(2) {
    display: none;
  }

  .admin-app-shell .top-workspace-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-app-shell .content {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (min-width: 1025px) {
  .admin-app-shell .admin-sidebar-footer,
  .admin-app-shell .sidebar-backdrop {
    display: none;
  }
}

@media (max-width: 860px) {
  .client-adventure-main,
  .setup-welcome-center {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .setup-screen-stage {
    align-items: start;
    place-items: start center;
  }

  .setup-frame-copy,
  .setup-frame-body .setup-welcome-body,
  .setup-frame-body .setup-review-panel,
  .setup-frame-actions,
  .setup-frame-body .setup-section-intro,
  .setup-frame-body .setup-form-progress,
  .setup-frame-body > .client-field-grid,
  .setup-frame-body > .form-grid,
  .setup-frame-body > .client-field-group-stack,
  .setup-frame-body > .room-model-guide,
  .setup-frame-body .missing-fields-strip,
  .setup-frame-body .rooms-mission-head,
  .setup-frame-body .room-editor-list,
  .client-field-group-stack,
  .client-room-wizard,
  .room-model-guide,
  .setup-review-panel {
    width: min(100%, calc(100vw - 28px));
    max-width: min(100%, calc(100vw - 28px));
    margin-left: auto;
    margin-right: auto;
  }

  .setup-frame-body .setup-section-intro,
  .setup-frame-body .setup-form-progress,
  .setup-frame-body > .client-field-grid,
  .setup-frame-body > .form-grid,
  .setup-frame-body > .client-field-group-stack,
  .setup-frame-body > .room-model-guide,
  .setup-frame-body .room-editor-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .client-field-group,
  .room-model-guide,
  .client-room-wizard,
  .setup-review-panel {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .admin-app-shell .top-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-app-shell .top-actions > .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-app-shell .top-workspace-popover {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 32px));
  }

  .admin-app-shell .content {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

.language-toggle-options {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.language-toggle-options .btn {
  min-width: 42px;
  height: 34px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667382;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-toggle-options .btn:hover {
  color: #111827;
  background: #f1f5f9;
}

.language-toggle-options .btn:focus-visible {
  outline: 3px solid rgba(24, 121, 78, 0.2);
  outline-offset: 1px;
}

.language-toggle-options .btn.active,
.language-toggle-options .btn[aria-pressed="true"] {
  border-color: rgba(30, 143, 60, 0.35);
  background: linear-gradient(180deg, #42e269, #28c84f) !important;
  color: #fff;
  text-shadow: 0 1px 1px rgba(16, 91, 37, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 1px rgba(54, 214, 91, 0.32),
    0 0 22px rgba(54, 214, 91, 0.62),
    0 7px 15px rgba(32, 157, 65, 0.28);
  animation: language-active-glow 1.8s ease-in-out infinite alternate;
}

.language-toggle-options .btn.active:hover,
.language-toggle-options .btn[aria-pressed="true"]:hover {
  background: linear-gradient(180deg, #43df67, var(--setup-green, #36d65b));
  color: #fff;
  transform: translateY(-1px);
}

@keyframes language-active-glow {
  from {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      0 0 0 1px rgba(54, 214, 91, 0.26),
      0 0 14px rgba(54, 214, 91, 0.42),
      0 7px 15px rgba(32, 157, 65, 0.24);
  }
  to {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.48),
      0 0 0 1px rgba(54, 214, 91, 0.42),
      0 0 26px rgba(54, 214, 91, 0.72),
      0 8px 18px rgba(32, 157, 65, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-toggle-options .btn.active,
  .language-toggle-options .btn[aria-pressed="true"] {
    animation: none;
  }
}

.setup-activation-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Website project configurator */
.website-integration-step { display: grid; gap: 22px; min-width: 0; }
.client-adventure-app .setup-frame-body > .website-integration-step {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto 34px;
  border: 1px solid rgba(223, 229, 236, 0.92);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(17, 21, 32, 0.09);
  padding: 24px 34px 34px;
}
.website-step-copy { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid #d9e5dc; border-radius: 16px; background: linear-gradient(135deg, #f4fbf5, #fff); }
.website-step-copy h3, .website-step-copy p { margin: 0; }
.website-choice-group { border: 0; padding: 0; margin: 0; }
.website-choice-group legend { margin-bottom: 10px; font-weight: 700; }
.website-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.website-choice-grid label, .website-switches label, .website-consent { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1px solid #dfe8e1; border-radius: 12px; background: #fff; cursor: pointer; }
.website-choice-grid input, .website-switches input, .website-consent input { width: 18px; height: 18px; accent-color: #2fbd54; flex: 0 0 auto; }
.website-repeat-card { display: grid; gap: 16px; padding: 18px; margin: 0 0 14px; border: 1px solid #dfe7e1; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(22, 50, 31, .05); }
.website-repeat-card > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.website-repeat-card h3 { margin: 3px 0 0; }
.website-page-list, .website-unit-list, .website-content-pages { display: grid; gap: 10px; min-width: 0; }
.website-page-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(150px, 1fr) 150px auto auto 72px; gap: 10px; align-items: center; padding: 12px; border: 1px solid #e2e7e3; border-radius: 13px; background: #fafbfa; opacity: .72; }
.website-page-row.enabled { background: #fff; border-color: #bcd8c2; opacity: 1; }
.website-page-toggle { display: flex; gap: 10px; align-items: center; }
.website-page-toggle input { width: 20px; height: 20px; accent-color: #2fbd54; }
.website-page-toggle span { display: grid; }
.website-page-toggle small { color: #6a746d; }
.website-photo-section { display: grid; gap: 16px; }
.website-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.website-photo-grid > article { display: grid; gap: 8px; padding: 14px; border: 1px solid #dfe7e1; border-radius: 14px; background: #fff; }
.website-photo-grid .field { margin: 0; }
.website-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.website-scope-table { display: grid; overflow: hidden; border: 1px solid #dfe7e1; border-radius: 14px; background: #fff; }
.website-scope-table > div { display: grid; grid-template-columns: minmax(160px, 1.6fr) repeat(3, minmax(90px, .7fr)); gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid #edf1ee; }
.website-scope-table > div:first-child { border-top: 0; background: #f4f8f5; }
.website-review-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1b3925, #287a40); }
.website-review-hero h2, .website-review-hero p { margin: 4px 0 0; }
.website-review-hero > strong { font-size: clamp(34px, 6vw, 64px); }
.website-review-warnings { padding: 18px; border: 1px solid #eadfbd; border-radius: 14px; background: #fffaf0; }
.website-review-warnings h3 { margin-top: 0; }
.website-admin-brief, .website-admin-summary { min-width: 0; }
.website-admin-brief .website-step-copy { display: none; }
.website-admin-brief { display: grid; gap: 22px; }
.website-admin-data-review { margin: 0; }
.website-admin-review { display: grid; gap: 18px; min-width: 0; }
.website-section-intro { margin-bottom: 16px; }

@media (max-width: 1040px) {
  .website-page-row { grid-template-columns: 1fr 1fr; }
  .website-page-toggle { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .client-adventure-app .setup-frame-body > .website-integration-step {
    width: calc(100% - 28px);
    padding: 20px 16px 24px;
  }
  .website-page-row, .website-scope-table > div { grid-template-columns: 1fr; }
  .website-scope-table > div:first-child { display: none; }
  .website-review-hero { align-items: flex-start; flex-direction: column; }
  .website-choice-grid, .website-photo-grid, .website-switches { grid-template-columns: 1fr; }
  .website-repeat-card { padding: 14px; }
}
