:root {
  --bg-top: #dcecff;
  --bg-bottom: #f4f8ff;
  --frame: #edf5ff;
  --frame-2: #dce9fb;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(241, 247, 255, 0.96);
  --line: rgba(15, 76, 150, 0.1);
  --line-strong: rgba(15, 76, 150, 0.2);
  --text: #143b69;
  --muted: #6482a8;
  --violet: #1f6fe5;
  --lime: #69b8ff;
  --danger: #d9546b;
  --success: #1f8f6e;
  --shadow: 0 30px 80px rgba(24, 72, 140, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(48, 132, 255, 0.18), transparent 22%),
    radial-gradient(circle at 88% 28%, rgba(105, 184, 255, 0.18), transparent 26%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

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

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

.auth-shell,
.app-shell {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.auth-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: var(--radius-xl);
}

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

.auth-login-card {
  width: min(100%, 560px);
  padding: 34px;
}

.auth-login-card {
  width: min(100%, 1080px);
}

.auth-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(320px, 1fr);
  gap: 28px;
  align-items: stretch;
}

.auth-login-content,
.auth-login-media {
  min-width: 0;
}

.auth-login-media-frame {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 28px;
  border: 1px solid rgba(55, 86, 31, 0.12);
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 255, 174, 0.28), transparent 24%),
    linear-gradient(180deg, #17311a 0%, #102014 100%);
  box-shadow: 0 26px 62px rgba(41, 66, 23, 0.12);
}

.auth-login-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.auth-login-media-copy {
  position: absolute;
  inset: auto 20px 20px 20px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 16, 11, 0.16) 0%, rgba(9, 16, 11, 0.82) 100%);
  color: #f6fff1;
  backdrop-filter: blur(10px);
}

.auth-login-media-copy .eyebrow {
  color: rgba(237, 255, 227, 0.74);
}

.auth-login-media-copy strong {
  display: block;
  margin: 6px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  line-height: 1.25;
}

.auth-login-media-copy p {
  margin: 0;
  color: rgba(240, 255, 244, 0.78);
  line-height: 1.65;
}

.auth-flow-card {
  padding: 30px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  flex-shrink: 0;
}

.auth-card .chip-row.auth-switch {
  margin-bottom: 22px;
}

.auth-card .lead-copy {
  max-width: 58ch;
}

.auth-card .form-grid {
  gap: 16px;
}

.auth-card .form-grid label {
  gap: 10px;
}

.auth-card .form-grid input,
.auth-card .form-grid select,
.auth-card .message-form input {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-card .form-grid input:focus,
.auth-card .form-grid select:focus,
.auth-card .message-form input:focus {
  outline: none;
  border-color: rgba(96, 173, 62, 0.38);
  box-shadow: 0 0 0 4px rgba(168, 225, 118, 0.2);
}

.auth-card .primary-button,
.auth-card .ghost-button {
  width: 100%;
  min-height: 50px;
}

.auth-card .ghost-button {
  border: 1px solid var(--line);
}

.auth-secondary-actions {
  margin: 0 0 18px;
}

.auth-secondary-actions .ghost-button {
  width: 100%;
}

.auth-demo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.auth-mfa-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(105, 184, 255, 0.08);
}

.auth-mfa-panel strong {
  color: var(--text);
}

.auth-mfa-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.auth-login-card .auth-divider {
  margin: 24px 0 18px;
}

.auth-login-card .auth-divider::before,
.auth-login-card .auth-divider::after {
  background: rgba(73, 110, 47, 0.12);
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.success-label {
  color: #1f7a39;
}

h1,
h2,
strong,
.nav-button span:last-child {
  font-family: "Sora", sans-serif;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
}

h1 {
  font-size: clamp(1.9rem, 2vw, 2.4rem);
}

h2 {
  font-size: 1.06rem;
}

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

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

.single-column {
  grid-template-columns: 1fr;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-grid label > span,
.search-label > span {
  color: #33454f;
  font-weight: 700;
}

.search-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-grid input,
.form-grid select,
.message-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.field-shell {
  position: relative;
}

.field-shell input,
.field-shell select {
  padding-right: 46px;
}

.validated-field .inline-valid-indicator {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%) scale(0.88);
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}

.validated-field .inline-valid-indicator::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(31, 143, 110, 0.14);
}

.validated-field .inline-valid-indicator::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(40deg);
}

.validated-field.is-valid input {
  border-color: rgba(31, 143, 110, 0.28);
}

.validated-field.is-valid .inline-valid-indicator {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.sensitive-field {
  display: flex;
  align-items: center;
}

.sensitive-field .sensitive-input {
  padding-right: 52px;
}

.sensitive-field .sensitive-input.is-masked {
  cursor: pointer;
}

.sensitive-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 800;
  pointer-events: none;
}

.sensitive-field .sensitive-prefix + .sensitive-input {
  padding-left: 34px;
}

.field-icon-button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 111, 229, 0.08);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.eye-icon {
  position: relative;
  width: 16px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px / 70%;
}

.eye-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.field-icon-button.revealed .eye-icon::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%) rotate(-28deg);
}

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

.ghost-button,
.primary-button,
.filter-chip,
.nav-button,
.ghost-link {
  min-height: 40px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
}

.ghost-button,
.filter-chip,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: rgba(31, 111, 229, 0.08);
  color: var(--text);
}

.primary-button {
  padding: 0 16px;
  background: linear-gradient(135deg, #0f67da 0%, #66b4ff 100%);
  color: #ffffff;
  font-weight: 800;
}

.app-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 900px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(235, 244, 255, 0.95)), var(--frame);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 24px;
  background: linear-gradient(180deg, #0f4c97 0%, #123f79 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #ffffff;
}

.brand-block,
.panel-head,
.data-head,
.topbar,
.topbar-right,
.user-chip,
.workspace-grid,
.two-column,
.chip-row,
.hero-metrics {
  display: flex;
}

.brand-block {
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 15deg, #ffffff 0 30%, var(--lime) 30% 62%, var(--violet) 62% 100%);
}

.brand-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(20, 17, 29, 0.65);
}

.nav-stack,
.card-stack,
.detail-list,
.settings-stack,
.action-stack,
.message-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.sidebar-footer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-footer-label {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-signout-button {
  width: 100%;
}

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

.mobile-drawer-head {
  display: none;
}

.mobile-sidebar-backdrop {
  display: none;
}

.sidebar-copyright {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(149, 231, 117, 0.18);
  display: grid;
  gap: 6px;
  color: #000000;
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 700;
  max-width: 100%;
}

.sidebar-copyright-line {
  display: block;
  overflow-wrap: anywhere;
  color: #000000;
  font-weight: 700;
}

.sidebar-copyright-line strong {
  color: #000000;
  font-weight: 800;
}

.apex-install-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  justify-items: end;
  gap: 0.85rem;
}

.apex-install-close {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(16, 33, 27, 0.74);
  box-shadow: 0 10px 26px rgba(8, 24, 14, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.apex-install-close:hover {
  transform: translateY(-1px);
  color: #10211b;
  box-shadow: 0 14px 30px rgba(8, 24, 14, 0.16);
}

.apex-install-toggle {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
  min-width: 14rem;
  background: linear-gradient(135deg, #d7fff0, #6de798);
  color: #0d2d1a;
  box-shadow: 0 18px 42px rgba(10, 28, 18, 0.18);
  display: grid;
  gap: 0.12rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.apex-install-toggle-title {
  font-size: 0.96rem;
  font-weight: 800;
}

.apex-install-toggle-copy {
  font-size: 0.8rem;
  color: rgba(13, 45, 26, 0.76);
}

.apex-install-panel {
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #10211b;
  box-shadow: 0 24px 54px rgba(8, 24, 14, 0.2);
  backdrop-filter: blur(16px);
}

.apex-install-panel[hidden] {
  display: none;
}

.apex-install-panel-copy {
  display: grid;
  gap: 0.35rem;
}

.apex-install-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(22, 76, 37, 0.78);
}

.apex-install-panel-copy strong {
  font-size: 1.1rem;
}

.apex-install-message,
.apex-install-help {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(16, 33, 27, 0.72);
}

.apex-install-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.apex-install-action {
  min-width: 0;
}

.nav-button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.nav-button.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.nav-key,
.avatar,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-key {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.topbar-right,
.user-chip {
  gap: 12px;
  align-items: center;
}

.topbar-right {
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-chat-button {
  min-width: 184px;
  min-height: 48px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-chat-button.active {
  border-color: rgba(83, 146, 46, 0.24);
  box-shadow: 0 16px 32px rgba(38, 69, 21, 0.08);
}

.topbar-chat-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.topbar-chat-copy strong {
  font-size: 0.84rem;
  line-height: 1.1;
}

.topbar-chat-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.topbar-chat-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5bdd80 0%, #b9ff72 100%);
  color: #16351a;
  font-size: 0.74rem;
  font-weight: 800;
}

.notification-hub {
  position: relative;
}

.notification-trigger {
  min-width: 204px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(31, 111, 229, 0.14);
  background: rgba(244, 248, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(15, 76, 151, 0.08);
}

.notification-trigger.active {
  border-color: rgba(31, 111, 229, 0.24);
  background: #ffffff;
}

.notification-trigger-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 111, 229, 0.16) 0%, rgba(120, 198, 255, 0.22) 100%);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.notification-trigger-copy {
  min-width: 0;
}

.notification-trigger-copy strong,
.notification-trigger-copy p {
  display: block;
}

.notification-trigger-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.notification-badge {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  margin-left: auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(380px, calc(100vw - 40px));
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(31, 111, 229, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(16, 49, 92, 0.18);
  z-index: 30;
}

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

.live-pill {
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 187, 122, 0.1);
  color: #0d8d5f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(13, 141, 95, 0.35);
  animation: livePulse 1.8s infinite;
}

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

.feed-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid var(--line);
}

.feed-stat strong {
  display: block;
  font-size: 1.1rem;
}

.feed-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

.feed-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.feed-tab {
  flex: 1;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.feed-tab.active {
  border-color: rgba(31, 111, 229, 0.22);
  background: rgba(31, 111, 229, 0.08);
  color: var(--violet);
}

.feed-tab span {
  color: inherit;
  font-size: 0.78rem;
}

.feed-stream {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 12px;
}

.feed-card,
.feed-empty {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.feed-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}

.feed-card p,
.feed-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.user-chip {
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(20, 71, 135, 0.08);
}

.user-chip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8ebff 0%, var(--lime) 100%);
  color: #0f4c97;
  font-weight: 800;
}

.notice {
  margin: 18px 20px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.notice.success {
  background: rgba(190, 240, 104, 0.14);
  color: var(--success);
}

.notice.error {
  background: rgba(255, 140, 171, 0.14);
  color: var(--danger);
}

.notice.info {
  background: rgba(31, 111, 229, 0.12);
  color: #0f4c97;
}

.action-banner {
  margin: 18px 20px 0;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(31, 111, 229, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(239, 247, 255, 0.96) 0%, rgba(232, 243, 255, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(15, 76, 151, 0.08);
}

.action-banner strong {
  display: block;
  max-width: 62ch;
  line-height: 1.55;
}

.workspace-grid {
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.content-pane {
  flex: 1;
  min-width: 0;
}

.panel {
  padding: 22px;
  border-radius: var(--radius-lg);
}

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

.view-grid,
.two-column {
  display: grid;
  gap: 18px;
}

.view-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

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

.wide-panel {
  grid-column: 1 / -1;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card,
.data-card,
.detail-row,
.toggle-row,
.message-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.metric-card {
  flex: 1 1 180px;
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.34rem;
}

.trend-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.trend-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.trend-stage {
  position: relative;
  min-height: 250px;
}

.trend-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 12.5% 100%;
}

.trend-svg {
  width: 100%;
  height: 250px;
  position: relative;
}

.trend-line-a,
.trend-line-b {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.trend-line-a {
  stroke: url(#overview-primary);
}

.trend-line-b {
  stroke: url(#overview-secondary);
}

.floating-tag {
  position: absolute;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.lime-tag {
  left: 18%;
  top: 46%;
  background: var(--lime);
  color: #2a2d10;
}

.violet-tag {
  right: 5%;
  top: 62%;
  background: rgba(199, 183, 255, 0.18);
}

.chip-row {
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip.active {
  background: var(--violet);
  color: #ffffff;
}

.data-card,
.message-card {
  padding: 16px;
}

.compact-card {
  padding: 14px;
}

.data-head {
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 111, 229, 0.12);
  color: var(--violet);
  font-size: 0.74rem;
  font-weight: 800;
}

.danger-pill {
  background: rgba(255, 140, 171, 0.14);
  color: var(--danger);
}

.detail-row,
.toggle-row {
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-control-stage {
  display: grid;
  gap: 18px;
}

.bank-card-stack {
  position: relative;
  padding-top: 44px;
  padding-bottom: 26px;
}

.bank-card-layer,
.bank-card {
  border-radius: 32px;
  box-shadow: 0 26px 56px rgba(35, 67, 35, 0.18);
}

.bank-card-layer {
  position: absolute;
  left: 50%;
  width: min(100%, 430px);
  height: 230px;
  transform: translateX(-50%);
}

.bank-card-layer-back {
  top: 0;
  background: linear-gradient(180deg, #101917 0%, #14211b 100%);
}

.bank-card-layer-middle {
  top: 26px;
  width: min(100%, 462px);
  background: linear-gradient(135deg, #224f3d 0%, #163829 100%);
}

.bank-card {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  min-height: 276px;
  margin: 52px auto 0;
  padding: 28px 28px 26px;
  overflow: hidden;
  border: 1px solid rgba(232, 255, 221, 0.72);
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 0% 76%, rgba(24, 79, 44, 0.22), transparent 24%),
    linear-gradient(135deg, #60cc5f 0%, #85dd6a 24%, #d9ffc2 56%, #52b95b 100%);
  color: #0e1a13;
}

.bank-card::before {
  content: "";
  position: absolute;
  inset: auto auto 18px 18px;
  width: 110px;
  height: 70px;
  background-image: radial-gradient(circle, rgba(17, 47, 23, 0.22) 0 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.42;
}

.bank-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  background: linear-gradient(180deg, rgba(9, 70, 44, 0.86) 0%, rgba(8, 93, 54, 0.94) 100%);
}

.bank-card-top,
.bank-card-bottom,
.bank-card-activity {
  position: relative;
  z-index: 1;
}

.bank-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.bank-card-heading {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(12, 26, 18, 0.9);
}

.bank-card-balance {
  display: block;
  margin-top: 18px;
  font-size: clamp(2.4rem, 6vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.bank-card-visibility {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.bank-card-visibility::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 17px;
  bottom: 17px;
  border: 3px solid #112719;
  border-radius: 999px / 70%;
}

.bank-card-visibility::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #112719;
  transform: translate(-50%, -50%);
}

.bank-card-visibility span {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 3px;
  background: #112719;
  border-radius: 999px;
  transform: translateY(-50%) rotate(-34deg);
  opacity: 0;
}

.bank-card-visibility.locked span {
  opacity: 1;
}

.bank-card-growth {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid rgba(16, 36, 22, 0.45);
  background: rgba(255, 255, 255, 0.18);
  color: #13251a;
}

.bank-card-growth-arrow {
  font-size: 1rem;
  font-weight: 800;
}

.bank-card-growth strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.bank-card-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 58px;
  color: #f1fff2;
}

.bank-card-brand,
.bank-card-number {
  display: block;
}

.bank-card-brand {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bank-card-number {
  font-size: 1.42rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.bank-card-copy {
  position: relative;
  width: 38px;
  height: 32px;
}

.bank-card-copy::before,
.bank-card-copy::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  border: 3px solid rgba(245, 255, 243, 0.94);
}

.bank-card-copy::before {
  inset: 0 0 0 10px;
}

.bank-card-copy::after {
  inset: 7px 8px 0 0;
  background: transparent;
}

.bank-card-activity {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(31, 77, 41, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.98) 100%);
  box-shadow: 0 18px 38px rgba(29, 61, 26, 0.12);
}

.bank-card-activity-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #56c654 0%, #2a9438 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.bank-card-activity-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(246, 255, 244, 0.95);
  border-bottom-color: transparent;
  transform: translateY(-3px);
}

.bank-card-activity-icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px 999px 6px 6px;
  border: 3px solid rgba(246, 255, 244, 0.95);
  border-top: 0;
}

.bank-card-activity-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.bank-card-activity strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.action-stack {
  margin-top: 14px;
}

.top-gap {
  margin-top: 14px;
}

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

.self-message {
  background: rgba(199, 183, 255, 0.16);
}

.ghost-link {
  padding: 0 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.95), rgba(203, 213, 225, 0.92));
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.08),
    0 1px 1px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.checkbox-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  transition: transform 180ms ease;
}

.checkbox-row input[type="checkbox"]:checked {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(99, 102, 241, 0.18);
}

.checkbox-row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.28);
  outline-offset: 2px;
}

.checkbox-row input[type="checkbox"]:hover {
  transform: translateY(-1px);
}

.checkbox-row span,
.checkbox-row {
  font-weight: 600;
}

.setting-disabled {
  opacity: 0.56;
}

.setting-disabled > span {
  color: rgba(100, 116, 139, 0.9);
}

.setting-collapsed {
  display: none !important;
}

.is-setting-inactive {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.92), rgba(226, 232, 240, 0.92)) !important;
  color: rgba(100, 116, 139, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

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

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(227, 245, 107, 0.16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(199, 183, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #c7d5f2 0%, #b0c3eb 100%);
}

.landing-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.landing-hero,
.landing-section,
.landing-cta {
  border: 1px solid rgba(15, 103, 218, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.landing-hero {
  padding: 26px;
}

.landing-nav,
.landing-actions,
.hero-grid,
.hero-actions,
.showcase-top,
.section-heading,
.landing-cta,
.security-grid {
  display: flex;
}

.landing-nav,
.showcase-top,
.landing-cta {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.landing-actions,
.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  margin-top: 36px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 12ch;
}

.landing-metrics {
  margin-top: 24px;
}

.hero-surface {
  min-width: 0;
}

.landing-showcase,
.feature-card,
.module-card,
.security-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(240, 247, 255, 0.92);
}

.landing-showcase {
  padding: 22px;
}

.showcase-grid,
.feature-grid,
.module-grid,
.security-grid {
  display: grid;
  gap: 14px;
}

.showcase-grid,
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.showcase-card,
.feature-card,
.module-card,
.security-card {
  padding: 18px;
}

.showcase-card strong,
.feature-card strong,
.module-card strong,
.security-card strong {
  display: block;
  margin-bottom: 10px;
}

.landing-section {
  margin-top: 22px;
  padding: 26px;
}

.section-heading {
  flex-direction: column;
  align-items: start;
  gap: 8px;
  margin-bottom: 18px;
}

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

.module-card span {
  display: block;
  color: var(--muted);
}

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

.landing-cta {
  margin-top: 22px;
  padding: 24px 26px;
}

.modern-hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(105, 184, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.98));
}

.people-strip {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.people-strip img {
  width: 88px;
  height: 96px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 76, 151, 0.12);
}

.hero-mockup {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(15, 103, 218, 0.12);
  box-shadow: 0 24px 48px rgba(15, 76, 151, 0.12);
}

.landing-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 255, 175, 0.34), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(150, 210, 116, 0.28), transparent 30%),
    linear-gradient(180deg, #dbe9a8 0%, #c7da8a 100%);
}

.landing-shell {
  width: min(1400px, calc(100% - 32px));
  padding: 26px 0 52px;
}

.finora-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 34px;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 50% 100%, rgba(135, 255, 104, 0.26), transparent 26%),
    radial-gradient(circle at 50% 52%, rgba(113, 202, 98, 0.18), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2.4%, rgba(255, 255, 255, 0) 2.4% 8.4%),
    linear-gradient(135deg, #132016 0%, #28401c 28%, #18321a 58%, #101913 100%);
  box-shadow: 0 38px 90px rgba(34, 65, 15, 0.26);
}

.finora-hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.finora-nav {
  position: relative;
  z-index: 2;
}

.landing-brand {
  color: #f8fff4;
}

.finora-mark {
  background: linear-gradient(135deg, rgba(132, 238, 112, 0.85) 0%, rgba(66, 161, 80, 0.92) 100%);
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(245, 251, 241, 0.78);
  font-size: 0.92rem;
}

.landing-links a:hover,
.landing-links a:focus-visible {
  color: #ffffff;
}

.finora-actions .ghost-link,
.finora-hero .hero-actions .ghost-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(243, 248, 239, 0.86);
}

.landing-cta-button {
  border: 0;
  background: linear-gradient(135deg, #c8ff8e 0%, #6fd46f 100%);
  color: #16230f;
  box-shadow: 0 20px 38px rgba(129, 211, 87, 0.24);
}

.hero-badge {
  width: fit-content;
  margin: 44px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 251, 241, 0.92);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  backdrop-filter: blur(14px);
}

.hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaf37e;
  box-shadow: 0 0 0 6px rgba(170, 243, 126, 0.14);
}

.finora-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 30px auto 0;
  text-align: center;
  color: #f5fbf1;
}

.finora-copy h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-size: clamp(2.9rem, 5.8vw, 5.2rem);
  line-height: 0.98;
  color: #fbfff7;
}

.finora-copy .lead-copy {
  max-width: 660px;
  margin: 22px auto 0;
  color: rgba(240, 247, 234, 0.76);
  font-size: 1.03rem;
  line-height: 1.75;
}

.finora-hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  margin-top: 36px;
}

.hero-float-card {
  position: absolute;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 60px rgba(10, 20, 10, 0.2);
  color: #f4f9ef;
}

.hero-float-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.hero-float-card p {
  margin: 0;
  color: rgba(243, 248, 239, 0.72);
  line-height: 1.6;
}

.trust-card {
  left: 38px;
  top: 54px;
  width: min(280px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 255, 240, 0.92) 100%);
  color: #1a2915;
}

.trust-card p {
  color: rgba(26, 41, 21, 0.72);
}

.hero-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-avatar-row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.profit-card {
  left: 84px;
  bottom: 72px;
  width: 220px;
}

.profit-card strong:last-child {
  margin: 10px 0 6px;
  font-size: 2rem;
}

.market-card {
  right: 46px;
  top: 68px;
  width: min(290px, 100%);
}

.hero-status-pill {
  position: absolute;
  right: 92px;
  bottom: 62px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fff0 100%);
  color: #182413;
  font-weight: 800;
  box-shadow: 0 22px 50px rgba(12, 26, 8, 0.22);
}

.phone-showcase {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.phone-frame {
  width: 270px;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, #0f1712 0%, #1d281b 100%);
  box-shadow: 0 40px 90px rgba(5, 10, 5, 0.34);
}

.phone-notch {
  width: 112px;
  height: 22px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
}

.phone-screen {
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 85%, rgba(138, 227, 117, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(27, 43, 24, 0.98) 0%, rgba(19, 31, 20, 0.98) 100%);
  color: #f7fff0;
}

.phone-topbar,
.phone-user,
.phone-action-grid,
.balance-meta {
  display: flex;
}

.phone-topbar,
.phone-user {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.phone-user span {
  display: block;
  color: rgba(246, 255, 240, 0.68);
  font-size: 0.72rem;
}

.phone-user strong {
  display: block;
  margin-top: 2px;
  font-size: 0.96rem;
}

.phone-top-action {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.phone-balance-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(98, 170, 77, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-balance-card span {
  color: rgba(246, 255, 240, 0.72);
  font-size: 0.8rem;
}

.phone-balance-card strong {
  display: block;
  margin: 10px 0;
  font-size: 2rem;
}

.balance-meta {
  gap: 10px;
  flex-wrap: wrap;
}

.balance-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 255, 240, 0.84);
  font-size: 0.7rem;
}

.phone-action-grid {
  margin-top: 18px;
  gap: 10px;
}

.phone-action-grid button {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fff3;
  cursor: pointer;
}

.finora-section,
.finora-cta {
  margin-top: 24px;
  border: 1px solid rgba(48, 86, 24, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.finora-feature-grid,
.finora-module-grid,
.finora-pricing-grid {
  gap: 18px;
}

.finora-section .section-heading,
.finora-cta .section-heading {
  margin-bottom: 24px;
}

.finora-section .section-heading h2,
.finora-cta h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  color: #183113;
}

.finora-section .section-heading .eyebrow,
.finora-cta .eyebrow {
  color: #5f7b48;
}

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

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

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

.finora-section .feature-card,
.finora-section .module-card,
.finora-section .security-card {
  border: 1px solid rgba(89, 139, 57, 0.14);
  background: linear-gradient(180deg, rgba(250, 255, 246, 0.98) 0%, rgba(240, 248, 232, 0.96) 100%);
}

.finora-section .feature-card strong,
.finora-section .module-card strong,
.finora-section .security-card strong {
  font-size: 1.08rem;
  color: #183113;
}

.finora-section .feature-card p,
.finora-section .module-card span,
.finora-section .security-card p {
  color: #59704a;
  line-height: 1.7;
}

.pricing-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(64, 143, 51, 0.1);
  color: #2f6b20;
  font-weight: 800;
}

.pricing-tag.accent {
  background: linear-gradient(135deg, #c8ff8e 0%, #8ad66d 100%);
  color: #16230f;
}

.finora-cta {
  padding: 26px 30px;
  background: linear-gradient(135deg, rgba(245, 252, 239, 0.98) 0%, rgba(233, 247, 223, 0.98) 100%);
}

.finora-cta .ghost-link {
  background: rgba(92, 151, 57, 0.1);
  color: #25421b;
}

.avatar-image,
.profile-avatar,
.media-preview {
  object-fit: cover;
}

.avatar-image {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.profile-photo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.profile-layout {
  align-items: start;
}

.profile-form-grid {
  gap: 16px;
}

.profile-form-grid label > span,
.profile-status-panel .detail-row span,
.profile-status-panel .toggle-row span {
  color: #253328;
}

.profile-photo-form {
  align-items: end;
}

.file-input {
  min-height: 52px;
  padding: 10px 14px;
}

.file-input::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.primary-cta-button {
  min-height: 52px;
  font-size: 0.95rem;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.danger-outline-button {
  color: var(--danger);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d8ebff 0%, var(--lime) 100%);
  color: #0f4c97;
  font-size: 1.5rem;
  font-weight: 800;
}

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

.media-card {
  min-height: 240px;
}

.media-preview {
  width: 100%;
  min-height: 180px;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.kyc-layout {
  align-items: start;
}

.kyc-consent-card,
.kyc-liveness-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf4 100%);
}

.kyc-camera-stage {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 36, 24, 0.98) 0%, rgba(18, 46, 29, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.kyc-live-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: radial-gradient(circle at top, rgba(79, 169, 98, 0.34) 0%, rgba(9, 18, 12, 0.98) 72%);
}

.kyc-camera-toolbar,
.kyc-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.kyc-camera-toolbar {
  padding: 14px 16px 16px;
}

.kyc-action-row {
  margin-top: 14px;
}

.auth-switch {
  margin-bottom: 16px;
}

.topbar-copy {
  margin-top: 8px;
}

.app-frame.admin-mode {
  grid-template-columns: 230px minmax(0, 1fr);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.app-frame.admin-mode .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 255, 0.98) 100%);
  color: var(--text);
  border-right: 1px solid rgba(15, 76, 150, 0.08);
}

.app-frame.admin-mode .sidebar .eyebrow,
.app-frame.admin-mode .sidebar strong {
  color: var(--text);
}

.app-frame.admin-mode .brand-core {
  background: rgba(20, 59, 105, 0.82);
}

.app-frame.admin-mode .nav-button {
  color: var(--muted);
  background: transparent;
}

.app-frame.admin-mode .nav-button.active {
  background: #ffffff;
  color: var(--violet);
  box-shadow: 0 16px 30px rgba(18, 73, 145, 0.08);
}

.app-frame.admin-mode .nav-key {
  background: rgba(31, 111, 229, 0.08);
  color: var(--violet);
}

.app-frame.admin-mode .topbar,
.app-frame.admin-mode .user-chip {
  background: rgba(255, 255, 255, 0.72);
}

.app-frame.customer-mode {
  grid-template-columns: 230px minmax(0, 1fr);
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
}

.app-frame.customer-mode .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 255, 0.98) 100%);
  color: var(--text);
  border-right: 1px solid rgba(15, 76, 150, 0.08);
}

.app-frame.customer-mode .sidebar .eyebrow,
.app-frame.customer-mode .sidebar strong {
  color: var(--text);
}

.app-frame.customer-mode .brand-core {
  background: rgba(20, 59, 105, 0.82);
}

.app-frame.customer-mode .nav-button {
  color: var(--muted);
}

.app-frame.customer-mode .nav-button.active {
  background: #ffffff;
  color: var(--violet);
  box-shadow: 0 16px 30px rgba(18, 73, 145, 0.08);
}

.app-frame.customer-mode .nav-key {
  background: rgba(31, 111, 229, 0.08);
  color: var(--violet);
}

.app-frame.customer-mode .topbar,
.app-frame.customer-mode .user-chip {
  background: rgba(255, 255, 255, 0.72);
}

.app-frame.admin-mode .topbar {
  backdrop-filter: blur(14px);
}

.admin-topbar {
  padding-top: 18px;
  padding-bottom: 18px;
}

.admin-topbar-left {
  display: grid;
  gap: 8px;
}

.admin-live-context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(25, 37, 32, 0.06);
  color: #234021;
  font-size: 0.84rem;
  font-weight: 800;
}

.topbar-site-link {
  min-height: 42px;
  padding: 0 18px;
}

.admin-topbar .notification-trigger {
  min-width: 168px;
  padding: 8px 12px;
}

.admin-topbar .notification-trigger-copy p {
  display: none;
}

.admin-topbar .notification-trigger-copy strong {
  font-size: 0.82rem;
}

.admin-workspace-grid {
  display: block;
}

.customer-overview-grid {
  display: block;
}

.admin-hero-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-hero-copy,
.admin-summary-top,
.admin-meta-row,
.ops-legend,
.ops-chart,
.admin-name-cell,
.kpi-strip {
  display: flex;
}

.admin-hero-copy {
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.admin-meta-row {
  gap: 10px;
  flex-wrap: wrap;
}

.admin-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 111, 229, 0.08);
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-summary-grid,
.admin-analytics-grid,
.admin-editor-grid {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

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

.admin-summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
}

.admin-summary-top {
  align-items: center;
  gap: 12px;
}

.admin-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 111, 229, 0.18) 0%, rgba(105, 184, 255, 0.18) 100%);
  color: var(--violet);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-summary-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-analytics-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}

.admin-chart-card,
.admin-gauge-card,
.admin-provision-panel,
.admin-directory-panel,
.admin-editor-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.ops-legend {
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.ops-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.ops-swatch.active {
  background: #13b26b;
}

.ops-swatch.inactive {
  background: #8b9aa5;
}

.ops-swatch.customers,
.ops-bar.customers {
  background: linear-gradient(180deg, #b99cff 0%, #8f6df0 100%);
}

.ops-swatch.reviews,
.ops-bar.reviews {
  background: linear-gradient(180deg, #95a8ff 0%, #5c73ff 100%);
}

.ops-swatch.alerts,
.ops-bar.alerts {
  background: linear-gradient(180deg, #ffcfbf 0%, #ff9d7c 100%);
}

.ops-chart {
  align-items: end;
  gap: 18px;
  min-height: 260px;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(15, 76, 150, 0.06);
}

.ops-chart-empty {
  min-height: 260px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(15, 76, 150, 0.06);
  flex-direction: column;
  gap: 20px;
}

.ops-chart-skeleton {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 140px;
}

.ops-chart-skeleton span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(136, 160, 178, 0.14) 0%, rgba(136, 160, 178, 0.3) 100%);
  animation: pulseSkeleton 1.6s ease-in-out infinite;
}

.ops-chart-skeleton span:nth-child(1) {
  height: 58%;
}

.ops-chart-skeleton span:nth-child(2) {
  height: 78%;
}

.ops-chart-skeleton span:nth-child(3) {
  height: 46%;
}

.ops-chart-skeleton span:nth-child(4) {
  height: 92%;
}

.ops-chart-skeleton span:nth-child(5) {
  height: 62%;
}

.ops-empty-state {
  max-width: 420px;
  text-align: center;
}

.ops-empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.ops-cluster {
  flex: 1;
  min-width: 0;
}

.ops-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
}

.ops-bar {
  width: 14px;
  border-radius: 999px 999px 10px 10px;
  box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.2);
}

.ops-month {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.ops-gauge {
  --score-angle: calc(var(--score) * 1%);
  width: min(270px, 100%);
  aspect-ratio: 1;
  margin: 10px auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 0 44%, transparent 45%),
    conic-gradient(from -90deg, #14b86d 0 var(--score-angle), #c2ccd4 var(--score-angle) 100%);
}

.ops-gauge-center {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(15, 76, 150, 0.06);
}

.ops-gauge-center strong {
  display: block;
  font-size: 2rem;
}

.ops-gauge-center span {
  color: var(--muted);
  font-size: 0.82rem;
}

.ops-health-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ops-health-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kpi-strip {
  gap: 12px;
  flex-wrap: wrap;
}

.kpi-pill {
  flex: 1 1 120px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.kpi-pill strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.kpi-pill span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-directory-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-primary-cell,
.table-meta-cell {
  min-width: 0;
}

.admin-table-header,
.admin-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(108px, 0.8fr) minmax(108px, 0.8fr) minmax(108px, 0.8fr) auto;
  gap: 16px;
  align-items: center;
}

.admin-table-header {
  padding: 0 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table-row {
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(244, 248, 255, 0.88);
}

.admin-name-cell {
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-name-cell > div {
  min-width: 0;
}

.admin-name-cell strong,
.admin-name-cell p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8ebff 0%, var(--lime) 100%);
  color: #0f4c97;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.status-badge {
  min-height: 30px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge.ok {
  background: rgba(31, 143, 110, 0.12);
  color: var(--success);
}

.status-badge.warn {
  background: rgba(255, 179, 71, 0.16);
  color: #b56a08;
}

.status-badge.critical {
  background: rgba(135, 11, 31, 0.14);
  color: #8d1530;
}

.status-badge.danger {
  background: rgba(217, 84, 107, 0.12);
  color: var(--danger);
}

.status-badge.neutral {
  background: rgba(31, 111, 229, 0.08);
  color: var(--violet);
}

.table-button {
  justify-self: end;
}

.table-action-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.68);
  gap: 8px;
}

.table-button-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 76, 150, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-switcher-bar {
  margin-top: 6px;
  padding: 22px 22px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  overflow: hidden;
}

.admin-command-hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(120, 227, 255, 0.34), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(160, 230, 255, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(15, 44, 92, 0.98) 0%, rgba(26, 85, 162, 0.96) 52%, rgba(97, 191, 255, 0.94) 100%);
  color: #f6fbff;
  border-color: rgba(119, 193, 255, 0.28);
  box-shadow: 0 32px 80px rgba(19, 58, 114, 0.28);
}

.admin-command-copy,
.admin-command-visual {
  position: relative;
  z-index: 1;
}

.admin-command-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-command-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-command-hero .eyebrow,
.admin-command-hero .muted,
.admin-command-hero h2,
.admin-command-hero .mini-label {
  color: inherit;
}

.admin-command-hero .eyebrow {
  color: rgba(232, 247, 255, 0.72);
}

.admin-command-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.admin-command-lead {
  margin: 0;
  max-width: 62ch;
  color: rgba(241, 249, 255, 0.82);
  line-height: 1.65;
}

.admin-role-lens {
  display: grid;
  gap: 10px;
  max-width: 54ch;
}

.admin-role-lens p {
  margin: 0;
  color: rgba(241, 249, 255, 0.8);
  line-height: 1.55;
}

.admin-command-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbff;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.admin-command-pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8dffb5;
  box-shadow: 0 0 0 0 rgba(141, 255, 181, 0.46);
  animation: livePulse 1.9s ease-in-out infinite;
}

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

.admin-highlight-chip {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(202, 237, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 6px;
}

.admin-highlight-chip strong {
  font-size: 1rem;
  color: #ffffff;
}

.admin-command-visual {
  min-height: 230px;
  border-radius: 28px;
  border: 1px solid rgba(211, 239, 255, 0.16);
  background: linear-gradient(180deg, rgba(6, 22, 46, 0.34) 0%, rgba(6, 22, 46, 0.16) 100%);
  overflow: hidden;
}

.admin-command-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
}

.admin-command-orb-a {
  width: 150px;
  height: 150px;
  top: -30px;
  right: -24px;
  background: radial-gradient(circle, rgba(198, 244, 255, 0.7) 0%, rgba(198, 244, 255, 0) 72%);
}

.admin-command-orb-b {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -34px;
  background: radial-gradient(circle, rgba(120, 240, 193, 0.44) 0%, rgba(120, 240, 193, 0) 74%);
}

.admin-command-orb-c {
  width: 110px;
  height: 110px;
  top: 44%;
  right: 24%;
  background: radial-gradient(circle, rgba(157, 218, 255, 0.38) 0%, rgba(157, 218, 255, 0) 72%);
}

.admin-command-stage {
  position: absolute;
  inset: 18px;
  display: grid;
  align-content: end;
  gap: 12px;
}

.admin-command-gridline {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 1) 100%);
}

.admin-command-card {
  position: relative;
  z-index: 1;
  width: min(280px, 84%);
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(221, 243, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 22px 40px rgba(7, 20, 38, 0.22);
  backdrop-filter: blur(14px);
}

.admin-command-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
  color: #ffffff;
}

.admin-command-card p {
  margin: 8px 0 0;
  color: rgba(243, 250, 255, 0.78);
  line-height: 1.45;
}

.admin-command-card-secondary {
  margin-left: auto;
  width: min(220px, 68%);
}

.admin-switcher-bar .admin-tab-grid {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 4px;
}

.admin-nav-groups {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.admin-nav-group {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-nav-group .eyebrow {
  color: rgba(241, 249, 255, 0.68);
}

.admin-search-panel {
  margin-top: 14px;
  display: grid;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at right top, rgba(105, 184, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.admin-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  align-items: end;
}

.admin-search-copy {
  min-width: 0;
}

.admin-search-tags,
.admin-search-quicklook {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-search-tags {
  margin-top: 14px;
}

.admin-search-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 111, 229, 0.08);
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-search-tools {
  display: grid;
  gap: 12px;
}

.admin-global-search {
  margin: 0;
}

.admin-search-mini-card {
  flex: 1;
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 76, 150, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  display: grid;
  gap: 6px;
}

.admin-search-mini-card strong {
  font-size: 1.15rem;
}

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

.admin-priority-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 18px;
  margin-top: 16px;
}

.admin-priority-panel,
.admin-alerts-panel,
.admin-activity-panel,
.admin-queue-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

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

.admin-priority-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 76, 150, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
}

.admin-priority-card.severity-critical {
  border-color: rgba(141, 21, 48, 0.18);
  box-shadow: inset 0 0 0 1px rgba(141, 21, 48, 0.08);
}

.admin-priority-card.severity-high {
  border-color: rgba(217, 84, 107, 0.16);
}

.admin-priority-card.severity-medium {
  border-color: rgba(255, 179, 71, 0.24);
}

.admin-priority-meta {
  min-width: 96px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.admin-priority-meta strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-priority-copy h3,
.admin-healthy-state strong {
  margin: 0;
}

.admin-priority-copy p,
.admin-healthy-state p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.admin-healthy-state {
  padding: 20px;
  border-radius: 24px;
  border: 1px dashed rgba(31, 143, 110, 0.22);
  background: linear-gradient(180deg, rgba(248, 255, 251, 0.96) 0%, rgba(241, 250, 244, 0.96) 100%);
}

.admin-alert-card,
.admin-queue-card,
.admin-investigation-card,
.admin-report-card,
.admin-intelligence-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-alert-card:hover,
.admin-queue-card:hover,
.admin-investigation-card:hover,
.admin-report-card:hover,
.admin-intelligence-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(24, 72, 140, 0.12);
  border-color: rgba(15, 76, 150, 0.16);
}

.admin-coverage-panel {
  display: grid;
  gap: 14px;
}

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

.admin-coverage-recommendation {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.55;
}

.admin-coverage-recommendation.warning {
  background: rgba(255, 179, 71, 0.12);
  color: #8a5407;
}

.admin-coverage-recommendation.healthy {
  background: rgba(31, 143, 110, 0.1);
  color: var(--success);
}

.admin-ops-grid {
  align-items: start;
}

.admin-ops-filter-row {
  justify-content: flex-start;
}

.admin-timeline {
  display: grid;
  gap: 14px;
}

.admin-timeline-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
}

.admin-timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.admin-timeline-rail::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 76, 150, 0.14) 0%, rgba(15, 76, 150, 0.04) 100%);
}

.admin-timeline-item:last-child .admin-timeline-rail::before {
  display: none;
}

.admin-timeline-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 0 6px rgba(31, 111, 229, 0.08);
}

.admin-timeline-dot.severity-critical {
  background: #8d1530;
  box-shadow: 0 0 0 6px rgba(141, 21, 48, 0.08);
}

.admin-timeline-dot.severity-high {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(217, 84, 107, 0.08);
}

.admin-timeline-dot.severity-medium {
  background: #c78619;
  box-shadow: 0 0 0 6px rgba(255, 179, 71, 0.12);
}

.admin-timeline-dot.severity-low,
.admin-timeline-dot.severity-healthy {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(31, 143, 110, 0.08);
}

.admin-timeline-body {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 76, 150, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.admin-timeline-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-search-result-card {
  height: 100%;
}

.admin-section-chips {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.admin-editor-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
}

.admin-section-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(244, 248, 255, 0.86);
}

.admin-provision-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-provision-tabs {
  flex-wrap: wrap;
}

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

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

.admin-create-section {
  scroll-margin-top: 24px;
}

.admin-provision-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.56);
}

.admin-provision-note strong {
  display: block;
  margin-bottom: 6px;
}

.admin-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 0;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0) 0%, rgba(249, 251, 255, 0.96) 36%, rgba(249, 251, 255, 0.98) 100%);
}

.admin-inline-actions,
.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-inline-actions {
  align-items: center;
}

.balance-control-card {
  border-color: rgba(33, 123, 95, 0.18);
  background:
    radial-gradient(circle at top right, rgba(112, 239, 182, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 251, 247, 0.96) 100%);
}

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

.balance-control-button {
  min-height: 52px;
  justify-content: center;
  font-size: 0.98rem;
}

.balance-control-credit {
  box-shadow: 0 18px 30px rgba(34, 153, 112, 0.18);
}

.balance-control-debit {
  border-color: rgba(217, 84, 107, 0.25);
  color: var(--danger);
  background: rgba(255, 255, 255, 0.88);
}

.balance-control-debit:hover {
  background: rgba(217, 84, 107, 0.08);
}

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

.admin-spotlight-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 184, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(31, 143, 110, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
}

.admin-spotlight-copy,
.admin-spotlight-graphic {
  position: relative;
  z-index: 1;
}

.admin-spotlight-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.admin-spotlight-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.admin-spotlight-copy p {
  margin: 0;
  max-width: 54ch;
}

.admin-spotlight-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-spotlight-graphic {
  min-height: 220px;
}

.admin-spotlight-ring,
.admin-spotlight-node {
  position: absolute;
}

.admin-spotlight-ring {
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 229, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.admin-spotlight-ring-lg {
  inset: 18px 10px 10px 36px;
}

.admin-spotlight-ring-md {
  inset: 52px 44px 40px 72px;
}

.admin-spotlight-ring-sm {
  inset: 90px 88px 82px 112px;
}

.admin-spotlight-node {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6fe5 0%, #69b8ff 100%);
  box-shadow: 0 12px 24px rgba(31, 111, 229, 0.28);
}

.admin-spotlight-node-a {
  top: 28px;
  right: 54px;
}

.admin-spotlight-node-b {
  top: 46%;
  left: 58px;
}

.admin-spotlight-node-c {
  bottom: 28px;
  right: 110px;
}

.admin-summary-card.admin-intelligence-card {
  align-items: start;
  gap: 10px;
}

.admin-summary-card.admin-intelligence-card strong {
  margin-top: 4px;
}

.admin-account-tile p:last-child {
  margin-bottom: 0;
}

.location-card p {
  margin-bottom: 6px;
}

.inline-link {
  display: inline-flex;
  margin-top: 8px;
}

.retail-dashboard,
.retail-summary-grid,
.retail-main-grid,
.retail-summary-top,
.retail-table,
.retail-table-head,
.retail-table-row {
  display: grid;
}

.retail-dashboard {
  gap: 18px;
}

.retail-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.retail-main-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.retail-summary-card,
.retail-balance-panel,
.retail-spend-panel,
.retail-goal-panel,
.retail-transactions-panel,
.live-center-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.retail-summary-top {
  grid-auto-flow: column;
  justify-content: start;
  gap: 12px;
  align-items: center;
}

.retail-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(184, 154, 255, 0.2) 0%, rgba(99, 120, 255, 0.2) 100%);
  color: #6c5de3;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.retail-summary-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.9rem;
}

.retail-summary-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.retail-balance-panel {
  grid-row: span 2;
}

.retail-trend-panel {
  margin-top: 12px;
}

.retail-trend-grid {
  background:
    linear-gradient(rgba(15, 76, 150, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(15, 76, 150, 0.05) 1px, transparent 1px) 0 0 / 12.5% 100%;
}

.retail-gauge {
  --score-angle: calc(var(--score) * 1%);
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 12px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 0 42%, transparent 43%),
    conic-gradient(from 210deg, #efe7ff 0 15%, #ded7ff 15% 32%, #ffe2d8 32% 46%, #cdbdff 46% var(--score-angle), rgba(224, 231, 245, 0.85) var(--score-angle) 100%);
}

.retail-gauge-center {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  text-align: center;
}

.retail-gauge-center span {
  color: var(--muted);
  font-size: 0.82rem;
}

.retail-gauge-center strong {
  display: block;
  font-size: 1.5rem;
}

.retail-goal-amount {
  display: block;
  margin: 18px 0 14px;
  font-size: 2rem;
}

.retail-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 76, 150, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.retail-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b89aff 0%, #6378ff 100%);
}

.retail-transactions-panel {
  grid-column: 1 / -1;
}

.retail-table {
  gap: 10px;
}

.retail-table-head,
.retail-table-row {
  grid-template-columns: minmax(0, 1.5fr) 0.7fr 0.7fr 0.6fr;
  gap: 12px;
  align-items: center;
}

.retail-table-head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 8px;
}

.retail-table-row {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(244, 248, 255, 0.88);
}

.table-meta-cell strong,
.table-meta-cell span,
.table-primary-cell strong,
.table-primary-cell p {
  min-width: 0;
}

.retail-avatar {
  border-radius: 50%;
}

.accounts-experience,
.account-stat-grid,
.account-side-column,
.account-tile-top,
.account-tile-bottom,
.account-hero-top,
.account-hero-actions,
.mobile-customer-dock {
  display: flex;
}

.accounts-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.account-side-column {
  flex-direction: column;
  gap: 18px;
}

.account-showcase-panel,
.account-directory-panel,
.account-detail-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.account-wallet-stack {
  position: relative;
  height: 124px;
  margin-bottom: 22px;
}

.wallet-stack-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(340px, 84%);
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 28px;
  color: #ffffff;
  transform: translate(calc(var(--stack-offset) * 18px), calc(var(--stack-offset) * 10px)) rotate(calc(var(--stack-offset) * -4deg));
  box-shadow: 0 26px 36px rgba(16, 48, 102, 0.16);
}

.wallet-stack-card span,
.wallet-stack-card strong {
  display: block;
}

.wallet-stack-card strong {
  margin-top: 24px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.tone-sunset {
  background: linear-gradient(135deg, #ff9968 0%, #ff7447 100%);
}

.tone-sky {
  background: linear-gradient(135deg, #7eb9ff 0%, #4f8bff 100%);
}

.tone-violet {
  background: linear-gradient(135deg, #c395ff 0%, #9667f4 100%);
}

.tone-midnight {
  background: linear-gradient(135deg, #1e2432 0%, #0f1420 100%);
}

.account-hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  color: #ffffff;
  box-shadow: 0 30px 42px rgba(15, 52, 110, 0.18);
}

.account-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -46% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26) 0%, transparent 68%);
}

.account-hero-top,
.account-tile-top,
.account-tile-bottom {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.account-hero-card h3 {
  margin: 6px 0 0;
  font-size: 1.2rem;
}

.account-hero-card > strong {
  display: block;
  margin: 20px 0 10px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.account-hero-card > p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.account-chip,
.account-type-badge,
.account-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.account-chip,
.account-type-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.account-status {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

.account-action-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #10283d;
  font-weight: 800;
  cursor: pointer;
}

.account-action-button.ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.account-goal-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(244, 248, 255, 0.92);
}

.account-stat-grid {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

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

.account-stat-card {
  flex: 1 1 180px;
}

.account-stat-card span {
  display: block;
  margin-top: 12px;
  font-size: 1.7rem;
  font-weight: 800;
}

.account-tile {
  position: relative;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(15, 76, 150, 0.08);
  border-radius: 24px;
  text-align: left;
  color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 28px rgba(17, 54, 110, 0.12);
}

.account-tile strong,
.account-tile p,
.account-tile span {
  position: relative;
  z-index: 1;
}

.account-tile strong {
  display: block;
  margin: 26px 0 8px;
  font-size: 1.05rem;
}

.account-tile p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.8);
}

.account-tile-glow {
  position: absolute;
  top: -36px;
  right: -18px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 68%);
}

.account-tile.active {
  transform: translateY(-2px);
  box-shadow: 0 24px 32px rgba(16, 48, 102, 0.18);
}

.account-history-panel,
.payments-layout > .panel,
.payments-side-stack > .panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.payments-layout {
  align-items: start;
}

.payments-side-stack {
  display: grid;
  gap: 18px;
}

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

.receive-money-card {
  height: 100%;
}

.admin-tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.admin-overview-grid {
  align-items: start;
}

.account-tile-bottom span:first-child {
  font-size: 1.05rem;
  font-weight: 800;
}

.mobile-customer-dock {
  display: none;
}

.dock-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(20, 59, 105, 0.68);
  font-weight: 800;
  cursor: pointer;
}

.dock-button.active {
  background: #ffffff;
  color: var(--violet);
  box-shadow: 0 12px 24px rgba(18, 73, 145, 0.16);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 141, 95, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 141, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 141, 95, 0);
  }
}

@keyframes pulseSkeleton {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-grid {
    flex-direction: column;
  }

  .view-grid {
    grid-template-columns: 1fr;
  }

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

  .notification-popover {
    width: min(360px, calc(100vw - 56px));
  }

  .hero-grid,
  .showcase-grid,
  .feature-grid,
  .module-grid,
  .security-grid,
  .detail-grid,
  .admin-summary-grid,
  .admin-analytics-grid,
  .admin-editor-grid,
  .retail-summary-grid,
  .retail-main-grid,
  .accounts-experience,
  .accounts-kpi-grid,
  .receive-money-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-header,
  .admin-table-row,
  .retail-table-head,
  .retail-table-row {
    grid-template-columns: 1fr;
  }

  .table-button {
    justify-self: start;
  }

  .admin-switcher-bar {
    grid-template-columns: 1fr;
  }

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

  .admin-command-highlights,
  .admin-spotlight-panel,
  .admin-priority-layout,
  .admin-nav-groups {
    grid-template-columns: 1fr;
  }

  .admin-command-card,
  .admin-command-card-secondary {
    width: min(100%, 320px);
  }

  .admin-command-card-secondary {
    margin-left: 0;
  }

  .admin-command-visual {
    min-height: 260px;
  }

  .admin-spotlight-graphic {
    min-height: 180px;
  }

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

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

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

  .account-wallet-stack {
    height: 138px;
  }

  .hero-stage {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .hero-float-card,
  .phone-showcase,
  .hero-status-pill {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
  }

  .trust-card,
  .profit-card,
  .market-card {
    width: 100%;
  }

  .phone-showcase {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .hero-status-pill {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .auth-shell,
  .app-shell {
    width: min(100%, calc(100% - 18px));
    padding: 10px 0 90px;
  }

  .topbar,
  .workspace-grid,
  .panel,
  .sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-frame.admin-mode .sidebar {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .app-frame.admin-mode .nav-stack {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .app-frame.admin-mode .nav-stack::-webkit-scrollbar {
    display: none;
  }

  .app-frame.admin-mode .nav-button {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0 12px;
    grid-template-columns: 36px auto;
  }

  .app-frame.admin-mode .sidebar-footer {
    margin-top: 0;
  }

  .app-frame.admin-mode .sidebar-footer-card {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 12px;
  }

  .app-frame.admin-mode .sidebar-signout-button {
    width: 100%;
    flex-shrink: 0;
  }

  .app-frame.admin-mode .sidebar-copyright {
    margin-top: 12px;
    padding-top: 12px;
    font-size: 0.8rem;
  }

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

  .admin-command-hero h2,
  .admin-spotlight-copy h2 {
    font-size: 1.7rem;
  }

  .admin-command-intro {
    align-items: flex-start;
  }

  .admin-command-highlights,
  .admin-search-quicklook {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-timeline-item {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 10px;
  }

  .admin-timeline-meta {
    justify-items: start;
  }

  .auth-login-video {
    min-height: 280px;
  }

  .action-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar,
  .two-column,
  .message-form,
  .form-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar {
    gap: 14px;
    align-items: stretch;
  }

  .topbar > div {
    width: 100%;
    min-width: 0;
  }

  .topbar h1 {
    font-size: clamp(1.55rem, 6.8vw, 2rem);
    line-height: 1.1;
  }

  .message-form {
    display: grid;
  }

  .topbar-right,
  .notification-hub,
  .notification-trigger {
    width: 100%;
  }

  .topbar-right {
    align-items: stretch;
    gap: 10px;
  }

  .topbar-site-link,
  .notification-trigger,
  .user-chip {
    width: 100%;
  }

  .topbar-site-link {
    justify-content: center;
  }

  .notification-trigger-copy {
    flex: 1 1 auto;
  }

  .notification-trigger-copy strong,
  .notification-trigger-copy p,
  .user-chip strong,
  .user-chip p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-chip {
    justify-content: space-between;
    min-width: 0;
  }

  .user-chip > div {
    min-width: 0;
  }

  .admin-form-footer {
    flex-direction: column-reverse;
  }

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

  .admin-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .balance-control-actions {
    grid-template-columns: 1fr;
  }

  .notification-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 84px;
    width: auto;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }

  .feed-stats {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .data-head,
  .admin-live-row-top,
  .admin-hero-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-live-context {
    width: 100%;
    justify-content: center;
  }

  .admin-section-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

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

  .admin-section-chips .filter-chip:last-child {
    grid-column: 1 / -1;
  }

  .admin-table-header,
  .retail-table-head {
    display: none;
  }

  .admin-table-row,
  .retail-table-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .table-primary-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .table-primary-cell::before,
  .table-meta-cell::before {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .table-meta-cell {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(15, 76, 150, 0.12);
  }

  .table-meta-cell .status-badge,
  .table-meta-cell .table-action-button {
    margin-left: 0;
  }

  .table-button {
    justify-self: stretch;
  }

  .table-action-button {
    width: 100%;
    justify-content: center;
  }

  .retail-table-row .table-meta-cell strong,
  .retail-table-row .table-meta-cell span,
  .admin-table-row .table-meta-cell strong,
  .admin-table-row .table-meta-cell span {
    text-align: left;
  }

  .landing-shell {
    width: min(100%, calc(100% - 18px));
    padding: 10px 0 24px;
  }

  .landing-hero,
  .landing-section,
  .landing-cta {
    padding: 18px 16px;
  }

  .landing-nav,
  .landing-cta {
    flex-direction: column;
    align-items: start;
  }

  .finora-hero {
    padding: 22px 16px 24px;
    border-radius: 30px;
  }

  .finora-hero::before {
    inset: 10px;
    border-radius: 22px;
  }

  .landing-links,
  .landing-actions {
    width: 100%;
  }

  .landing-links {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.84rem;
  }

  .landing-actions {
    display: flex;
    gap: 10px;
  }

  .landing-actions .ghost-link,
  .landing-actions .landing-cta-button {
    flex: 1 1 0;
  }

  .hero-badge {
    margin-top: 28px;
    font-size: 0.82rem;
  }

  .finora-copy {
    margin-top: 24px;
  }

  .finora-copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .finora-copy .lead-copy {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .hero-status-pill {
    justify-self: stretch;
    text-align: center;
  }

  .phone-frame {
    width: min(100%, 320px);
  }

  .finora-feature-grid,
  .finora-module-grid,
  .finora-pricing-grid {
    grid-template-columns: 1fr;
  }

  .app-frame.customer-mode .sidebar {
    gap: 12px;
  }

  .app-frame.customer-mode .nav-stack,
  .app-frame.customer-mode .sidebar-footer {
    display: none;
  }

  .account-wallet-stack {
    height: 116px;
  }

  .wallet-stack-card {
    width: min(320px, 88%);
    min-height: 96px;
  }

  .account-hero-actions,
  .account-stat-grid,
  .accounts-kpi-grid {
    flex-direction: column;
  }

  .account-hero-card {
    padding: 20px;
    border-radius: 26px;
  }

  .account-action-button {
    width: 100%;
    justify-content: center;
  }

  .account-stat-card {
    flex: 1 1 100%;
  }

  .account-detail-panel .detail-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .account-detail-panel .detail-row strong {
    width: 100%;
    text-align: left;
  }

  .mobile-customer-dock {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    width: min(calc(100vw - 24px), 420px);
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-radius: 26px;
    background: rgba(20, 29, 44, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 40px rgba(8, 23, 46, 0.26);
  }

  .dock-button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.72);
  }

  .dock-button.active {
    background: rgba(255, 255, 255, 0.96);
    color: #0f4c97;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100%, calc(100% - 12px));
    padding-bottom: 108px;
  }

  .topbar,
  .workspace-grid,
  .panel,
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .brand-block {
    gap: 10px;
  }

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

  .admin-section-chips {
    grid-template-columns: 1fr;
  }

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

  .admin-section-chips .filter-chip:last-child {
    grid-column: auto;
  }

  .notification-popover {
    left: 8px;
    right: 8px;
    bottom: 76px;
  }

  .account-wallet-stack {
    height: 104px;
  }

  .wallet-stack-card {
    width: min(300px, 92%);
    min-height: 88px;
    padding: 16px 18px;
  }

  .account-hero-card > strong {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .mobile-customer-dock {
    bottom: 10px;
    width: calc(100vw - 16px);
  }

  .dock-button {
    height: 44px;
    font-size: 0.72rem;
  }

  .landing-shell {
    width: min(100%, calc(100% - 12px));
  }

  .landing-links {
    gap: 10px 14px;
    font-size: 0.8rem;
  }

  .hero-float-card {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-float-card strong {
    font-size: 1.9rem;
  }

  .phone-screen {
    padding: 16px;
  }

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

body:not(.apex-marketing-page) {
  --bg-top: #eef5df;
  --bg-bottom: #d9e8b7;
  --frame: #edf3e2;
  --frame-2: #dfe9ca;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(247, 250, 241, 0.98);
  --line: rgba(55, 86, 31, 0.1);
  --line-strong: rgba(55, 86, 31, 0.18);
  --text: #203018;
  --muted: #677554;
  --violet: #4d9442;
  --lime: #b8ef80;
  --success: #3d8d3f;
  --shadow: 0 30px 80px rgba(41, 66, 23, 0.14);
  background:
    radial-gradient(circle at 14% 10%, rgba(191, 233, 133, 0.28), transparent 24%),
    radial-gradient(circle at 86% 24%, rgba(134, 209, 103, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body:not(.apex-marketing-page) .primary-button {
  background: linear-gradient(135deg, #d3ff99 0%, #73cb64 100%);
  color: #182412;
  box-shadow: 0 18px 34px rgba(115, 203, 100, 0.2);
}

body:not(.apex-marketing-page) .ghost-button,
body:not(.apex-marketing-page) .ghost-link,
body:not(.apex-marketing-page) .filter-chip {
  background: rgba(114, 176, 82, 0.1);
  color: var(--text);
}

body:not(.apex-marketing-page) .filter-chip.active,
body:not(.apex-marketing-page) .notification-badge {
  background: linear-gradient(135deg, #9ce06b 0%, #4d9442 100%);
  color: #ffffff;
}

body:not(.apex-marketing-page) .notice.info {
  background: rgba(113, 189, 79, 0.14);
  color: #2f6f25;
}

body:not(.apex-marketing-page) .action-banner {
  border-color: rgba(83, 134, 50, 0.12);
  background: linear-gradient(135deg, rgba(247, 252, 242, 0.98) 0%, rgba(239, 247, 230, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(57, 95, 28, 0.08);
}

body:not(.apex-marketing-page) .app-frame {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 247, 232, 0.96)), var(--frame);
}

body:not(.apex-marketing-page) .app-frame.admin-mode,
body:not(.apex-marketing-page) .app-frame.customer-mode {
  background: linear-gradient(180deg, #fbfdf7 0%, #f0f6e7 100%);
}

body:not(.apex-marketing-page) .app-frame.admin-mode .sidebar,
body:not(.apex-marketing-page) .app-frame.customer-mode .sidebar {
  background: linear-gradient(180deg, rgba(251, 253, 247, 0.98) 0%, rgba(239, 246, 231, 0.98) 100%);
  border-right: 1px solid rgba(55, 86, 31, 0.08);
}

body:not(.apex-marketing-page) .sidebar-footer-card {
  border-top-color: rgba(55, 86, 31, 0.12);
}

body:not(.apex-marketing-page) .sidebar-footer-label {
  color: rgba(46, 73, 29, 0.5);
}

body:not(.apex-marketing-page) .app-frame.admin-mode .nav-key,
body:not(.apex-marketing-page) .app-frame.customer-mode .nav-key {
  background: rgba(115, 186, 82, 0.12);
  color: #3f7d2f;
}

body:not(.apex-marketing-page) .app-frame.admin-mode .nav-button.active,
body:not(.apex-marketing-page) .app-frame.customer-mode .nav-button.active {
  background: linear-gradient(135deg, rgba(214, 255, 161, 0.84) 0%, rgba(126, 206, 96, 0.18) 100%);
  color: #244118;
  box-shadow: 0 16px 30px rgba(92, 153, 54, 0.12);
}

body:not(.apex-marketing-page) .app-frame.admin-mode .topbar,
body:not(.apex-marketing-page) .app-frame.customer-mode .topbar,
body:not(.apex-marketing-page) .app-frame.admin-mode .user-chip,
body:not(.apex-marketing-page) .app-frame.customer-mode .user-chip {
  background: rgba(255, 255, 255, 0.72);
}

body:not(.apex-marketing-page) .brand-mark,
body:not(.apex-marketing-page) .avatar,
body:not(.apex-marketing-page) .mini-avatar,
body:not(.apex-marketing-page) .profile-avatar,
body:not(.apex-marketing-page) .admin-summary-icon,
body:not(.apex-marketing-page) .retail-summary-icon {
  background: linear-gradient(135deg, #d8f7b1 0%, #7ccc60 100%);
  color: #234116;
}

body:not(.apex-marketing-page) .brand-core {
  background: rgba(28, 43, 17, 0.76);
}

body:not(.apex-marketing-page) .field-icon-button {
  background: rgba(110, 179, 78, 0.12);
  color: #3e6e2a;
}

body:not(.apex-marketing-page) .secondary-button,
body:not(.apex-marketing-page) .file-input,
body:not(.apex-marketing-page) .file-input::file-selector-button {
  background: #ffffff;
}

body:not(.apex-marketing-page) .secondary-button {
  border: 1px solid rgba(73, 123, 43, 0.22);
}

body:not(.apex-marketing-page) .danger-outline-button {
  border-color: rgba(181, 90, 62, 0.22);
  color: #9b4e34;
}

body:not(.apex-marketing-page) .profile-form-grid label > span,
body:not(.apex-marketing-page) .profile-status-panel .detail-row span,
body:not(.apex-marketing-page) .profile-status-panel .toggle-row span,
body:not(.apex-marketing-page) .search-label > span {
  color: #243120;
}

body:not(.apex-marketing-page) .validated-field.is-valid input {
  border-color: rgba(61, 141, 63, 0.28);
}

body:not(.apex-marketing-page) .validated-field .inline-valid-indicator::before {
  background: rgba(61, 141, 63, 0.14);
}

body:not(.apex-marketing-page) .validated-field .inline-valid-indicator::after {
  border-right-color: #3d8d3f;
  border-bottom-color: #3d8d3f;
}

body:not(.apex-marketing-page) .sensitive-prefix {
  color: #5d7047;
}

body:not(.apex-marketing-page) .notification-trigger,
body:not(.apex-marketing-page) .notification-popover,
body:not(.apex-marketing-page) .panel,
body:not(.apex-marketing-page) .auth-card {
  border-color: rgba(55, 86, 31, 0.1);
}

body:not(.apex-marketing-page) .auth-shell {
  position: relative;
  padding: 24px 0;
}

body:not(.apex-marketing-page) .auth-shell::before {
  content: "";
  position: absolute;
  inset: 4% 10%;
  border-radius: 42px;
  background:
    radial-gradient(circle at 20% 20%, rgba(214, 255, 161, 0.44), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(128, 201, 92, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(245, 250, 238, 0.18) 100%);
  filter: blur(18px);
  pointer-events: none;
}

body:not(.apex-marketing-page) .auth-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(214, 255, 161, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 240, 0.98) 100%);
  box-shadow: 0 34px 90px rgba(41, 66, 23, 0.12);
}

body:not(.apex-marketing-page) .auth-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-xl) - 12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

body:not(.apex-marketing-page) .auth-card .filter-chip {
  min-height: 42px;
  padding: 0 16px;
}

body:not(.apex-marketing-page) .auth-login-card .filter-chip {
  flex: 1 1 0;
}

body:not(.apex-marketing-page) .notification-trigger {
  background: rgba(247, 250, 241, 0.94);
  box-shadow: 0 18px 40px rgba(41, 66, 23, 0.08);
}

body:not(.apex-marketing-page) .notification-trigger-icon {
  background: linear-gradient(135deg, rgba(110, 179, 78, 0.16) 0%, rgba(184, 239, 128, 0.24) 100%);
  color: #417a32;
}

body:not(.apex-marketing-page) .feed-stat,
body:not(.apex-marketing-page) .feed-tab,
body:not(.apex-marketing-page) .feed-card,
body:not(.apex-marketing-page) .feed-empty,
body:not(.apex-marketing-page) .data-card,
body:not(.apex-marketing-page) .message-card,
body:not(.apex-marketing-page) .detail-row,
body:not(.apex-marketing-page) .toggle-row,
body:not(.apex-marketing-page) .metric-card,
body:not(.apex-marketing-page) .checkbox-row,
body:not(.apex-marketing-page) .admin-section-card,
body:not(.apex-marketing-page) .kpi-pill {
  border-color: rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ef 100%);
}

body:not(.apex-marketing-page) .feed-tab.active,
body:not(.apex-marketing-page) .pill,
body:not(.apex-marketing-page) .admin-meta-pill {
  background: rgba(110, 179, 78, 0.12);
  color: #417a32;
}

body:not(.apex-marketing-page) .retail-summary-card,
body:not(.apex-marketing-page) .retail-balance-panel,
body:not(.apex-marketing-page) .retail-spend-panel,
body:not(.apex-marketing-page) .retail-goal-panel,
body:not(.apex-marketing-page) .retail-transactions-panel,
body:not(.apex-marketing-page) .live-center-card,
body:not(.apex-marketing-page) .admin-chart-card,
body:not(.apex-marketing-page) .admin-gauge-card,
body:not(.apex-marketing-page) .admin-provision-panel,
body:not(.apex-marketing-page) .admin-directory-panel,
body:not(.apex-marketing-page) .admin-editor-panel,
body:not(.apex-marketing-page) .account-showcase-panel,
body:not(.apex-marketing-page) .account-directory-panel,
body:not(.apex-marketing-page) .account-detail-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf2 100%);
}

body:not(.apex-marketing-page) .retail-trend-grid,
body:not(.apex-marketing-page) .trend-grid {
  background:
    linear-gradient(rgba(61, 101, 33, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(61, 101, 33, 0.06) 1px, transparent 1px) 0 0 / 12.5% 100%;
}

body:not(.apex-marketing-page) .trend-line-a {
  stroke: #6bb14d;
}

body:not(.apex-marketing-page) .trend-line-b {
  stroke: #b4e47a;
}

body:not(.apex-marketing-page) .lime-tag {
  background: #bced84;
  color: #243714;
}

body:not(.apex-marketing-page) .violet-tag {
  background: rgba(98, 175, 73, 0.16);
  color: #336327;
}

body:not(.apex-marketing-page) .ops-swatch.customers,
body:not(.apex-marketing-page) .ops-bar.customers {
  background: linear-gradient(180deg, #d2ff9e 0%, #85d360 100%);
}

body:not(.apex-marketing-page) .ops-swatch.reviews,
body:not(.apex-marketing-page) .ops-bar.reviews {
  background: linear-gradient(180deg, #9de56b 0%, #5fac49 100%);
}

body:not(.apex-marketing-page) .ops-swatch.active {
  background: #14c46f;
}

body:not(.apex-marketing-page) .ops-swatch.inactive {
  background: #90a0ab;
}

body:not(.apex-marketing-page) .ops-gauge {
  background:
    radial-gradient(circle at center, #ffffff 0 44%, transparent 45%),
    conic-gradient(from -90deg, #14c46f 0 var(--score-angle), #c1ccd2 var(--score-angle) 100%);
}

body:not(.apex-marketing-page) .retail-gauge {
  background:
    radial-gradient(circle at center, #ffffff 0 42%, transparent 43%),
    conic-gradient(from 210deg, #edf7db 0 15%, #dceec2 15% 32%, #f6ddc3 32% 46%, #9bdd6c 46% var(--score-angle), rgba(224, 231, 214, 0.88) var(--score-angle) 100%);
}

body:not(.apex-marketing-page) .retail-progress-track span {
  background: linear-gradient(90deg, #d3ff99 0%, #66b852 100%);
}

body:not(.apex-marketing-page) .account-goal-card {
  background: rgba(247, 250, 241, 0.98);
}

body:not(.apex-marketing-page) .tone-sunset {
  background: linear-gradient(135deg, #a5de6d 0%, #6aba55 100%);
}

body:not(.apex-marketing-page) .tone-sky {
  background: linear-gradient(135deg, #d5ff9d 0%, #8ed265 100%);
}

body:not(.apex-marketing-page) .tone-violet {
  background: linear-gradient(135deg, #8bd668 0%, #4b9842 100%);
}

body:not(.apex-marketing-page) .tone-midnight {
  background: linear-gradient(135deg, #28351d 0%, #121a11 100%);
}

body:not(.apex-marketing-page) .bank-card {
  background:
    radial-gradient(circle at 78% 18%, rgba(248, 255, 230, 0.74) 0%, rgba(248, 255, 230, 0.28) 18%, transparent 42%),
    radial-gradient(circle at 18% 88%, rgba(210, 255, 172, 0.18) 0%, transparent 34%),
    linear-gradient(135deg, #a5ea76 0%, #80d95c 34%, #56bc52 66%, #319b46 100%);
}

body:not(.apex-marketing-page) .bank-card-layer-middle {
  background: linear-gradient(135deg, #367c50 0%, #24573c 100%);
}

body:not(.apex-marketing-page) .bank-card-layer-back {
  background: linear-gradient(135deg, #112017 0%, #0a1210 100%);
}

body:not(.apex-marketing-page) .mobile-customer-dock {
  background: rgba(20, 29, 18, 0.88);
}

body:not(.apex-marketing-page) .dock-button.active {
  background: rgba(244, 252, 236, 0.98);
  color: #3f7d2f;
}

body:not(.apex-marketing-page) .admin-live-grid {
  margin-top: 18px;
}

body:not(.apex-marketing-page) .admin-switcher-bar,
body:not(.apex-marketing-page) .admin-live-context {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(244, 249, 238, 0.92) 100%);
}

body:not(.apex-marketing-page) .admin-command-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(160, 249, 173, 0.22), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(225, 255, 185, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(19, 51, 18, 0.98) 0%, rgba(49, 105, 38, 0.96) 52%, rgba(128, 204, 77, 0.94) 100%);
  border-color: rgba(188, 241, 143, 0.2);
  box-shadow: 0 34px 84px rgba(32, 67, 21, 0.22);
}

body:not(.apex-marketing-page) .admin-command-hero .eyebrow {
  color: rgba(244, 255, 229, 0.74);
}

body:not(.apex-marketing-page) .admin-command-status,
body:not(.apex-marketing-page) .admin-highlight-chip,
body:not(.apex-marketing-page) .admin-command-card {
  border-color: rgba(236, 255, 216, 0.14);
}

body:not(.apex-marketing-page) .table-action-button,
body:not(.apex-marketing-page) .topbar-site-link {
  border-color: rgba(55, 86, 31, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

body:not(.apex-marketing-page) .table-button-icon {
  background: rgba(110, 179, 78, 0.14);
  color: #336327;
}

body:not(.apex-marketing-page) .admin-live-map-panel {
  overflow: hidden;
}

body:not(.apex-marketing-page) .admin-map-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 18px;
}

body:not(.apex-marketing-page) .admin-map-stage {
  display: grid;
  gap: 16px;
}

body:not(.apex-marketing-page) .admin-map-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body:not(.apex-marketing-page) .admin-map-stat {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ef 100%);
}

body:not(.apex-marketing-page) .admin-map-stat strong {
  display: block;
  font-size: 1.28rem;
}

body:not(.apex-marketing-page) .admin-map-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

body:not(.apex-marketing-page) .admin-map-surface {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid rgba(45, 69, 53, 0.28);
  background:
    radial-gradient(circle at 52% 48%, rgba(88, 208, 140, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(12, 22, 18, 0.98) 0%, rgba(18, 33, 27, 0.98) 100%);
  overflow: hidden;
}

body:not(.apex-marketing-page) .admin-google-map-shell {
  background:
    radial-gradient(circle at 52% 48%, rgba(88, 208, 140, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(10, 18, 15, 0.98) 0%, rgba(15, 27, 22, 0.98) 100%);
}

body:not(.apex-marketing-page) .admin-google-map-canvas {
  position: absolute;
  inset: 0;
}

body:not(.apex-marketing-page) .admin-google-map-loading {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(190, 232, 205, 0.16);
  background: rgba(8, 16, 13, 0.78);
  color: rgba(238, 250, 243, 0.92);
  box-shadow: 0 18px 36px rgba(4, 10, 8, 0.3);
  backdrop-filter: blur(14px);
}

body:not(.apex-marketing-page) .admin-google-map-loading[data-state="loading"] {
  color: rgba(238, 250, 243, 0.88);
}

body:not(.apex-marketing-page) .admin-google-map-loading[data-state="error"] {
  border-color: rgba(255, 197, 153, 0.22);
  color: #fff0e4;
}

body:not(.apex-marketing-page) .admin-map-info-window {
  min-width: 220px;
  max-width: 280px;
  color: #173127;
  font-size: 0.86rem;
  line-height: 1.5;
}

body:not(.apex-marketing-page) .admin-map-info-window strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

body:not(.apex-marketing-page) .admin-map-info-window p {
  margin: 0 0 4px;
}

body:not(.apex-marketing-page) .admin-map-info-window a {
  display: inline-flex;
  margin-top: 6px;
  color: #0b7a47;
  font-weight: 700;
  text-decoration: none;
}

body:not(.apex-marketing-page) .admin-world-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body:not(.apex-marketing-page) .admin-world-frame {
  fill: rgba(16, 28, 22, 0.82);
  stroke: rgba(106, 150, 126, 0.16);
  stroke-width: 4;
}

body:not(.apex-marketing-page) .admin-world-land {
  fill: rgba(53, 92, 69, 0.9);
  stroke: rgba(119, 182, 145, 0.22);
  stroke-width: 4;
}

body:not(.apex-marketing-page) .admin-world-land.soft {
  fill: rgba(44, 75, 58, 0.84);
}

body:not(.apex-marketing-page) .admin-world-land.secondary {
  fill: rgba(37, 59, 47, 0.92);
}

body:not(.apex-marketing-page) .admin-map-overlay {
  position: absolute;
  inset: 0;
}

body:not(.apex-marketing-page) .admin-map-marker {
  position: absolute;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

body:not(.apex-marketing-page) .admin-map-marker.customer {
  color: #dfffe6;
}

body:not(.apex-marketing-page) .admin-map-marker.operator {
  color: #f7fff2;
}

body:not(.apex-marketing-page) .admin-map-pin-pulse {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(109, 231, 152, 0.2);
  animation: livePulse 1.8s infinite;
}

body:not(.apex-marketing-page) .admin-map-pin-core {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, #0fd477 0%, #0a7a47 100%);
  box-shadow: 0 0 0 8px rgba(15, 212, 119, 0.14), 0 12px 24px rgba(3, 10, 8, 0.34);
}

body:not(.apex-marketing-page) .admin-map-marker.operator .admin-map-pin-core {
  background: linear-gradient(135deg, #d7fff0 0%, #7de9b0 100%);
  color: #0d2d1a;
}

body:not(.apex-marketing-page) .admin-map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, calc(100% - 40px));
  padding: 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(245, 251, 247, 0.12);
  color: rgba(230, 245, 237, 0.84);
}

body:not(.apex-marketing-page) .admin-map-list {
  display: grid;
  gap: 12px;
}

body:not(.apex-marketing-page) .admin-live-row {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf2 100%);
}

body:not(.apex-marketing-page) .admin-live-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

body:not(.apex-marketing-page) .admin-live-avatar-operator {
  background: linear-gradient(135deg, #324723 0%, #1a2513 100%);
  color: #f7fff2;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d6ffb4 0%, #7fe461 100%);
  color: #122611;
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-shell {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.admin-chat-shell {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(260px, 300px);
}

.admin-chat-queue-panel,
.admin-chat-inspector {
  gap: 14px;
}

.admin-chat-queue-toolbar {
  display: grid;
  gap: 14px;
}

.admin-chat-queue-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-chat-kpi {
  padding: 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 249, 236, 0.84) 100%);
  display: grid;
  gap: 4px;
}

.admin-chat-kpi strong {
  font-size: 1.05rem;
  color: #14351c;
}

.admin-chat-kpi span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-chat-filter-row {
  margin-top: 0;
}

.chat-sidebar,
.chat-thread-panel,
.chat-inspector {
  padding: 20px;
  border-radius: 28px;
}

.chat-sidebar,
.chat-inspector {
  display: grid;
  gap: 16px;
}

.chat-list {
  display: grid;
  gap: 12px;
  max-height: 68vh;
  overflow: auto;
  padding-right: 4px;
}

.chat-list-item {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 249, 239, 0.92) 100%);
  text-align: left;
  display: grid;
  gap: 10px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.chat-list-item:hover,
.chat-list-item.active {
  transform: translateY(-1px);
  border-color: rgba(80, 135, 42, 0.2);
  box-shadow: 0 18px 36px rgba(38, 69, 21, 0.08);
}

.chat-list-item.unread {
  border-color: rgba(90, 165, 66, 0.28);
  box-shadow: inset 0 0 0 1px rgba(188, 240, 143, 0.34);
}

.chat-list-item-top,
.chat-list-item-bottom,
.chat-list-user,
.chat-bubble-top,
.chat-compose-actions,
.chat-thread-badges {
  display: flex;
  align-items: center;
}

.chat-list-item-top,
.chat-list-item-bottom,
.chat-bubble-top,
.chat-compose-actions {
  justify-content: space-between;
  gap: 12px;
}

.chat-list-user {
  gap: 12px;
  min-width: 0;
}

.chat-list-user p,
.chat-list-preview,
.chat-bubble-meta,
.chat-typing-indicator {
  margin: 0;
}

.chat-list-preview {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-unread-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5bdd80 0%, #b9ff72 100%);
  color: #16351a;
  font-size: 0.74rem;
  font-weight: 800;
}

.chat-start-form,
.chat-compose-form {
  display: grid;
  gap: 14px;
}

.chat-start-form label,
.chat-compose-form label {
  display: grid;
  gap: 8px;
}

.chat-start-form input,
.chat-start-form textarea,
.chat-compose-form textarea,
.chat-inspector input,
.chat-inspector select {
  width: 100%;
  border: 1px solid rgba(55, 86, 31, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 14px 16px;
  resize: vertical;
}

.chat-start-form textarea,
.chat-compose-form textarea {
  min-height: 108px;
}

.chat-thread-panel {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  gap: 16px;
  min-height: 70vh;
}

.admin-chat-thread-panel .panel-head {
  align-items: flex-start;
}

.admin-chat-thread-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-chat-inspector-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 28ch;
}

.chat-thread {
  min-height: 320px;
  max-height: 68vh;
  overflow: auto;
  display: grid;
  gap: 14px;
  padding-right: 4px;
}

.chat-bubble {
  width: min(100%, 540px);
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 236, 0.98) 100%);
  display: grid;
  gap: 10px;
}

.chat-bubble.self-message {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(207, 255, 160, 0.96) 0%, rgba(140, 231, 97, 0.96) 100%);
  border-color: rgba(83, 146, 46, 0.18);
}

.chat-bubble-body {
  line-height: 1.55;
  color: #1b2f1b;
}

.chat-bubble-meta {
  color: rgba(27, 47, 27, 0.58);
  font-size: 0.8rem;
}

.chat-thread-footer {
  display: grid;
  gap: 12px;
}

.chat-typing-indicator {
  color: #2f6835;
  font-size: 0.9rem;
  font-weight: 700;
}

.chat-attachment {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.chat-attachment img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(55, 86, 31, 0.12);
}

.chat-attachment-picker {
  display: grid;
  gap: 8px;
}

.chat-empty-state {
  min-height: 320px;
  border-radius: 24px;
  border: 1px dashed rgba(76, 119, 46, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 249, 239, 0.74) 100%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

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

.admin-chat-customer-card,
.admin-chat-action-card {
  border-radius: 24px;
}

.admin-chat-customer-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-chat-inspector-stack {
  display: grid;
  gap: 14px;
}

.admin-chat-customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-chat-action-grid {
  display: grid;
  gap: 10px;
}

.admin-chat-form {
  gap: 12px;
}

.admin-chat-collapsible {
  border: 1px solid rgba(55, 86, 31, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 249, 236, 0.84) 100%);
  overflow: hidden;
}

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

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

.admin-chat-collapsible summary span {
  display: grid;
  gap: 3px;
}

.admin-chat-collapsible summary small {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-chat-collapsible[open] summary {
  border-bottom: 1px solid rgba(55, 86, 31, 0.08);
}

.admin-chat-collapsible .admin-chat-form,
.admin-chat-collapsible .admin-chat-activity-list {
  padding: 0 16px 16px;
}

.admin-chat-activity-list {
  gap: 10px;
}

.chat-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
}

.chat-toast {
  width: 100%;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(66, 116, 33, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 249, 235, 0.96) 100%);
  box-shadow: 0 24px 42px rgba(25, 54, 24, 0.16);
  text-align: left;
}

.chat-toast p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chat-inspector .form-grid.single-column {
  gap: 12px;
}

.admin-chat-list {
  max-height: 70vh;
}

.admin-support-ops-shell {
  display: grid;
  gap: 18px;
}

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

.admin-chat-metric-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 236, 0.94) 100%);
  box-shadow: 0 18px 34px rgba(41, 66, 23, 0.08);
  display: grid;
  gap: 6px;
}

.admin-chat-metric-card strong {
  font-size: 1.9rem;
  line-height: 1;
  color: #17311d;
}

.admin-chat-metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-chat-metric-card.warning {
  border-color: rgba(198, 138, 33, 0.24);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.98) 0%, rgba(254, 245, 225, 0.96) 100%);
}

.admin-chat-metric-card.warning strong {
  color: #8a5600;
}

.admin-chat-metric-card.critical {
  border-color: rgba(170, 71, 71, 0.24);
  background: linear-gradient(180deg, rgba(255, 245, 244, 0.98) 0%, rgba(255, 236, 236, 0.96) 100%);
}

.admin-chat-metric-card.critical strong {
  color: #8b2d2d;
}

.admin-chat-workbench {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(280px, 360px) minmax(0, 1.15fr) minmax(290px, 340px);
  gap: 18px;
  align-items: start;
}

.admin-chat-priority-column,
.admin-chat-conversation-column,
.admin-chat-active-column,
.admin-chat-intelligence-column {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.admin-chat-priority-column {
  grid-area: priority;
}

.admin-chat-conversation-column {
  grid-area: list;
}

.admin-chat-active-column {
  grid-area: active;
}

.admin-chat-intelligence-column {
  grid-area: intel;
}

.admin-chat-column-copy {
  margin: -4px 0 0;
}

.admin-chat-priority-list,
.admin-chat-conversation-list,
.admin-chat-intelligence-stack {
  display: grid;
  gap: 12px;
}

.admin-chat-priority-list,
.admin-chat-conversation-list {
  max-height: 72vh;
  overflow: auto;
  padding-right: 6px;
}

.admin-priority-ticket {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(55, 86, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 236, 0.94) 100%);
  display: grid;
  gap: 10px;
}

.admin-priority-ticket.severity-critical {
  border-color: rgba(183, 66, 66, 0.3);
  background: linear-gradient(180deg, rgba(255, 243, 242, 0.98) 0%, rgba(255, 234, 233, 0.96) 100%);
}

.admin-priority-ticket.severity-high {
  border-color: rgba(213, 146, 42, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.98) 0%, rgba(255, 242, 220, 0.96) 100%);
}

.admin-priority-ticket-top,
.admin-conversation-row-top,
.admin-conversation-row-footer,
.admin-priority-ticket-meta,
.admin-chat-compose-toolbar,
.admin-chat-context-strip,
.admin-inline-actions,
.admin-chat-tag-stack {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-priority-ticket-top {
  justify-content: space-between;
  align-items: flex-start;
}

.admin-priority-ticket-top p,
.admin-priority-ticket-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-priority-ticket-meta span,
.admin-conversation-row-footer span {
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-conversation-row {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(55, 86, 31, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 239, 0.94) 100%);
  display: grid;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-conversation-row:hover,
.admin-conversation-row.active {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(41, 66, 23, 0.08);
  border-color: rgba(103, 177, 78, 0.28);
}

.admin-conversation-row.severity-critical {
  border-left: 4px solid #c13d3d;
}

.admin-conversation-row.severity-high {
  border-left: 4px solid #dd8e2f;
}

.admin-conversation-row.severity-medium {
  border-left: 4px solid #86bb58;
}

.admin-conversation-row-state {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-chat-active-column {
  min-height: 860px;
}

.admin-chat-context-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-chat-context-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(55, 86, 31, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 249, 239, 0.92) 100%);
  display: grid;
  gap: 6px;
}

.admin-chat-context-card strong {
  font-size: 1.05rem;
  color: #17311d;
}

.admin-chat-context-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-chat-context-card.severity-critical,
.admin-chat-context-card.severity-high {
  border-color: rgba(213, 146, 42, 0.22);
}

.admin-chat-thread-ops {
  min-height: 380px;
  max-height: 620px;
  padding-right: 8px;
  overflow: auto;
  display: grid;
  gap: 12px;
}

.admin-chat-system-event {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(76, 114, 42, 0.18);
  background: rgba(244, 248, 237, 0.86);
  display: grid;
  gap: 6px;
}

.admin-chat-system-event.note {
  border-style: solid;
  background: rgba(251, 247, 232, 0.92);
}

.admin-chat-thread-footer {
  gap: 16px;
}

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

.admin-chat-assist-panel {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(55, 86, 31, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 249, 239, 0.92) 100%);
  display: grid;
  gap: 12px;
}

.admin-chat-tag-button,
.admin-chat-tag {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.admin-chat-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(103, 177, 78, 0.14);
  background: rgba(104, 183, 79, 0.1);
  color: #35612c;
}

.admin-chat-tag-button.active {
  background: linear-gradient(135deg, #a4e96f 0%, #4d9442 100%);
  color: #fff;
}

.muted-tag {
  opacity: 0.8;
}

.admin-chat-compose-form textarea,
.admin-chat-note-form textarea {
  min-height: 112px;
}

.admin-chat-note-form textarea {
  min-height: 88px;
}

.admin-chat-compose-toolbar {
  justify-content: space-between;
  align-items: end;
}

.admin-chat-compose-toolbar label {
  min-width: 180px;
}

.admin-chat-toolbar-hint {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.admin-chat-toolbar-hint strong {
  color: #27401f;
  font-size: 0.8rem;
}

.admin-history-button {
  justify-content: space-between;
  text-align: left;
}

.admin-activity-log-row {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(55, 86, 31, 0.08);
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 4px;
}

.admin-activity-log-row p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 1181px) {
  .admin-chat-shell > .chat-sidebar,
  .admin-chat-shell > .chat-inspector {
    position: sticky;
    top: 88px;
    overflow: visible;
  }

  .admin-chat-shell > .chat-sidebar {
    align-self: start;
  }

  .admin-chat-shell > .chat-inspector {
    align-self: start;
    max-height: calc(100vh - 108px);
  }

  .admin-chat-inspector {
    max-height: calc(100vh - 108px);
    overflow: auto;
    padding-right: 12px;
  }
}

@media (max-width: 1180px) {
  body:not(.apex-marketing-page) .admin-map-grid-layout {
    grid-template-columns: 1fr;
  }

  .admin-chat-metrics-bar,
  .admin-chat-context-strip,
  .admin-chat-assist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-chat-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-chat-active-column {
    min-height: auto;
  }

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

  .chat-thread-panel {
    min-height: auto;
  }

  .admin-chat-shell > .chat-sidebar,
  .admin-chat-shell > .chat-inspector {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 1181px) and (max-width: 1460px) {
  .admin-chat-workbench {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    grid-template-areas:
      "priority active"
      "list active"
      "intel active";
  }

  .admin-chat-intelligence-column {
    align-self: start;
  }

  .admin-chat-priority-list,
  .admin-chat-conversation-list,
  .admin-chat-thread-ops,
  .admin-chat-intelligence-stack {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .workspace-grid,
  .content-pane,
  .panel,
  .data-card,
  .message-card,
  .detail-row,
  .toggle-row,
  .metric-card,
  .admin-live-row,
  .admin-map-stage,
  .admin-map-list,
  .admin-map-stat,
  .admin-section-card,
  .admin-priority-ticket,
  .admin-conversation-row,
  .retail-table-row,
  .admin-table-row {
    min-width: 0;
  }

  .hero-metrics,
  .chip-row,
  .admin-summary-top,
  .admin-live-row-top,
  .admin-row-meta,
  .admin-conversation-row-footer,
  .admin-priority-ticket-meta,
  .account-hero-actions {
    flex-wrap: wrap;
  }

  .admin-meta-pill,
  .status-badge,
  .filter-chip,
  .pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .topbar-site-link,
  .notification-trigger,
  .user-chip,
  .topbar-chat-button {
    min-width: 0;
  }

  .admin-chat-metrics-bar,
  .admin-chat-context-strip,
  .admin-chat-assist-grid {
    grid-template-columns: 1fr;
  }

  .admin-chat-compose-toolbar {
    align-items: stretch;
  }

  .admin-chat-toolbar-hint {
    text-align: left;
  }

  .admin-conversation-row-top,
  .admin-priority-ticket-top {
    align-items: flex-start;
  }

  .auth-demo-actions {
    grid-template-columns: 1fr;
  }

  .auth-login-card {
    padding: 24px 20px;
  }

  .auth-login-media-frame {
    border-radius: 22px;
  }

  .auth-login-media-copy {
    inset: auto 14px 14px 14px;
    padding: 16px;
  }

  body:not(.apex-marketing-page) .admin-map-stats {
    grid-template-columns: 1fr;
  }

  body:not(.apex-marketing-page) .admin-map-surface {
    min-height: 300px;
  }

  body:not(.apex-marketing-page) .admin-google-map-loading {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
  }

  .chat-sidebar,
  .chat-thread-panel,
  .chat-inspector {
    padding: 18px;
    border-radius: 24px;
  }

  .chat-list {
    max-height: none;
  }

  .chat-thread {
    max-height: none;
    min-height: 240px;
  }

  .chat-bubble {
    width: 100%;
  }

  .admin-chat-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-chat-inspector-subtitle {
    max-width: none;
  }

  .admin-chat-queue-metrics,
  .admin-chat-action-grid,
  .admin-chat-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-chat-collapsible summary {
    padding: 15px 16px;
  }

  .admin-chat-collapsible .admin-chat-form,
  .admin-chat-collapsible .admin-chat-activity-list {
    padding: 0 16px 16px;
  }

  .chat-toast-stack {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 88px;
  }

  .topbar-chat-button {
    min-width: 0;
    width: 100%;
  }

  body:not(.apex-marketing-page) .admin-map-list .ghost-button,
  body:not(.apex-marketing-page) .admin-map-list .table-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .app-frame.customer-mode .brand-block,
  .app-frame.admin-mode .brand-block {
    width: 100%;
  }

  .app-frame.customer-mode .brand-block strong,
  .app-frame.admin-mode .brand-block strong {
    font-size: 0.96rem;
  }

  .topbar h1 {
    font-size: clamp(1.35rem, 8vw, 1.8rem);
  }

  .panel-head,
  .data-head,
  .admin-summary-top,
  .admin-live-row-top,
  .admin-hero-copy {
    gap: 10px;
  }

  .admin-map-list,
  .admin-map-stage,
  .admin-live-map-panel,
  .chat-sidebar,
  .chat-thread-panel,
  .chat-inspector {
    gap: 14px;
  }

  .admin-live-row,
  .admin-priority-ticket,
  .admin-conversation-row,
  .data-card,
  .message-card {
    padding: 14px;
  }

  .user-chip strong,
  .user-chip p,
  .notification-trigger-copy strong,
  .notification-trigger-copy p,
  .topbar-chat-copy strong,
  .topbar-chat-copy span {
    white-space: normal;
    word-break: break-word;
  }

  .mobile-customer-dock {
    gap: 6px;
    padding: 8px;
  }

  .dock-button {
    height: 42px;
    border-radius: 14px;
  }

  .table-primary-cell {
    gap: 10px;
  }

  .mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    font-size: 0.72rem;
  }
}

body:not(.apex-marketing-page) .workspace,
body:not(.apex-marketing-page) .workspace * {
  min-width: 0;
}

body:not(.apex-marketing-page) .workspace h1,
body:not(.apex-marketing-page) .workspace h2,
body:not(.apex-marketing-page) .workspace h3,
body:not(.apex-marketing-page) .workspace h4,
body:not(.apex-marketing-page) .workspace p,
body:not(.apex-marketing-page) .workspace strong,
body:not(.apex-marketing-page) .workspace span,
body:not(.apex-marketing-page) .workspace a,
body:not(.apex-marketing-page) .workspace button,
body:not(.apex-marketing-page) .workspace label {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.apex-marketing-page) .panel-head > div,
body:not(.apex-marketing-page) .data-head > div,
body:not(.apex-marketing-page) .admin-topbar-left,
body:not(.apex-marketing-page) .admin-hero-copy > div,
body:not(.apex-marketing-page) .admin-summary-top > div,
body:not(.apex-marketing-page) .admin-chat-column-copy,
body:not(.apex-marketing-page) .admin-chat-thread-subtitle,
body:not(.apex-marketing-page) .admin-chat-inspector-subtitle,
body:not(.apex-marketing-page) .account-hero-top > div,
body:not(.apex-marketing-page) .account-tile-top > div,
body:not(.apex-marketing-page) .account-tile-bottom > div,
body:not(.apex-marketing-page) .topbar > div,
body:not(.apex-marketing-page) .retail-goal-panel .data-head > span,
body:not(.apex-marketing-page) .retail-goal-panel .data-head > div {
  min-width: 0;
}

body:not(.apex-marketing-page) .user-chip > div,
body:not(.apex-marketing-page) .notification-trigger-copy,
body:not(.apex-marketing-page) .topbar-chat-copy,
body:not(.apex-marketing-page) .table-primary-cell,
body:not(.apex-marketing-page) .table-meta-cell,
body:not(.apex-marketing-page) .admin-name-cell > div,
body:not(.apex-marketing-page) .admin-priority-copy,
body:not(.apex-marketing-page) .admin-chat-customer-meta,
body:not(.apex-marketing-page) .admin-chat-toolbar-hint,
body:not(.apex-marketing-page) .detail-row strong,
body:not(.apex-marketing-page) .detail-row span,
body:not(.apex-marketing-page) .toggle-row span,
body:not(.apex-marketing-page) .data-card,
body:not(.apex-marketing-page) .message-card,
body:not(.apex-marketing-page) .panel {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.apex-marketing-page) .admin-name-cell strong,
body:not(.apex-marketing-page) .admin-name-cell p,
body:not(.apex-marketing-page) .table-meta-cell strong,
body:not(.apex-marketing-page) .table-meta-cell span,
body:not(.apex-marketing-page) .table-primary-cell strong,
body:not(.apex-marketing-page) .table-primary-cell p,
body:not(.apex-marketing-page) .user-chip strong,
body:not(.apex-marketing-page) .user-chip p,
body:not(.apex-marketing-page) .notification-trigger-copy strong,
body:not(.apex-marketing-page) .notification-trigger-copy p,
body:not(.apex-marketing-page) .topbar-chat-copy strong,
body:not(.apex-marketing-page) .topbar-chat-copy span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.apex-marketing-page) .status-badge,
body:not(.apex-marketing-page) .admin-meta-pill,
body:not(.apex-marketing-page) .filter-chip,
body:not(.apex-marketing-page) .pill {
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  text-align: center;
}

body:not(.apex-marketing-page) .status-badge,
body:not(.apex-marketing-page) .admin-meta-pill,
body:not(.apex-marketing-page) .filter-chip,
body:not(.apex-marketing-page) .pill,
body:not(.apex-marketing-page) .ghost-button,
body:not(.apex-marketing-page) .primary-button,
body:not(.apex-marketing-page) .table-button,
body:not(.apex-marketing-page) .table-action-button {
  max-width: 100%;
}

body:not(.apex-marketing-page) .admin-live-row,
body:not(.apex-marketing-page) .admin-conversation-row,
body:not(.apex-marketing-page) .admin-priority-ticket,
body:not(.apex-marketing-page) .retail-table-row,
body:not(.apex-marketing-page) .admin-table-row {
  overflow: hidden;
}

body:not(.apex-marketing-page) .table-primary-cell,
body:not(.apex-marketing-page) .admin-name-cell {
  align-items: start;
}

body:not(.apex-marketing-page) .primary-button,
body:not(.apex-marketing-page) .ghost-button,
body:not(.apex-marketing-page) .table-button,
body:not(.apex-marketing-page) .table-action-button,
body:not(.apex-marketing-page) .account-action-button,
body:not(.apex-marketing-page) .topbar-site-link,
body:not(.apex-marketing-page) .notification-trigger,
body:not(.apex-marketing-page) .topbar-chat-button {
  white-space: normal;
  line-height: 1.3;
}

body:not(.apex-marketing-page) .table-primary-cell strong,
body:not(.apex-marketing-page) .table-primary-cell p,
body:not(.apex-marketing-page) .admin-name-cell strong,
body:not(.apex-marketing-page) .admin-name-cell p {
  display: block;
  max-width: 100%;
}

@media (max-width: 860px) {
  body:not(.apex-marketing-page) .panel-head,
  body:not(.apex-marketing-page) .data-head,
  body:not(.apex-marketing-page) .account-hero-top,
  body:not(.apex-marketing-page) .account-tile-top,
  body:not(.apex-marketing-page) .account-tile-bottom,
  body:not(.apex-marketing-page) .admin-summary-top,
  body:not(.apex-marketing-page) .admin-hero-copy,
  body:not(.apex-marketing-page) .admin-live-row-top,
  body:not(.apex-marketing-page) .admin-priority-ticket-top,
  body:not(.apex-marketing-page) .admin-conversation-row-top,
  body:not(.apex-marketing-page) .admin-conversation-row-footer,
  body:not(.apex-marketing-page) .admin-priority-ticket-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  body:not(.apex-marketing-page) .admin-live-context {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  body:not(.apex-marketing-page) .admin-meta-pill,
  body:not(.apex-marketing-page) .status-badge,
  body:not(.apex-marketing-page) .filter-chip,
  body:not(.apex-marketing-page) .pill {
    justify-content: flex-start;
    text-align: left;
  }
}
.app-loading-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 228, 0.82));
  border: 1px solid rgba(25, 63, 21, 0.08);
  box-shadow: 0 18px 48px rgba(16, 40, 18, 0.08);
}

.app-loading-card .muted {
  max-width: 32rem;
}

/* Permanent responsive hardening for app dashboards */
body:not(.apex-marketing-page) {
  -webkit-text-size-adjust: 100%;
}

body:not(.apex-marketing-page) .app-shell,
body:not(.apex-marketing-page) .auth-shell {
  width: min(100%, 1460px);
  padding-inline: clamp(12px, 2vw, 24px);
}

body:not(.apex-marketing-page) .workspace-grid,
body:not(.apex-marketing-page) .content-pane,
body:not(.apex-marketing-page) .card-stack,
body:not(.apex-marketing-page) .payments-side-stack,
body:not(.apex-marketing-page) .account-side-column,
body:not(.apex-marketing-page) .admin-map-list,
body:not(.apex-marketing-page) .admin-chat-intelligence-stack,
body:not(.apex-marketing-page) .admin-chat-priority-list,
body:not(.apex-marketing-page) .admin-chat-conversation-list,
body:not(.apex-marketing-page) .admin-chat-thread-ops,
body:not(.apex-marketing-page) .receive-money-grid {
  min-width: 0;
}

body:not(.apex-marketing-page) .panel,
body:not(.apex-marketing-page) .data-card,
body:not(.apex-marketing-page) .admin-section-card,
body:not(.apex-marketing-page) .admin-summary-card,
body:not(.apex-marketing-page) .retail-summary-card,
body:not(.apex-marketing-page) .account-tile,
body:not(.apex-marketing-page) .admin-live-row,
body:not(.apex-marketing-page) .admin-priority-ticket,
body:not(.apex-marketing-page) .admin-conversation-row,
body:not(.apex-marketing-page) .retail-table-row,
body:not(.apex-marketing-page) .admin-table-row {
  width: 100%;
  max-width: 100%;
}

body:not(.apex-marketing-page) h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

body:not(.apex-marketing-page) h2 {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.2;
}

body:not(.apex-marketing-page) p,
body:not(.apex-marketing-page) span,
body:not(.apex-marketing-page) strong,
body:not(.apex-marketing-page) a,
body:not(.apex-marketing-page) button,
body:not(.apex-marketing-page) label,
body:not(.apex-marketing-page) input,
body:not(.apex-marketing-page) select,
body:not(.apex-marketing-page) textarea {
  font-size: clamp(0.92rem, 1.2vw, 1rem);
}

body:not(.apex-marketing-page) .retail-summary-grid,
body:not(.apex-marketing-page) .accounts-kpi-grid,
body:not(.apex-marketing-page) .account-stat-grid,
body:not(.apex-marketing-page) .admin-summary-grid,
body:not(.apex-marketing-page) .admin-coverage-grid,
body:not(.apex-marketing-page) .admin-map-stats,
body:not(.apex-marketing-page) .admin-chat-metrics-bar,
body:not(.apex-marketing-page) .admin-chat-context-strip,
body:not(.apex-marketing-page) .admin-chat-assist-grid,
body:not(.apex-marketing-page) .admin-chat-queue-metrics,
body:not(.apex-marketing-page) .admin-chat-stats-grid,
body:not(.apex-marketing-page) .kpi-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

body:not(.apex-marketing-page) .retail-main-grid,
body:not(.apex-marketing-page) .accounts-experience,
body:not(.apex-marketing-page) .admin-analytics-grid,
body:not(.apex-marketing-page) .admin-editor-grid,
body:not(.apex-marketing-page) .admin-switcher-bar,
body:not(.apex-marketing-page) .admin-search-layout,
body:not(.apex-marketing-page) .admin-priority-layout,
body:not(.apex-marketing-page) .admin-map-grid-layout,
body:not(.apex-marketing-page) .admin-spotlight-panel,
body:not(.apex-marketing-page) .admin-live-grid,
body:not(.apex-marketing-page) .admin-chat-workbench,
body:not(.apex-marketing-page) .admin-chat-shell,
body:not(.apex-marketing-page) .two-column,
body:not(.apex-marketing-page) .payments-layout,
body:not(.apex-marketing-page) .admin-create-columns,
body:not(.apex-marketing-page) .admin-permission-grid,
body:not(.apex-marketing-page) .admin-inline-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

body:not(.apex-marketing-page) .admin-directory-table,
body:not(.apex-marketing-page) .retail-table {
  overflow: hidden;
}

body:not(.apex-marketing-page) .admin-table-header,
body:not(.apex-marketing-page) .admin-table-row,
body:not(.apex-marketing-page) .retail-table-head,
body:not(.apex-marketing-page) .retail-table-row {
  column-gap: clamp(10px, 1.5vw, 18px);
}

body:not(.apex-marketing-page) .notification-popover {
  width: min(100vw - 24px, 420px);
  right: 0;
  left: auto;
}

body:not(.apex-marketing-page) .topbar-right {
  width: 100%;
  justify-content: flex-end;
  gap: 10px;
}

body:not(.apex-marketing-page) .topbar-chat-button,
body:not(.apex-marketing-page) .notification-trigger,
body:not(.apex-marketing-page) .user-chip,
body:not(.apex-marketing-page) .topbar-site-link {
  max-width: 100%;
}

body:not(.apex-marketing-page) .detail-row {
  gap: 12px;
}

body:not(.apex-marketing-page) .detail-row span,
body:not(.apex-marketing-page) .detail-row strong {
  flex: 1 1 0;
}

body:not(.apex-marketing-page) .mobile-customer-dock {
  padding-inline: max(12px, env(safe-area-inset-left));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-right: max(12px, env(safe-area-inset-right));
}

@media (max-width: 1180px) {
  body:not(.apex-marketing-page) .app-frame.admin-mode,
  body:not(.apex-marketing-page) .app-frame.customer-mode {
    grid-template-columns: 1fr;
  }

  body:not(.apex-marketing-page) .sidebar {
    width: 100%;
  }

  body:not(.apex-marketing-page) .topbar {
    align-items: stretch;
  }
}

@media (max-width: 860px) {
  body:not(.apex-marketing-page) .app-shell,
  body:not(.apex-marketing-page) .auth-shell {
    width: 100%;
    padding-inline: 12px;
  }

  body:not(.apex-marketing-page) .panel,
  body:not(.apex-marketing-page) .data-card,
  body:not(.apex-marketing-page) .admin-section-card,
  body:not(.apex-marketing-page) .account-hero-card,
  body:not(.apex-marketing-page) .wallet-stack-card {
    border-radius: 22px;
  }

  body:not(.apex-marketing-page) .topbar-right,
  body:not(.apex-marketing-page) .chip-row,
  body:not(.apex-marketing-page) .admin-row-meta,
  body:not(.apex-marketing-page) .account-hero-actions,
  body:not(.apex-marketing-page) .admin-form-footer {
    flex-wrap: wrap;
  }

  body:not(.apex-marketing-page) .topbar-chat-button,
  body:not(.apex-marketing-page) .notification-trigger,
  body:not(.apex-marketing-page) .user-chip {
    width: 100%;
  }

  body:not(.apex-marketing-page) .topbar-site-link {
    width: 100%;
    justify-content: center;
  }

  body:not(.apex-marketing-page) .detail-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body:not(.apex-marketing-page) .panel,
  body:not(.apex-marketing-page) .data-card,
  body:not(.apex-marketing-page) .admin-section-card {
    padding: 16px;
  }

  body:not(.apex-marketing-page) .topbar {
    gap: 12px;
  }

  body:not(.apex-marketing-page) .notification-popover {
    position: fixed;
    inset: auto 12px 84px 12px;
    width: auto;
    max-width: none;
  }

  body:not(.apex-marketing-page) .admin-table-row,
  body:not(.apex-marketing-page) .retail-table-row {
    padding: 14px;
  }

  body:not(.apex-marketing-page) .admin-table-row .table-button,
  body:not(.apex-marketing-page) .retail-table-row .table-button,
  body:not(.apex-marketing-page) .account-action-button,
  body:not(.apex-marketing-page) .ghost-button,
  body:not(.apex-marketing-page) .primary-button {
    width: 100%;
    justify-content: center;
  }
}

/* Final text-fluid overrides for long dashboard content */
body:not(.apex-marketing-page) .admin-name-cell strong,
body:not(.apex-marketing-page) .admin-name-cell p,
body:not(.apex-marketing-page) .user-chip strong,
body:not(.apex-marketing-page) .user-chip p,
body:not(.apex-marketing-page) .notification-trigger-copy strong,
body:not(.apex-marketing-page) .notification-trigger-copy p,
body:not(.apex-marketing-page) .topbar-chat-copy strong,
body:not(.apex-marketing-page) .topbar-chat-copy span,
body:not(.apex-marketing-page) .mini-label,
body:not(.apex-marketing-page) .status-badge,
body:not(.apex-marketing-page) .admin-meta-pill,
body:not(.apex-marketing-page) .pill,
body:not(.apex-marketing-page) .filter-chip,
body:not(.apex-marketing-page) .detail-row strong,
body:not(.apex-marketing-page) .detail-row span,
body:not(.apex-marketing-page) .table-primary-cell strong,
body:not(.apex-marketing-page) .table-primary-cell p,
body:not(.apex-marketing-page) .table-meta-cell strong,
body:not(.apex-marketing-page) .table-meta-cell span,
body:not(.apex-marketing-page) .data-head strong,
body:not(.apex-marketing-page) .data-head span,
body:not(.apex-marketing-page) .panel-head strong,
body:not(.apex-marketing-page) .panel-head span,
body:not(.apex-marketing-page) .muted,
body:not(.apex-marketing-page) .eyebrow {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body:not(.apex-marketing-page) .admin-name-cell,
body:not(.apex-marketing-page) .table-primary-cell,
body:not(.apex-marketing-page) .table-meta-cell,
body:not(.apex-marketing-page) .user-chip,
body:not(.apex-marketing-page) .notification-trigger-copy,
body:not(.apex-marketing-page) .topbar-chat-copy,
body:not(.apex-marketing-page) .detail-row,
body:not(.apex-marketing-page) .panel-head,
body:not(.apex-marketing-page) .data-head {
  min-width: 0;
}

body:not(.apex-marketing-page) .status-badge,
body:not(.apex-marketing-page) .admin-meta-pill,
body:not(.apex-marketing-page) .pill,
body:not(.apex-marketing-page) .filter-chip,
body:not(.apex-marketing-page) .mini-label {
  max-width: 100%;
  min-width: 0;
  height: auto;
}

body:not(.apex-marketing-page) .account-tile strong,
body:not(.apex-marketing-page) .account-tile p,
body:not(.apex-marketing-page) .account-tile span,
body:not(.apex-marketing-page) .account-hero-card h3,
body:not(.apex-marketing-page) .account-hero-card > p,
body:not(.apex-marketing-page) .retail-summary-card strong,
body:not(.apex-marketing-page) .retail-summary-note,
body:not(.apex-marketing-page) .admin-summary-card strong,
body:not(.apex-marketing-page) .admin-summary-note,
body:not(.apex-marketing-page) .admin-chat-toolbar-hint,
body:not(.apex-marketing-page) .admin-chat-inspector-subtitle,
body:not(.apex-marketing-page) .admin-chat-thread-subtitle,
body:not(.apex-marketing-page) .admin-priority-copy p,
body:not(.apex-marketing-page) .admin-conversation-row p,
body:not(.apex-marketing-page) .admin-live-row p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* True phone layout: force single-column dashboards instead of compressed desktop UI */
@media (max-width: 700px) {
  body:not(.apex-marketing-page) .app-shell,
  body:not(.apex-marketing-page) .auth-shell {
    width: 100%;
    padding: 8px 8px 104px;
  }

  body:not(.apex-marketing-page) .app-frame,
  body:not(.apex-marketing-page) .app-frame.admin-mode,
  body:not(.apex-marketing-page) .app-frame.customer-mode {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: auto;
    border-radius: 22px;
    overflow: visible;
    position: relative;
  }

  body:not(.apex-marketing-page) .app-frame.admin-mode .sidebar,
  body:not(.apex-marketing-page) .app-frame.customer-mode .sidebar,
  body:not(.apex-marketing-page) .app-frame.admin-mode .workspace,
  body:not(.apex-marketing-page) .app-frame.customer-mode .workspace {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:not(.apex-marketing-page) .mobile-sidebar-toggle {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  body:not(.apex-marketing-page) .app-frame.admin-mode .sidebar,
  body:not(.apex-marketing-page) .app-frame.customer-mode .sidebar {
    position: fixed;
    top: 8px;
    left: 8px;
    bottom: 8px;
    z-index: 80;
    width: min(88vw, 320px) !important;
    max-width: min(88vw, 320px) !important;
    overflow-y: auto;
    box-shadow: 0 24px 56px rgba(9, 21, 16, 0.18);
    transform: translateX(calc(-100% - 16px));
    transition: transform 180ms ease;
    border-radius: 18px;
  }

  body:not(.apex-marketing-page) .app-frame.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body:not(.apex-marketing-page) .workspace {
    position: relative;
    z-index: 1;
  }

  body:not(.apex-marketing-page) .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(10, 20, 17, 0.34);
  }

  body:not(.apex-marketing-page) .workspace {
    width: 100%;
    min-width: 0;
  }

  body:not(.apex-marketing-page) .sidebar,
  body:not(.apex-marketing-page) .topbar,
  body:not(.apex-marketing-page) .panel,
  body:not(.apex-marketing-page) .data-card,
  body:not(.apex-marketing-page) .message-card,
  body:not(.apex-marketing-page) .admin-section-card,
  body:not(.apex-marketing-page) .account-hero-card,
  body:not(.apex-marketing-page) .wallet-stack-card {
    padding: 14px;
    border-radius: 18px;
  }

  body:not(.apex-marketing-page) .topbar,
  body:not(.apex-marketing-page) .topbar-right,
  body:not(.apex-marketing-page) .panel-head,
  body:not(.apex-marketing-page) .data-head,
  body:not(.apex-marketing-page) .account-hero-top,
  body:not(.apex-marketing-page) .account-tile-top,
  body:not(.apex-marketing-page) .account-tile-bottom,
  body:not(.apex-marketing-page) .admin-summary-top,
  body:not(.apex-marketing-page) .admin-hero-copy,
  body:not(.apex-marketing-page) .admin-live-row-top,
  body:not(.apex-marketing-page) .admin-priority-ticket-top,
  body:not(.apex-marketing-page) .admin-conversation-row-top,
  body:not(.apex-marketing-page) .admin-conversation-row-footer,
  body:not(.apex-marketing-page) .admin-priority-ticket-meta,
  body:not(.apex-marketing-page) .chip-row,
  body:not(.apex-marketing-page) .account-hero-actions,
  body:not(.apex-marketing-page) .admin-form-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body:not(.apex-marketing-page) .retail-main-grid,
  body:not(.apex-marketing-page) .retail-summary-grid,
  body:not(.apex-marketing-page) .accounts-experience,
  body:not(.apex-marketing-page) .account-stat-grid,
  body:not(.apex-marketing-page) .accounts-kpi-grid,
  body:not(.apex-marketing-page) .admin-summary-grid,
  body:not(.apex-marketing-page) .admin-analytics-grid,
  body:not(.apex-marketing-page) .admin-editor-grid,
  body:not(.apex-marketing-page) .admin-switcher-bar,
  body:not(.apex-marketing-page) .admin-search-layout,
  body:not(.apex-marketing-page) .admin-priority-layout,
  body:not(.apex-marketing-page) .admin-map-grid-layout,
  body:not(.apex-marketing-page) .admin-spotlight-panel,
  body:not(.apex-marketing-page) .admin-live-grid,
  body:not(.apex-marketing-page) .admin-chat-workbench,
  body:not(.apex-marketing-page) .admin-chat-shell,
  body:not(.apex-marketing-page) .admin-chat-metrics-bar,
  body:not(.apex-marketing-page) .admin-chat-context-strip,
  body:not(.apex-marketing-page) .admin-chat-assist-grid,
  body:not(.apex-marketing-page) .admin-chat-queue-metrics,
  body:not(.apex-marketing-page) .admin-chat-stats-grid,
  body:not(.apex-marketing-page) .admin-coverage-grid,
  body:not(.apex-marketing-page) .payments-layout,
  body:not(.apex-marketing-page) .two-column,
  body:not(.apex-marketing-page) .admin-create-columns,
  body:not(.apex-marketing-page) .admin-permission-grid,
  body:not(.apex-marketing-page) .balance-control-actions,
  body:not(.apex-marketing-page) .feed-stats,
  body:not(.apex-marketing-page) .kpi-strip {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  body:not(.apex-marketing-page) .topbar-site-link,
  body:not(.apex-marketing-page) .topbar-chat-button,
  body:not(.apex-marketing-page) .notification-trigger,
  body:not(.apex-marketing-page) .user-chip,
  body:not(.apex-marketing-page) .ghost-button,
  body:not(.apex-marketing-page) .primary-button,
  body:not(.apex-marketing-page) .account-action-button,
  body:not(.apex-marketing-page) .table-action-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  body:not(.apex-marketing-page) .admin-table-row,
  body:not(.apex-marketing-page) .retail-table-row,
  body:not(.apex-marketing-page) .admin-live-row,
  body:not(.apex-marketing-page) .admin-priority-ticket,
  body:not(.apex-marketing-page) .admin-conversation-row,
  body:not(.apex-marketing-page) .account-tile {
    padding: 14px;
  }

  body:not(.apex-marketing-page) .admin-map-surface,
  body:not(.apex-marketing-page) .admin-google-map-shell,
  body:not(.apex-marketing-page) .admin-google-map-canvas {
    min-height: 240px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  body:not(.apex-marketing-page) .app-shell,
  body:not(.apex-marketing-page) .auth-shell {
    padding-inline: 6px;
  }

  body:not(.apex-marketing-page) .sidebar,
  body:not(.apex-marketing-page) .topbar,
  body:not(.apex-marketing-page) .panel,
  body:not(.apex-marketing-page) .data-card,
  body:not(.apex-marketing-page) .message-card,
  body:not(.apex-marketing-page) .admin-section-card {
    padding: 12px;
    border-radius: 16px;
  }

  body:not(.apex-marketing-page) h1 {
    font-size: clamp(1.25rem, 7vw, 1.6rem);
  }

  body:not(.apex-marketing-page) h2 {
    font-size: 1rem;
  }

  body:not(.apex-marketing-page) .brand-block {
    gap: 8px;
  }

  body:not(.apex-marketing-page) .brand-mark {
    width: 34px;
    height: 34px;
  }

  body:not(.apex-marketing-page) .mobile-customer-dock {
    left: 8px;
    right: 8px;
    width: auto;
    transform: none;
    bottom: 8px;
    border-radius: 18px;
  }

  body:not(.apex-marketing-page) .notification-popover {
    inset: auto 8px 72px 8px;
  }
}

body:not(.apex-marketing-page) .app-frame.admin-mode {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body:not(.apex-marketing-page) .app-frame.admin-mode .sidebar {
  position: sticky;
  top: 22px;
  min-height: calc(100vh - 44px);
  padding: 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(63, 118, 84, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(30, 70, 45, 0.08);
}

body:not(.apex-marketing-page) .app-frame.admin-mode .brand-block {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(63, 118, 84, 0.1);
}

body:not(.apex-marketing-page) .app-frame.admin-mode .nav-stack {
  gap: 8px;
}

body:not(.apex-marketing-page) .app-frame.admin-mode .nav-button {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  justify-content: flex-start;
}

body:not(.apex-marketing-page) .app-frame.admin-mode .nav-button.active {
  background: rgba(115, 182, 102, 0.14);
  border-color: rgba(115, 182, 102, 0.16);
  color: #173624;
  box-shadow: none;
}

body:not(.apex-marketing-page) .app-frame.admin-mode .nav-key {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(115, 182, 102, 0.12);
  color: #355840;
}

body:not(.apex-marketing-page) .app-frame.admin-mode .workspace {
  display: grid;
  gap: 16px;
}

body:not(.apex-marketing-page) .app-frame.admin-mode .topbar {
  padding: 18px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(30, 70, 45, 0.08);
}

body:not(.apex-marketing-page) .admin-dashboard-shell {
  padding: 20px 22px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 248, 0.94)),
    radial-gradient(circle at top right, rgba(163, 220, 156, 0.2), transparent 28%);
}

body:not(.apex-marketing-page) .admin-dashboard-shell-top,
body:not(.apex-marketing-page) .admin-dashboard-actions,
body:not(.apex-marketing-page) .admin-dashboard-rolebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body:not(.apex-marketing-page) .admin-dashboard-headline {
  display: grid;
  gap: 6px;
}

body:not(.apex-marketing-page) .admin-dashboard-headline h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

body:not(.apex-marketing-page) .admin-dashboard-avatar-stack {
  display: inline-flex;
  align-items: center;
}

body:not(.apex-marketing-page) .admin-dashboard-avatar-stack .mini-avatar {
  margin-left: -8px;
  border: 2px solid #fff;
  box-shadow: 0 10px 20px rgba(20, 53, 31, 0.12);
}

body:not(.apex-marketing-page) .admin-dashboard-avatar-stack .mini-avatar:first-child {
  margin-left: 0;
}

body:not(.apex-marketing-page) .admin-dashboard-rolebar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(63, 118, 84, 0.08);
  justify-content: flex-start;
}

body:not(.apex-marketing-page) .admin-dashboard-rolebar p {
  margin: 0;
  color: #5d7464;
}

body:not(.apex-marketing-page) .admin-nav-groups-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body:not(.apex-marketing-page) .admin-overview-surface,
body:not(.apex-marketing-page) .admin-overview-main {
  display: grid;
  gap: 16px;
}

body:not(.apex-marketing-page) .admin-overview-welcome,
body:not(.apex-marketing-page) .admin-overview-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body:not(.apex-marketing-page) .admin-overview-welcome {
  padding: 2px 4px;
}

body:not(.apex-marketing-page) .admin-overview-feature-grid,
body:not(.apex-marketing-page) .admin-overview-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.92fr);
  gap: 16px;
}

body:not(.apex-marketing-page) .admin-overview-chart-panel,
body:not(.apex-marketing-page) .admin-overview-calendar-panel,
body:not(.apex-marketing-page) .admin-overview-performers-panel,
body:not(.apex-marketing-page) .admin-overview-quick-panels {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 50px rgba(30, 70, 45, 0.06);
}

body:not(.apex-marketing-page) .admin-overview-chart-shell {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body:not(.apex-marketing-page) .admin-overview-chart {
  width: 100%;
  height: 190px;
}

body:not(.apex-marketing-page) .admin-overview-chart line {
  stroke: rgba(36, 88, 56, 0.08);
  stroke-dasharray: 4 8;
}

body:not(.apex-marketing-page) .admin-overview-chart-area {
  fill: url(#adminOverviewArea);
  stroke: none;
}

body:not(.apex-marketing-page) .admin-overview-chart-line {
  fill: none;
  stroke: #2c8a58;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not(.apex-marketing-page) .admin-overview-chart circle {
  fill: #2c8a58;
  stroke: #ffffff;
  stroke-width: 3;
}

body:not(.apex-marketing-page) .admin-overview-chart-footer {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  color: #748677;
  font-size: 0.76rem;
  text-align: center;
}

body:not(.apex-marketing-page) .admin-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

body:not(.apex-marketing-page) .admin-mini-day {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px 6px;
  border-radius: 16px;
  background: rgba(240, 247, 239, 0.78);
  color: #6c7f72;
  font-size: 0.76rem;
}

body:not(.apex-marketing-page) .admin-mini-day strong {
  font-size: 1rem;
  color: #1d3325;
}

body:not(.apex-marketing-page) .admin-mini-day.active {
  background: linear-gradient(180deg, #2d8d59, #246d47);
  color: rgba(255, 255, 255, 0.8);
}

body:not(.apex-marketing-page) .admin-mini-day.active strong {
  color: #fff;
}

body:not(.apex-marketing-page) .admin-schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body:not(.apex-marketing-page) .admin-schedule-card {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

body:not(.apex-marketing-page) .admin-schedule-card > div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(246, 250, 245, 0.9);
}

body:not(.apex-marketing-page) .admin-schedule-card strong {
  display: block;
  margin-bottom: 4px;
}

body:not(.apex-marketing-page) .admin-schedule-card p {
  margin: 0;
  color: #6c7f72;
  font-size: 0.82rem;
  line-height: 1.5;
}

body:not(.apex-marketing-page) .admin-schedule-accent {
  border-radius: 999px;
  background: rgba(71, 142, 94, 0.18);
}

body:not(.apex-marketing-page) .admin-schedule-accent.severity-critical,
body:not(.apex-marketing-page) .admin-schedule-accent.severity-high {
  background: rgba(209, 88, 96, 0.9);
}

body:not(.apex-marketing-page) .admin-schedule-accent.severity-medium {
  background: rgba(223, 171, 52, 0.95);
}

body:not(.apex-marketing-page) .admin-schedule-accent.severity-low,
body:not(.apex-marketing-page) .admin-schedule-accent.severity-healthy {
  background: rgba(71, 142, 94, 0.88);
}

body:not(.apex-marketing-page) .admin-performer-list,
body:not(.apex-marketing-page) .admin-overview-quick-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

body:not(.apex-marketing-page) .admin-performer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(246, 250, 245, 0.92);
}

body:not(.apex-marketing-page) .admin-performer-id,
body:not(.apex-marketing-page) .admin-performer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

body:not(.apex-marketing-page) .admin-performer-id > div,
body:not(.apex-marketing-page) .admin-performer-meta {
  min-width: 0;
}

body:not(.apex-marketing-page) .admin-performer-id p,
body:not(.apex-marketing-page) .admin-performer-meta span:first-child {
  margin: 0;
  color: #6b7d70;
  font-size: 0.82rem;
}

body:not(.apex-marketing-page) .admin-performer-meta {
  flex-direction: column;
  align-items: flex-end;
}

body:not(.apex-marketing-page) .admin-overview-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.apex-marketing-page) .admin-quick-tile {
  display: grid;
  gap: 8px;
  min-height: 162px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(61, 114, 81, 0.08);
  background: linear-gradient(180deg, rgba(248, 251, 247, 0.96), rgba(242, 248, 241, 0.92));
  text-align: left;
}

body:not(.apex-marketing-page) .admin-quick-tile strong {
  font-size: 1.1rem;
  line-height: 1.3;
}

body:not(.apex-marketing-page) .admin-quick-tile p {
  margin: 0;
  color: #6c7f72;
  line-height: 1.55;
}

body:not(.apex-marketing-page) .admin-quick-tile.accent-danger {
  background: linear-gradient(180deg, rgba(255, 242, 242, 0.98), rgba(254, 247, 247, 0.96));
}

body:not(.apex-marketing-page) .admin-quick-tile.accent-warn {
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(253, 250, 242, 0.96));
}

body:not(.apex-marketing-page) .admin-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body:not(.apex-marketing-page) .admin-summary-card.admin-intelligence-card {
  min-height: 164px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(58, 111, 78, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(28, 68, 43, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body:not(.apex-marketing-page) .admin-summary-card.admin-intelligence-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(28, 68, 43, 0.09);
}

@media (max-width: 1180px) {
  body:not(.apex-marketing-page) .admin-overview-feature-grid,
  body:not(.apex-marketing-page) .admin-overview-lower-grid {
    grid-template-columns: 1fr;
  }

  body:not(.apex-marketing-page) .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body:not(.apex-marketing-page) .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(63, 118, 84, 0.1);
  }

  body:not(.apex-marketing-page) .mobile-drawer-head .mini-label {
    margin-bottom: 4px;
  }

  body:not(.apex-marketing-page) .mobile-drawer-head strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    color: #1a3122;
  }

  body:not(.apex-marketing-page) .mobile-drawer-close {
    min-width: 82px;
    min-height: 42px;
    padding-inline: 14px;
    border-radius: 14px;
  }

  body:not(.apex-marketing-page) .admin-dashboard-shell-top,
  body:not(.apex-marketing-page) .admin-dashboard-actions,
  body:not(.apex-marketing-page) .admin-dashboard-rolebar,
  body:not(.apex-marketing-page) .admin-overview-welcome,
  body:not(.apex-marketing-page) .admin-overview-range {
    flex-direction: column;
    align-items: stretch;
  }

  body:not(.apex-marketing-page) .admin-summary-grid,
  body:not(.apex-marketing-page) .admin-overview-quick-grid,
  body:not(.apex-marketing-page) .admin-mini-calendar,
  body:not(.apex-marketing-page) .admin-overview-chart-footer {
    grid-template-columns: 1fr;
  }

  body:not(.apex-marketing-page) .admin-performer-row,
  body:not(.apex-marketing-page) .admin-performer-id,
  body:not(.apex-marketing-page) .admin-performer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  body:not(.apex-marketing-page) .admin-schedule-card {
    grid-template-columns: 1fr;
  }

  body:not(.apex-marketing-page) .admin-schedule-accent {
    min-height: 6px;
  }

  body:not(.apex-marketing-page) .admin-dashboard-shell,
  body:not(.apex-marketing-page) .admin-overview-chart-panel,
  body:not(.apex-marketing-page) .admin-overview-calendar-panel,
  body:not(.apex-marketing-page) .admin-overview-performers-panel,
  body:not(.apex-marketing-page) .admin-overview-quick-panels {
    padding: 14px;
    border-radius: 20px;
  }

  body:not(.apex-marketing-page) .admin-dashboard-actions .ghost-button,
  body:not(.apex-marketing-page) .admin-dashboard-actions .primary-button,
  body:not(.apex-marketing-page) .admin-overview-range .ghost-button {
    width: 100%;
  }

  body:not(.apex-marketing-page) .admin-dashboard-avatar-stack {
    justify-content: flex-start;
  }

  body:not(.apex-marketing-page) .admin-nav-groups-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:not(.apex-marketing-page) .admin-nav-groups-compact .filter-chip {
    width: 100%;
    justify-content: center;
  }

  body:not(.apex-marketing-page) .admin-overview-chart {
    height: 160px;
  }

  body:not(.apex-marketing-page) .admin-overview-chart-footer {
    display: none;
  }

  body:not(.apex-marketing-page) .mobile-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(63, 118, 84, 0.12);
    box-shadow: 0 10px 24px rgba(30, 70, 45, 0.08);
  }

  body:not(.apex-marketing-page) .admin-mini-calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.apex-marketing-page) .admin-schedule-card > div,
  body:not(.apex-marketing-page) .admin-performer-row,
  body:not(.apex-marketing-page) .admin-quick-tile {
    padding: 12px 14px;
  }

  body:not(.apex-marketing-page) .admin-quick-tile {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  body:not(.apex-marketing-page) .admin-nav-groups-compact,
  body:not(.apex-marketing-page) .admin-mini-calendar {
    grid-template-columns: 1fr;
  }

  body:not(.apex-marketing-page) .admin-dashboard-shell,
  body:not(.apex-marketing-page) .admin-overview-chart-panel,
  body:not(.apex-marketing-page) .admin-overview-calendar-panel,
  body:not(.apex-marketing-page) .admin-overview-performers-panel,
  body:not(.apex-marketing-page) .admin-overview-quick-panels {
    padding: 12px;
    border-radius: 18px;
  }

  body:not(.apex-marketing-page) .admin-dashboard-headline h2,
  body:not(.apex-marketing-page) .admin-overview-welcome h2 {
    font-size: 1.3rem;
  }

  body:not(.apex-marketing-page) .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  body:not(.apex-marketing-page) .admin-summary-card.admin-intelligence-card {
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  body:not(.apex-marketing-page) .admin-overview-chart {
    height: 138px;
  }
}

body:not(.apex-marketing-page) .admin-dashboard-shell {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(250, 251, 255, 0.96), rgba(245, 247, 252, 0.94));
  box-shadow: 0 24px 80px rgba(88, 80, 168, 0.12);
}

body:not(.apex-marketing-page) .admin-command-lead,
body:not(.apex-marketing-page) .admin-dashboard-rolebar p,
body:not(.apex-marketing-page) .admin-summary-note,
body:not(.apex-marketing-page) .admin-overview-welcome .muted,
body:not(.apex-marketing-page) .admin-schedule-card p,
body:not(.apex-marketing-page) .admin-performer-id p,
body:not(.apex-marketing-page) .admin-quick-tile p {
  color: #687287;
}

body:not(.apex-marketing-page) .admin-dashboard-headline h2,
body:not(.apex-marketing-page) .admin-overview-welcome h2,
body:not(.apex-marketing-page) .admin-overview-chart-panel h2,
body:not(.apex-marketing-page) .admin-overview-calendar-panel h2,
body:not(.apex-marketing-page) .admin-overview-performers-panel h2,
body:not(.apex-marketing-page) .admin-overview-quick-panels h2 {
  color: #161c2f;
  font-weight: 600;
}

body:not(.apex-marketing-page) .admin-segment-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: transparent;
  color: #7a8295;
  box-shadow: none;
}

body:not(.apex-marketing-page) .admin-segment-tab.active {
  background: rgba(255, 255, 255, 0.95);
  color: #182032;
  box-shadow: 0 12px 30px rgba(97, 86, 191, 0.14);
}

body:not(.apex-marketing-page) .admin-segment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #5a6276;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body:not(.apex-marketing-page) .admin-segment-tab.active .admin-segment-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(59, 130, 246, 0.12));
  color: #4638a4;
}

body:not(.apex-marketing-page) .admin-metric-card {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(114, 104, 189, 0.1);
}

body:not(.apex-marketing-page) .admin-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 88px;
  opacity: 0.95;
}

body:not(.apex-marketing-page) .admin-metric-card.tint-violet::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(255, 255, 255, 0));
}

body:not(.apex-marketing-page) .admin-metric-card.tint-sky::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0));
}

body:not(.apex-marketing-page) .admin-metric-card.tint-amber::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0));
}

body:not(.apex-marketing-page) .admin-metric-card.tint-rose::before {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.18), rgba(255, 255, 255, 0));
}

body:not(.apex-marketing-page) .admin-metric-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #333d5a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(107, 114, 128, 0.12);
}

body:not(.apex-marketing-page) .admin-metric-kicker {
  color: #616d86;
}

body:not(.apex-marketing-page) .admin-metric-status {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #616d86;
  font-size: 0.7rem;
  font-weight: 700;
}

body:not(.apex-marketing-page) .admin-metric-card strong {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  color: #171d31;
}

body:not(.apex-marketing-page) .admin-overview-chart-panel,
body:not(.apex-marketing-page) .admin-overview-calendar-panel,
body:not(.apex-marketing-page) .admin-overview-performers-panel,
body:not(.apex-marketing-page) .admin-overview-quick-panels {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 64px rgba(98, 88, 175, 0.08);
}

body:not(.apex-marketing-page) .admin-overview-chart line {
  stroke: rgba(148, 163, 184, 0.16);
}

body:not(.apex-marketing-page) .admin-overview-chart-line {
  stroke: url(#adminOverviewLineGradient);
}

body:not(.apex-marketing-page) .admin-overview-chart circle {
  stroke: #8b5cf6;
}

body:not(.apex-marketing-page) .admin-overview-chart-area {
  fill: url(#adminOverviewArea);
}

body:not(.apex-marketing-page) .admin-overview-chart-footer span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
}

body:not(.apex-marketing-page) .admin-mini-day {
  background: rgba(255, 255, 255, 0.72);
  color: #7a8295;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not(.apex-marketing-page) .admin-mini-day strong {
  color: #1d2438;
}

body:not(.apex-marketing-page) .admin-mini-day.active {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.92), rgba(59, 130, 246, 0.88));
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.22);
}

body:not(.apex-marketing-page) .admin-schedule-card > div,
body:not(.apex-marketing-page) .admin-performer-row,
body:not(.apex-marketing-page) .admin-quick-tile {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(96, 96, 176, 0.06);
}

body:not(.apex-marketing-page) .admin-schedule-accent.severity-critical,
body:not(.apex-marketing-page) .admin-schedule-accent.severity-high {
  background: linear-gradient(180deg, #fb7185, #f97316);
}

body:not(.apex-marketing-page) .admin-schedule-accent.severity-medium {
  background: linear-gradient(180deg, #f59e0b, #facc15);
}

body:not(.apex-marketing-page) .admin-schedule-accent.severity-low,
body:not(.apex-marketing-page) .admin-schedule-accent.severity-healthy {
  background: linear-gradient(180deg, #8b5cf6, #38bdf8);
}

body:not(.apex-marketing-page) .admin-quick-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body:not(.apex-marketing-page) .admin-quick-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

body:not(.apex-marketing-page) .admin-quick-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #38bdf8);
}

body:not(.apex-marketing-page) .admin-quick-tile.accent-danger .admin-quick-progress span {
  background: linear-gradient(90deg, #fb7185, #f97316);
}

body:not(.apex-marketing-page) .admin-quick-tile.accent-warn .admin-quick-progress span {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

body:not(.apex-marketing-page) .admin-quick-tile strong {
  color: #171d31;
}

@media (max-width: 700px) {
  body:not(.apex-marketing-page) .admin-segment-tab {
    justify-content: center;
  }

  body:not(.apex-marketing-page) .admin-metric-card {
    min-height: 0;
  }

  body:not(.apex-marketing-page) .admin-metric-card strong {
    font-size: 1.9rem;
  }
}

@media (max-width: 700px) {
  body:not(.apex-marketing-page) .app-frame.admin-mode .sidebar,
  body:not(.apex-marketing-page) .app-frame.customer-mode .sidebar {
    top: 0;
    left: 0;
    width: min(88vw, 340px);
    height: 100dvh;
    min-height: 100dvh;
    padding: 16px 14px 18px;
    border-radius: 0 24px 24px 0;
    border-right: 1px solid rgba(63, 118, 84, 0.12);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 245, 0.96)),
      radial-gradient(circle at top left, rgba(169, 221, 165, 0.22), transparent 26%);
    box-shadow: 0 28px 54px rgba(22, 53, 30, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.apex-marketing-page) .app-frame.admin-mode .brand-block,
  body:not(.apex-marketing-page) .app-frame.customer-mode .brand-block {
    margin-bottom: 12px;
    padding-bottom: 14px;
  }

  body:not(.apex-marketing-page) .app-frame.admin-mode .nav-stack,
  body:not(.apex-marketing-page) .app-frame.customer-mode .nav-stack {
    gap: 8px;
    padding-bottom: 12px;
  }

  body:not(.apex-marketing-page) .app-frame.admin-mode .nav-button,
  body:not(.apex-marketing-page) .app-frame.customer-mode .nav-button {
    min-height: 52px;
    padding-inline: 14px;
    border-radius: 16px;
  }

  body:not(.apex-marketing-page) .app-frame.admin-mode .sidebar-footer,
  body:not(.apex-marketing-page) .app-frame.customer-mode .sidebar-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(63, 118, 84, 0.1);
  }

  body:not(.apex-marketing-page) .app-frame.admin-mode .sidebar-footer-card,
  body:not(.apex-marketing-page) .app-frame.customer-mode .sidebar-footer-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
  }

  body:not(.apex-marketing-page) .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 33, 22, 0.38);
    backdrop-filter: blur(6px);
    z-index: 70;
  }

  body:not(.apex-marketing-page) .app-frame.sidebar-open .sidebar {
    z-index: 80;
  }
}
