:root {
  --ink: #09111f;
  --text: #17253a;
  --muted: #64748b;
  --line: #d8e3ee;
  --panel: #ffffff;
  --blue: #0077ff;
  --blue-strong: #0057d8;
  --blue-dark: #082a63;
  --cyan: #13b8ff;
  --mint: #18b981;
  --gold: #d89b2b;
  --success: #15803d;
  --danger: #be123c;
  --shadow-sm: 0 10px 24px rgba(15, 39, 71, 0.07);
  --shadow-md: 0 18px 46px rgba(15, 39, 71, 0.11);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  background: #eef5fb;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(19, 184, 255, 0.18), transparent 30rem),
    linear-gradient(135deg, #f7fbff 0%, #eef5fb 45%, #f8fbff 100%);
  min-height: 100vh;
}

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

:focus-visible {
  outline: 3px solid rgba(19, 184, 255, 0.35);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.client-body {
  background:
    linear-gradient(180deg, rgba(8, 20, 36, 0.035), transparent 260px),
    linear-gradient(135deg, #f5f9fd 0%, #ebf3fa 48%, #f8fbff 100%);
}

.admin-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(19, 184, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(24, 185, 129, 0.11), transparent 22rem),
    linear-gradient(180deg, #dce8f2 0%, #cfdeeb 46%, #e1ebf4 100%);
}

.client-portal {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 40px;
}

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

.client-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(6, 18, 34, 0.99), rgba(7, 25, 45, 0.98) 58%, rgba(6, 16, 30, 0.99));
  border-right: 1px solid rgba(126, 228, 255, 0.16);
  box-shadow: 16px 0 42px rgba(8, 30, 63, 0.12);
}

.client-sidebar-logo {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 8px 7px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.035));
}

.client-sidebar-logo img {
  display: block;
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.client-sidebar-nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.client-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  color: #c4d4e6;
  font-size: 14px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.028);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.client-nav-link i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  color: #7ee4ff;
}

.client-nav-link:hover {
  background: rgba(19, 184, 255, 0.12);
  border-color: rgba(19, 184, 255, 0.28);
  color: #ffffff;
  transform: translateX(2px);
}

.client-nav-link.active {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.95), rgba(19, 184, 255, 0.82));
  border-color: rgba(116, 207, 255, 0.74);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 119, 255, 0.28);
}

.client-nav-link.active i {
  color: #ffffff;
}

.client-sidebar-divider {
  height: 1px;
  margin: 7px 4px;
  background: rgba(126, 228, 255, 0.16);
}

.client-main-shell {
  min-width: 0;
  width: min(1320px, 100%);
  padding: 14px 22px 38px;
}

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

.admin-body .sidebar {
  gap: 18px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(6, 18, 34, 0.99), rgba(7, 25, 45, 0.98) 58%, rgba(6, 16, 30, 0.99));
  border-right-color: rgba(126, 228, 255, 0.16);
  box-shadow: 16px 0 42px rgba(8, 30, 63, 0.12);
}

.admin-body .logo {
  min-height: 64px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.035));
}

.admin-body .logo img {
  max-height: 48px;
}

.admin-body .content {
  min-height: 100vh;
  padding: 14px 22px 38px;
  background:
    radial-gradient(circle at 82% 0%, rgba(0, 119, 255, 0.09), transparent 26rem),
    linear-gradient(180deg, rgba(198, 216, 231, 0.78), rgba(221, 233, 243, 0.9));
}

.admin-body .topbar {
  min-height: 56px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .topbar h2 {
  font-size: 22px;
}

.admin-body .topbar .button,
.admin-body .topbar .logout-form button {
  min-height: 42px;
}

.client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-bottom: 10px;
}

.client-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.client-topbar .kicker {
  margin-bottom: 3px;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(199, 218, 235, 0.86);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(14, 28, 48, 0.98), rgba(8, 20, 36, 0.98));
  box-shadow: 0 14px 34px rgba(15, 39, 71, 0.12);
}

.portal-header img {
  width: min(260px, 62vw);
  height: 48px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

.sidebar {
  background:
    radial-gradient(circle at 28% 0%, rgba(19, 184, 255, 0.22), transparent 14rem),
    linear-gradient(180deg, rgba(7, 22, 44, 0.98) 0%, rgba(9, 27, 49, 0.98) 54%, rgba(7, 18, 32, 0.98) 100%);
  border-right: 1px solid rgba(126, 228, 255, 0.18);
  color: #d7e8fb;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 16px 0 46px rgba(8, 30, 63, 0.16);
}

.sidebar-brand-row {
  display: grid;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 8px 7px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 32, 52, 0.72), rgba(9, 18, 32, 0.62));
  box-shadow: none;
}

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

.admin-menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(126, 228, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.admin-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease, opacity 160ms ease;
}

nav {
  display: grid;
  gap: 8px;
}

.admin-nav {
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  padding-right: 2px;
}

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

.admin-nav-label {
  padding: 0 9px 2px;
  color: #7f9ab8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: #c4d4e6;
  font-weight: 750;
  min-height: 40px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.026);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

nav a i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  color: #7ee4ff;
}

nav a:hover {
  background: rgba(19, 184, 255, 0.12);
  border-color: rgba(19, 184, 255, 0.28);
  color: #ffffff;
  transform: translateX(2px);
}

nav a.active {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.95), rgba(19, 184, 255, 0.82));
  border-color: rgba(116, 207, 255, 0.74);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 119, 255, 0.28);
}

nav a.active i {
  color: #ffffff;
}

nav a i,
.button i,
.home-nav a i,
.public-footer a i {
  flex: 0 0 auto;
  font-size: 0.95em;
}

.content {
  width: min(1320px, 100%);
  padding: 22px 28px 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 218, 235, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(15, 39, 71, 0.07);
}

.admin-body .topbar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(199, 218, 235, 0.86);
}

.topbar > div {
  margin-right: auto;
}

.topbar h2,
h1,
h2,
p {
  margin: 0;
}

.topbar h2 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
}

.topbar .eyebrow {
  color: #4d6f91;
}

.eyebrow,
.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.hero-panel,
.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.admin-body .hero-panel,
.admin-body .panel,
.client-body .hero-panel,
.client-body .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  border-color: rgba(199, 218, 235, 0.9);
  box-shadow: 0 14px 38px rgba(15, 39, 71, 0.09);
}

.admin-body .hero-panel,
.admin-body .panel {
  border-color: rgba(174, 202, 224, 0.96);
  box-shadow:
    0 16px 44px rgba(15, 39, 71, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.66);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 28px;
  padding: 34px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border-color: rgba(199, 218, 235, 0.9);
  box-shadow: 0 16px 42px rgba(15, 39, 71, 0.1);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 119, 255, 0.055), transparent 42%),
    radial-gradient(circle at top right, rgba(19, 184, 255, 0.14), transparent 20rem);
}

.client-hero {
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 0.78fr);
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 12px;
  border-color: rgba(199, 218, 235, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
}

.client-hero .kicker {
  margin-bottom: 4px;
}

.client-hero h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.02;
}

.client-hero .lede {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.48;
}

.client-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.client-hero-actions .button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
}

.client-hero::before {
  background:
    linear-gradient(90deg, rgba(0, 87, 216, 0.055), transparent 46%),
    radial-gradient(circle at 92% 0%, rgba(19, 184, 255, 0.13), transparent 18rem),
    radial-gradient(circle at 78% 92%, rgba(0, 119, 255, 0.07), transparent 14rem);
}

.hero-panel > * { position: relative; }

.hero-panel h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}

.metrics-hero {
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 0.72fr);
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  min-height: 0;
}

.metrics-hero h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
}

.metrics-hero .lede {
  max-width: 620px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
  justify-content: end;
  justify-self: end;
  width: min(100%, 640px);
  padding: 8px;
  border: 1px solid rgba(199, 218, 235, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 254, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.metrics-grid .stat {
  aspect-ratio: auto;
  min-height: 56px;
  padding: 8px 9px;
}

.metrics-grid .stat span {
  font-size: 11px;
  line-height: 1.1;
  margin-bottom: 0;
}

.metrics-grid .stat strong {
  font-size: 20px;
  line-height: 1.05;
}

.metrics-grid .stat.stat-danger strong {
  color: var(--danger);
}

.metrics-grid .stat:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.admin-command-hero {
  grid-template-columns: minmax(420px, 1fr) minmax(390px, 0.78fr);
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 14px;
}

.admin-command-hero h1 {
  max-width: 820px;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.02;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

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

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.action-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-height: 136px;
  color: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.action-card h2 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.16;
}

.action-card p {
  font-size: 14px;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 119, 255, 0.28);
  box-shadow: 0 20px 48px rgba(15, 39, 71, 0.13);
}

.feature-icon,
.icon-stat i {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--blue-strong), var(--cyan));
  box-shadow: 0 12px 28px rgba(0, 119, 255, 0.24);
}

.icon-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
}

.icon-stat i {
  grid-row: 1 / span 2;
  font-size: 17px;
}

.icon-stat span,
.icon-stat strong {
  grid-column: 2;
}

.icon-stat strong {
  overflow-wrap: anywhere;
}

.icon-stat.stat-green i {
  background: linear-gradient(135deg, #06784f, var(--mint));
  box-shadow: 0 12px 28px rgba(24, 185, 129, 0.2);
}

.icon-stat.stat-gold i {
  background: linear-gradient(135deg, #a86300, var(--gold));
  box-shadow: 0 12px 28px rgba(216, 155, 43, 0.22);
}

.icon-stat.stat-danger i {
  background: linear-gradient(135deg, #9f1239, #fb7185);
  box-shadow: 0 12px 28px rgba(190, 18, 60, 0.18);
}

.icon-stat.stat-danger strong {
  color: var(--danger);
}

.daily-work-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-color: rgba(126, 228, 255, 0.22);
}

.daily-work-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
}

.daily-work-hero p:not(.kicker) {
  max-width: 820px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.daily-work-hero-aside {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: end;
  min-width: 128px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 192, 245, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.daily-work-hero-aside strong {
  color: var(--blue-strong);
  font-size: 38px;
  line-height: 0.9;
}

.daily-work-hero-aside small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.daily-work-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  max-width: 760px;
}

.daily-work-mode-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(126, 192, 245, 0.28);
  border-radius: 8px;
  color: #29445f;
  background: rgba(248, 251, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
}

.daily-work-mode-grid i {
  color: var(--blue);
}

.daily-work-alert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.72));
}

.daily-work-alert > i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
}

.daily-work-alert h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.daily-work-alert p {
  margin: 0;
  color: #5f4b2b;
  font-size: 13px;
  line-height: 1.45;
}

.daily-work-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.daily-work-picker {
  padding: 0;
  overflow: hidden;
}

.daily-work-picker-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(216, 227, 238, 0.78);
  background: rgba(248, 251, 255, 0.74);
}

.daily-work-picker-head h2 {
  margin: 0 0 3px;
  font-size: 17px;
}

.daily-work-picker-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.daily-work-options {
  display: grid;
}

.daily-work-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  color: inherit;
  border-bottom: 1px solid rgba(216, 227, 238, 0.72);
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.daily-work-option:last-child {
  border-bottom: 0;
}

.daily-work-option:hover {
  background: rgba(241, 248, 255, 0.9);
}

.daily-work-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.daily-work-check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border: 1px solid rgba(100, 116, 139, 0.38);
  border-radius: 7px;
  color: transparent;
  background: #ffffff;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.daily-work-option input:focus-visible + .daily-work-check {
  outline: 3px solid rgba(19, 184, 255, 0.35);
  outline-offset: 2px;
}

.daily-work-option input:checked + .daily-work-check {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-strong), var(--cyan));
  box-shadow: 0 8px 22px rgba(0, 119, 255, 0.22);
}

.daily-work-option:has(input:checked) {
  background: rgba(234, 246, 255, 0.94);
  box-shadow: inset 3px 0 0 var(--blue);
}

.daily-work-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.daily-work-title-row strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.daily-work-why {
  max-width: 760px;
  color: #40546d;
  font-size: 13px;
  line-height: 1.42;
}

.daily-work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  order: -1;
}

.daily-work-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 7px;
  color: #38506b;
  background: rgba(232, 241, 250, 0.86);
  font-size: 11px;
  font-weight: 850;
}

.daily-work-meta i {
  color: var(--blue);
  font-size: 10px;
}

.daily-work-lifecycle {
  text-transform: capitalize;
}

.daily-work-lifecycle-pending {
  color: #6b4b00;
  background: rgba(255, 245, 214, 0.9);
}

.daily-work-lifecycle-in_progress {
  color: #005a7a;
  background: rgba(216, 244, 255, 0.9);
}

.daily-work-lifecycle-done {
  color: #075f42;
  background: rgba(218, 249, 235, 0.9);
}

.daily-work-lifecycle-blocked {
  color: #9f1239;
  background: rgba(255, 228, 235, 0.9);
}

.daily-work-submit {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-color: rgba(126, 228, 255, 0.28);
}

.daily-work-submit h2 {
  margin: -4px 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.daily-work-submit p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.daily-work-submit .button {
  width: 100%;
}

.daily-work-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 192, 245, 0.32);
  border-radius: 8px;
  color: #29445f;
  background: rgba(248, 251, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.daily-work-select-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.daily-work-picks-list {
  display: grid;
}

.daily-work-pick-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(216, 227, 238, 0.72);
  background: rgba(255, 255, 255, 0.58);
}

.daily-work-pick-row:last-child {
  border-bottom: 0;
}

.daily-work-pick-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-strong), var(--cyan));
  box-shadow: 0 8px 22px rgba(0, 119, 255, 0.22);
}

.daily-work-empty {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.daily-work-empty i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(232, 241, 250, 0.86);
}

.daily-work-empty h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.daily-work-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.daily-work-receipt {
  display: grid;
  gap: 14px;
}

.daily-work-receipt ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-work-receipt li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.daily-work-receipt li strong {
  color: var(--blue-strong);
  font-size: 12px;
}

.daily-work-receipt li small {
  color: var(--muted);
  line-height: 1.4;
}

.daily-work-payload-preview {
  border-top: 1px solid rgba(216, 227, 238, 0.9);
  padding-top: 12px;
}

.daily-work-payload-preview summary {
  color: var(--blue-strong);
  font-weight: 900;
  cursor: pointer;
}

.daily-work-payload-preview pre {
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 8px;
  color: #dbeafe;
  background: #071527;
  font-size: 12px;
  line-height: 1.5;
}

.simple-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.simple-list li:last-child {
  border-bottom: 0;
}

.simple-list span {
  color: var(--muted);
}

.admin-split-grid {
  align-items: stretch;
}

.insight-panel {
  display: grid;
  align-content: start;
  gap: 13px;
}

.insight-list {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.insight-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 850;
}

.insight-list i {
  color: var(--success);
}

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 720px;
  margin-top: 12px;
}

.status-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.client-hero .status-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.client-dashboard {
  display: grid;
  gap: 12px;
}

.client-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(173, 201, 224, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
  box-shadow: 0 16px 38px rgba(15, 39, 71, 0.1);
  position: relative;
  overflow: hidden;
}

.client-command-center::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 5px solid var(--blue);
  pointer-events: none;
}

.client-command-center > * {
  position: relative;
}

.client-command-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.02;
}

.client-command-copy p:not(.kicker) {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

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

.client-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.client-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  min-height: 82px;
  padding: 11px;
  border: 1px solid rgba(188, 211, 230, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.9));
  box-shadow: 0 8px 22px rgba(15, 39, 71, 0.055);
}

.client-status-card > span {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(199, 218, 235, 0.9);
  border-radius: 8px;
  color: var(--blue);
  background: linear-gradient(180deg, #eff7ff, #e7f3ff);
}

.client-status-card div {
  min-width: 0;
}

.client-status-card small,
.client-status-card em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.client-status-card strong {
  display: block;
  overflow: hidden;
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 12px;
  align-items: start;
}

.client-dashboard-grid > .panel {
  border-color: rgba(188, 211, 230, 0.94);
  box-shadow: 0 12px 32px rgba(15, 39, 71, 0.075);
}

.client-control-panel,
.client-activity-panel {
  min-width: 0;
}

.client-control-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.client-control-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 227, 238, 0.82);
}

.client-control-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-control-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.client-insight-list,
.client-activity-list,
.client-management-links {
  display: grid;
  gap: 8px;
}

.client-insight-item,
.client-activity-item,
.client-management-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px;
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  transition: border-color 160ms ease, transform 160ms ease;
}

.client-activity-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.client-insight-item:hover,
.client-activity-item:hover,
.client-management-links a:hover {
  border-color: rgba(0, 119, 255, 0.32);
  transform: translateY(-1px);
}

.client-insight-item > span,
.client-activity-item > span,
.client-management-links a > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--blue);
  background: #edf7ff;
}

.client-insight-item strong,
.client-activity-item strong,
.client-management-links strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.client-insight-item small,
.client-activity-item small,
.client-management-links small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-management-links a > .fa-arrow-right {
  color: var(--muted);
  font-size: 12px;
}

.client-insight-item em {
  color: var(--blue-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.client-insight-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
  border-radius: 8px;
  color: var(--success);
  background: rgba(21, 128, 61, 0.08);
  font-weight: 850;
}

.client-workspace-sections {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

.client-workspace-heading {
  display: grid;
  gap: 4px;
  padding: 6px 2px 2px;
}

.client-workspace-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.client-workspace-heading p:not(.kicker) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.client-workspace-drawer {
  border: 1px solid rgba(188, 211, 230, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 39, 71, 0.055);
  overflow: hidden;
}

.client-workspace-drawer[open] {
  border-color: rgba(0, 119, 255, 0.28);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 39, 71, 0.1);
}

.client-workspace-drawer summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.78));
}

.client-workspace-drawer summary::-webkit-details-marker {
  display: none;
}

.client-drawer-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(199, 218, 235, 0.9);
  border-radius: 8px;
  color: var(--blue);
  background: #edf7ff;
}

.client-drawer-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-drawer-title strong {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.15;
}

.client-drawer-title small,
.client-drawer-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-drawer-meta {
  max-width: 220px;
  padding: 6px 9px;
  border: 1px solid rgba(216, 227, 238, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 850;
}

.client-drawer-chevron {
  color: var(--muted);
  transition: transform 160ms ease;
}

.client-workspace-drawer[open] .client-drawer-chevron {
  transform: rotate(180deg);
}

.client-drawer-body {
  padding: 14px;
  border-top: 1px solid rgba(216, 227, 238, 0.86);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.68), rgba(255, 255, 255, 0.94));
}

.client-drawer-body > .panel,
.client-drawer-body > section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-drawer-body .section-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(216, 227, 238, 0.86);
}

.client-drawer-body .client-account-details-form,
.client-drawer-body .client-file-upload {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(216, 227, 238, 0.9);
}

.client-quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.client-quick-strip a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(199, 218, 235, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(15, 39, 71, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.client-quick-strip a:hover {
  border-color: rgba(0, 119, 255, 0.36);
  background: #ffffff;
  transform: translateY(-1px);
}

.client-quick-strip i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.client-accordion-stack {
  display: grid;
  gap: 8px;
}

.client-portal-section {
  overflow: hidden;
  border: 1px solid rgba(199, 218, 235, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 39, 71, 0.07);
}

.client-portal-section[open] {
  background: #ffffff;
  border-color: rgba(0, 119, 255, 0.2);
  box-shadow: 0 18px 42px rgba(15, 39, 71, 0.1);
}

.client-portal-section summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

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

.client-section-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--blue);
  background: linear-gradient(180deg, #eff7ff, #e7f3ff);
  border: 1px solid rgba(199, 218, 235, 0.9);
}

.client-section-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-section-title strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.client-section-title small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-section-action {
  padding: 7px 10px;
  border: 1px solid rgba(199, 218, 235, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.client-section-chevron {
  color: var(--muted);
  transition: transform 160ms ease;
}

.client-portal-section[open] .client-section-chevron {
  transform: rotate(180deg);
}

.client-accordion-content {
  padding: 0 14px 16px 60px;
}

.client-accordion-content > .panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-accordion-content .section-head {
  margin-top: 2px;
}

.admin-account-workspace {
  margin-bottom: 14px;
}

.admin-account-section .client-accordion-content {
  padding-top: 2px;
}

.admin-account-section .stack-form {
  padding: 14px 0 2px;
}

.admin-user-management-content {
  padding-bottom: 18px;
}

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

.admin-user-create,
.admin-user-list {
  min-width: 0;
}

.compact-section-head {
  margin: 0 0 12px;
}

.compact-section-head h2 {
  font-size: 18px;
}

.compact-section-head p {
  font-size: 13px;
  line-height: 1.45;
}

.admin-user-management-content .accordion-form {
  grid-template-columns: 1fr;
}

.admin-user-management-content .phone-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.client-primary-grid,
.client-config-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.client-primary-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(260px, 0.72fr) minmax(320px, 0.88fr);
}

.client-traffic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.client-traffic-grid > .panel,
.client-traffic-panel {
  min-width: 0;
  overflow: hidden;
}

.client-traffic-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.client-traffic-table table {
  min-width: 0;
  table-layout: fixed;
}

.client-traffic-table th:last-child,
.client-traffic-table td:last-child {
  width: 110px;
  white-space: nowrap;
}

.client-traffic-table td,
.client-traffic-table th {
  overflow-wrap: anywhere;
}

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

.business-hours-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.72);
}

.compact-head {
  align-items: start;
  margin: 0;
}

.compact-head h3 {
  margin: 0;
  color: var(--blue-strong);
  font-size: 18px;
}

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

.business-hours-timezone {
  max-width: 360px;
}

.business-hours-grid {
  display: grid;
  gap: 10px;
}

.business-hours-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) repeat(2, minmax(120px, 1fr)) minmax(110px, 0.65fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(216, 227, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.business-hours-row > strong {
  align-self: center;
  color: var(--blue-strong);
  font-size: 13px;
}

.business-hours-time {
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.business-hours-time input {
  min-height: 40px;
}

.business-hours-closed {
  align-self: center;
  margin: 0;
  white-space: nowrap;
}

.client-status-strip .stat {
  min-height: 76px;
}

.client-action-panel {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.client-action-panel .button {
  justify-self: start;
}

.client-deployment-panel,
.client-account-details-panel,
.client-website-config-panel {
  display: grid;
  align-content: start;
}

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

.deployment-head h2 {
  margin-bottom: 3px;
}

.client-deployment-list {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid #e8eff6;
  border-radius: 8px;
  overflow: hidden;
}

.client-deployment-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid #e8eff6;
}

.client-deployment-list div:first-child {
  border-top: 0;
}

.client-deployment-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-deployment-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.client-files-panel {
  display: grid;
  gap: 14px;
}

.client-file-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.82);
}

.client-file-upload input[type="file"] {
  width: 100%;
}

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

.client-file-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e8eff6;
  border-radius: 8px;
  background: #ffffff;
}

.client-file-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(19, 184, 255, 0.12);
  color: var(--blue-strong);
}

.client-file-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-file-copy strong,
.client-file-copy span {
  overflow-wrap: anywhere;
}

.client-file-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.client-file-actions form {
  margin: 0;
}

.stat {
  border: 1px solid rgba(183, 213, 241, 0.82);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.94));
  box-shadow: 0 14px 36px rgba(15, 61, 106, 0.08);
}

.client-hero .stat {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  border-color: rgba(199, 218, 235, 0.9);
  padding: 11px 12px;
}

.client-hero .stat span {
  font-size: 11px;
  margin-bottom: 3px;
}

.client-hero .stat strong {
  font-size: 18px;
  line-height: 1.08;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.08;
}

.metrics-grid .icon-stat {
  min-height: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  border-color: rgba(126, 192, 245, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 255, 0.84));
  box-shadow: none;
}

.metrics-grid .icon-stat i {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  font-size: 11px;
  box-shadow: none;
}

.metrics-grid .icon-stat span {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin-bottom: 0;
  font-weight: 850;
  text-transform: uppercase;
}

.metrics-grid .icon-stat strong {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--ink);
}

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

.panel {
  padding: 18px;
  margin-bottom: 14px;
}

.account-page {
  font-size: 13px;
}

.account-page .panel {
  padding: 18px;
  margin-bottom: 14px;
}

.account-page .panel h1 {
  font-size: 22px;
  line-height: 1.12;
}

.account-page .panel h2 {
  font-size: 18px;
}

.account-page .panel p {
  font-size: 13px;
  line-height: 1.42;
}

.account-page .section-head {
  margin-bottom: 14px;
}

.account-page label {
  font-size: 12px;
}

.account-page input,
.account-page select,
.account-page textarea {
  padding: 9px 10px;
  font-size: 13px;
}

.account-page .button,
.account-page button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.collapsible-panel {
  padding: 0;
  overflow: hidden;
}

.account-page .collapsible-panel,
.account-page .account-table-panel {
  padding: 0;
}

.collapsible-summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.collapsible-summary h1 {
  margin-bottom: 4px;
}

.collapsible-summary::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--blue-strong);
  border-bottom: 2px solid var(--blue-strong);
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.collapsible-panel[open] .collapsible-summary::before {
  transform: rotate(45deg);
}

.collapsible-panel > form {
  padding: 0 18px 18px;
}

.account-overview {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.95fr);
  gap: 18px;
  align-items: center;
}

.account-overview h1 {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  margin-bottom: 8px;
}

.account-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.account-detail-actions .button {
  min-height: 34px;
  padding: 7px 10px;
}

.account-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-overview-stats .stat {
  min-height: 74px;
  padding: 10px 11px;
}

.account-overview-stats .stat span {
  font-size: 11px;
}

.account-overview-stats .stat strong {
  font-size: 18px;
  line-height: 1.1;
}

.account-config-grid {
  align-items: stretch;
}

.account-config-grid .collapsible-panel {
  min-height: 100%;
}

.client-body .panel {
  border-color: rgba(126, 228, 255, 0.18);
}

.panel h1 {
  color: var(--ink);
  font-size: 30px;
  margin-bottom: 6px;
}

.panel h2 {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 10px;
}

.panel p {
  color: var(--muted);
  line-height: 1.55;
}

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

.client-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.account-create-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-top: 0;
}

.account-create-form button {
  align-self: end;
}

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

.phone-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(216, 227, 238, 0.92);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(180deg, #fbfdff, #f6faff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.person-card-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.person-card-summary,
.profile-accordion {
  grid-column: 1 / -1;
}

.profile-accordion summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
}

.profile-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.client-body .phone-card {
  background:
    linear-gradient(180deg, #ffffff, #f5fbff);
  border-color: rgba(199, 218, 235, 0.92);
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 20, 38, 0.36);
  backdrop-filter: blur(8px);
}

.notice-modal {
  width: min(440px, 100%);
  border: 1px solid rgba(19, 184, 255, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
  padding: 24px;
}

.notice-modal h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.notice-modal p {
  color: #4f6479;
  margin-bottom: 18px;
}

.auth-login-modal {
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px;
}

.auth-login-logo {
  display: block;
  width: min(210px, 100%);
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.auth-login-modal h1 {
  font-size: 24px;
  margin-bottom: 14px;
}

.auth-login-modal .stack-form {
  gap: 11px;
}

.auth-login-modal input {
  padding: 10px 11px;
}

.auth-login-links {
  justify-content: space-between;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-strong);
}

.error-modal {
  border-color: #fecdd3;
}

label {
  display: grid;
  gap: 7px;
  color: #33445a;
  font-size: 13px;
  font-weight: 800;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
}

.check-row input[type="hidden"] {
  display: none;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(15, 39, 71, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12);
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

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

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

.client-account-details-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  align-items: end;
  margin-top: 14px;
}

.client-account-details-form .form-subgrid,
.client-account-details-form .check-row,
.client-account-details-form .wide-field,
.client-account-details-form .form-note,
.client-account-details-form .card-actions {
  grid-column: 1 / -1;
}

.client-account-details-form button {
  justify-self: start;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 12px 0 16px;
  border: 1px solid #e8eff6;
  border-radius: 8px;
  overflow: hidden;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid #e8eff6;
}

.detail-list div:first-child {
  border-top: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.client-message-table table {
  min-width: 900px;
}

.client-message-table .message-copy {
  max-width: 360px;
}

.message-request-cell {
  min-width: 320px;
}

.message-request-cell .message-copy {
  margin-top: 8px;
  color: #33465d;
  font-size: 13px;
  line-height: 1.45;
}

.google-business-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.google-business-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(126, 192, 245, 0.24);
  border-radius: 8px;
  background: #f8fbff;
}

.google-business-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  color: #1a73e8;
  box-shadow: 0 8px 18px rgba(15, 61, 106, 0.08);
}

.google-business-location {
  margin: 0;
}

.google-business-location strong,
.google-business-location span {
  display: block;
}

.google-business-location span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.google-business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.google-business-location-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.google-business-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.client-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 20, 38, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.client-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.client-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(19, 184, 255, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(16, 24, 40, 0.28);
  padding: 22px;
  transform: translateY(8px);
  transition: transform 160ms ease;
}

.client-modal-backdrop.is-open .client-modal {
  transform: translateY(0);
}

.client-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.client-modal-head h2 {
  margin: 0;
}

.client-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue-dark);
  box-shadow: none;
}

.site-editor-body {
  min-height: 100vh;
  overflow: hidden;
}

.site-editor-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 184, 255, 0.2), transparent 28rem),
    linear-gradient(180deg, #071426 0%, #0b1f38 100%);
  position: relative;
}

.site-editor-bar {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(126, 228, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 32, 52, 0.98), rgba(9, 18, 32, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.site-editor-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-editor-logo img {
  display: block;
  width: min(260px, 100%);
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.site-editor-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-editor-title .kicker {
  margin: 0;
}

.site-editor-title strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.site-editor-actions .button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
}

.site-editor-preview {
  min-height: 0;
  padding: 10px;
}

.site-editor-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.click-edit-panel {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 10;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(126, 228, 255, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(16, 33, 55, 0.98), rgba(7, 18, 33, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #eaf6ff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.click-edit-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.click-edit-panel.is-dragging {
  transition: none;
}

.click-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.click-edit-panel.is-dragging .click-edit-head {
  cursor: grabbing;
}

.click-edit-head button {
  cursor: pointer;
}

.click-edit-head strong {
  display: block;
  color: #ffffff;
  line-height: 1.2;
}

.click-edit-current {
  max-height: 116px;
  overflow-y: auto;
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #13b8ff;
  border-radius: 8px;
  background: rgba(19, 184, 255, 0.1);
  color: #dcefff;
  font-size: 13px;
  line-height: 1.45;
}

.click-edit-panel label {
  color: #b8c9dd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.click-edit-panel textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(126, 228, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #071426;
  font: inherit;
  line-height: 1.45;
}

.click-edit-panel textarea:focus {
  border-color: rgba(19, 184, 255, 0.76);
  box-shadow: 0 0 0 4px rgba(19, 184, 255, 0.16);
}

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

.click-edit-actions .button {
  flex: 1 1 150px;
  min-height: 40px;
}

.click-edit-status {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(126, 228, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #b8c9dd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.click-edit-status.error {
  border-color: rgba(190, 18, 60, 0.32);
  background: rgba(190, 18, 60, 0.14);
  color: #fecdd3;
}

.click-edit-status.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.site-editor-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(126, 228, 255, 0.3);
  border-radius: 999px;
  background: linear-gradient(135deg, #13b8ff, #006fe6);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 0 6px rgba(19, 184, 255, 0.13);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-editor-chat-toggle i {
  font-size: 19px;
  line-height: 1;
}

.site-editor-chat-toggle span {
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.site-editor-chat-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.92);
  visibility: hidden;
}

.site-editor-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 118px));
  padding: 12px;
  border: 1px solid rgba(126, 228, 255, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 30, 50, 0.98), rgba(7, 18, 33, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.site-editor-chat.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.site-editor-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.site-editor-chat-head strong {
  display: block;
  color: #ffffff;
  line-height: 1.2;
}

.site-editor-chat-head span:not(.badge) {
  display: block;
  margin-top: 4px;
  color: #b8c9dd;
  font-size: 12px;
  line-height: 1.35;
}

.site-editor-chat-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.site-editor-log {
  display: grid;
  gap: 8px;
  min-height: 178px;
  max-height: 318px;
  overflow-y: auto;
  padding: 2px;
}

.editor-message {
  justify-self: start;
  width: min(100%, 310px);
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(126, 228, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf6ff;
  font-size: 13px;
  line-height: 1.36;
}

.editor-message.outbound {
  justify-self: end;
  border-color: rgba(19, 184, 255, 0.28);
  background: rgba(19, 184, 255, 0.12);
}

.editor-message.reply {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.12);
}

.editor-message.error {
  border-color: rgba(190, 18, 60, 0.32);
  background: rgba(190, 18, 60, 0.14);
}

.editor-message.system {
  color: #b8c9dd;
}

.site-editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}

.site-editor-form textarea {
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  border-color: rgba(126, 228, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.site-editor-form button {
  min-width: 46px;
  width: 46px;
  padding: 0;
}

.site-editor-form button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  padding: 9px 13px;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(0, 119, 255, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover,
button:hover {
  box-shadow: 0 16px 28px rgba(0, 119, 255, 0.28);
  filter: saturate(1.08);
  transform: translateY(-1px);
}

.button:disabled,
button:disabled,
.button.disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.62;
  transform: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.96);
  color: #17324d;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(15, 39, 71, 0.06);
}

.button.secondary:hover {
  border-color: rgba(0, 119, 255, 0.28);
  color: var(--blue-strong);
}

.logout-form {
  margin: 0;
}

.logout-form button {
  width: auto;
}

button.danger {
  background: #fff1f2;
  color: var(--danger);
  border: 1px solid #fecdd3;
  box-shadow: none;
}

.publish-target-grid {
  display: grid;
  gap: 12px;
}

.publish-target-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(480px, 1.08fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.publish-target-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.publish-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e8f6ff;
  color: var(--blue-strong);
}

.publish-target-copy {
  min-width: 0;
}

.publish-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.publish-title-row h2 {
  margin: 0;
}

.publish-target-copy p {
  margin: 3px 0 4px;
}

.publish-target-ops {
  display: grid;
  gap: 10px;
}

.publish-target-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.publish-target-meta div {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e7eef6;
  border-radius: 8px;
  background: #f8fbff;
}

.publish-target-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.publish-target-meta dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-target-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.publish-target-actions form {
  margin: 0;
}

.publish-target-actions .button,
.publish-target-actions button {
  min-height: 36px;
  padding: 8px 10px;
}

.publish-target-actions button:disabled,
.publish-target-actions button:disabled:hover {
  border: 1px solid #dbe3ec;
  background: #eef2f6;
  color: #8a9aae;
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.78;
  transform: none;
}

.publish-target-actions button:disabled i {
  color: #9aa8b7;
}

.publish-target-actions button.danger:disabled,
.publish-target-actions button.danger:disabled:hover {
  border-color: #dbe3ec;
  background: #eef2f6;
  color: #8a9aae;
}

.publish-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.publish-warning i {
  margin-top: 2px;
}

.inline-form {
  margin-top: 8px;
}

.inline-form button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 7px;
}

.table-actions:first-child {
  margin-top: 0;
}

.table-action-form {
  margin: 0;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(0, 119, 255, 0.16);
  border-radius: 7px;
  background: #f5f9ff;
  color: var(--blue-strong);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-page .table-action,
.client-portal .table-action {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
  border-radius: 7px;
  box-shadow: none;
}

.table-action:hover {
  background: #e9f4ff;
  border-color: rgba(0, 119, 255, 0.3);
  color: var(--blue-dark);
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
}

.table-action i {
  font-size: 0.95em;
}

.danger-text {
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.command {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #071426, #0b2d60);
  color: #eaf6ff;
  overflow-x: auto;
  border: 1px solid rgba(19, 184, 255, 0.22);
}

.table-panel {
  overflow-x: auto;
  padding: 0;
  border-color: rgba(174, 202, 224, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.96));
  box-shadow:
    0 16px 44px rgba(15, 39, 71, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.66);
}

.account-table-panel {
  padding: 0;
}

.account-table-panel table {
  min-width: 940px;
}

.account-table-panel td,
.account-table-panel th {
  padding: 13px 14px;
}

.account-table-panel th {
  font-size: 10.5px;
}

.account-table-panel td {
  font-size: 13px;
  line-height: 1.42;
}

.account-table-panel .badge {
  font-size: 11px;
  padding: 4px 7px;
}

.table-panel .section-head {
  padding: 18px 18px 0;
}

.dense-table .section-head {
  margin-bottom: 14px;
  padding: 18px 18px 0;
}

.dense-table .section-head h1 {
  font-size: 24px;
}

.dense-table .section-head p {
  font-size: 14px;
}

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

th {
  color: #607086;
  background: #f7fbff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

td,
th {
  border-top: 1px solid #e8eff6;
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
}

thead th {
  border-top: 0;
  border-bottom: 1px solid #dfe9f3;
}

td {
  color: #25364a;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.72);
}

tbody tr:nth-child(even) td {
  background: rgba(248, 251, 255, 0.82);
}

tbody tr:hover td,
tbody tr:hover:nth-child(even) td {
  background: #f7fbff;
}

td strong,
.account-name-link {
  color: var(--ink);
  font-weight: 900;
}

.table-subline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-name-cell {
  min-width: 220px;
}

.account-name-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
}

.contact-cell {
  min-width: 220px;
}

.table-date-cell {
  min-width: 120px;
  white-space: nowrap;
}

.dense-table table {
  min-width: 980px;
}

.dense-table th {
  font-size: 10.5px;
}

.dense-table td,
.dense-table th {
  padding: 10px 11px;
}

.dense-table td {
  font-size: 12px;
  line-height: 1.4;
}

.dense-table .badge {
  font-size: 11px;
  padding: 4px 7px;
}

.deployment-monitor-table table {
  min-width: 1180px;
}

.deployment-url-cell {
  max-width: 210px;
  overflow-wrap: anywhere;
}

.onboarding-table-panel table {
  min-width: 1120px;
}

.onboarding-table-panel th {
  padding: 11px 13px;
  font-size: 11px;
}

.onboarding-table-panel td {
  padding: 13px;
  font-size: 13px;
  line-height: 1.42;
  vertical-align: top;
}

.onboarding-table-panel tbody tr:hover td {
  background: #f9fcff;
}

.onboarding-request-cell {
  width: 28%;
}

.onboarding-website-cell {
  width: 20%;
}

.onboarding-brief-cell {
  width: 24%;
}

.onboarding-preview-cell {
  width: 22%;
}

.onboarding-submitted-cell {
  width: 6%;
  white-space: nowrap;
}

.onboarding-primary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.onboarding-primary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.onboarding-meta-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.onboarding-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  color: var(--text);
  font-size: 12px;
}

.onboarding-contact > span:first-child {
  flex-basis: 100%;
  font-weight: 850;
}

.onboarding-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.onboarding-website-cell strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.onboarding-brief-cell p {
  display: -webkit-box;
  margin: 0;
  color: #33465d;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.onboarding-preview-cell > .table-link,
.onboarding-preview-cell > .badge,
.onboarding-preview-cell > .muted {
  margin-bottom: 5px;
}

.onboarding-actions {
  gap: 5px;
  margin-top: 10px;
}

.onboarding-actions .table-action {
  min-height: 27px;
  padding: 5px 7px;
}

.primary-table-action {
  border-color: rgba(0, 119, 255, 0.28);
  background: #eaf5ff;
  color: var(--blue-dark);
}

.message-copy {
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  background: #e5f3ff;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 8px;
  border: 1px solid rgba(0, 119, 255, 0.12);
}

.icon-badge i {
  font-size: 0.9em;
}

.muted,
.muted-badge {
  color: var(--muted);
}

.muted-badge {
  background: #edf2f7;
}

.success-badge {
  background: #dcfce7;
  color: var(--success);
}

.danger-badge {
  background: #fff1f2;
  color: var(--danger);
}

.gold-badge {
  background: #fef3c7;
  color: #92400e;
}

.payload-details {
  margin-top: 0.55rem;
}

.payload-details summary {
  cursor: pointer;
  color: var(--blue-strong);
  font-weight: 800;
}

.payload-details pre {
  max-width: 38rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.85rem;
  border-radius: 0.8rem;
  background: #0f172a;
  color: #e5eefb;
  font-size: 0.78rem;
  line-height: 1.45;
}

.table-link {
  color: var(--blue-strong);
  font-weight: 850;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.home-body {
  background:
    linear-gradient(180deg, #071426 0%, #0a1c33 540px, #f6fbff 541px, #eef4f8 100%);
}

.home-page {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 8px 0 56px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
  padding: 5px 12px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18, 32, 52, 0.96), rgba(9, 18, 32, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.home-logo {
  display: flex;
  align-items: center;
  width: min(300px, 62vw);
  height: 52px;
}

.home-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
}

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

.home-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7e8fb;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
}

.home-nav a:not(.button) {
  padding: 9px 11px;
}

.home-nav a:hover {
  color: #ffffff;
  background: rgba(126, 228, 255, 0.08);
  border-color: rgba(126, 228, 255, 0.16);
  transform: translateY(-1px);
}

.home-nav .button.secondary {
  min-height: 38px;
  border-color: rgba(126, 228, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.home-nav .button.secondary:hover {
  background: #ffffff;
  color: var(--ink);
}

.home-menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(126, 228, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.home-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease, opacity 160ms ease;
}

.home-intro {
  width: min(1040px, 100%);
  margin: 8px auto 0;
  padding: 18px 28px 6px;
  text-align: center;
  color: #ffffff;
}

.home-intro h1 {
  margin: 0 auto;
  max-width: 1120px;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-intro p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #bcd0e6;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.48;
}

.home-hero {
  display: grid;
  place-items: center;
  width: 100vw;
  height: auto;
  min-height: 0;
  margin: 0 calc(50% - 50vw) 24px;
  padding: 22px 24px 34px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 51, 0.98) 0%, rgba(10, 28, 51, 0.9) 20%, #f8fbff 66%, #ffffff 100%);
  box-shadow: none;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(19, 184, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 84% 18%, rgba(0, 119, 255, 0.1), transparent 26rem);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  pointer-events: none;
  background: rgba(216, 227, 238, 0.88);
}

.home-hero > * {
  position: relative;
  z-index: 2;
}

.hero-video-frame {
  width: min(1420px, calc(100vw - 64px));
  min-height: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 217, 232, 0.84);
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    0 30px 80px rgba(15, 39, 71, 0.16),
    0 0 0 8px rgba(255, 255, 255, 0.48);
}

.hero-image-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
  color: inherit;
  cursor: pointer;
  white-space: normal;
  transform: none;
  text-align: left;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-image-button:hover {
  transform: translateY(-2px);
  filter: none;
  border-color: rgba(0, 119, 255, 0.42);
  box-shadow:
    0 30px 78px rgba(15, 39, 71, 0.18),
    0 0 0 8px rgba(255, 255, 255, 0.54);
}

.hero-image-button:focus-visible {
  outline: 4px solid rgba(126, 228, 255, 0.74);
  outline-offset: 6px;
}

.hero-image-button.is-updated {
  border-color: rgba(0, 119, 255, 0.46);
}

.hero-demo-status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(0, 119, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 39, 71, 0.11);
}

.hero-image-button.is-updated .hero-demo-status {
  border-color: rgba(21, 128, 61, 0.22);
  color: var(--success);
  background: rgba(240, 253, 244, 0.88);
}

.hero-image-stage {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1672 / 941;
  border: 0;
  border-radius: inherit;
  background: #ffffff;
}

.hero-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hero-after {
  opacity: 0;
}

.hero-image-button.is-updated .hero-before {
  opacity: 0;
}

.hero-image-button.is-updated .hero-after {
  opacity: 1;
}

.home-hero h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-hero .kicker {
  color: #7ee4ff;
}

.home-hero .lede {
  max-width: 660px;
  color: #c8d6e6;
  font-size: 19px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(126, 228, 255, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-product {
  position: relative;
  min-height: 560px;
}

.sms-demo {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 74px;
  right: 0;
  width: min(78%, 374px);
  z-index: 2;
}

.phone-shell {
  width: min(100%, 360px);
  border: 1px solid rgba(19, 184, 255, 0.24);
  border-radius: 28px;
  padding: 14px;
  background:
    linear-gradient(180deg, #07162c 0%, #0a2146 54%, #071426 100%);
  box-shadow: 0 24px 70px rgba(8, 30, 63, 0.24);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 16px;
  color: #d7e8fb;
  font-size: 13px;
  font-weight: 850;
}

.phone-top strong {
  color: #7ee4ff;
}

.message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  color: #eaf6ff;
  line-height: 1.35;
  font-size: 14px;
}

.message.outbound {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.message.inbound {
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(0, 119, 255, 0.25);
}

.message.system {
  color: #b8c9dd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(19, 184, 255, 0.16);
}

.message.success {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.28);
}

.live-card,
.audit-card {
  position: absolute;
  border: 1px solid rgba(0, 119, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.94));
  box-shadow: 0 24px 60px rgba(15, 39, 71, 0.14);
}

.live-card {
  top: 18px;
  left: 0;
  width: min(78%, 386px);
  padding: 18px;
  z-index: 1;
}

.live-card-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  color: #425a73;
  font-size: 13px;
}

.live-card-head strong {
  color: var(--ink);
}

.live-card-head span:last-child {
  text-align: right;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.site-preview {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.site-preview div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(216, 227, 238, 0.96);
  border-radius: 8px;
  background: #ffffff;
}

.site-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-preview strong {
  color: var(--ink);
  font-size: 18px;
}

.audit-card {
  right: 0;
  bottom: 30px;
  width: min(74%, 338px);
  padding: 16px;
  z-index: 3;
}

.audit-card span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.audit-card strong {
  color: var(--ink);
  font-size: 18px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(185, 203, 219, 0.72);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 39, 71, 0.08);
}

.metric-strip div {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 20px;
  background: #ffffff;
  border-right: 1px solid #e3ebf2;
}

.metric-strip i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(0, 119, 255, 0.09);
  color: var(--blue-strong);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  color: var(--ink);
  font-size: 24px;
}

.metric-strip span {
  color: var(--muted);
  line-height: 1.4;
}

.home-section {
  padding: 42px 0 0;
}

.home-section h2 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.example-grid .panel {
  margin-bottom: 0;
  min-height: 246px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.12), rgba(19, 184, 255, 0.12));
  color: var(--blue-strong);
}

.example-grid .panel:hover {
  border-color: rgba(0, 119, 255, 0.22);
  box-shadow: 0 20px 48px rgba(15, 39, 71, 0.1);
  transform: translateY(-2px);
}

.panel h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  margin-top: 40px;
  padding: 38px;
  border: 1px solid rgba(185, 203, 219, 0.72);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 39, 71, 0.08);
}

.workflow-section h2,
.home-cta h2 {
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  margin: 0;
}

.workflow-section > div > p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.workflow-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid rgba(216, 227, 238, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.workflow-list span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.workflow-list span i {
  font-size: 16px;
}

.workflow-list strong {
  color: var(--ink);
  font-size: 18px;
}

.workflow-list p {
  color: var(--muted);
  line-height: 1.45;
}

.security-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 24px;
  margin-top: 34px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(19, 184, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #07162c 0%, #0a2146 58%, #0b2d60 100%);
  box-shadow: 0 30px 80px rgba(8, 30, 63, 0.2);
}

.security-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 10%, rgba(19, 184, 255, 0.32), transparent 22rem),
    linear-gradient(90deg, rgba(0, 119, 255, 0.16), transparent 58%);
}

.security-showcase > * {
  position: relative;
}

.security-lead {
  align-self: center;
}

.security-lead .kicker {
  color: #7ee4ff;
}

.security-lead h2 {
  max-width: 700px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.02;
}

.security-lead p:not(.kicker) {
  max-width: 680px;
  margin-top: 18px;
  color: #bfd2e7;
  font-size: 18px;
  line-height: 1.58;
}

.verification-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(126, 228, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.verification-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 8px;
  color: #ffffff;
}

.verification-head i {
  color: #7ee4ff;
}

.verification-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(126, 228, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.verification-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #7ee4ff;
  font-size: 12px;
  font-weight: 850;
}

.verification-step span i {
  font-size: 14px;
}

.verification-step.complete span {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.verification-step strong {
  color: #ffffff;
}

.verification-step p {
  margin-top: 4px;
  color: #bfd2e7;
  line-height: 1.42;
}

.security-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.security-controls article {
  padding: 18px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.security-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(126, 228, 255, 0.12);
  color: #7ee4ff;
}

.security-controls strong {
  color: #ffffff;
  font-size: 17px;
}

.security-controls p {
  margin-top: 7px;
  color: #bfd2e7;
  line-height: 1.45;
}

.home-cta {
  display: grid;
  gap: 18px;
  justify-items: start;
  margin-top: 18px;
  padding: 34px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(19, 184, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #07162c 0%, #0a2146 58%, #0b2d60 100%);
  box-shadow: 0 26px 70px rgba(8, 30, 63, 0.2);
}

.home-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 12%, rgba(19, 184, 255, 0.32), transparent 20rem),
    linear-gradient(90deg, rgba(0, 119, 255, 0.18), transparent 60%);
}

.home-cta > * {
  position: relative;
}

.home-cta h2 {
  max-width: 760px;
  color: #ffffff;
}

.home-cta .kicker {
  color: #7ee4ff;
}

.public-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 20, 38, 0.96);
  color: #d7e8fb;
}

.public-footer strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.public-footer p {
  max-width: 660px;
  color: #b7c7d9;
  font-size: 13px;
  line-height: 1.5;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.public-footer a {
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 850;
}

.policy-body {
  min-height: 100vh;
}

.policy-page {
  max-width: 980px;
}

.policy-hero {
  margin-bottom: 18px;
  padding: 52px;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.98), rgba(11, 31, 56, 0.94)),
    radial-gradient(circle at 90% 10%, rgba(19, 184, 255, 0.22), transparent 18rem);
  color: #ffffff;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.22);
}

.policy-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
}

.policy-hero .lede {
  color: #c8d6e6;
}

.policy-updated {
  margin-top: 18px;
  color: #7ee4ff;
  font-size: 13px;
  font-weight: 850;
}

.policy-grid {
  display: grid;
  gap: 12px;
}

.policy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 39, 71, 0.08);
}

.policy-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.policy-card p {
  color: #52657c;
  line-height: 1.65;
}

.product-body {
  min-height: 100vh;
}

.product-page {
  max-width: 1180px;
}

.product-hero {
  margin-bottom: 18px;
  padding: 58px 52px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.98), rgba(9, 36, 68, 0.94)),
    radial-gradient(circle at 86% 10%, rgba(126, 228, 255, 0.2), transparent 18rem);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.22);
}

.product-hero h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.98;
}

.product-hero .lede {
  max-width: 760px;
  color: #c8d6e6;
}

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

.product-card {
  min-height: 510px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 22px;
  padding: 28px;
  border: 1px solid #d8e5f0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 48px rgba(15, 39, 71, 0.08);
}

.product-card.featured-product {
  border-color: rgba(0, 119, 255, 0.26);
  background:
    linear-gradient(180deg, #ffffff 0%, #edf7ff 100%);
  box-shadow: 0 24px 68px rgba(0, 87, 216, 0.14);
}

.product-card-top h2 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 32px;
}

.product-card-top p:not(.kicker) {
  color: #52657c;
  line-height: 1.55;
}

.product-price {
  padding: 18px 0;
  border-top: 1px solid #e2ebf4;
  border-bottom: 1px solid #e2ebf4;
}

.product-price strong {
  display: block;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
}

.product-price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 850;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #25364a;
  font-weight: 750;
  line-height: 1.35;
}

.product-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(19, 184, 255, 0.13);
}

.product-note {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 20, 38, 0.96);
  color: #d7e8fb;
}

.product-note strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 20px;
}

.product-note p {
  max-width: 780px;
  color: #b7c7d9;
  line-height: 1.55;
}

.onboarding-body {
  min-height: 100vh;
}

.onboarding-page {
  max-width: 1180px;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-bottom: 18px;
  padding: 52px;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.98), rgba(9, 36, 68, 0.94)),
    radial-gradient(circle at 86% 10%, rgba(126, 228, 255, 0.18), transparent 18rem);
  color: #ffffff;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.22);
}

.onboarding-hero h1,
.onboarding-thanks h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
}

.onboarding-hero .lede,
.onboarding-thanks .lede {
  max-width: 720px;
  color: #c8d6e6;
  line-height: 1.58;
}

.onboarding-summary {
  align-self: end;
  display: grid;
  gap: 10px;
}

.onboarding-summary div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-summary i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(126, 228, 255, 0.13);
  color: #7ee4ff;
}

.onboarding-summary span {
  color: #a9bfd6;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.onboarding-summary strong {
  color: #ffffff;
  font-size: 15px;
}

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

.onboarding-section {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid #d8e5f0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 39, 71, 0.08);
}

.onboarding-section-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.onboarding-section-head span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0, 119, 255, 0.22);
}

.onboarding-section h2 {
  color: var(--ink);
  font-size: 28px;
}

.onboarding-section p,
.onboarding-submit p {
  color: #52657c;
  line-height: 1.55;
}

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

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #d8e5f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.choice-card span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e8f6ff;
  color: var(--blue-strong);
}

.choice-card strong {
  padding-right: 28px;
  color: var(--ink);
  font-size: 17px;
}

.choice-card small {
  color: #52657c;
  line-height: 1.45;
}

.choice-card:has(input:checked) {
  border-color: rgba(0, 119, 255, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #edf7ff 100%);
  box-shadow: 0 16px 38px rgba(0, 119, 255, 0.12);
}

.onboarding-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.onboarding-submit p {
  max-width: 640px;
  font-size: 13px;
  font-weight: 750;
}

.onboarding-process {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 20, 38, 0.96);
  color: #d7e8fb;
}

.onboarding-process h2 {
  color: #ffffff;
  font-size: 26px;
}

.onboarding-process article {
  padding: 16px;
  border: 1px solid rgba(126, 228, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.onboarding-process strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
}

.onboarding-process p {
  color: #b7c7d9;
  font-size: 13px;
  line-height: 1.45;
}

.onboarding-thanks {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin: 18px 0;
  padding: 56px;
  border: 1px solid rgba(126, 228, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 20, 38, 0.98), rgba(9, 36, 68, 0.94)),
    radial-gradient(circle at 86% 10%, rgba(126, 228, 255, 0.18), transparent 18rem);
  color: #ffffff;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.22);
}

.onboarding-thanks > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(21, 128, 61, 0.22);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.32);
}

img,
video,
canvas {
  max-width: 100%;
}

.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-page {
  min-height: 100vh;
  position: relative;
}

.auth-stage {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  padding: 48px 0;
  color: #d7e8fb;
}

.auth-stage img {
  width: min(360px, 78vw);
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.auth-stage h1 {
  max-width: 640px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
}

.auth-stage p:not(.kicker) {
  max-width: 560px;
  margin-top: 14px;
  color: #bfd2e7;
  font-size: 18px;
  line-height: 1.55;
}

.auth-backdrop {
  background: rgba(7, 20, 38, 0.58);
}

.auth-modal {
  width: min(430px, 100%);
}

.auth-modal > img {
  display: block;
  width: min(250px, 100%);
  margin-bottom: 16px;
}

.auth-modal .kicker {
  margin-bottom: 5px;
}

.auth-modal h1 {
  color: var(--ink);
}

.auth-alert {
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff1f2;
  color: var(--danger) !important;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-weight: 800;
  color: var(--blue-strong);
}

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

  .admin-body .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(126, 228, 255, 0.18);
  }

  .admin-body .sidebar-brand-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .admin-body .logo {
    min-height: 46px;
    width: min(238px, 68vw);
    padding: 0;
    border: 0;
    background: transparent;
  }

  .admin-body .logo img {
    max-height: 44px;
  }

  .admin-body .admin-menu-toggle {
    display: inline-grid;
    grid-template-columns: 18px auto;
    align-content: center;
    align-items: center;
    column-gap: 10px;
    gap: 5px;
    width: auto;
    min-width: 92px;
    padding: 0 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .admin-body .admin-menu-toggle span {
    grid-column: 1;
  }

  .admin-body .admin-menu-toggle::after {
    content: "Menu";
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
  }

  .admin-body .sidebar.admin-nav-open .admin-menu-toggle::after {
    content: "Close";
  }

  .admin-body .admin-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: calc(100vh - 76px);
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(126, 228, 255, 0.16);
    border-radius: 8px;
    background: rgba(4, 15, 29, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .admin-body .admin-nav-group {
    display: grid;
    grid-template-columns: 112px repeat(auto-fit, minmax(132px, 1fr));
    gap: 7px;
    align-items: stretch;
    padding: 8px;
    border: 1px solid rgba(126, 228, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .admin-body .admin-nav-label {
    display: flex;
    align-items: center;
    padding: 9px 8px;
    color: #8ab2d7;
  }

  .admin-body .admin-nav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .admin-body .sidebar.admin-nav-open .admin-nav {
    display: grid;
  }

  .admin-body .sidebar.admin-nav-open .admin-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .admin-body .sidebar.admin-nav-open .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .admin-body .sidebar.admin-nav-open .admin-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .admin-body .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-body .hero-panel,
  .admin-body .admin-command-hero,
  .admin-body .metrics-hero,
  .admin-body .account-overview {
    grid-template-columns: 1fr;
  }

  .admin-body .dashboard-stat-stack,
  .admin-body .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .metrics-grid {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 5px 9px;
    border-right: 0;
    border-bottom: 1px solid rgba(126, 228, 255, 0.18);
    background:
      radial-gradient(circle at 18% 0%, rgba(19, 184, 255, 0.2), transparent 18rem),
      linear-gradient(180deg, rgba(7, 22, 44, 0.98) 0%, rgba(9, 18, 32, 0.98) 100%);
  }

  .sidebar-brand-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .logo {
    min-height: 44px;
    width: min(238px, 68vw);
    padding: 0;
    border: 0;
    background: transparent;
  }

  .logo img {
    max-height: 44px;
  }

  .admin-menu-toggle {
    display: inline-grid;
    align-content: center;
    gap: 5px;
  }

  .admin-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(126, 228, 255, 0.14);
  }

  .admin-nav-group {
    gap: 7px;
  }

  .sidebar.admin-nav-open .admin-nav {
    display: grid;
  }

  .sidebar.admin-nav-open .admin-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .sidebar.admin-nav-open .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .sidebar.admin-nav-open .admin-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav:not(.home-nav):not(.admin-nav) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nav a {
    min-height: 42px;
    text-align: center;
    padding: 10px 12px;
  }

  .content {
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .admin-body .topbar {
    position: static;
  }

  .portal-header {
    align-items: center;
    flex-direction: row;
    padding: 5px 8px;
  }

  .portal-header img {
    width: min(238px, 68vw);
    height: 44px;
    max-height: 44px;
  }

  .site-editor-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .site-editor-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .site-editor-logo img {
    height: 42px;
  }

  .site-editor-actions {
    justify-content: stretch;
  }

  .site-editor-actions .button {
    flex: 1 1 150px;
  }

  .site-editor-chat-toggle {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    min-height: 58px;
  }

  .site-editor-chat {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: min(74vh, 560px);
  }

  .click-edit-panel {
    top: auto;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: min(74vh, 560px);
  }

  .click-edit-actions .button {
    flex-basis: 100%;
  }

  .site-editor-log {
    min-height: 150px;
    max-height: 250px;
  }

  .site-editor-form {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .google-business-toggles {
    grid-template-columns: 1fr;
  }

  .client-modal {
    padding: 18px;
  }

  .hero-panel,
  .admin-command-hero,
  .home-hero,
  .onboarding-hero,
  .onboarding-process,
  .workflow-section,
  .security-showcase,
  .metric-strip,
  .security-controls,
  .grid.two,
  .admin-action-grid,
  .account-overview,
  .example-grid,
  .choice-grid,
  .client-form,
  .account-create-form,
  .client-app-shell,
  .client-command-center,
  .client-status-grid,
  .client-dashboard-grid,
  .client-quick-strip,
  .client-primary-grid,
  .client-traffic-grid,
  .client-config-grid,
  .admin-user-management-grid,
  .phone-card,
  .accordion-form,
  .client-account-details-form,
  .form-subgrid {
    grid-template-columns: 1fr;
  }

  .client-hero {
    gap: 14px;
    padding: 18px;
  }

  .client-sidebar {
    position: static;
    height: auto;
    padding: 12px;
  }

  .client-sidebar-logo {
    min-height: 54px;
  }

  .client-sidebar-logo img {
    max-height: 40px;
  }

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

  .client-sidebar-divider {
    display: none;
  }

  .client-main-shell {
    padding: 14px 14px 36px;
  }

  .client-topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

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

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

  .client-status-card:last-child {
    grid-column: 1 / -1;
  }

  .client-control-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .client-hero .status-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-portal-section summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .client-section-action {
    display: none;
  }

  .client-accordion-content {
    padding: 0 12px 14px;
  }

  .dashboard-stat-stack,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    justify-self: stretch;
    width: 100%;
  }

  .metrics-grid .stat:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .action-card {
    min-height: 0;
  }

  .daily-work-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .daily-work-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .daily-work-mode-grid {
    grid-template-columns: 1fr;
  }

  .daily-work-form {
    grid-template-columns: 1fr;
  }

  .business-hours-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .daily-work-hero-aside {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    justify-items: start;
    gap: 8px;
  }

  .daily-work-hero-aside strong {
    font-size: 34px;
  }

  .daily-work-option {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 15px;
  }

  .daily-work-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-work-submit {
    position: static;
  }

  .daily-work-submit .button {
    width: 100%;
  }

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

  .collapsible-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .collapsible-summary::before {
    position: absolute;
    right: 18px;
    top: 22px;
  }

  .home-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
  }

  .home-header:has(.home-menu-toggle) .home-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(126, 228, 255, 0.14);
  }

  .home-logo {
    width: min(238px, 68vw);
    height: 44px;
  }

  .home-menu-toggle {
    display: inline-grid;
    align-content: center;
    gap: 5px;
  }

  .home-header.nav-open:has(.home-menu-toggle) .home-nav {
    display: grid;
  }

  .home-header.nav-open .home-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .home-header.nav-open .home-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .home-header.nav-open .home-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .home-nav a,
  .home-nav a:not(.button),
  .home-nav .button.secondary {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 15px;
  }

  .policy-hero,
  .product-hero,
  .onboarding-hero,
  .onboarding-thanks {
    padding: 30px 20px;
  }

  .policy-hero h1,
  .product-hero h1,
  .onboarding-hero h1,
  .onboarding-thanks h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.03;
  }

  .policy-card,
  .product-card,
  .product-note,
  .onboarding-section,
  .onboarding-process {
    padding: 20px;
  }

  .product-card {
    min-height: auto;
  }

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

  .onboarding-submit {
    align-items: stretch;
  }

  .onboarding-submit button {
    width: 100%;
  }

  .client-file-upload,
  .client-file-row {
    grid-template-columns: 1fr;
  }

  .client-file-icon {
    display: none;
  }

  .client-file-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .client-file-actions .button,
  .client-file-actions button {
    width: 100%;
  }

  .table-panel,
  .dense-table,
  .account-table-panel {
    max-width: 100%;
  }

  .table-panel .section-head,
  .dense-table .section-head {
    padding: 16px 16px 0;
  }

  table {
    min-width: 680px;
  }

  .dense-table table,
  .client-message-table table {
    min-width: 820px;
  }

  .topbar .button,
  .topbar .logout-form,
  .portal-header .logout-form {
    width: auto;
  }

  .home-intro {
    margin-top: 8px;
    padding: 10px 4px 8px;
    text-align: left;
  }

  .home-intro h1 {
    max-width: 480px;
    font-size: clamp(28px, 7.4vw, 34px);
    line-height: 1.06;
  }

  .home-intro p {
    max-width: 520px;
    margin-top: 10px;
    color: #c8d6e6;
    font-size: 15px;
    line-height: 1.44;
  }

  .home-hero {
    height: auto;
    margin-bottom: 16px;
    padding: 10px 10px 18px;
  }

  .home-hero::before {
    background:
      radial-gradient(circle at 15% 20%, rgba(19, 184, 255, 0.14), transparent 18rem),
      radial-gradient(circle at 86% 18%, rgba(0, 119, 255, 0.1), transparent 18rem);
  }

  .hero-video-frame {
    width: min(100%, calc(100vw - 24px));
    box-shadow:
      0 18px 48px rgba(15, 39, 71, 0.13),
      0 0 0 4px rgba(255, 255, 255, 0.54);
  }

  .hero-demo-status {
    top: 9px;
    right: 9px;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .hero-image-stage {
    width: 100%;
  }

  .hero-backdrop {
    object-fit: contain;
    background: #ffffff;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .hero-product {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .sms-demo,
  .live-card,
  .audit-card {
    position: static;
    width: 100%;
  }

  .phone-shell,
  .live-card,
  .audit-card {
    width: 100%;
  }

  .metric-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e3ebf2;
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .workflow-section,
  .security-showcase,
  .home-cta {
    padding: 26px 20px;
  }

  .public-footer {
    flex-direction: column;
  }

  .public-footer nav {
    justify-content: flex-start;
  }

  .policy-hero {
    padding: 32px 24px;
  }

  .metrics-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

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

  .metrics-grid .stat {
    aspect-ratio: auto;
    min-height: 82px;
  }

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

  .product-hero {
    padding: 34px 24px;
  }

  .onboarding-summary {
    align-self: stretch;
  }

  .product-card {
    min-height: auto;
  }

  .auth-stage {
    justify-items: center;
    text-align: center;
  }

  .auth-links {
    flex-direction: column;
  }

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

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

  .publish-target-actions .button,
  .publish-target-actions button {
    width: 100%;
  }

  .publish-target-actions form {
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  .admin-body {
    background: linear-gradient(180deg, #d4e1ec 0%, #c8d8e6 100%);
  }

  .admin-body .sidebar {
    padding: 6px 8px;
  }

  .admin-body .logo {
    width: min(190px, 58vw);
  }

  .admin-body .logo img {
    max-height: 38px;
  }

  .admin-body .admin-menu-toggle {
    min-width: 78px;
    min-height: 40px;
    padding: 0 10px;
  }

  .admin-body .admin-nav {
    max-height: calc(100vh - 64px);
    padding: 8px;
  }

  .admin-body .admin-nav-group {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px;
  }

  .admin-body .admin-nav-label {
    min-height: 0;
    padding: 3px 4px 1px;
  }

  .admin-body .admin-nav a {
    justify-content: flex-start;
    min-height: 38px;
    padding: 9px 10px;
    text-align: left;
  }

  .admin-body .content {
    padding: 10px;
  }

  .admin-body .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    margin-bottom: 10px;
  }

  .admin-body .topbar > div {
    margin-right: 0;
  }

  .admin-body .topbar h2 {
    font-size: 19px;
  }

  .admin-body .topbar .button,
  .admin-body .topbar .logout-form,
  .admin-body .topbar .logout-form button {
    width: 100%;
  }

  .admin-body .hero-panel,
  .admin-body .admin-command-hero,
  .admin-body .metrics-hero,
  .admin-body .daily-work-hero,
  .admin-body .account-overview,
  .admin-body .panel {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .admin-body .hero-panel h1,
  .admin-body .admin-command-hero h1,
  .admin-body .metrics-hero h1,
  .admin-body .account-overview h1,
  .admin-body .daily-work-hero h1 {
    font-size: clamp(27px, 9vw, 36px);
    line-height: 1.04;
  }

  .admin-body .lede,
  .admin-body .hero-panel p,
  .admin-body .panel p {
    font-size: 14px;
    line-height: 1.45;
  }

  .admin-body .hero-actions,
  .admin-body .card-actions,
  .admin-body .account-detail-actions,
  .admin-body .publish-target-actions,
  .admin-body .onboarding-submit {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .admin-body .button,
  .admin-body button,
  .admin-body .table-action,
  .admin-body .card-actions .button,
  .admin-body .card-actions button {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  .admin-body .metrics-grid,
  .admin-body .dashboard-stat-stack,
  .admin-body .account-overview-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-body .metrics-grid {
    padding: 6px;
  }

  .admin-body .metrics-grid .stat,
  .admin-body .account-overview-stats .stat,
  .admin-body .dashboard-stat-stack .stat {
    min-height: 64px;
  }

  .admin-body .admin-action-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-body .action-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .admin-body .feature-icon,
  .admin-body .icon-stat i {
    width: 34px;
    height: 34px;
  }

  .admin-body .section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .admin-body .section-head h1,
  .admin-body .section-head h2,
  .admin-body .panel h1,
  .admin-body .panel h2 {
    font-size: 21px;
    line-height: 1.12;
  }

  .admin-body .client-portal-section summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 10px;
  }

  .admin-body .client-section-icon {
    width: 31px;
    height: 31px;
  }

  .admin-body .client-section-title small {
    white-space: normal;
  }

  .admin-body .client-accordion-content {
    padding: 0 10px 12px;
  }

  .admin-body .stack-form,
  .admin-body .client-form,
  .admin-body .accordion-form,
  .admin-body .form-subgrid,
  .admin-body .account-create-form,
  .admin-body .phone-card,
  .admin-body .client-account-details-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-body label {
    font-size: 12px;
  }

  .admin-body input,
  .admin-body select,
  .admin-body textarea {
    min-height: 42px;
    font-size: 16px;
  }

  .admin-body textarea {
    min-height: 96px;
  }

  .admin-body .phone-card {
    padding: 11px;
  }

  .admin-body .person-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-body .table-panel,
  .admin-body .dense-table,
  .admin-body .account-table-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .admin-body .table-panel .section-head,
  .admin-body .dense-table .section-head {
    padding: 13px 13px 0;
  }

  .admin-body table,
  .admin-body .dense-table table,
  .admin-body .account-table-panel table,
  .admin-body .deployment-monitor-table table,
  .admin-body .onboarding-table-panel table,
  .admin-body .client-message-table table {
    min-width: 0;
  }

  .admin-body table,
  .admin-body thead,
  .admin-body tbody,
  .admin-body tr,
  .admin-body th,
  .admin-body td {
    display: block;
  }

  .admin-body thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .admin-body tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .admin-body tbody tr {
    overflow: hidden;
    border: 1px solid rgba(174, 202, 224, 0.98);
    border-radius: 8px;
    background: #ffffff;
    box-shadow:
      0 14px 34px rgba(15, 39, 71, 0.13),
      0 0 0 1px rgba(255, 255, 255, 0.72);
  }

  .admin-body tbody tr:nth-child(even) td,
  .admin-body tbody tr:hover td,
  .admin-body tbody tr:hover:nth-child(even) td {
    background: #ffffff;
  }

  .admin-body td,
  .admin-body .account-table-panel td,
  .admin-body .dense-table td {
    display: grid;
    grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 44px;
    padding: 10px 12px;
    border-top: 1px solid #e8eff6;
    background: #ffffff;
    color: #25364a;
    font-size: 13px;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  .admin-body td:first-child {
    border-top: 0;
  }

  .admin-body td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .admin-body td:empty::after {
    content: "Not set";
    color: var(--muted);
  }

  .admin-body td[colspan] {
    display: block;
  }

  .admin-body td[colspan]::before {
    display: none;
  }

  .admin-body .table-date-cell,
  .admin-body .contact-cell,
  .admin-body .account-name-cell {
    min-width: 0;
    white-space: normal;
  }

  .admin-body .table-subline {
    font-size: 11px;
  }

  .admin-body .message-copy,
  .admin-body .deployment-url-cell {
    max-width: none;
  }

  .admin-body .table-action {
    margin-top: 4px;
  }

  .admin-body .daily-work-form,
  .admin-body .daily-work-hero-aside,
  .admin-body .publish-target-meta {
    grid-template-columns: 1fr;
  }

  .admin-body .daily-work-option,
  .admin-body .daily-work-pick-row {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 12px;
  }

  .admin-body .daily-work-meta {
    gap: 6px;
  }

  .admin-body .publish-target-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .metrics-hero {
    grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
    gap: 22px;
    padding: 20px 28px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(168px, 1fr));
  }
}
